Skip to content

Commit 58d2b71

Browse files
fix noop
1 parent 3bd0d44 commit 58d2b71

File tree

1 file changed

+4
-1
lines changed
  • python/packages/core/agent_framework

1 file changed

+4
-1
lines changed

python/packages/core/agent_framework/_tools.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,10 @@ def _default_histogram() -> Histogram:
543543
from .observability import OBSERVABILITY_SETTINGS # local import to avoid circulars
544544

545545
if not OBSERVABILITY_SETTINGS.ENABLED: # type: ignore[name-defined]
546-
return NoOpHistogram() # type: ignore[return-value]
546+
return NoOpHistogram(
547+
name=OtelAttr.MEASUREMENT_FUNCTION_INVOCATION_DURATION,
548+
unit=OtelAttr.DURATION_UNIT,
549+
)
547550
meter = get_meter()
548551
try:
549552
return meter.create_histogram(

0 commit comments

Comments
 (0)