Replies: 2 comments 1 reply
-
iroh cannot know whether hole-punching was needed or not, as that's a property of the networking routers between the peers that we don't have access to. Whether to use relays or direct connections is managed on the endpoint level in iroh, because all connections to the same peer share the same connection type. You can see info about it by calling |
Beta Was this translation helpful? Give feedback.
-
We have some metrics around this, e.g. https://docs.rs/iroh/latest/iroh/metrics/struct.MagicsockMetrics.html#structfield.connection_became_direct and some other fields there. But as @matheus23 says, not the direct metrics you're asking for. Though I think it is fair to create an issue for this. I think it may be possible to give these metrics with the multipath changes, we should at least look into it. Also the stats object you refer to is basically upstream Quinn's struct and we haven't changed anything. But I think you make a valid point that we should probably integrate our own metrics in there to give a more consistent API. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
For performance/connectivity debugging/info I'd want to display stats that tell me what kind of underlying connection is being used:
Is this exposed anywhere? I don't see any way to deduce it from https://docs.rs/iroh/latest/iroh/endpoint/struct.PathStats.html ATM.
Beta Was this translation helpful? Give feedback.
All reactions