Skip to content

feat(event-schema): Updating several gen_ai attributes to their latest representation#5798

Draft
constantinius wants to merge 10 commits intomasterfrom
constantinius/feat/event-schema/update-gen-ai-attributes
Draft

feat(event-schema): Updating several gen_ai attributes to their latest representation#5798
constantinius wants to merge 10 commits intomasterfrom
constantinius/feat/event-schema/update-gen-ai-attributes

Conversation

@constantinius
Copy link
Copy Markdown
Contributor

@constantinius constantinius commented Apr 8, 2026

Follow up for #5797

Updates the following fields to their newest representation:

  • gen_ai.system -> gen_ai.provider.name
  • gen_ai.prompt -> gen_ai.input.messages
  • gen_ai.request.messages -> gen_ai.input.messages
  • gen_ai.response.text -> gen_ai.output.messages
  • gen_ai.response.tool_calls -> gen_ai.output.messages
  • gen_ai.request.available_tools -> gen_ai.tool.definitions
  • gen_ai.tool.input -> gen_ai.tool.call.arguments
  • gen_ai.tool.output -> gen_ai.tool.call.result
  • gen_ai.response.finish_reason -> gen_ai.response.finish_reasons

Now properly aligns gen_ai.request.messages/gen_ai.input.messages and gen_ai.response.text/gen_ai.output.messages.

Closes https://linear.app/getsentry/issue/TET-2188/mark-gen-aiinputmessages-as-pii-maybe

@linear-code
Copy link
Copy Markdown

linear-code bot commented Apr 8, 2026

@constantinius constantinius changed the title feat(event-schema): updating gen_ai attributes feat(event-schema): Updating several gen_ai attributes to their latest representation Apr 8, 2026
@constantinius constantinius changed the base branch from constantinius/feat/event-schema/gen-ai-input-output-messages to master April 8, 2026 14:38
@constantinius constantinius marked this pull request as ready for review April 9, 2026 07:52
@constantinius constantinius requested a review from a team as a code owner April 9, 2026 07:52
@constantinius constantinius requested a review from a team April 9, 2026 07:53
Copy link
Copy Markdown

@cursor cursor bot left a comment

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 10f4b72. Configure here.

@constantinius constantinius marked this pull request as draft April 9, 2026 12:11
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