getsentry / getsentry/sentry-javascript
AI provider spans are suppressed globally when LangChain integration is active
Open
Bug
javascript
- Dominant language
- TypeScript
- Stars
- 8.7k
- Forks
- 1.8k
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 523
Description
When both LangChain and an AI provider integration (e.g. OpenAI) are active, we globally disable provider instrumentation to avoid duplicate spans. This means direct provider SDK calls that aren't related to LangChain also lose their spans. We should suppress provider spans only within the context of a LangChain call, not globally.
Contributor guide
Assessment
This issue has not been assessed yet.