Skip to content

feat(attributes): add gen_ai.provider.name, deprecate gen_ai attributes#253

Merged
obostjancic merged 3 commits intomainfrom
ognjenbostjancic/tet-1922-audit-sentry-conventions-for-gen_ai-spans
Feb 10, 2026
Merged

feat(attributes): add gen_ai.provider.name, deprecate gen_ai attributes#253
obostjancic merged 3 commits intomainfrom
ognjenbostjancic/tet-1922-audit-sentry-conventions-for-gen_ai-spans

Conversation

@obostjancic
Copy link
Member

closes TET-1922: Audit sentry conventions for gen_ai spans

  • adds gen_ai.provider.name
  • deprecates gen_ai.system
  • removes gen_ai.user.message
  • removes gen_ai.assistant.message

@linear
Copy link

linear bot commented Feb 10, 2026

@github-actions
Copy link

github-actions bot commented Feb 10, 2026

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Attributes

  • Add gen_ai.provider.name, deprecate gen_ai attributes by obostjancic in #253
  • Add gen_ai.provider.name, deprecate gen_ai attributes by obostjancic in #253
  • Add gen_ai.conversation.id by obostjancic in #250
  • Add sentry.profiler_id attribute by Lms24 in #242
  • Add attribute gen_ai.response.time_to_first_token by constantinius in #227
  • Add sentry.status_code attribute by mjq in #223
  • Backfill db.system attribute by mjq in #224
  • Add sentry.category attribute by mjq in #218
  • Add sentry.normalized_db_query.hash by Ahmed-Labs in #200

Other

  • (ai) Add input tokens cache write by shellmayr in #217
  • (gen_ai) Add new Gen AI attributes by obostjancic in #221
  • Remove sentry.profile_id and profile_id attributes by Lms24 in #256
  • Add Culture context model attributes by logaretm in #243
  • Better docs website by Lms24 in #238
  • Add page listing all attributes by Lms24 in #207

Bug Fixes 🐛

Attributes

  • Migrating several numeric fields to pii=maybe by constantinius in #228
  • Improve gen_ai.operation.name description by obostjancic in #225

Other

  • (db) Clarify db.query.text and db.query.summary attributes by Lms24 in #208

Documentation 📚

  • Fix sentry logo in light mode by Lms24 in #249
  • Link to individual attributes by Lms24 in #248
  • Add links to llms.txt files by Lms24 in #247
  • Add toggleable dark and light mode by Lms24 in #246
  • Use proper svelte 5 syntax in search modal by Lms24 in #244
  • Add llms.txt for full list of attributes by Lms24 in #245

Internal Changes 🔧

Attributes

  • Update sentry.span.source with known values by Lms24 in #214
  • Add legacy attribute definitions for transaction spans by Ahmed-Labs in #212
  • Normalize deprecated db attribute names by Ahmed-Labs in #199

Deps Dev

  • Bump tar from 7.5.4 to 7.5.7 by dependabot in #239
  • Bump tar from 7.5.3 to 7.5.4 by dependabot in #226
  • Bump tar from 7.4.3 to 7.5.3 by dependabot in #220

Repo

  • Remove stale generated MD pages by Lms24 in #252
  • Add Claude Code settings with basic permissions by philipphofmann in #222
  • Unstale yarn lock by Lms24 in #215

Other

  • (ai) Remove gen_ai_usage_total_cost attribute by vgrozdanic in #206
  • (docs) Adjust OTel badge color based on value by Lms24 in #251
  • (lint) Don't lint Claude's config files by mjq in #219
  • (release) Switch from action-prepare-release to Craft by BYK in #216
  • Add statuses permission to Changelog Preview by lcian in #232

Other

  • test: Fix python venv installation issue by Lms24 in #254
  • Add more CODEOWNERS by cleptric in #240
  • Add @getsentry/ingest to CODEOWNERS by cleptric in #236
  • Update CODEOWNERS to change global ownership by cleptric in #230

🤖 This preview updates automatically when you update the PR.

Copy link

@alexander-alderman-webb alexander-alderman-webb left a comment

Choose a reason for hiding this comment

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

I confirm that gen_ai.choice, gen_ai.assistant.message and gen_ai.user.message have never been set in the Python SDK.

@Lms24
Copy link
Member

Lms24 commented Feb 10, 2026

I merged #254 which should fix the CI test fails. Feel free to rebase :)

Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

Checked in JS SDK. We send gen_ai.system (now deprecated, but I assume @RulaKhaled you're aware?) but none of the removed attributes.

@obostjancic obostjancic merged commit 1693576 into main Feb 10, 2026
9 checks passed
@obostjancic obostjancic deleted the ognjenbostjancic/tet-1922-audit-sentry-conventions-for-gen_ai-spans branch February 10, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants