Skip to content

feat(instrumentation): Enable span streaming#629

Merged
cleptric merged 2 commits into
mainfrom
michi/span-streaming
Jun 23, 2026
Merged

feat(instrumentation): Enable span streaming#629
cleptric merged 2 commits into
mainfrom
michi/span-streaming

Conversation

@cleptric

@cleptric cleptric commented Jun 22, 2026

Copy link
Copy Markdown
Member

Bump @sentry/node from 10.53.1 to 10.59.0 and enable span streaming
(traceLifecycle: "stream"). Spans are sent in batches as they complete instead of being emitted when the transaction finishes.

The beforeSendSpan callback that stamped deployment attributes on every span
is replaced with a single Sentry.getGlobalScope().setAttributes() call after init.
The global scope propagates deployment identity to every span, log, and metric
without per-span mutation.

Bump @sentry/node 10.53.1 -> 10.59.0 and migrate from static
transaction-based trace lifecycle to span streaming. Spans are now
sent individually as they complete instead of being batched into a
transaction at the end, enabling lower latency and per-span processing.

Wrap beforeSendSpan with withStreamedSpan() and update the callback
to use the streaming span shape (attributes instead of data).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 22, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview, Comment Jun 23, 2026 2:23am

Request Review

Replace the beforeSendSpan callback with a single
getGlobalScope().setAttributes() call after init. The global scope
propagates deployment identity to every span, log, and metric without
per-span mutation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cleptric cleptric marked this pull request as ready for review June 23, 2026 09:53
@cleptric cleptric merged commit dc17004 into main Jun 23, 2026
16 checks passed
@cleptric cleptric deleted the michi/span-streaming branch June 23, 2026 09:55
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.

2 participants