-
Notifications
You must be signed in to change notification settings - Fork 440
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
[EXPORTER] Add option to disable Prometheus otel_scope_name and otel_scope_version attributes #2451
[EXPORTER] Add option to disable Prometheus otel_scope_name and otel_scope_version attributes #2451
Conversation
4984656
to
fe7eca7
Compare
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.
LGTM. Thanks for the fix.
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.
Thanks for the fix.
LGTM, see minor renaming.
53eafc8
to
db79d41
Compare
Thanks for the fixes. Please update this branch with the latest main changes. The auto-merge flag is enabled, this PR should merge to main once updated. |
Head branch was pushed to by a user without write access
db79d41
to
d0b712f
Compare
Reopen. This collides with the following spec PR, which defines the option and environment variable to use: |
Fixes #2442 (plus one bonus fix)
Changes
populate_otel_scope
option to thePrometheusExporterOptions
object defaulting to enabled, including an environment variable to control itotel_scope_name
andotel_scope_version
attributes added to instruments in Prometheus outputpopulate_target_info
option ofPrometheusExporterOptions
I opted to use (abuse) the side effect of the scope variable being null for the actual disabling of the attributes here, instead of passing the option down through the method chain to where it's used. If that's undesirable, I can switch to passing it.
For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes