Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/ai/telemetry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
HOOK_DEFERRED,
HOOK_RESOLVED,
RESPONSE_COMPLETE,
Adapter,
AiGenerateSpanData,
AiStreamSpanData,
CustomSpanData,
Expand All @@ -18,12 +19,14 @@
Span,
SpanData,
SpanEvent,
SpanRef,
ToolExecutionSpanData,
WrapSpanAdapter,
current,
current_ref,
register,
span,
unregister,
use_clock,
wrap_span,
)

Expand All @@ -33,6 +36,7 @@
"HOOK_DEFERRED",
"HOOK_RESOLVED",
"RESPONSE_COMPLETE",
"Adapter",
"AiGenerateSpanData",
"AiStreamSpanData",
"CustomSpanData",
Expand All @@ -42,11 +46,13 @@
"Span",
"SpanData",
"SpanEvent",
"SpanRef",
"ToolExecutionSpanData",
"WrapSpanAdapter",
"current",
"current_ref",
"register",
"span",
"unregister",
"use_clock",
"wrap_span",
]
2 changes: 1 addition & 1 deletion src/ai/telemetry/otel.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def _attributes(sp: telemetry.Span) -> dict[str, Any]:

def install(
*, tracer_provider: otel_trace.TracerProvider | None = None
) -> telemetry.WrapSpanAdapter:
) -> telemetry.Adapter:
"""Create the otel adapter, register it, and return it.

Uses the global tracer provider unless one is passed.
Expand Down
Loading
Loading