Skip to content

feat(attributes): Add missing AI legacy aliases from Relay SpanData - #498

Merged
Dav1dde merged 4 commits into
mainfrom
vjeran/add-missing-ai-legacy-aliases
Jul 15, 2026
Merged

Dav1dde merged 4 commits into
mainfrom
vjeran/add-missing-ai-legacy-aliases

Conversation

@vgrozdanic

@vgrozdanic vgrozdanic commented Jul 14, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds 6 deprecated AI attribute aliases that exist as legacy_alias in Relay's SpanData but were missing from sentry-conventions:

  • ai.prompt.messages → gen_ai.input.messages
  • ai.toolCall.args → gen_ai.tool.call.arguments
  • ai.toolCall.result → gen_ai.tool.call.result
  • ai.response.toolCalls → gen_ai.output.messages
  • ai.response.text → gen_ai.output.messages
  • gen_ai.response.finish_reason → gen_ai.response.finish_reasons

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 14, 2026 •

Copy link
Copy Markdown

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 missing AI legacy aliases from Relay SpanData by vgrozdanic in #498
  • Remove gen AI reasoning effort by constantinius in #503
  • Deprecate gen AI reasoning effort by constantinius in #502
  • Add sentry.pageload.span_id attribute by Lms24 in #495
  • Add sentry.relay.ingress and sentry.relay.pipeline by loewenheim in #491
  • Expand grpc attributes by lucas-zimerman in #460
  • Add file.path and file.size by buenaflor in #458

Internal Changes 🔧

  • (attrs) Backport attributes and normalizations from Relay by Dav1dde in #497

🤖 This preview updates automatically when you update the PR.

@vgrozdanic
vgrozdanic marked this pull request as ready for review July 14, 2026 15:34
@vgrozdanic
vgrozdanic requested review from a team, Lms24, cleptric, mjq and nsdeschenes as code owners July 14, 2026 15:34
"changelog": [
{
"version": "next",
"prs": [497],

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.

The PR numbers are wrong, this is pr 498

@vgrozdanic vgrozdanic Jul 14, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@sentry @cursor how have you missed this? Why is David better than you at this?

- ai.model_id: change replacement from gen_ai.response.model to
  gen_ai.request.model (matching Relay's behavior)
- gen_ai.prompt: add missing replacement and backfill status
- Fix PR number 497 → 498 in all new attribute changelogs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 780f25b. Configure here.

Comment thread model/attributes/ai/ai__model_id.json Resolved
@sentry

sentry Bot commented Jul 14, 2026

Copy link
Copy Markdown

@vgrozdanic

PR iteration only works on pull requests created by Seer's Autofix agent. PRs that the Autofix Agent didn't create aren't eligible. This includes PRs created by the Coding Agent handoff and unrelated human PRs.

@Dav1dde
Dav1dde merged commit a4aa1c5 into main Jul 15, 2026
17 checks passed
@Dav1dde
Dav1dde deleted the vjeran/add-missing-ai-legacy-aliases branch July 15, 2026 06:46
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