Skip to content

feat(attributes): Add sentry.user attribute - #817

Merged
ArthurKnaus merged 2 commits into
mainfrom
claude/add-sentry-user-attribute-bcf19a
Nov 19, 2026
Merged

ArthurKnaus merged 2 commits into
mainfrom
claude/add-sentry-user-attribute-bcf19a

Conversation

@ArthurKnaus

Copy link
Copy Markdown
Member

Adds sentry.user, the combined user identifier behind the user search key and count_unique(user). Its value is the first available of the user's id, username, email or IP address, prefixed with which one it is (id:123, username:j.smith, email:[email protected], ip:192.168.1.1).

Relay already builds this for transaction spans, but streamed spans never get it, so count_unique(user) and user_misery return 0 for projects using span streaming. Relay will derive it during EAP normalization from user.id, user.name, user.email and user.ip_address, which needs the attribute defined here first. SDKs don't set it.

It is exposed in search as user, following how sentry.release and sentry.environment map to their short search names.

Closes AGT-3354

🤖 Generated with Claude Code

@vercel

vercel Bot commented Nov 19, 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 Nov 19, 2026 9:12am UTC

Request Review

@linear-code

linear-code Bot commented Nov 19, 2026

Copy link
Copy Markdown

AGT-3354

@github-actions

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 sentry.user attribute by ArthurKnaus and claude in #817
  • Add schema for gen_ai.tool.call.arguments by alexander-alderman-webb in #793
  • Add page.server_rendering.age attribute by s1gr1d in #799
  • Add schema for gen_ai.tool.call.result by alexander-alderman-webb in #794
  • Add schema for gen_ai.system_instructions by alexander-alderman-webb in #791
  • Add TypeScript type generation from OpenAPI schemas by alexander-alderman-webb in #771
  • Add Python type generation from OpenAPI schemas by alexander-alderman-webb in #769
  • Add schema for gen_ai.tool.definitions by alexander-alderman-webb in #767

Other

  • (model) Add Elixir runtime metrics by solnic in #768
  • Put schema types in type checking block by alexander-alderman-webb in #813

Bug Fixes 🐛

  • (attributes) Describe pageload links for cache_origin and server_request by s1gr1d in #789
  • (scripts) Remove undefined reference notes from generated schema types by andreiborza and claude in #811

Internal Changes 🔧

Attributes

  • Disambiguate gen_ai.output.messages by alexander-alderman-webb in #802
  • Prevent splicing system messages out of gen_ai.input.messages by alexander-alderman-webb in #790

Deps

  • Bump @astrojs/svelte from 9.0.1 to 9.1.2 by dependabot in #798
  • Bump astro from 7.3.3 to 7.4.7 in /docs by andreiborza with dependabot and sentry-junior in #800

Other

  • (attribute) Disambiguate gen_ai.response.time_to_first_chunk by alexander-alderman-webb in #795
  • (codeowners) Move gen_ai attribute ownership to agent-tracing by shellmayr in #792
  • (python) Add srothh as CODEOWNER for Python codegen by alexander-alderman-webb in #812
  • (release) Bump craft to 3.9.0 and update config by BYK with sentry-junior in #764

Other

  • revert: Remove incomplete attribute transformations by alexander-alderman-webb in #801

🤖 This preview updates automatically when you update the PR.

@ArthurKnaus
ArthurKnaus merged commit 656e90d into main Nov 19, 2026
19 checks passed
@ArthurKnaus
ArthurKnaus deleted the claude/add-sentry-user-attribute-bcf19a branch November 19, 2026 09:23

This branch was successfully deployed

1 active deployment
Preview — f413a939 Deployed Nov 19, 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.

4 participants