Skip to content

Conversation

ramfox
Copy link
Member

@ramfox ramfox commented Aug 5, 2025

New metrics and metrics_map methods on the Endpoint.

metrics returns an EndpointMetrics, that contains magicsock, net_report, and portmapper fields, each of which can be accessed to look at individual metrics.

metrics_map returns a HashMap of String keys to u64 (or BigInt, for js) values. The key strings are in the format "GROUP:METRIC_NAME", with the GROUP being one of "magicsock", "net_report", and "portmapper".

@n0bot n0bot bot added this to iroh Aug 5, 2025
@github-project-automation github-project-automation bot moved this to 🏗 In progress in iroh Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏗 In progress
Development

Successfully merging this pull request may close these issues.

1 participant