github open-telemetry/opentelemetry-python-contrib opentelemetry-util-genai==0.4b0
opentelemetry-util-genai 0.4b0

  • Add AgentInvocation type with invoke_agent span lifecycle (#4274)
  • Add metrics support for EmbeddingInvocation (#4377)
  • Add support for workflow in genAI utils handler. (#4366)
  • Enrich ToolCall type, breaking change: usage of ToolCall class renamed to ToolCallRequest (#4218)
  • Add EmbeddingInvocation span lifecycle support (#4219)
  • Populate schema_url on metrics (#4320)
  • Add workflow invocation type to genAI utils (#4310)
  • Check if upload works at startup in initializer of the UploadCompletionHook, instead of repeatedly failing on every upload (#4390).
  • Refactor public API: add factory methods (start_inference, start_embedding, start_tool, start_workflow) and invocation-owned lifecycle (invocation.stop() / invocation.fail(exc)); rename LLMInvocationInferenceInvocation and ToolCallToolInvocation. Existing usages remain fully functional via deprecated aliases. (#4391)
  • TelemetryHandler now accepts a completion_hook parameter and calls it after each LLM invocation, passing inputs, outputs, the active span, and the log record. Content capture is enabled automatically when a real hook is configured. (#4315)
  • Add metrics to ToolInvocations (#4443)
  • Wrap completion hooks loaded via load_completion_hook so exceptions raised by on_completion are logged and swallowed instead of propagating to instrumentation call sites.

Don't miss a new opentelemetry-python-contrib release

NewReleases is sending notifications on new releases.