-
Notifications
You must be signed in to change notification settings - Fork 5
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
Other instruments #10
Comments
Hi, I definitely welcome some contribution! Just regarding my sort of my desired scope for the crate at the moment: I want to keep scope for this library strictly to the OTEL HTTP server spec. Meaning w.r.t the instruments you linked:
I would want to keep the labels as strict to OTEL spec as possible as well. I think I personally would aim to take a bit stricter approach to the |
Great, all sounds sensible to me. I've opened #11 for the first one. For request size - do you think trusting the |
I think this is the right approach for a metrics middleware. Double-checking the body instead of trusting the CONTENT_LENGTH header is more of an approach for debugging a specific issue with a misbehaving client. Given that the spec suggests to look for it in the header and that it's optional, so I think the approach is to just set it if it's in the header.
As a reference point, the tower middleware which is specifically for limiting the body size also trusts the header: https://docs.rs/tower-http/latest/src/tower_http/limit/service.rs.html |
It appears we just need |
Hey great work with the crate!
I forked a similar repo that was tied to prometheus to make it use the opentelemetry SDK. Perhaps we could combine efforts?
I think some of these instruments would make sense in this library
The text was updated successfully, but these errors were encountered: