sentry-python icon indicating copy to clipboard operation
sentry-python copied to clipboard

Make existing `AI` integrations work with Agents Insights

Open antonpirker opened this issue 5 months ago • 0 comments

We have existing integrations in Python for:

  • OpenAI (not openai-agents but the openai package)
  • Anthropic
  • Langchain
  • Huggingface Hub

All those integrations are sending spans that are so called "AI Client Spans" in the openai-agents integrations. Those spans have deprecated span.op, span.name and attributes. (Wrong value and or format)

We want to those spans also show up in the "AI Agents" insights module.

The AI Client spans specification for spans to show up in the agents insights module can be found here:

getsentry/sentry-docs#14133

antonpirker avatar Jun 24 '25 15:06 antonpirker