-
Notifications
You must be signed in to change notification settings - Fork 438
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ExemplarFilter and ExemplarReservoir for spec (#2372)
- Loading branch information
1 parent
830651a
commit 2d077f8
Showing
43 changed files
with
650 additions
and
525 deletions.
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
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 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 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.
2d077f8
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.
Possible performance regression was detected for benchmark 'OpenTelemetry-cpp sdk Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.BM_ComputeIndex/0
16.575436107581034
ns/iter5.96759158097128
ns/iter2.78
This comment was automatically generated by workflow using github-action-benchmark.
2d077f8
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.
Possible performance regression was detected for benchmark 'OpenTelemetry-cpp exporters Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.BM_OtlpExporterSparseSpans
187.07921157530205
ns/iter92.88221834825268
ns/iter2.01
This comment was automatically generated by workflow using github-action-benchmark.