-
Notifications
You must be signed in to change notification settings - Fork 438
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
[Metrics SDK] Add Metrics ExemplarFilter and ExemplarReservoir #1584
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1584 +/- ##
==========================================
- Coverage 85.04% 84.33% -0.70%
==========================================
Files 159 168 +9
Lines 4990 5122 +132
==========================================
+ Hits 4243 4319 +76
- Misses 747 803 +56
|
sdk/include/opentelemetry/sdk/metrics/exemplar/with_trace_sample_filter.h
Outdated
Show resolved
Hide resolved
{ | ||
namespace metrics | ||
{ | ||
class FilteredExemplarReservoir final : public ExemplarReservoir |
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.
as per the specs, there are only two reservoirs -SimpleFixedSizeExemplarReservoir, AlignedHistogramBucketExemplarReservoir. What is the purpose of this reservoir.
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.
This is a reservoir that has a pre-filter on measurements. Java has it. Shall I remove it?
I think a filter per trace would be interesting for the users.
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 PR. I have some minor comments :)
sdk/include/opentelemetry/sdk/metrics/exemplar/reservoir_cell_selector.h
Show resolved
Hide resolved
sdk/include/opentelemetry/sdk/metrics/exemplar/fixed_size_exemplar_reservoir.h
Outdated
Show resolved
Hide resolved
sdk/include/opentelemetry/sdk/metrics/exemplar/histogram_exemplar_reservoir.h
Show resolved
Hide resolved
sdk/include/opentelemetry/sdk/metrics/exemplar/histogram_exemplar_reservoir.h
Show resolved
Hide resolved
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 changes. LGTM
Fixes #1498 (issue)
Changes
implements
FilteredExemplarReservoir
,HistogramExemplarReservoir
andWithTraceSampleFilter
.For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes