-
Notifications
You must be signed in to change notification settings - Fork 452
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
Allow precreation of AttributeSets for metrics #1421
Merged
cijothomas
merged 37 commits into
open-telemetry:main
from
KallDrexx:premade_attribute_sets
Jan 24, 2024
Merged
Changes from 36 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
6f42c3a
Move attribute set to root crate
92977cd
Attribute set passed in as argument
9f9905b
Removed idea files
8fe79b9
From trait utilizing iterators instead of reference slices
4b61676
Initial mod comment
d47e9df
Update benchmarks
3cf8b13
Add benchmark and stress test
1cb67fc
counter compile error
dbf2c16
Merge branch 'main' into premade_attribute_sets
3160dad
Unignore spatial aggregation test as requested
5ad5b7b
Fmt fix
c0e9878
Fixed compile errors after merge
c442a1a
Merge branch 'main' into premade_attribute_sets
KallDrexx 5b2ef1a
Counters and histograms can now have any value that can be converted …
26afa6e
Added attribute set test coverage
8417984
Removed unused `from_key_values()` function
9e85ddc
Added more value types for better equality checks
4f4d4de
Merge branch 'main' into premade_attribute_sets
KallDrexx 747c40e
Merge branch 'main' into premade_attribute_sets
46994cb
Post merge clippy
83f10d3
Take shared reference iterators, one less clone
6b6e9e0
Removed unneeded `AttributeSet::from` calls
377e8b0
revert of some minor changes to lower diff volume
7869fa7
Fixed doc tests
70cbdbb
missed doctest
18a001f
missed fmt
345a0e7
Merge branch 'main' into premade_attribute_sets
a37bf5a
Allow owned and borrowed key value iterators to create attribute sets
ae482c3
Moved `AttributeSet` reference to opentelemetry root
440a5bc
Added missing docs
a34194d
Fix doctests pointing to changed module location
4d5dcdd
Add changelog entry
0a1899a
Merge branch 'main' into premade_attribute_sets
KallDrexx 892b6f1
Minor nits
d2f7ad0
Histogram is backward compatible
a3b1cf4
Gauges are compat, observables are not
ef330e1
Update opentelemetry/CHANGELOG.md
KallDrexx 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
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.
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.
i am not sure how common is it to have 2 instruments used with same attributes.. maybe better to stick with existing examples only.
(Also counter's functionality is already provided by histogram, so this example of showing both could be confusing! But that is unrelated to this PR)
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.
Since this example uses a
histogram
, and histograms couldn't be updated to take aInto<AttributeSet>
either, the precreated attribute set is required here for at least that one.