feat(core): Apply scope attributes to metrics (#18738)
You can now set attributes on the SDK's scopes which will be applied to all metrics as long as the respective scopes are active. For the time being, only string, number and boolean attribute values are supported.
Sentry.getGlobalScope().setAttributes({ is_admin: true, auth_provider: 'google' });
Sentry.withScope(scope => {
scope.setAttribute('step', 'authentication');
// scope attributes `is_admin`, `auth_provider` and `step` are added
Sentry.metrics.count('clicks', 1, { attributes: { activeSince: 100 } });
Sentry.metrics.gauge('timeSinceRefresh', 4, { unit: 'hour' });
});
// scope attributes `is_admin` and `auth_provider` are added
Sentry.metrics.count('response_time', 283.33, { unit: 'millisecond' });
feat(tracing): Add Vercel AI SDK v6 support (#18741)
The Sentry SDK now supports the Vercel AI SDK v6. Tracing and error monitoring will work automatically with the new version.
feat(wasm): Add applicationKey option for third-party error filtering (#18762)
Adds support for applying an application key to WASM stack frames that can be then used in the thirdPartyErrorFilterIntegration for detection of first-party code.
Usage:
Sentry.init({
integrations: [
// Integration order matters: wasmIntegration needs to be before thirdPartyErrorFilterIntegration
wasmIntegration({ applicationKey: 'your-custom-application-key' }), ←───┐
thirdPartyErrorFilterIntegration({ │
behaviour: 'drop-error-if-exclusively-contains-third-party-frames', ├─ matching keys
filterKeys: ['your-custom-application-key'] ←─────────────────────────┘
}),
],
});
propagateTraceparent (#18569)ignoreSentryInternalFrames option to thirdPartyErrorFilterIntegration (#18632)isolateTrace option to node-cron instrumentation (#18416)process.on('SIGTERM') for flushing in Vercel functions (#17583)visibilitystate and pagehide listeners (#18581)tunnel in diagnoseSdkConnectivity (#18616)performance.now() from browserPerformanceTimeOrigin fallback (#18715)undefined (#18024)process.argv0 (#18759)setupFastifyErrorHandler argument type (#18620)defaultIntegrations (#18717)msg and err (#18597)resolve dependency (#18618)install-bun.js version check and improve upgrade feedback (#18492)@trpc/server and @trpc/client (#18722)@langchain/core (#18720)hoist-non-react-statics package (#18102)getCombinedScopeData helper (#18585)performance.timeOrigin and performance.timing.navigationStart (#18710)browserPerformanceTimeOrigin (#18708)browserPerformanceTimeOrigin reliability check (#18719)serializeAttributes for metric attribute serialization (#18582)isCjs (#18662)Work in this release was contributed by @G-Rath, @gianpaj, @maximepvrt, @Mohataseem89, @sebws, and @xgedev. Thank you for your contributions!
| Path | Size |
|---|---|
| @sentry/browser | 24.37 KB |
| @sentry/browser - with treeshaking flags | 22.92 KB |
| @sentry/browser (incl. Tracing) | 40.71 KB |
| @sentry/browser (incl. Tracing, Profiling) | 45.19 KB |
| @sentry/browser (incl. Tracing, Replay) | 78.43 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 68.37 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 83 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 94.93 KB |
| @sentry/browser (incl. Feedback) | 40.7 KB |
| @sentry/browser (incl. sendFeedback) | 28.95 KB |
| @sentry/browser (incl. FeedbackAsync) | 33.82 KB |
| @sentry/browser (incl. Metrics) | 25.44 KB |
| @sentry/browser (incl. Logs) | 25.59 KB |
| @sentry/browser (incl. Metrics & Logs) | 26.22 KB |
| @sentry/react | 26.05 KB |
| @sentry/react (incl. Tracing) | 42.9 KB |
| @sentry/vue | 28.72 KB |
| @sentry/vue (incl. Tracing) | 42.5 KB |
| @sentry/svelte | 24.39 KB |
| CDN Bundle | 26.83 KB |
| CDN Bundle (incl. Tracing) | 41.46 KB |
| CDN Bundle (incl. Tracing, Replay) | 77.31 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 82.6 KB |
| CDN Bundle - uncompressed | 78.62 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 122.94 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 236.75 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 249.24 KB |
| @sentry/nextjs (client) | 45.2 KB |
| @sentry/sveltekit (client) | 41.08 KB |
| @sentry/node-core | 50.59 KB |
| @sentry/node | 158.26 KB |
| @sentry/node - without tracing | 91.06 KB |
| @sentry/aws-serverless | 106.2 KB |
Fetched March 31, 2026