Skip to content

Commit 9ef6701

Browse files
xrmxaabmass
andauthored
Update opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/aggregation.py
Co-authored-by: Aaron Abbott <[email protected]>
1 parent 95e77fb commit 9ef6701

File tree

1 file changed

+1
-5
lines changed
  • opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal

1 file changed

+1
-5
lines changed

opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/aggregation.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,11 +1283,7 @@ def _create_aggregation(
12831283
)
12841284

12851285
if isinstance(instrument, Histogram):
1286-
boundaries: Optional[Sequence[float]] = (
1287-
instrument._advisory.explicit_bucket_boundaries
1288-
if instrument._advisory.explicit_bucket_boundaries is not None
1289-
else None
1290-
)
1286+
boundaries = instrument._advisory.explicit_bucket_boundaries
12911287
return _ExplicitBucketHistogramAggregation(
12921288
attributes,
12931289
reservoir_builder=reservoir_factory(

0 commit comments

Comments
 (0)