-
Notifications
You must be signed in to change notification settings - Fork 122
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(s2n-quic-dc): emit top-level stream events #2394
Conversation
e3337a5
to
2384171
Compare
/// The amount of time it took to process the write request | ||
/// | ||
/// Note that this includes both any syscall and encryption overhead | ||
#[measure("processing_duration", Duration)] |
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.
I guess this is OK for now, but I wonder if we should have a duration_per_byte or something like that, to make it easier to actually make sense of what this means.
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.
yeah that could be an interesting metric to have. i can add that as a follow-up
#[event("stream:read_socket_flushed")] | ||
pub struct StreamReadSocketFlushed { | ||
/// The number of bytes that the stream tried to read from the socket | ||
#[measure("capacity", Bytes)] |
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.
This buffer is always an internal buffer IIRC, right? Do we expect meaningful size differences on that?
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.
Yeah it's always an internal buffer. I was curious to see if we were ever needing to read more for stream sockets to complete a packet, in which case this buffer would be undersized.
2384171
to
ca4038b
Compare
ca4038b
to
fc51fd1
Compare
Description of changes:
This change adds several stream events for s2n-quic-dc streams. This can provide better insight into what is happening to streams both in aggregate and individually.
Testing:
You can see the events showing up in the tracing logs for the tests:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.