Skip to content

Commit 3e77f89

Browse files
committed
Correct advisory check to match reality
1 parent 97b2669 commit 3e77f89

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def create_histogram(
225225
if invalid_advisory:
226226
advisory = None
227227
_logger.warning(
228-
"Advisory must be a dict with explicit_bucket_boundaries key containing a sequence of numbers"
228+
"Advisory must be a valid MetricsHistogramAdvisory with explicit_bucket_boundaries key containing a sequence of floats"
229229
)
230230

231231
status = self._register_instrument(

0 commit comments

Comments
 (0)