Skip to content

feat(gen_ai): add new Gen AI attributes#221

Merged
obostjancic merged 7 commits intomainfrom
ognjenbostjancic/tet-1730-update-sentry-conventions-with-changes-from-opentelemetry
Jan 20, 2026
Merged

feat(gen_ai): add new Gen AI attributes#221
obostjancic merged 7 commits intomainfrom
ognjenbostjancic/tet-1730-update-sentry-conventions-with-changes-from-opentelemetry

Conversation

@obostjancic
Copy link
Member

Description

Adds new Gen AI attributes that were introduced in the OTel Semantic conventions v1.39
Closes TET-1730: Update Sentry conventions with changes from OpenTelemetry Gen AI

PR Checklist

  • I have run yarn test and verified that the tests pass.
  • I have run yarn generate && yarn format 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 pii (i.e. maybe or true. Use false only for values that should never be scrubbed such as IDs)

If an attribute was deprecated:

@linear
Copy link

linear bot commented Jan 19, 2026

@github-actions
Copy link

github-actions bot commented Jan 19, 2026

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against da28d7e


# Path: model/attributes/gen_ai/gen_ai__input__messages.json
GEN_AI_INPUT_MESSAGES: Literal["gen_ai.input.messages"] = "gen_ai.input.messages"
"""The messages passed to the model. It has to be a stringified version of an array of objects. The `role` attribute of each object must be `"user"`, `"assistant"`, `"tool"`, or `"system"`. For messages of the role `"tool"`, the `content` can be a string or an arbitrary object with information about the tool call. For other messages the `content` can be either a string or a list of objects in the format `{type: "text", text:"..."}`.
Copy link
Member

Choose a reason for hiding this comment

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

If we want to be more aligned with OTel we should change this to match their JSON schema.
https://opentelemetry.io/docs/specs/semconv/gen-ai/gen-ai-input-messages.json

@obostjancic obostjancic merged commit 5eac935 into main Jan 20, 2026
10 checks passed
@obostjancic obostjancic deleted the ognjenbostjancic/tet-1730-update-sentry-conventions-with-changes-from-opentelemetry branch January 20, 2026 10: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.

3 participants