Skip to content

Conversation

antonpirker
Copy link
Member

Renaming from legacy name to correct current name:

  • gen_ai.usage.prompt_tokens -> gen_ai.usage.input_tokens
  • gen_ai.usage.completion_tokens -> gen_ai.usage.output_tokens

We checked, those attributes are not used by customers in dashboards, alerts or saved queries and can be safely renamed.

@antonpirker antonpirker requested a review from a team as a code owner July 8, 2025 12:25
Copy link
Member

@Dav1dde Dav1dde left a comment

Choose a reason for hiding this comment

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

Is the change also reflected in the sentry-conventions repo?

@antonpirker
Copy link
Member Author

Is the change also reflected in the sentry-conventions repo?

Yup: https://getsentry.github.io/sentry-conventions/generated/attributes/gen_ai.html#deprecated-attributes

@antonpirker antonpirker added this pull request to the merge queue Jul 8, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 8, 2025
@antonpirker antonpirker added this pull request to the merge queue Jul 8, 2025
Merged via the queue into master with commit fda20f3 Jul 8, 2025
28 checks passed
@antonpirker antonpirker deleted the antonpirker/ai-agents-attributes-rename branch July 8, 2025 13:34
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.

2 participants