sentry-python
sentry-python copied to clipboard
Make existing `AI` integrations work with Agents Insights
We have existing integrations in Python for:
- OpenAI (not
openai-agentsbut theopenaipackage) - 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