We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bd0d44 commit 58d2b71Copy full SHA for 58d2b71
python/packages/core/agent_framework/_tools.py
@@ -543,7 +543,10 @@ def _default_histogram() -> Histogram:
543
from .observability import OBSERVABILITY_SETTINGS # local import to avoid circulars
544
545
if not OBSERVABILITY_SETTINGS.ENABLED: # type: ignore[name-defined]
546
- return NoOpHistogram() # type: ignore[return-value]
+ return NoOpHistogram(
547
+ name=OtelAttr.MEASUREMENT_FUNCTION_INVOCATION_DURATION,
548
+ unit=OtelAttr.DURATION_UNIT,
549
+ )
550
meter = get_meter()
551
try:
552
return meter.create_histogram(
0 commit comments