feat(anthropic) Update span attributes to use gen_ai.* namespace instead of ai.*#4674
Merged
antonpirker merged 23 commits intoAug 8, 2025
Merged
Conversation
…GEN_AI ones Additional simplifications and streamlining by using common utilities
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4674 +/- ##
==========================================
+ Coverage 85.09% 85.10% +0.01%
==========================================
Files 156 156
Lines 15842 15856 +14
Branches 2679 2684 +5
==========================================
+ Hits 13480 13494 +14
- Misses 1582 1583 +1
+ Partials 780 779 -1
|
…l whether to automatically unpack single elements in lists
3 tasks
gen_ai.* namespace instead of ai.*gen_ai.* namespace instead of ai.*
antonpirker
approved these changes
Aug 8, 2025
Contributor
antonpirker
left a comment
There was a problem hiding this comment.
Now it is ready to merge. Thanks @constantinius for the work!
sentrivana
pushed a commit
that referenced
this pull request
Aug 12, 2025
…stead of `ai.*` (#4674) Update `AnthropicIntegration` to support Otel and Sentry AI Agents module compatible span attributes of `gen_ai.*` family. Closes https://linear.app/getsentry/issue/TET-996/improve-integration-for-anthropic-sdk --------- Co-authored-by: Anton Pirker <anton.pirker@sentry.io>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update
AnthropicIntegrationto support Otel and Sentry AI Agents module compatible span attributes ofgen_ai.*family.Closes https://linear.app/getsentry/issue/TET-996/improve-integration-for-anthropic-sdk