-
Notifications
You must be signed in to change notification settings - Fork 705
Implement ExplicitBucketBoundaries advisory for Histograms #4361
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
Merged
+638
−203
Merged
Changes from 39 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
c058564
opentelemetry-api: add advisory parameters to Histograms
xrmx c435220
Update sdk
xrmx 3287503
No need to use Sequence from collections
xrmx 1ee046e
Fix typing in proxy
xrmx 83fd817
Rewrote MetricsInstrumentAdvisory as TypedDict
xrmx e033083
Rename ExplicitBucketBoundaries to explicit_bucket_boundaries
xrmx 1c90718
Add changelog
xrmx 8114597
Add an example in docs
xrmx 05f974a
parameter validation should just report an error, not fail
xrmx 1012547
Make test reproducible
xrmx 3ebe6df
Fix type of MetricsInstrumentAdvisory.explicit_bucket_boundaries
xrmx f7af6f4
Make advisory attribute private
xrmx 58d24cf
Permit also a sequence of ints as boundaries
xrmx 2e6be0b
Rework conflicting instrument registration check
xrmx 2c3608d
Fix typing for api instrumentors
xrmx c996647
Fixup lint
xrmx dbf8a04
Add integration tests
xrmx f659394
Make explicit boundaries float only
xrmx 7f3f39a
Stop using assertNoLogs to have green tests on py < 3.10
xrmx d9fb954
Fix api tests for real
xrmx 70e25bb
Change interface to a dataclass instead of a typed dict
xrmx 76a3181
Add default
xrmx 1ae32b2
Return instrument_id in _InstrumentRegistrationStatus
xrmx 6678f42
Don't use tuple assignment
xrmx 2a3242d
Correct advisory check to match reality
xrmx cf14e2f
fixup typo
xrmx b2c1f1b
Centralize instrument registration conflict logging
xrmx e29d5d5
Add advisory parameter to all instrumentor constructor
xrmx 69f58a2
Accept ints as valid value for advisory explicit bucket boundaries
xrmx b7b4977
Please mypy again
xrmx 99e123e
Move Advisory types to metrics _internal and export the public one
xrmx cf2163d
Give an hint on instrument registration conflict that the other one w…
xrmx 93db7ea
Update opentelemetry-api/src/opentelemetry/metrics/_internal/__init__.py
xrmx 82e2f08
Update opentelemetry-api/src/opentelemetry/metrics/_internal/__init__.py
emdneto 82536bc
Flattened advisory params
xrmx 6a8b8a7
Keep using _MetricsHistogramAdvisory for storing advisory internally
xrmx a79030d
Make explicit_bucket_boundaries_advisory kwargs only
xrmx 89c8391
Fix wrong params in create_histogram
xrmx 4bbc222
Merge branch 'main' into histogram-advisory
xrmx 95e77fb
Update CHANGELOG.md
xrmx 9ef6701
Update opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/aggr…
xrmx 3826348
Consider empty bucket boundaries as valid
xrmx 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
xrmx marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.