Skip to content

Fix outdated assertion

351475f
Select commit
Loading
Failed to load commit list.
Merged

feat(langchain): Broaden AI provider detection beyond OpenAI and Anthropic #5707

Fix outdated assertion
351475f
Select commit
Loading
Failed to load commit list.
@sentry/warden / warden completed Mar 25, 2026 in 3m 16s

1 issue

Medium

Breaking change in gen_ai.system values without migration guidance - `sentry_sdk/integrations/langchain.py:458-460`

The refactored _get_ai_system() now returns raw LangChain _type values (e.g., "openai-chat", "anthropic-chat") instead of normalized provider names ("openai", "anthropic"). This breaks backwards compatibility for users querying Sentry data with filters like gen_ai.system:openai. Additionally, there's now inconsistency across integrations: direct OpenAI integration reports "openai" while LangChain+OpenAI reports "openai-chat".

4 skills analyzed
Skill Findings Duration Cost
code-review 1 2m 5s $1.54
find-bugs 0 3m 6s $2.49
skill-scanner 0 3m 11s $0.56
security-review 0 2m 1s $0.64

Duration: 10m 23s · Tokens: 2.8M in / 27.6k out · Cost: $5.25 (+extraction: $0.00, +dedup: $0.01)