Skip to content

fix(telemetry): tag sentry.org on api and event view - #1612

Merged
betegon merged 1 commit into
mainfrom
fix/telemetry-org-tag-api-event
Sep 23, 2026
Merged

betegon merged 1 commit into
mainfrom
fix/telemetry-org-tag-api-event

Conversation

@betegon

@betegon betegon commented Sep 21, 2026

Copy link
Copy Markdown
Member

Summary

sentry api never goes through target resolve, so sentry.org was missing even when the slug was sitting in the URL. That undercounts orgs that live on raw API. Parse organizations/{slug}/ and projects/{org}/{project}/ from the path and tag.

event view had the same hole on explicit org/project and event URLs — those paths skip resolve-target. Tag after resolve.

schema is still untagged: it is local OpenAPI browse (auth: false), no org in the command. User identity is already set at telemetry init; org is not a buildCommand default because it is the resolved target, not "whoever is logged in".

Test plan

  • from packages/cli: pnpm exec vitest run test/commands/api.test.ts test/commands/event/view.test.ts

Made with Cursor

@vercel

vercel Bot commented Sep 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cli Ready Ready Preview Sep 23, 2026 9:40am UTC
1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Sep 23, 2026 9:40am UTC

Request Review

sentry api never goes through target resolve, so org usage is
invisible in Discover. Parse the slug from the path. event view
skips resolve-target on explicit/URL paths; tag after resolve.

Co-authored-by: Cursor <cursoragent@cursor.com>
@betegon
betegon force-pushed the fix/telemetry-org-tag-api-event branch from ca583c8 to 88196a3 Compare September 23, 2026 09:40
@vercel
vercel Bot temporarily deployed to Preview – sentry-local September 23, 2026 09:40 Inactive
@betegon
betegon marked this pull request as ready for review September 23, 2026 11:22
@github-actions github-actions Bot added the risk: low PR risk score: low label Sep 23, 2026
@betegon
betegon merged commit 59bd94a into main Sep 23, 2026
38 checks passed
@betegon
betegon deleted the fix/telemetry-org-tag-api-event branch September 23, 2026 11:26

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – cli 88196a3d Deployed Sep 23, 2026 by vercel[bot]
Preview – sentry-local 88196a3d Deployed Sep 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: low PR risk score: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant