Skip to content

chore: Deprecate gen_ai.responses in favor of gen_ai.chat - #703

Merged
Lms24 merged 3 commits into
mainfrom
webb/gen_ai_responses
Oct 16, 2026
Merged

Lms24 merged 3 commits into
mainfrom
webb/gen_ai_responses

Conversation

@alexander-alderman-webb

Copy link
Copy Markdown
Contributor

Description

For GenAI spans, the op is gen_ai. appended with the value of the gen_ai.operation.name attribute.
The responses literal was never a valid value for gen_ai.operation.name per OTel and our docs.

PR Checklist

  • I have run yarn test and verified that the tests pass.
  • I have run yarn generate to generate and format code and docs.

If an attribute was added:

  • The attribute is in a namespace (e.g. nextjs.function_id, not function_id)
  • I have used the correct value for apply_scrubbing (i.e. manual or auto. Use never only for values that should never be scrubbed such as IDs)

If an attribute was deprecated:

@vercel

vercel Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-conventions Ready Ready Preview Oct 16, 2026 11:32am UTC

Request Review

@alexander-alderman-webb alexander-alderman-webb changed the title chore: Add gen_ai.responses, deprecated in favor of gen_ai.chat chore: Deprecate gen_ai.responses in favor of gen_ai.chat Oct 12, 2026
@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 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 http.request.duration by loewenheim in #697
  • (names) Add queue.publish/create/receive/process/settle to messaging span names by pabloDeputter in #705
  • (ops) Add object.copy op by pabloDeputter in #706
  • Add view.render op by alexander-alderman-webb in #699

Bug Fixes 🐛

  • (attributes) Apply consistent scrubbing across deprecations by mjq in #692

Internal Changes 🔧

  • (repo) Update CODEOWNERS to include @giortzisg by Lms24 in #708
  • Deprecate gen_ai.responses in favor of gen_ai.chat by alexander-alderman-webb in #703
  • Add deprecated messaging ops set by the Python SDK by alexander-alderman-webb in #693
  • Add view.response.render op, deprecated in favor of view.render by alexander-alderman-webb in #700
  • Add event.django op, deprecated in favor of function by alexander-alderman-webb in #698

🤖 This preview updates automatically when you update the PR.

Comment thread model/op/gen_ai.json Outdated
"description": "An interaction with a generative AI model through a responses API"
"description": "An interaction with a generative AI model through a responses API",
"deprecation": {
"replacement": "gen_ai.chat"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

l: would make sense to add a "note" to the deprecation in this case, since it's not super obvious. wdyt?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes added a note.
It's unfortunate that we have this invariant (op is gen_ai.* + gen_ai.operation.name) but never enforce it.

@Lms24

Lms24 commented Oct 13, 2026

Copy link
Copy Markdown
Member

It's unfortunate that we have this invariant (op is gen_ai.* + gen_ai.operation.name) but never enforce it.

we could probably add a test for this, wdyt?

@alexander-alderman-webb

Copy link
Copy Markdown
Contributor Author

I wrote a test that encodes: every gen_ai.* op must be deprecated or have a corresponding gen_ai.operation.name.

Unfortunately, the test fails. I created an issue to track: #709

@Lms24
Lms24 requested a review from giortzisg as a code owner October 16, 2026 11:31
@Lms24
Lms24 enabled auto-merge (squash) October 16, 2026 11:32
@Lms24
Lms24 merged commit 92674ad into main Oct 16, 2026
18 checks passed
@Lms24
Lms24 deleted the webb/gen_ai_responses branch October 16, 2026 11:35

This branch was successfully deployed

1 active deployment
Preview — 302a210c Deployed Oct 16, 2026 by vercel[bot]
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