Skip to content

Conversation

@antonpirker
Copy link
Contributor

@antonpirker antonpirker commented May 12, 2025

Deprecated the ai.* attributes in favor of gen_ai.* attributes specified by OptenTelemetry.
(Some of our ai.* attribues do not exist in OptenTelemetry. There will be a separate PR where we create those new gen_ai attributes)

@antonpirker antonpirker marked this pull request as ready for review May 12, 2025 13:15
@antonpirker antonpirker requested a review from AbhiPrasad May 13, 2025 12:44
Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@AbhiPrasad AbhiPrasad merged commit 50280c4 into main May 13, 2025
5 checks passed
@AbhiPrasad AbhiPrasad deleted the antonpirker/cleanup-ai-related-attributes branch May 13, 2025 15:11
AbhiPrasad added a commit to getsentry/sentry-javascript that referenced this pull request Jun 4, 2025
resolves #16453

In getsentry/sentry-conventions#57 we deprecated
some of the `ai.X` attributes in favour of OTEL's `gen_ai.X` attributes.
This updates the Vercel AI integration to address these deprecations.

These changes are based on
https://ai-sdk.dev/docs/ai-sdk-core/telemetry#collected-data, and we
created `attributes.ts` to track these as constants.

See the relay change here to switch to new attributes for measuring
token usage: getsentry/relay#4768
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants