Skip to content

feat(replays): Record segment names that occur during replay#21851

Draft
mjq wants to merge 2 commits into
developfrom
mjq/record-segment-names-in-replay
Draft

feat(replays): Record segment names that occur during replay#21851
mjq wants to merge 2 commits into
developfrom
mjq/record-segment-names-in-replay

Conversation

@mjq

@mjq mjq commented Jun 29, 2026

Copy link
Copy Markdown
Member

Record a new segment_names field on replay events.

This will be used in the product on the Transaction Summary page to fetch replays related to a particular named transaction.

This sidesteps our current issue under span streaming where Replay's buffer mode leads to sentry.replay.id attributes often pointing to missing Replays, which broke the assumption that a "query spans by segment name to get replay IDs, then query replays with those IDs" query flow will return a usable number of results.

Closes REPLAY-937.

@linear-code

linear-code Bot commented Jun 29, 2026

Copy link
Copy Markdown

REPLAY-937

@github-actions

github-actions Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 27.48 kB - -
@sentry/browser - with treeshaking flags 25.91 kB - -
@sentry/browser (incl. Tracing) 46.01 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 47.76 kB - -
@sentry/browser (incl. Tracing, Profiling) 50.8 kB - -
@sentry/browser (incl. Tracing, Replay) 85.31 kB +0.06% +49 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 74.91 kB +0.09% +61 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 90.01 kB +0.06% +53 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 102.67 kB +0.06% +52 B 🔺
@sentry/browser (incl. Feedback) 44.66 kB - -
@sentry/browser (incl. sendFeedback) 32.26 kB - -
@sentry/browser (incl. FeedbackAsync) 37.4 kB - -
@sentry/browser (incl. Metrics) 28.54 kB - -
@sentry/browser (incl. Logs) 28.78 kB - -
@sentry/browser (incl. Metrics & Logs) 29.47 kB - -
@sentry/react 29.27 kB - -
@sentry/react (incl. Tracing) 48.32 kB - -
@sentry/vue 32.66 kB - -
@sentry/vue (incl. Tracing) 47.87 kB - -
@sentry/svelte 27.5 kB - -
CDN Bundle 29.89 kB - -
CDN Bundle (incl. Tracing) 47.95 kB - -
CDN Bundle (incl. Logs, Metrics) 31.44 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.3 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 70.82 kB +0.07% +49 B 🔺
CDN Bundle (incl. Tracing, Replay) 85.5 kB +0.06% +46 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.77 kB +0.06% +45 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 91.29 kB +0.05% +43 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.55 kB +0.06% +50 B 🔺
CDN Bundle - uncompressed 88.95 kB - -
CDN Bundle (incl. Tracing) - uncompressed 145.18 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 93.65 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 149.15 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 218.82 kB +0.1% +197 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 264.39 kB +0.08% +197 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 268.35 kB +0.08% +197 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 278.09 kB +0.08% +197 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 282.04 kB +0.07% +197 B 🔺
@sentry/nextjs (client) 50.71 kB - -
@sentry/sveltekit (client) 46.41 kB - -
@sentry/core/server 77.67 kB - -
@sentry/core/browser 63.97 kB - -
@sentry/node-core 61.42 kB - -
@sentry/node 122.76 kB +0.01% +1 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 69.95 kB - -
@sentry/node/light 50.39 kB +0.01% +2 B 🔺
@sentry/node - without tracing 73.14 kB - -
@sentry/aws-serverless 84.02 kB - -
@sentry/cloudflare (withSentry) - minified 180.46 kB - -
@sentry/cloudflare (withSentry) 446.48 kB - -

View base workflow run

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.

1 participant