Skip to content

chore(repo): Add low cardinality span name setting skill - #23449

Merged
Lms24 merged 3 commits into
developfrom
lms/chore-span-name-low-card-skill
Aug 24, 2026
Merged

Lms24 merged 3 commits into
developfrom
lms/chore-span-name-low-card-skill

Conversation

@Lms24

@Lms24 Lms24 commented Aug 18, 2026

Copy link
Copy Markdown
Member

Adds a reusable skill to adjust span names to be low cardinality when span streaming is enabled. This can be used by anyone taking over one of the span op categories soon to be defined.

@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 30.3 kB - -
@sentry/browser - with treeshaking flags 28.47 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.81 kB - -
@sentry/browser (incl. Tracing) 48.62 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.64 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.51 kB - -
@sentry/browser (incl. Tracing, Replay) 88.02 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.42 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 92.74 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 105.45 kB - -
@sentry/browser (incl. Feedback) 47.65 kB - -
@sentry/browser (incl. sendFeedback) 35.13 kB - -
@sentry/browser (incl. FeedbackAsync) 40.28 kB - -
@sentry/browser (incl. Metrics) 31.24 kB - -
@sentry/browser (incl. Logs) 31.52 kB - -
@sentry/browser (incl. Metrics & Logs) 32.15 kB - -
@sentry/react 32.09 kB - -
@sentry/react (incl. Tracing) 50.81 kB - -
@sentry/vue 35.34 kB - -
@sentry/vue (incl. Tracing) 50.61 kB - -
@sentry/svelte 30.33 kB - -
CDN Bundle 31.61 kB - -
CDN Bundle (incl. Tracing) 48.96 kB - -
CDN Bundle (incl. Logs, Metrics) 33.8 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 50.87 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 74.31 kB - -
CDN Bundle (incl. Tracing, Replay) 86.53 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.37 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 92.24 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.18 kB - -
CDN Bundle - uncompressed 93.84 kB - -
CDN Bundle (incl. Tracing) - uncompressed 146.82 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.14 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.51 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 229.08 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 266.08 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 271.76 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.78 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.45 kB - -
@sentry/nextjs (client) 53.36 kB - -
@sentry/sveltekit (client) 49.04 kB - -
@sentry/core/server 65.56 kB - -
@sentry/core/browser 51.78 kB - -
@sentry/node 117.47 kB +0.02% +21 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 85.18 kB - -
@sentry/node - without tracing 82.02 kB +0.03% +23 B 🔺
@sentry/aws-serverless 91.44 kB +0.02% +18 B 🔺
@sentry/cloudflare (withSentry) - minified 194.61 kB - -
@sentry/cloudflare (withSentry) 481.16 kB - -

View base workflow run

@RulaKhaled RulaKhaled left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks solid. Left a question on the fallback examples (same static-route case as #23424) and a note on streamed e2e attribute assertions.

Comment thread .agents/skills/port-span-names/SKILL.md
Comment thread .agents/skills/port-span-names/SKILL.md

@nicohrubec nicohrubec left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🚀

Comment thread .agents/skills/port-span-names/SKILL.md
Comment thread .agents/skills/port-span-names/SKILL.md Outdated
@Lms24
Lms24 marked this pull request as ready for review August 24, 2026 11:22
@Lms24
Lms24 force-pushed the lms/chore-span-name-low-card-skill branch from 36b7d9e to 143cc02 Compare August 24, 2026 11:22
@Lms24
Lms24 enabled auto-merge (squash) August 24, 2026 11:23
@Lms24 Lms24 self-assigned this Aug 24, 2026

Read <https://getsentry.github.io/sentry-conventions/names/> and find the op. Each op lists attribute templates in priority order, ending in a static fallback — that fallback is your name. Examples: `pageload` → `Pageload`, `navigation` → `Navigation`, database ops → `Database operation`.

Add it next to `PAGELOAD_SPAN_NAME_FALLBACK` in `packages/core/src/spanNames.ts` and export it from `shared-exports.ts`. Every package imports it from `@sentry/core` directly — no re-export from `@sentry/browser` is needed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Bug: The SKILL.md file instructs the AI agent to modify a non-existent file, packages/core/src/spanNames.ts, instead of the correct file, packages/core/src/constants.ts.
Severity: MEDIUM

Suggested Fix

Update all references to packages/core/src/spanNames.ts within .agents/skills/port-span-names/SKILL.md to point to the correct file, packages/core/src/constants.ts.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: .agents/skills/port-span-names/SKILL.md#L42

Potential issue: The `SKILL.md` file, which provides instructions for an AI agent,
contains multiple incorrect references to the file path
`packages/core/src/spanNames.ts`. This file does not exist in the codebase. The
instructions direct the agent to add a new constant next to
`PAGELOAD_SPAN_NAME_FALLBACK`, which is actually located in
`packages/core/src/constants.ts`. When this skill is used, the AI agent will likely fail
or generate code in the wrong location, creating an incorrect new file and leading to
inconsistencies and potential build issues.

Also affects:

  • .agents/skills/port-span-names/SKILL.md:14
  • .agents/skills/port-span-names/SKILL.md:35

Did we get this right? 👍 / 👎 to inform future reviews.

@Lms24
Lms24 merged commit 4090434 into develop Aug 24, 2026
43 checks passed
@Lms24
Lms24 deleted the lms/chore-span-name-low-card-skill branch August 24, 2026 11:30
JPeer264 pushed a commit that referenced this pull request Aug 25, 2026
Adds a reusable skill to adjust span names to be low cardinality when
span streaming is enabled. This can be used by anyone taking over one of
the span op categories soon to be defined.
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