Commit 98e51d0
fix(langchain): Normalize gen_ai.system for OpenAI and Anthropic consistency
Restore normalization of LangChain _type values to match the gen_ai.system
values used by dedicated OpenAI and Anthropic integrations. This fixes a
regression where 'openai-chat' and 'anthropic-chat' were returned as-is
instead of being normalized to 'openai' and 'anthropic'.
The fix ensures consistent gen_ai.system values across all integration
paths, preventing breakage of existing Sentry dashboards, alerts, and
queries that filter on these normalized provider names.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 1bc78cc commit 98e51d0
File tree
2 files changed
+8
-3
lines changed- sentry_sdk/integrations
- tests/integrations/langchain
2 files changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
117 | 122 | | |
118 | 123 | | |
119 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2005 | 2005 | | |
2006 | 2006 | | |
2007 | 2007 | | |
2008 | | - | |
| 2008 | + | |
2009 | 2009 | | |
2010 | 2010 | | |
2011 | | - | |
| 2011 | + | |
2012 | 2012 | | |
2013 | 2013 | | |
2014 | | - | |
| 2014 | + | |
2015 | 2015 | | |
2016 | 2016 | | |
2017 | 2017 | | |
| |||
0 commit comments