Skip to content

Commit 40b1869

Browse files
lalitbcijothomas
andauthored
Global error handler cleanup - Metrics data-point overflow (#2259)
Co-authored-by: Cijo Thomas <[email protected]>
1 parent 1b2d841 commit 40b1869

File tree

1 file changed

+1
-3
lines changed
  • opentelemetry-sdk/src/metrics/internal

1 file changed

+1
-3
lines changed

opentelemetry-sdk/src/metrics/internal/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ use aggregate::is_under_cardinality_limit;
1616
pub(crate) use aggregate::{AggregateBuilder, ComputeAggregation, Measure};
1717
pub(crate) use exponential_histogram::{EXPO_MAX_SCALE, EXPO_MIN_SCALE};
1818
use once_cell::sync::Lazy;
19-
use opentelemetry::metrics::MetricError;
20-
use opentelemetry::{global, otel_warn, KeyValue};
19+
use opentelemetry::{otel_warn, KeyValue};
2120

2221
use crate::metrics::AttributeSet;
2322

@@ -146,7 +145,6 @@ impl<AU: AtomicallyUpdate<T>, T: Number, O: Operation> ValueMap<AU, T, O> {
146145
let new_tracker = AU::new_atomic_tracker(self.buckets_count);
147146
O::update_tracker(&new_tracker, measurement, index);
148147
trackers.insert(STREAM_OVERFLOW_ATTRIBUTES.clone(), Arc::new(new_tracker));
149-
global::handle_error(MetricError::Other("Warning: Maximum data points for metric stream exceeded. Entry added to overflow. Subsequent overflows to same metric until next collect will not be logged.".into()));
150148
otel_warn!( name: "ValueMap.measure",
151149
message = "Maximum data points for metric stream exceeded. Entry added to overflow. Subsequent overflows to same metric until next collect will not be logged."
152150
);

0 commit comments

Comments
 (0)