Replies: 2 comments
-
The number would be different depending on HTTP/1 and HTTP/2. In HTTP/1, hyper emits a trace event about bytes read and parsed into headers. We could probably make that a slightly better structured |
Beta Was this translation helpful? Give feedback.
-
Thinking more about it I'm trying to make a wrapper around connector( Now even if this was in a tracing event, I do not understand how I could catch this information with the desired context as I need this to be recorded in specific place of my logic, enriched(with context from my other data) and further emitted to a separate thread to be stored as metrics... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For statistical purposes I would like to record exact size of headers in an http response(n of bytes), is this possible?
I guess I could estimate this size by running across
headers()
and summing string lengths, but this seems dirty and slow. Is there a better way?Beta Was this translation helpful? Give feedback.
All reactions