-
Notifications
You must be signed in to change notification settings - Fork 772
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
Add scope info and version to Prometheus exporter #5086
Merged
utpilla
merged 36 commits into
open-telemetry:main
from
robertcoltheart:feature/prometheus-scope-info
Dec 15, 2023
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
665537c
Add scope info and version to Prometheus exporter
robertcoltheart 676b700
Add tests and unshipped api
robertcoltheart 0203e64
Fix tests
robertcoltheart 44eaa4d
Add to changelog
robertcoltheart f8ee51b
Fix build and reuse scopes
robertcoltheart 395a7fc
Merge branch 'main' into feature/prometheus-scope-info
robertcoltheart 4ba86a8
Fix build, add extra newline for scope_info
robertcoltheart ab9292c
Merge branch 'main' into feature/prometheus-scope-info
robertcoltheart 6192827
Fix tests
robertcoltheart 74014ac
Merge branch 'feature/prometheus-scope-info' of https://github.com/ro…
robertcoltheart 9526647
Working with prometheus now
robertcoltheart da28e9d
Merge branch 'main' into feature/prometheus-scope-info
robertcoltheart 937b7da
Modify output depending on accept headers
robertcoltheart 42da2d2
Merge branch 'main' into feature/prometheus-scope-info
robertcoltheart 5b5f0df
Add tests
robertcoltheart 4e5e577
Merge branch 'main' into feature/prometheus-scope-info
robertcoltheart b5c80db
Fix merge
robertcoltheart f0b263d
Tidy
robertcoltheart 6753ad9
Fixed changelog
robertcoltheart d452ab2
Add tests and ability to disable scope info
robertcoltheart 8727a79
Fix build
robertcoltheart 63f0b36
Spelling
robertcoltheart 3c134cd
Merge branch 'main' into feature/prometheus-scope-info
cijothomas a21c6ce
Merge branch 'main' into feature/prometheus-scope-info
robertcoltheart 033a903
Scope info is not optional
robertcoltheart b33199a
Merge branch 'feature/prometheus-scope-info' of https://github.com/ro…
robertcoltheart 89f735d
Tidy code
robertcoltheart 50a9bde
Fix tests
robertcoltheart 0e1be38
Test naming
robertcoltheart aa16875
Updated changelog
robertcoltheart fca0b18
Merge branch 'main' into feature/prometheus-scope-info
robertcoltheart 22bfa08
Fix build
robertcoltheart 2260d8b
Merge branch 'main' into feature/prometheus-scope-info
utpilla 03d3953
Merge branch 'main' into feature/prometheus-scope-info
utpilla 026cfeb
Combine scope writing with hashset
robertcoltheart a7cc5fd
Merge branch 'feature/prometheus-scope-info' of https://github.com/ro…
robertcoltheart File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@robertcoltheart Scope info is added regardless of whether OpenMetrics is added, right?
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.
otel_scope_name
andotel_scope_version
tags are added regardless of what is requested, yes. This mirrors the behavior of the Java OTEL library. Theotel_scope_info
is only added when OpenMetrics is requested, otherwise Prometheus doesn't know how to handleinfo
types and will fault.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.
The example that you provided in the PR description has
otel_scope_info
added for both the cases though.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.
Damn, I don't know how I missed that. Sorry about that, let me raise a PR for that right now.
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.
No worries!
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.
See: #5182