-
Notifications
You must be signed in to change notification settings - Fork 502
[EXEMPLAR] Update ExemplarFilter and ExemplarReservoir for spec #2372
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
Merged
Changes from 68 commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
a9c4e76
Set ExemplarFilter in SDK
ThomsonTan 574cc83
Merge branch 'main' into SetExemplarInSDK
ThomsonTan a20d585
Merge branch 'main' into SetExemplarInSDK
ThomsonTan f7c183a
Merge branch 'main' into SetExemplarInSDK
ThomsonTan aae3d3d
draft
ThomsonTan 7bb5d47
fix compilation
ThomsonTan cdb42d4
Merge branch 'main' into SetExemplarInSDK
ThomsonTan 968f4ae
Complete SimpleFixedSizeCellSelector
ThomsonTan 093b133
fix building tests
ThomsonTan 3df58f4
Enable in sync metric strorage
ThomsonTan ce10f0c
Enable sampling based on trace
ThomsonTan 6254bb2
Fix a header file path
ThomsonTan 3816caa
Move all exemplar code into preview macro
ThomsonTan 6e124ce
Add one more preview macro
ThomsonTan d76710a
One more macro guard
ThomsonTan 1bd5550
Fix format
ThomsonTan e651a37
Remove unused file
ThomsonTan 5f132c5
Rename test
ThomsonTan a2f6e9e
More format
ThomsonTan 01a3455
Even more formatting
ThomsonTan f4d8eb7
Fix macro name for test
ThomsonTan 5e41d60
More format clean
ThomsonTan 02f2c21
Comment out unused parameters
ThomsonTan 4907453
Comment out more unused parameters
ThomsonTan 7240b1b
Add parenthesis to boolean expression
ThomsonTan e7c61d6
Fix warning of hidden override
ThomsonTan aca22e9
Comment out unused var 2
ThomsonTan a60e01c
Delete unused source file
ThomsonTan 772f2b8
Add one more macro
ThomsonTan 1288e93
One more macro in meter_context.cc
ThomsonTan 06193ce
Remove deleted test in bazel build
ThomsonTan 77f6e12
One more macro
ThomsonTan a28d8a1
Add macro to test file
ThomsonTan 2efb7f7
Format test code
ThomsonTan c7e4e72
add header file
ThomsonTan 44737aa
Fix one more test
ThomsonTan 798fc19
Add context header file
ThomsonTan 36bd040
Add one more header
ThomsonTan 729142f
format
ThomsonTan fab7bf0
Add new lines
ThomsonTan 46b15f5
One more newline
ThomsonTan 239e730
One more macro
ThomsonTan 82b45f2
add one more newline
ThomsonTan 04c0d59
add more newline
ThomsonTan 3b80277
More newline
ThomsonTan 1410a42
One more fix
ThomsonTan 1d9047c
Fix test
ThomsonTan 1db50bf
Merge branch 'main' into SetExemplarInSDK
ThomsonTan d0f8cca
format
ThomsonTan 6aec1f4
Remove unused test
ThomsonTan 6cc25e4
Collect variable origin on valgrind
ThomsonTan 25077c9
Set exemplar type default to AlwaysOff
ThomsonTan 2ee5267
Set default parameter for MeterProvider::SetExemplarFilter
ThomsonTan 1ef26dd
Revert "Collect variable origin on valgrind"
ThomsonTan 2271886
Update changelog
ThomsonTan 3ccbdaa
Fix oob indexing
ThomsonTan 48ce87f
Use random number generator from common
ThomsonTan ebf4bbd
add test
ThomsonTan a7c7973
Add int64_t support to HistogramCellSelector
ThomsonTan 1c92201
Add random lib dependence for bazel
ThomsonTan 0cfec22
Move utils function to a separate file
ThomsonTan 1662339
Revert test code
ThomsonTan a1e6c94
Fix test
ThomsonTan ea56f06
Improve testcase name
ThomsonTan 5aa1f67
Merge branch 'main' into SetExemplarInSDK
ThomsonTan 4a59948
Merge branch 'main' into SetExemplarInSDK
ThomsonTan e276f08
Merge branch 'main' into SetExemplarInSDK
ThomsonTan 3bf5bd4
Merge branch 'main' into SetExemplarInSDK
marcalff 699d7e3
Update CHANGELOG.md
marcalff a1b4683
Merge branch 'main' into SetExemplarInSDK
ThomsonTan f2e0df3
Fix changelog
ThomsonTan d9bb11f
Merge branch 'main' into SetExemplarInSDK
ThomsonTan 8231e1e
Merge branch 'main' into SetExemplarInSDK
marcalff 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 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
43 changes: 0 additions & 43 deletions
43
sdk/include/opentelemetry/sdk/metrics/exemplar/always_sample_filter.h
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
46 changes: 46 additions & 0 deletions
46
sdk/include/opentelemetry/sdk/metrics/exemplar/filter_type.h
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| // Copyright The OpenTelemetry Authors | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| #pragma once | ||
|
|
||
| #ifdef ENABLE_METRICS_EXEMPLAR_PREVIEW | ||
|
|
||
| # include <memory> | ||
|
|
||
| # include "opentelemetry/sdk/metrics/state/filtered_ordered_attribute_map.h" | ||
| # include "opentelemetry/version.h" | ||
|
|
||
| OPENTELEMETRY_BEGIN_NAMESPACE | ||
| namespace context | ||
| { | ||
| class Context; | ||
| } // namespace context | ||
|
|
||
| namespace sdk | ||
| { | ||
| namespace common | ||
| { | ||
| class OrderedAttributeMap; | ||
| } // namespace common | ||
|
|
||
| namespace metrics | ||
| { | ||
| using MetricAttributes = opentelemetry::sdk::metrics::FilteredOrderedAttributeMap; | ||
|
|
||
| /** | ||
| * Exemplar filter type is used to pre-filter measurements before attempting to store them in a | ||
| * reservoir. | ||
| * https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#exemplarfilter | ||
| */ | ||
| enum class ExemplarFilterType : uint8_t | ||
| { | ||
| kAlwaysOff, | ||
| kAlwaysOn, | ||
| kTraceBased | ||
| }; | ||
|
|
||
| } // namespace metrics | ||
| } // namespace sdk | ||
| OPENTELEMETRY_END_NAMESPACE | ||
|
|
||
| #endif // ENABLE_METRICS_EXEMPLAR_PREVIEW |
73 changes: 0 additions & 73 deletions
73
sdk/include/opentelemetry/sdk/metrics/exemplar/filtered_exemplar_reservoir.h
This file was deleted.
Oops, something went wrong.
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.
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.