-
Notifications
You must be signed in to change notification settings - Fork 933
sdk_exporters/prometheus: Clarify Content Negotiation #4543
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
sdk_exporters/prometheus: Clarify Content Negotiation #4543
Conversation
|
Once this gets in, #4494 will complement the content negotiation section just to clarify how translation strategies interact with content negotiation |
|
It's not 100% copy-and-paste; some things got moved around. But yes, the content is basically the same. If we just add a reference to Prometheus website, then we're at risk of specification changing without us noticing if the content of Prometheus's website changes. Is that an ok risk to take? |
|
I think that is OK for a few reasons:
|
pellared
left a comment
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.
Overall LGTM. Just please add a changelog entry 😉
I'm looking at all the CHANGELOG sections and I'm bit confused about which part should I add an entry. Is it Metrics? Compatibility? SDK Configuration? |
a586521 to
a762009
Compare
I propose metrics. |
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
fc12e53 to
bc423e4
Compare
|
@ArthurSens Would you move the changelog entry from the released section ( |
|
@ArthurSens is OOO for a while. I moved the changelog entry to unreleased |
July 2025 release. ### Context - Add Supplementary Guidelines for environment variables as context carrier specification. ([#4548](#4548)) ### Traces - Define sampling threshold field in OpenTelemetry TraceState; define the behavior of TraceIdRatioBased sampler in terms of W3C Trace Context Level 2 randomness. ([#4166](#4166)) - Define CompositeSampler implementation and built-in ComposableSampler interfaces. ([#4466](#4466)) - Define how SDK implements `Tracer.Enabled`. ([#4537](#4537)) ### Logs - Stabilize `Event Name` parameter of `Logger.Enabled`. ([#4534](#4534)) - Stabilize SDK and No-Op `Logger.Enabled`. ([#4536](#4536)) - `SeverityNumber=0` MAY be used to represent an unspecified value. ([#4535](#4535)) ### Baggage - Add Supplementary Guidelines for environment variables as context carrier specification. ([#4548](#4548)) ### Compatibility - Clarify expectations about Prometheus content negotiation for metric names. ([#4543](#4543)) --------- Co-authored-by: Armin Ruech <7052238+arminru@users.noreply.github.com> Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Changes
Addressing feedback received during the last Spec SIG meeting, I'm splitting my previous PR(#4533) into two to ensure we keep the scope of the original one for the configuration changes.
If I understand correctly, almost all SDKs (if not all) are already compliant since they are wrappers around Prometheus SDKs, and Prometheus SDKs already do content negotiation properly. Then the PoCs are already done :)
CHANGELOG.mdfile updated for non-trivial changesspec-compliance-matrix.mdupdated if necessary