-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(snownet): log duration since intent after WG handshake completes #3991
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Terraform Cloud Plan Output
|
Performance Test ResultsTCP
UDP
|
61b5701
to
8c17cc2
Compare
5351880
to
e509715
Compare
@conectado I ended up buiilding #4047 on top of this which undoes a few of the changes in here. However, it was easier to just layer it on top rather than starting again and having lots of conflicts. This PR should be non-controversial so if you have any feedback on the internal design, I'd suggest to leave it on #4047. Thanks! :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice to have this metric :)
Do you think it's worth it to add a similar comment to what we have with iperf to detect regressions earlier?
stun_servers: HashSet<SocketAddr>, | ||
turn_servers: HashSet<SocketAddr>, | ||
|
||
stats: ConnectionStats, | ||
|
||
buffer: Box<[u8; MAX_UDP_SIZE]>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the buffer
name feels a bit generic here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is changing in the follow-up PR I linked above!
It would be nice to assert automatically but we'd need some form of structured reporting of these metrics like OTEL or prometheus. |
e509715
to
eb85bf8
Compare
eb85bf8
to
d581aea
Compare
Preceded by some refactoring, this PR adds a log line with a very important metric: Time since connection intent after WG handshake. This is the equivalent of time-to-first-byte, i.e. how long the user needs to wait to actually send their first application data after they've tried for the firs time (and generated an intent).