You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rewrite on top of `opentelemetry-util-genai`. The instrumentor now registers a single `TracingProcessor` with the agents library (`agents.tracing.add_trace_processor`) and turns its `Trace` / `AgentSpan` / `FunctionSpan` callbacks into `invoke_workflow` / `invoke_agent` / `execute_tool` spans. The workflow span carries a `gen_ai.workflow.name` attribute sourced from the agents library's `RunConfig.workflow_name`. LLM-level spans are not emitted by this package — install `opentelemetry-instrumentation-genai-openai` alongside to capture them. Removes the `OTEL_INSTRUMENTATION_OPENAI_AGENTS_*` environment variables and the matching instrumentor kwargs. New `disable_openai_trace_export=True` instrumentor kwarg replaces the default OpenAI-hosted trace exporter so traces flow only via OTel. Handoff / guardrail / speech / transcription spans are no longer emitted pending semconv. `execute_tool` spans are missing `gen_ai.tool.call.id` because the agents library's `FunctionSpanData` does not expose it — tracked in [#86](https://github.com/open-telemetry/opentelemetry-python-genai/issues/86).
1
+
Rewrite on top of `opentelemetry-util-genai`:
2
+
3
+
- Emits `invoke_workflow`, `invoke_agent`, `execute_tool` spans via a `TracingProcessor`
4
+
registered with `agents.tracing.add_trace_processor`.
5
+
- Workflow span carries `gen_ai.workflow.name` from `RunConfig.workflow_name`.
6
+
- LLM spans (`chat` / `responses` / `embeddings`) now come from
7
+
`opentelemetry-instrumentation-genai-openai` when installed; this package no longer
8
+
emits them.
9
+
- Handoff / guardrail / speech / transcription spans are no longer emitted, pending semconv.
10
+
- New `disable_openai_trace_export=True` instrumentor kwarg removes the default
11
+
OpenAI-hosted trace exporter.
12
+
- Removes the `OTEL_INSTRUMENTATION_OPENAI_AGENTS_*` env vars and matching instrumentor kwargs.
13
+
14
+
Known gap: `execute_tool` spans are missing `gen_ai.tool.call.id` because the agents library's `FunctionSpanData` does not expose it ([#86](https://github.com/open-telemetry/opentelemetry-python-genai/issues/86)).
Copy file name to clipboardExpand all lines: instrumentation/opentelemetry-instrumentation-genai-openai-agents/src/opentelemetry/instrumentation/genai/openai_agents/processor.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -70,9 +70,9 @@ class GenAITracingProcessor(TracingProcessor):
0 commit comments