Repository navigation
fix(cloudflare): Bucket Claude-User clients as claude, not claude-desktop - #1516
Draft
sentry-junior[bot] wants to merge 2 commits into
Draft
sentry-junior[bot] wants to merge 2 commits into
sentry-junior[bot] wants to merge 2 commits into
Conversation
…ktop Claude-User is Anthropic's generic agent for user-directed requests from its hosted apps, so it can't distinguish Desktop from claude.ai or Claude routines. Report it (and DCR names containing Claude) as claude. Co-Authored-By: Matt Duncan <matt.duncan@sentry.io>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Co-Authored-By: Matt Duncan <matt.duncan@sentry.io>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
resolveClientFamilymapped theClaude-Useruser agent toclaude-desktop.Claude-Useris Anthropic's generic user agent for user-directed requests from its hosted Claude apps, so it doesn't identify Desktop specifically. In practice, activity from Claude routines was showing up in Sentry issue activity as "Claude Desktop".Claude-Userand DCR client names containing "Claude" now map toclaude. Claude Code is still matched first and staysclaude-code.client-family.test.tsand theapp.client.familyvalue list indocs/operations/oauth-signout-playbook.md.Heads up: this renames the
app.client.familymetric/span value, so any dashboards or queries filtering onclaude-desktopshould switch toclaude.Sentry accepts both values. The companion getsentry/sentry PR maps the legacy
claude-desktopheader toclaude, so the two PRs can deploy in either order.Checks
vitest run src/server/lib/client-family.test.ts: 30/30 passed.oxlinton the changed files: clean.via matt.duncan.
--
View Junior Session [Sentry]