This preview release includes updates to our Span Streaming PoC implementation. Use at your own risk.
New:
- Browser: SDKs now also use a span buffer, flushing periodically, on span amount limit and on segment span end
- Browser: It's now enough to only register
spanStreamingIntegrationinSentry.init.()to opt into span streaming - Browser:
sentry.replay_idattribute is attached to spans started during an active replay - Browser:
sentry.profiler_idattribute is attached to spans started while the continuous profiler is running - Browser: Web vital spans are sent as v2 spans
- Browser:
spanStreamingIntegrationis now exported from CDN bundles supporting tracing
Known issues:
- Missing data from various integrations and framework SDKs
ignoreSpansis not yet applied
Untested:
- Meta frameworks or framework SDKs building on top of @sentry/browser or @sentry/node. Likely, data is missing, noisy spans are not filtered, etc.
Usage (At your own risk)
Browser
Sentry.init({
dsn: '...',
integrations: [
Sentry.browserTracingIntegration(),
Sentry.spanStreamingIntegration(),
]
})Server (Node)
Sentry.init({
dsn: '...',
traceLifecycle: 'stream',
})Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 25.93 KB |
| @sentry/browser - with treeshaking flags | 24.43 KB |
| @sentry/browser (incl. Tracing) | 42.78 KB |
| @sentry/browser (incl. Tracing, Profiling) | 47.43 KB |
| @sentry/browser (incl. Tracing, Replay) | 80.71 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 70.51 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 85.27 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 97.17 KB |
| @sentry/browser (incl. Feedback) | 42.23 KB |
| @sentry/browser (incl. sendFeedback) | 30.48 KB |
| @sentry/browser (incl. FeedbackAsync) | 35.33 KB |
| @sentry/browser (incl. Metrics) | 26.87 KB |
| @sentry/browser (incl. Logs) | 27.02 KB |
| @sentry/browser (incl. Metrics & Logs) | 27.66 KB |
| @sentry/react | 27.62 KB |
| @sentry/react (incl. Tracing) | 45.03 KB |
| @sentry/vue | 30.51 KB |
| @sentry/vue (incl. Tracing) | 44.58 KB |
| @sentry/svelte | 25.95 KB |
| CDN Bundle | 28.18 KB |
| CDN Bundle (incl. Tracing) | 44.63 KB |
| CDN Bundle (incl. Logs, Metrics) | 29.01 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 45.44 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 67.21 KB |
| CDN Bundle (incl. Tracing, Replay) | 80.67 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 81.53 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 86 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 86.84 KB |
| CDN Bundle - uncompressed | 82.31 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 132.71 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 135.48 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 205.92 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 247.08 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 249.84 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 259.58 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 262.33 KB |
| @sentry/nextjs (client) | 47.4 KB |
| @sentry/sveltekit (client) | 43.23 KB |
| @sentry/node-core | 51.8 KB |
| @sentry/node | 165.43 KB |
| @sentry/node - without tracing | 94.67 KB |
| @sentry/aws-serverless | 109.55 KB |