NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #1642 most downloaded on npm
Base implementation for all Sentry JavaScript SDKs
Latest stable
11.16.0
Last release 2 days ago
20 Nov 2026
Ships on a steady schedule
a new release about every 9 days
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
760 releases · first in 2017
Drag across the ruler to compare, or tap a release to open it.
docs(tanstackstart-react): Promote SDK status to stable
docs(tanstackstart-react): Promote SDK status to stable (#26691)
This release promotes the @sentry/tanstackstart-react SDK to stable. It supports @tanstack/react-start 1.169.0 and newer. For details on how to use it, check out the
Sentry TanStack Start SDK docs.
feat(solid): Add Solid 2 support (alpha)
@sentry/solid now ships alpha support for Solid 2 under the @sentry/solid/solid2 entry point. It captures errors on the client and the server, traces navigations with Solid Router 2 via @sentry/solid/solid2/solidrouter, names server spans after the matched route, and continues the server trace in the browser pageload. The Solid 1 entry points are unchanged. The APIs of the Solid 2 entry may still change in minor releases while it is in alpha.
httpIntegration incoming-request options to node:http servers (#26611)| Path | Size |
|---|---|
| @sentry/browser | 29.52 KB |
| @sentry/browser - with treeshaking flags | 27.76 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 27.67 KB |
| @sentry/browser (incl. Tracing) | 51.57 KB |
| @sentry/browser (incl. Tracing Core) | 39.38 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 51.57 KB |
| @sentry/browser (incl. Tracing, Profiling) | 54.39 KB |
| @sentry/browser (incl. Tracing, Replay) | 90.68 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 79.76 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 94.95 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 108.18 KB |
| @sentry/browser (incl. Feedback) | 47.04 KB |
| @sentry/browser (incl. sendFeedback) | 30.09 KB |
| @sentry/browser (incl. FeedbackAsync) | 35 KB |
| @sentry/browser (incl. Metrics) | 30.81 KB |
| @sentry/browser (incl. Logs) | 31.08 KB |
| @sentry/browser (incl. Metrics & Logs) | 31.73 KB |
| @sentry/react | 31.48 KB |
| @sentry/react (incl. Tracing) | 54.15 KB |
| @sentry/vue | 37.55 KB |
| @sentry/vue (incl. Tracing) | 54.45 KB |
| @sentry/svelte | 29.53 KB |
| @sentry/remix (Remix 3 client bundle) | 57.09 KB |
| CDN Bundle | 31.41 KB |
| CDN Bundle (incl. Tracing) | 51.94 KB |
| CDN Bundle (incl. Logs, Metrics) | 34.13 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 54.45 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 74.2 KB |
| CDN Bundle (incl. Tracing, Replay) | 88.94 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 91.49 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 94.22 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 96.72 KB |
| CDN Bundle - uncompressed | 91.71 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 153.57 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 99.85 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 161.02 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 226.91 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 270.91 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 278.36 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 282.56 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 290 KB |
| @sentry/nextjs (client) | 57.76 KB |
| @sentry/sveltekit (client) | 52.79 KB |
| @sentry/core/server | 44.22 KB |
| @sentry/core/browser | 14.08 KB |
| @sentry/node | 150.4 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 81.38 KB |
| @sentry/node - without tracing | 86.73 KB |
| @sentry/node - without channel injection | 139.63 KB |
| @sentry/aws-serverless | 97.08 KB |
| @sentry/cloudflare (withSentry) - minified | 203.62 KB |
| @sentry/cloudflare (withSentry) | 472.54 KB |
| @sentry/cloudflare (withSentry, instrumented CommonJS package) - minified | 995.89 KB |
| @sentry/nextjs/cloudflare (withSentry) - minified | 228.26 KB |
Your coding agent can read these notes before it upgrades. Set up the MCP server →
feat(core): Continue MCP server traces from params._meta
feat(core): Continue MCP server traces from params._meta (#26308)
MCP server spans now continue the caller's trace from the sentry-trace and baggage keys in a request's or notification's params._meta, so they connect to the agent that called the tool, including over stdio. Set propagateTraceparent: true to also continue from a W3C traceparent key. On Streamable HTTP, the MCP span is no longer a child of the http.server span when the client sends trace context in _meta. It has a span link to that span instead. Messages without valid trace context in _meta, or with trace context from another Sentry org, still join the transport's trace.
ref(tanstackstart-react): Use code.file.path on server function spans (#26495)
Server function spans now set the file of the server function in code.file.path instead of tanstackstart.function.filename. The tanstackstart.function.id attribute is removed.
sentry-release meta tag (#26514)bun run on Bun 1.4.6 and later (#26515)sourcemaps.upload, injectDebugIds and delete (#26571)resolveReleaseName (#26500)sourcemaps.upload, injectDebugIds and delete to the shared build options (#26576)sourcemaps.upload, injectDebugIds and delete (#26606)release.inject: 'html' to keep chunk hashes stable (#26511)release.inject: 'html' to keep chunk hashes stable (#26512)bun run (#26622)release.inject: false (#26509)release.inject (#26499)Work in this release was contributed by @psang39. Thank you for your contribution!
| Path | Size |
|---|---|
| @sentry/browser | 29.52 KB |
| @sentry/browser - with treeshaking flags | 27.76 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 27.67 KB |
| @sentry/browser (incl. Tracing) | 51.55 KB |
| @sentry/browser (incl. Tracing Core) | 39.37 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 51.56 KB |
| @sentry/browser (incl. Tracing, Profiling) | 54.37 KB |
| @sentry/browser (incl. Tracing, Replay) | 90.66 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 79.74 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 94.94 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 108.17 KB |
| @sentry/browser (incl. Feedback) | 47.04 KB |
| @sentry/browser (incl. sendFeedback) | 30.09 KB |
| @sentry/browser (incl. FeedbackAsync) | 35 KB |
| @sentry/browser (incl. Metrics) | 30.81 KB |
| @sentry/browser (incl. Logs) | 31.08 KB |
| @sentry/browser (incl. Metrics & Logs) | 31.73 KB |
| @sentry/react | 31.48 KB |
| @sentry/react (incl. Tracing) | 54.14 KB |
| @sentry/vue | 37.54 KB |
| @sentry/vue (incl. Tracing) | 54.44 KB |
| @sentry/svelte | 29.53 KB |
| @sentry/remix (Remix 3 client bundle) | 57.08 KB |
| CDN Bundle | 31.41 KB |
| CDN Bundle (incl. Tracing) | 51.93 KB |
| CDN Bundle (incl. Logs, Metrics) | 34.13 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 54.44 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 74.2 KB |
| CDN Bundle (incl. Tracing, Replay) | 88.93 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 91.48 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 94.21 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 96.71 KB |
| CDN Bundle - uncompressed | 91.71 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 153.55 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 99.85 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 161 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 226.91 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 270.89 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 278.34 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 282.54 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 289.98 KB |
| @sentry/nextjs (client) | 57.74 KB |
| @sentry/sveltekit (client) | 52.79 KB |
| @sentry/core/server | 44.2 KB |
| @sentry/core/browser | 14.07 KB |
| @sentry/node | 150.08 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 81.38 KB |
| @sentry/node - without tracing | 86.66 KB |
| @sentry/node - without channel injection | 139.3 KB |
| @sentry/aws-serverless | 97.02 KB |
| @sentry/cloudflare (withSentry) - minified | 203.45 KB |
| @sentry/cloudflare (withSentry) | 472.13 KB |
| @sentry/cloudflare (withSentry, instrumented CommonJS package) - minified | 988.35 KB |
| @sentry/nextjs/cloudflare (withSentry) - minified | 228.22 KB |
Sentry.cron.instrumentNodeCron is deprecated; use nodeCronIntegration instead.
feat(browser): Add browserTracingCoreIntegration and standalone tracing integrations (#26259, #26260, #26261, #26262, #26273, #26276, #26497)
browserTracingIntegration now sets up fetch and XHR request spans, linked traces, long tasks and resource spans through the standalone fetchTracingIntegration, xhrTracingIntegration, linkedTracesIntegration, longTasksIntegration and resourcesIntegration. Its behavior is unchanged. To ship less code, use browserTracingCoreIntegration, which keeps pageload and navigation spans, and add only the standalone integrations you need. The CDN bundles export them too.
ref(server-utils): Share one cron converter across cron integrations (#25918)
Sentry.cron.instrumentCron, instrumentNodeCron and instrumentNodeSchedule send the server's time zone when a job has none, so monitors don't report false misses on servers that aren't on UTC. Schedules Sentry can't express exactly, such as per-second schedules, send no monitor config, so the monitor keeps the schedule set in Sentry. Sentry.cron.instrumentNodeCron is deprecated; use nodeCronIntegration instead.
fix(nuxt): Name the database system in db.system.name of db0 spans (#26285)
Nitro database (db0) spans now set db.system.name to the database system of the connector's dialect (mysql, postgresql, sqlite or libsql), as the OpenTelemetry conventions define it, instead of the connector name. For example, spans of the mysql2 and planetscale connectors now report mysql, and spans of better-sqlite3 and cloudflare-d1 now report sqlite. Update saved queries, alerts and dashboards that filter on the connector names.
cacheClient option (#26494)JSON.stringify output that goes into generated code (#26314)Work in this release was contributed by @JavierCane. Thank you for your contribution!
| Path | Size |
|---|---|
| @sentry/browser | 29.47 KB |
| @sentry/browser - with treeshaking flags | 27.71 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 27.62 KB |
| @sentry/browser (incl. Tracing) | 51.5 KB |
| @sentry/browser (incl. Tracing Core) | 39.32 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 51.51 KB |
| @sentry/browser (incl. Tracing, Profiling) | 54.32 KB |
| @sentry/browser (incl. Tracing, Replay) | 90.61 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 79.69 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 94.88 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 107.8 KB |
| @sentry/browser (incl. Feedback) | 46.68 KB |
| @sentry/browser (incl. sendFeedback) | 30.04 KB |
| @sentry/browser (incl. FeedbackAsync) | 34.92 KB |
| @sentry/browser (incl. Metrics) | 30.76 KB |
| @sentry/browser (incl. Logs) | 31.03 KB |
| @sentry/browser (incl. Metrics & Logs) | 31.68 KB |
| @sentry/react | 31.44 KB |
| @sentry/react (incl. Tracing) | 54.09 KB |
| @sentry/vue | 37.48 KB |
| @sentry/vue (incl. Tracing) | 54.38 KB |
| @sentry/svelte | 29.49 KB |
| @sentry/remix (Remix 3 client bundle) | 57.03 KB |
| CDN Bundle | 31.35 KB |
| CDN Bundle (incl. Tracing) | 51.9 KB |
| CDN Bundle (incl. Logs, Metrics) | 34.07 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 54.41 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 74.14 KB |
| CDN Bundle (incl. Tracing, Replay) | 88.9 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 91.45 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 94.16 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 96.66 KB |
| CDN Bundle - uncompressed | 91.6 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 153.44 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 99.74 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 160.89 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 226.81 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 270.78 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 278.23 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 282.3 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 289.74 KB |
| @sentry/nextjs (client) | 57.63 KB |
| @sentry/sveltekit (client) | 52.76 KB |
| @sentry/core/server | 43.75 KB |
| @sentry/core/browser | 14.07 KB |
| @sentry/node | 148.18 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 81.38 KB |
| @sentry/node - without tracing | 86.59 KB |
| @sentry/node - without channel injection | 137.4 KB |
| @sentry/aws-serverless | 96.72 KB |
| @sentry/cloudflare (withSentry) - minified | 202.1 KB |
| @sentry/cloudflare (withSentry) | 469.11 KB |
| @sentry/nextjs/cloudflare (withSentry) - minified | 226.86 KB |
chore(deps): Record the node-abort-controller deprecation in the lockfile
feat(sveltekit): Mark pageloads of prerendered and Vercel ISR pages (#26301, #26307)
When SvelteKit serves a page that it rendered earlier, the pageload now has the page.server_rendering.type: static attribute. This covers pages prerendered during vite build and pages that Vercel caches with ISR (config.isr). For an ISR page, the pageload also links to the request that rendered the page, if that request was sampled.
Before, every visitor of a cached ISR page continued the trace of that one request. Now each pageload starts its own trace. Pages with ssr = false get no attribute, because the server rendered none of their content.
feat(nuxt): Mark pageloads of cached pages (#26305)
When Nuxt serves a cached or prerendered page, for example with a swr or isr route rule, the pageload now has the page.server_rendering.type: static attribute and starts its own trace. If the request that rendered the cached page was sampled, the pageload also links to it. So visitors of a cached page no longer continue the trace of the request that rendered it.
fix(core): Set url.scheme without colon and url.port as a number (#26284)
HTTP spans that the SDK builds from a URL now send url.scheme without the trailing colon (https instead of https:) and url.port as a number instead of a string, as the Sentry conventions define them and as Node http.server spans already do. This changes http.server spans from @sentry/cloudflare, Bun.serve, Deno and Nitro, and outgoing node:http client spans. Update saved queries, alerts and dashboards that filter on url.scheme:"https:" or on url.port as a string.
feat(cloudflare): Continue the Cloudflare trace of the invocation (#25613)
When tracing is not set up (no tracesSampleRate or tracesSampler), errors and logs from fetch, scheduled, queue and email handlers and from WorkerEntrypoint RPC methods now get the trace id that Cloudflare gives the invocation. With this trace id, you can find the Cloudflare spans and logs of an error in Workers Observability. This needs workerd 1.20261009.1 or newer and Workers Observability turned on. An incoming Sentry trace still has precedence.
The parent_span_id of these events is the id of a Cloudflare span. This span is in Sentry only when you export your Workers traces to Sentry.
feat(server-utils): Record Bedrock prompts and responses (#26249, #26362, #26414)
Amazon Bedrock spans from awsIntegration now record prompts, system instructions, tool definitions and responses by default, as the other AI integrations do. This applies to the Converse, ConverseStream, InvokeModel and InvokeModelWithResponseStream commands.
To stop recording prompts or responses for all AI integrations, set dataCollection: { genAI: { inputs: false, outputs: false } }. To stop it only for Bedrock, use the new awsIntegration options, which take precedence over dataCollection.genAI:
Sentry.init({
integrations: [Sentry.awsIntegration({ recordInputs: false, recordOutputs: false })],
});deleteSourcemapsAfterUpload: true when no upload runs (#26281)trace and tailStream handlers (#26250)getTraceServerTimingHeader and isSharedCacheable (#26325)Server-Timing header of document responses (#26107)@sentry/node startup time (#25968)BrowserClient constructor (#26313)application/x-sentry-envelope (#26299)url to sentry.io (#26252)@flue/runtime provide its own namespace (#25935)_enhanceErrorWithSentryInfo (#26349)@sentry/conventions to 0.33.0 (#26374)node-abort-controller deprecation in the lockfile (#26270)enableLongAnimationFrame default in JSDoc (#26256)Work in this release was contributed by @kunal649, @bardrop, @DomWane, @Vivek1898, @mvanhorn, and @pcbeingused333. Thank you for your contributions!
| Path | Size |
|---|---|
| @sentry/browser | 29.4 KB |
| @sentry/browser - with treeshaking flags | 27.63 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 27.53 KB |
| @sentry/browser (incl. Tracing) | 51.06 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 51.06 KB |
| @sentry/browser (incl. Tracing, Profiling) | 53.96 KB |
| @sentry/browser (incl. Tracing, Replay) | 90.64 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 79.69 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 94.93 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 108 KB |
| @sentry/browser (incl. Feedback) | 46.61 KB |
| @sentry/browser (incl. sendFeedback) | 29.97 KB |
| @sentry/browser (incl. FeedbackAsync) | 34.86 KB |
| @sentry/browser (incl. Metrics) | 30.69 KB |
| @sentry/browser (incl. Logs) | 30.97 KB |
| @sentry/browser (incl. Metrics & Logs) | 31.61 KB |
| @sentry/react | 31.36 KB |
| @sentry/react (incl. Tracing) | 53.66 KB |
| @sentry/vue | 37.4 KB |
| @sentry/vue (incl. Tracing) | 53.95 KB |
| @sentry/svelte | 29.41 KB |
| @sentry/remix (Remix 3 client bundle) | 56.7 KB |
| CDN Bundle | 31.12 KB |
| CDN Bundle (incl. Tracing) | 51.47 KB |
| CDN Bundle (incl. Logs, Metrics) | 33.85 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 53.97 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 73.93 KB |
| CDN Bundle (incl. Tracing, Replay) | 88.59 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 91.14 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 93.84 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 96.38 KB |
| CDN Bundle - uncompressed | 90.8 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 151.81 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 98.95 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 159.26 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 226.02 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 269.15 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 276.6 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 280.67 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 288.11 KB |
| @sentry/nextjs (client) | 57.2 KB |
| @sentry/sveltekit (client) | 52.32 KB |
| @sentry/core/server | 43.75 KB |
| @sentry/core/browser | 14.07 KB |
| @sentry/node | 147.82 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 81.35 KB |
| @sentry/node - without tracing | 86.49 KB |
| @sentry/node - without channel injection | 137.02 KB |
| @sentry/aws-serverless | 96.62 KB |
| @sentry/cloudflare (withSentry) - minified | 201.63 KB |
| @sentry/cloudflare (withSentry) | 467.99 KB |
| @sentry/nextjs/cloudflare (withSentry) - minified | 226.4 KB |
chore(deps): Bump body-parser to fix CVE-2026-111181
feat(bundler-plugins): Enable hidden source maps and remove them after upload (#25637, #25645, #25646, #25647, #25648)
The Sentry Rollup, Vite, webpack and esbuild plugins now turn on hidden source maps when your bundler has no source maps enabled and the plugin can upload them. They upload the maps to Sentry and remove them from the build output. You no longer need to set sourcemap: 'hidden' or filesToDeleteAfterUpload globs:
sentryVitePlugin({ org, project, authToken });The new sourcemaps.deleteSourcemapsAfterUpload option controls the removal:
true: the plugin also removes source maps you enabled yourself, and switches visible source maps to hidden. Set this if you already use sourcemap: 'hidden' and want to drop your filesToDeleteAfterUpload globs.false: the plugin never removes source maps.Builds in development mode or without an auth token, org and project do not change.
feat(cloudflare): Propagate tracing context through Queue messages (#25306)
Cloudflare Queue consumers can now link to the traces of the producers that sent the messages. Set queueTracePropagationBindings to the producer bindings that should add trace data to plain-object message bodies. Consumers remove this data before your handler runs, and the queue.process span links to every producer in the batch.
export default Sentry.withSentry(
env => ({
dsn: env.SENTRY_DSN,
queueTracePropagationBindings: ['BILLING_QUEUE', /^JOBS_/],
}),
handler,
);feat(core): Answer managed tunnel requests in the runtime (#25997, #25998, #25999, #26000, #26001)
serveTunnelIntegration() now answers tunnel requests before they reach your app, in Node.js, Bun, Deno, Cloudflare Workers and AWS Lambda. You no longer need a framework integration or a route handler, so any server setup works with only the integration:
Sentry.init({ dsn, integrations: [Sentry.serveTunnelIntegration()] });To answer tunnel requests from your own code, set serveTunnelIntegration({ intercept: false }) and call handleTunnelRequestIfMatched.
tunnelRoute (#26225)// paths in url.full (#26165)@sentry/conventions to 0.31.0 (#26160)@sentry/conventions to 0.32.0 (#26222)node:fs for removal scripts (#26219)sourcemaps.assets and sourcemaps.ignore (#25916)Work in this release was contributed by @lazerg, @rjmcgee53192, @adityankale190895, @arthurfiorette, @chan-mai, @nuntz, and @43081j. Thank you for your contributions!
| Path | Size |
|---|---|
| @sentry/browser | 29.22 KB |
| @sentry/browser - with treeshaking flags | 27.42 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 27.32 KB |
| @sentry/browser (incl. Tracing) | 51.07 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 51.08 KB |
| @sentry/browser (incl. Tracing, Profiling) | 53.98 KB |
| @sentry/browser (incl. Tracing, Replay) | 90.52 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 79.46 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 95.15 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 107.83 KB |
| @sentry/browser (incl. Feedback) | 46.41 KB |
| @sentry/browser (incl. sendFeedback) | 34.19 KB |
| @sentry/browser (incl. FeedbackAsync) | 39.19 KB |
| @sentry/browser (incl. Metrics) | 30.75 KB |
| @sentry/browser (incl. Logs) | 31.03 KB |
| @sentry/browser (incl. Metrics & Logs) | 31.69 KB |
| @sentry/react | 31.03 KB |
| @sentry/react (incl. Tracing) | 53.48 KB |
| @sentry/vue | 37.44 KB |
| @sentry/vue (incl. Tracing) | 54.04 KB |
| @sentry/svelte | 29.25 KB |
| @sentry/remix (Remix 3 client bundle) | 56.56 KB |
| CDN Bundle | 30.98 KB |
| CDN Bundle (incl. Tracing) | 51.65 KB |
| CDN Bundle (incl. Logs, Metrics) | 33.71 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 54.09 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 74.22 KB |
| CDN Bundle (incl. Tracing, Replay) | 89.03 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 91.53 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 95.01 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 97.55 KB |
| CDN Bundle - uncompressed | 90.59 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 152.36 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 98.91 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 159.96 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 227.72 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 271.52 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 279.11 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 284.9 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 292.48 KB |
| @sentry/nextjs (client) | 56.38 KB |
| @sentry/sveltekit (client) | 51.58 KB |
| @sentry/core/server | 43.25 KB |
| @sentry/core/browser | 13.7 KB |
| @sentry/node | 153.71 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 80.35 KB |
| @sentry/node - without tracing | 94.87 KB |
| @sentry/node - without channel injection | 134.46 KB |
| @sentry/aws-serverless | 103.36 KB |
| @sentry/cloudflare (withSentry) - minified | 198.74 KB |
| @sentry/cloudflare (withSentry) | 493.9 KB |
| @sentry/nextjs/cloudflare (withSentry) - minified | 219.91 KB |
Use excludeJobs to skip jobs by name. Sentry.cron.instrumentCron is deprecated; use cronJobIntegration instead.
ref(cloudflare): Use the shared request handler wrapper (#25588)
Cloudflare Workers now use the same request handler wrapper as Deno.serve and Bun.serve. Changes for Cloudflare users:
client.address from the CF-Connecting-IP header (or another forwarding header), as on the other runtimes. This follows dataCollection.userInfo, which is true by default. To leave it out, set dataCollection: { userInfo: false }.response context with the status code.captureErrors: false, it does not capture it.Set-Cookie header of a response, as on Deno and Bun.AsyncLocalStorage (for example on Shopify Oxygen), events now also get the request URL and method.feat(nestjs): Add an option to monitor every @Cron method (#25471)
Set monitorCronJobs: true on nestIntegration() to send check-ins for every @Cron() method, without adding @SentryCron to each one. It's off by default. Each monitored job creates a monitor in Sentry, and monitors are billed. Use excludeCronJobs to skip jobs by slug. Methods that also have @SentryCron check in once, with the slug and options passed to @SentryCron.
feat(node): Add cronJobIntegration to monitor cron jobs (#25477)
Add Sentry.cronJobIntegration() to integrations to send check-ins for every named CronJob of the cron package (4.3+), with the job name as the monitor slug. It's off by default. Each monitored job creates a monitor in Sentry, and monitors are billed. Use excludeJobs to skip jobs by name. Sentry.cron.instrumentCron is deprecated; use cronJobIntegration instead.
fix(server-utils): Instrument @anthropic-ai/sdk 1.x and turn off its own OTel spans (#25750)
The Anthropic integration now instruments @anthropic-ai/sdk 1.x. Since 0.134 the SDK also records its own OpenTelemetry spans, such as anthropic.messages.create, which duplicated Sentry's gen_ai spans. Once Sentry instruments the SDK, it sets ANTHROPIC_OPEN_TELEMETRY=false to turn those spans off. To keep them, set ANTHROPIC_OPEN_TELEMETRY=true or pass the openTelemetry option to the Anthropic client.
feat(nextjs): Mark pageloads of cached pages (#25318)
When Next.js serves a page from its cache, for example an ISR page or a cacheComponents shell, the pageload now has the page.server_rendering.type attribute. It is static if the whole page came from the cache, and partially_static if parts of it rendered for this request. Then the pageload stays connected to this request, as before. If the request that rendered the cached page was sampled, the pageload also links to it. So in Sentry, a cached page no longer looks like missing server instrumentation.
@sentry/astro/integration entry for the Astro integration (#25726)sourcemaps.deleteSourcemapsAfterUpload and staged uploads (#25637)applicationKeyExcludeDependencies option (#25818)awsLambdaWebIntegration for Lambda Web Functions (#25355)getSqlSpanName for SQL span names (#25929)getSqlQueryAttributes helper for consistency (#25927)db.operation.name on SQL spans (#25850)withSentry from @sentry/solidstart/vite (#25725)handleTunnelRequest form and reword the serveTunnelIntegration docs (#25844)canaryVariants (#25866)requiresParentSpan in favor of onlyIfParent (#25926)canaryVariants (#25865)nuxt-5 (tunnel-dev) e2e variant optional (#26004)Work in this release was contributed by @lazerg, @chiliec, @61465, @jpdefo, and @AyeshaWaseemAhmad. Thank you for your contributions!
| Path | Size |
|---|---|
| @sentry/browser | 29.69 KB |
| @sentry/browser - with treeshaking flags | 27.87 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 27.77 KB |
| @sentry/browser (incl. Tracing) | 51.49 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 51.5 KB |
| @sentry/browser (incl. Tracing, Profiling) | 54.4 KB |
| @sentry/browser (incl. Tracing, Replay) | 90.85 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 79.71 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 95.49 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 108.17 KB |
| @sentry/browser (incl. Feedback) | 46.86 KB |
| @sentry/browser (incl. sendFeedback) | 34.67 KB |
| @sentry/browser (incl. FeedbackAsync) | 39.66 KB |
| @sentry/browser (incl. Metrics) | 30.7 KB |
| @sentry/browser (incl. Logs) | 30.99 KB |
| @sentry/browser (incl. Metrics & Logs) | 31.69 KB |
| @sentry/react | 31.53 KB |
| @sentry/react (incl. Tracing) | 53.81 KB |
| @sentry/vue | 37.77 KB |
| @sentry/vue (incl. Tracing) | 54.44 KB |
| @sentry/svelte | 29.71 KB |
| @sentry/remix (Remix 3 client bundle) | 56.46 KB |
| CDN Bundle | 31.44 KB |
| CDN Bundle (incl. Tracing) | 52.01 KB |
| CDN Bundle (incl. Logs, Metrics) | 33.66 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 53.91 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 74.1 KB |
| CDN Bundle (incl. Tracing, Replay) | 89.33 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 91.21 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 95.29 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 97.24 KB |
| CDN Bundle - uncompressed | 92.45 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 153.97 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 98.77 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 159.58 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 227.25 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 272.81 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 278.4 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 286.2 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 291.77 KB |
| @sentry/nextjs (client) | 56.69 KB |
| @sentry/sveltekit (client) | 52 KB |
| @sentry/core/server | 43.21 KB |
| @sentry/core/browser | 13.6 KB |
| @sentry/node | 152.29 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 80.35 KB |
| @sentry/node - without tracing | 94.62 KB |
| @sentry/node - without channel injection | 133.08 KB |
| @sentry/aws-serverless | 102.63 KB |
| @sentry/cloudflare (withSentry) - minified | 195.97 KB |
| @sentry/cloudflare (withSentry) | 487.35 KB |
| @sentry/nextjs/cloudflare (withSentry) - minified | 217.46 KB |
The request option of handleTunnelRequest is deprecated and will be removed in v12.
feat: Add a managed tunnel that the SDK derives from the DSN (#25199, #25200, #25783)
Set tunnel: true in your browser Sentry.init call to send events through your own server. This helps when ad blockers block requests to Sentry. The browser derives the tunnel path from the DSN, so older and newer builds of your client and server always agree on the path.
To serve the tunnel, add serveTunnelIntegration() to your server SDK. Astro, Nuxt, Nitro, React Router, Remix 3, SolidStart, SvelteKit and TanStack Start then answer tunnel requests automatically:
// browser
Sentry.init({ dsn, tunnel: true });
// server
Sentry.init({ dsn, integrations: [Sentry.serveTunnelIntegration()] });If the browser uses a different DSN than the server, set serveTunnelIntegration({ allowedDsns: [browserDsn] }). For other setups, the server SDKs export handleTunnelRequestIfMatched, handleTunnelRequest, isTunnelRequest and getTunnelPath:
app.use((req, res, next) => Sentry.handleTunnelRequestIfMatched(req, res) ?? next());The request option of handleTunnelRequest is deprecated and will be removed in v12.
feat: Make span origins spec compliant (#25602)
Some span origins changed their names to follow the trace origin spec:
auto.amqplib.* is now auto.queue.amqplib.*, and auto.kafkajs.* is now auto.queue.kafkajs.*.auto.vercelai.channel is now auto.ai.vercelai.auto.firebase.firestore is now auto.db.firebase.firestore, and auto.firebase.functions is now auto.function.firebase.auto.aws.aws_sdk is now auto.{rpc,db,queue,ai}.aws_sdk, with the category from the span op.auto.aws_lambda is now auto.function.aws_serverless.auto.mcp.notification is now auto.function.mcp_server.notification.auto.db.cloudflare.durable_object.sql is now auto.db.cloudflare.durable_object_sql.auto.http.browser.{lcp,cls,inp} is now auto.ui.browser.{lcp,cls,inp}.If you have ignoreSpans rules, queries or alerts on the old origins, change them to use the new origins.
feat(bun): Add incoming request options and request sessions to bunServerIntegration (#25580)
bunServerIntegration now accepts the same options as denoServeIntegration: ignoreRequestBody, ignoreIncomingRequests, ignoreStaticAssets, spans, onSpanCreated, onSpanEnd, sessions and sessionFlushingDelayMS. The callbacks receive the web Request.
Bun.serve now records a request session for each incoming request. Sessions are sent only when a release is set. To turn them off, set bunServerIntegration({ sessions: false }).
ignoreStaticAssets defaults to true, so Bun.serve no longer creates spans for GET requests to common static assets such as favicon.ico, robots.txt or *.js files. To keep these spans, set bunServerIntegration({ ignoreStaticAssets: false }). Bun.serve spans also follow the client's tracing configuration by default, so the integration does not start spans when tracing is disabled. Errors thrown for OPTIONS and HEAD requests are now captured.
feat(bun): Inject debug IDs and upload source maps in sentryBunPlugin (#25670)
sentryBunPlugin from @sentry/bun/plugin now accepts the same options as sentryEsbuildPlugin (org, project, authToken, release, sourcemaps, ...). When Bun.build writes source maps to outdir, the plugin injects the debug ID that Bun writes into each bundle, injects the release, and uploads the source maps at the end of the build. You no longer need to run sentry sourcemap inject and sentry sourcemap upload after the build.
Like the other bundler plugins, sentryBunPlugin now sends build telemetry and injects the release it detects (for example, from git). To turn off telemetry, set telemetry: false.
feat(cloudflare): Add incoming request span options to httpServerIntegration (#25582)
Cloudflare's httpServerIntegration now accepts ignoreIncomingRequests, ignoreStaticAssets, spans, onSpanCreated and onSpanEnd, with the same meaning as in the Node, Deno and Bun integrations. The callbacks receive the web Request.
ignoreStaticAssets defaults to true, so workers no longer create spans for GET requests to common static assets such as favicon.ico, robots.txt or *.js files. To keep these spans, set httpServerIntegration({ ignoreStaticAssets: false }). Request spans also follow the client's tracing configuration by default, so the SDK does not start them when tracing is disabled. If ignoreRequestBody throws, the request no longer fails, and the SDK skips the body.
feat(cloudflare): Let users configure the channel integrations (#25584)
When the @sentry/cloudflare/vite plugin bundles an instrumented package (for example pg or openai), the SDK adds the matching integration with its default options. @sentry/cloudflare now exports these integrations, so you can set their options, for example in instrument.server.ts:
export default Sentry.defineCloudflareOptions(env => ({
dsn: env.SENTRY_DSN,
integrations: [Sentry.openAIIntegration({ recordInputs: false, recordOutputs: false })],
}));These integrations need the vite plugin. Without it, they record nothing, and with debug: true the SDK logs a warning.
feat(node): Add onSpanEnd to httpIntegration (#25581)
httpIntegration and httpServerSpansIntegration now accept onSpanEnd, a hook that runs when the response for an incoming request finishes, before its span ends. Use it to change the span based on the response. Deno and Bun already have this option.
feat(node, bun, deno, cloudflare): Align portable exports across server SDKs (#25583)
Node, Bun, Deno and Cloudflare now export the same helpers from @sentry/core and @sentry/server-utils where they work on that runtime:
moduleMetadataIntegration, instrumentPostgresJsSql, instrumentCreateReactAgent, awsIntegration and the FlueOptions type. awsIntegration was already in their default integrations.parameterize and instrumentStateGraphCompile.Log and LogSeverityLevel types.fastifyIntegration, which was already in its default integrations.feat(nuxt): Start the server SDK on the Nuxt Vite server (experimental) (#25524)
Sentry now supports Node.js production builds using Nuxt 4.6's experimental Vite server (server: { builder: 'vite' }). Your sentry.server.config loads automatically, enabling request tracing and automatic database spans for supported libraries.
Development mode, Cloudflare, automatic capture of server rendering errors, and connecting server and browser traces via HTML meta tags are not yet supported. This experimental support may change in minor releases.
ref(deno, bun): Use a shared request handler wrapper for Deno.serve and Bun.serve (#25586, #25587)
Deno.serve and Bun.serve now use the same request handler wrapper, which Cloudflare will also use. On both runtimes, errors in OPTIONS and HEAD requests now carry the request data, and the SDK keeps every Set-Cookie header of a response instead of only the last one.
For Deno users:
Bun.serve spans now follow the Sentry conventions for http.server spans, as on Node, Deno and Cloudflare:
url.template is now http.route. Routes without parameters also get http.route and the route source.url.domain is now server.address./ gets the route source and the name GET /.user_agent.original and http.request.body.size.execute_tool spans for Anthropic's beta.sessions.events.toolRunner() (#25554)var in the Vite transform (#25663)default keyword in the Vite transform (#25741)undici fetch and node:http (#25441)ServerRequestOptions type across runtimes (#25579)GEN_AI_EXTRACT op from @sentry/conventions (#25734)Work in this release was contributed by @4ktLuffy, @faizansaiyed123, @itisrmk, @kunal649, @kyrylolvov, @larcane97, @lfantone, @pcbeingused333, @psh4607, and @seongwon030. Thank you for your contributions!
| Path | Size |
|---|---|
| @sentry/browser | 29.63 KB |
| @sentry/browser - with treeshaking flags | 27.79 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 27.69 KB |
| @sentry/browser (incl. Tracing) | 51.37 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 51.38 KB |
| @sentry/browser (incl. Tracing, Profiling) | 54.24 KB |
| @sentry/browser (incl. Tracing, Replay) | 90.64 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 79.52 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 95.25 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 107.93 KB |
| @sentry/browser (incl. Feedback) | 46.77 KB |
| @sentry/browser (incl. sendFeedback) | 34.59 KB |
| @sentry/browser (incl. FeedbackAsync) | 39.57 KB |
| @sentry/browser (incl. Metrics) | 30.61 KB |
| @sentry/browser (incl. Logs) | 30.89 KB |
| @sentry/browser (incl. Metrics & Logs) | 31.55 KB |
| @sentry/react | 31.4 KB |
| @sentry/react (incl. Tracing) | 53.61 KB |
| @sentry/vue | 37.7 KB |
| @sentry/vue (incl. Tracing) | 54.2 KB |
| @sentry/svelte | 29.66 KB |
| @sentry/remix (Remix 3 client bundle) | 56.3 KB |
| CDN Bundle | 31.32 KB |
| CDN Bundle (incl. Tracing) | 51.86 KB |
| CDN Bundle (incl. Logs, Metrics) | 33.47 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 53.76 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 73.92 KB |
| CDN Bundle (incl. Tracing, Replay) | 89.09 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 90.99 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 95.08 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 97.02 KB |
| CDN Bundle - uncompressed | 92.1 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 153.62 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 98.5 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 159.45 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 226.91 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 272.39 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 278.21 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 285.77 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 291.58 KB |
| @sentry/nextjs (client) | 56.39 KB |
| @sentry/sveltekit (client) | 51.82 KB |
| @sentry/core/server | 43.26 KB |
| @sentry/core/browser | 13.62 KB |
| @sentry/node | 151.41 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 79.75 KB |
| @sentry/node - without tracing | 93.52 KB |
| @sentry/node - without channel injection | 132.48 KB |
| @sentry/aws-serverless | 101.5 KB |
| @sentry/cloudflare (withSentry) - minified | 193.25 KB |
| @sentry/cloudflare (withSentry) | 480.29 KB |
| @sentry/nextjs/cloudflare (withSentry) - minified | 213.35 KB |
feat: Rename diagnostic_channel , fetch and gRPC span origins
feat: Rename diagnostic_channel, fetch and gRPC span origins (#25601)
Some span origins changed their names to match the other v11 origins:
auto.graphql.diagnostic_channel is now auto.graphql.graphql.auto.db.redis.diagnostic_channel, auto.db.mysql2.diagnostic_channel and auto.db.mongoose.diagnostic_channel now end in .native_channel.auto.http.wintercg_fetch is now auto.http.fetch, as on Bun, Deno and Cloudflare.auto.grpc.serverless is now auto.grpc.google_cloud.If you have ignoreSpans rules, queries or alerts on the old origins, change them to use the new origins.
feat(deno): Add incoming request options to denoServeIntegration (#25493)
denoServeIntegration now accepts ignoreRequestBody, ignoreIncomingRequests, ignoreStaticAssets, spans, onSpanCreated and onSpanEnd, with the same meaning as in denoHttpIntegration. The callbacks receive the web Request.
ignoreStaticAssets defaults to true, so Deno.serve no longer creates spans for GET requests to common static assets such as favicon.ico, robots.txt or *.js files. To keep these spans, set denoServeIntegration({ ignoreStaticAssets: false }). Deno.serve spans also follow the client's tracing configuration by default, so the integration does not start spans when tracing is disabled.
feat(deno): Record request sessions for Deno.serve (#25496)
denoServeIntegration now records a request session for each incoming request, as denoHttpIntegration does for node:http. This gives release health and crash-free rates for Deno.serve apps. Sessions are sent only when a release is set. To turn them off, set denoServeIntegration({ sessions: false }). sessionFlushingDelayMS sets how long the SDK waits before it sends the session aggregate.
feat(deno): Register channel injection hooks from init() (#25546)
Sentry.init() in @sentry/deno now registers the diagnostics-channel injection hooks, as @sentry/node does. The channel integrations now record spans without --preload=npm:@sentry/deno/import, for modules that you import after init(). To also instrument modules that load before init(), such as static imports in your entry module, keep the preload. With debug: true, the SDK logs a warning when no injection is active.
On Node.js, tracing-hooks messages now show with debug: true instead of with DEBUG=@apm-js-collab/*.
feat(nextjs): Add a tunnel route handler that sends only the event payload to Sentry (#25456)
The tunnelRoute option can now send events through a route handler in your app. The handler forwards only the event payload to Sentry, and no request headers. To use it, add this file next to your tunnelRoute option:
// app/sentry-tunnel/route.ts (or src/app/sentry-tunnel/route.ts)
export { POST } from '@sentry/nextjs/tunnel';The handler accepts events for the DSN of your server SDK. To accept other DSNs, use createSentryTunnelRoute({ allowedDsns }) from the same import. Without the file, the tunnel route works as before.
Also, the server no longer sends spans of tunnel requests when span streaming is on, because these spans only show the SDK's own traffic.
feat(nextjs): Never emit trace meta tags from a prerender (#25141)
Pageloads of apps with cacheComponents enabled are connected to their server request again. Pages that Next.js prerenders no longer carry trace information, so a cached page can no longer connect visitors to a request that was not theirs. This also applies to ISR pages. The pageload waits for the trace information when it arrives with the part of the page that streams in after a cached shell.
If you set up OpenTelemetry yourself and register SentryPropagator, register NextSentryPropagator instead and pass your tracer provider to markPrerendersOnTracerProvider, so that your prerendered pages carry no trace information either.
feat(nextjs): Send tunnel route requests with credentials: 'omit' (#25509)
With tunnelRoute and no tunnel route handler, @sentry/nextjs now sends events from the browser with credentials: 'omit', because the tunnel route does not need cookies.
If a layer in front of your app checks cookies before it lets requests through (for example Vercel Deployment Protection), you can send them again in your browser Sentry.init call:
// instrumentation-client.ts
Sentry.init({
transportOptions: { fetchOptions: { credentials: 'same-origin' } },
});feat(nitro): Report a single http.server span per request (#25295)
A Nitro request now creates only one http.server span. The nested http.server spans with the origins auto.http.nitro.srvx and auto.http.nitro.h3 are removed. h3 route handlers now get a handler span, and middleware spans are direct children of the http.server span. If you have queries or alerts on the removed spans, change them to use the http.server span or the handler span.
fix: Use auto.http.http_server origin for all node:http server spans (#25604)
On Bun and Deno, node:http server spans now have the origin auto.http.http_server instead of auto.http.server, as on Node.js. On Node.js, nothing changes. Bun.serve spans keep auto.http.bun.serve and Deno.serve spans keep auto.http.deno. If you have ignoreSpans or beforeSendSpan rules, queries or alerts on auto.http.server, change them to use auto.http.http_server.
LoaderSentry type export (#25357)isStreamingResponse option and detect streamed RSC responses (#24932)dataCollection.mcp option (#25553)use cache hits to their fill across instances (#25448)nitroIntegration (#25349)execute_tool spans for Anthropic's beta.messages.toolRunner() (#25320)@sentry/cloudflare/vite on Cloudflare Workers (#25347)function.aws span when a callback-style handler calls back (#25543)globalThis before global in the injected snippet (#25365)trace_metric data category for metrics rate limits and client reports (#25606)@opentelemetry/api 1.9 again (#25684)node:http server instrumentation (#25592)error.cause is not an Error (#25542)@types/node to 20 (#25501).bin scripts (#25635)Work in this release was contributed by @4ktLuffy, @adityareddy-dev, @dasilvaluis, @faizansaiyed123, @jpdefo, @Jxxunnn, @mikamikasuki, @philipatkinson, @rubas, and @Shubham-Padkonde. Thank you for your contributions!
| Path | Size |
|---|---|
| @sentry/browser | 29.21 KB |
| @sentry/browser - with treeshaking flags | 27.39 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 27.3 KB |
| @sentry/browser (incl. Tracing) | 50.88 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 50.88 KB |
| @sentry/browser (incl. Tracing, Profiling) | 53.75 KB |
| @sentry/browser (incl. Tracing, Replay) | 89.7 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 78.83 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 94.31 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 106.95 KB |
| @sentry/browser (incl. Feedback) | 46.31 KB |
| @sentry/browser (incl. sendFeedback) | 34.15 KB |
| @sentry/browser (incl. FeedbackAsync) | 39.14 KB |
| @sentry/browser (incl. Metrics) | 30.21 KB |
| @sentry/browser (incl. Logs) | 30.48 KB |
| @sentry/browser (incl. Metrics & Logs) | 31.1 KB |
| @sentry/react | 30.99 KB |
| @sentry/react (incl. Tracing) | 53.14 KB |
| @sentry/vue | 37.17 KB |
| @sentry/vue (incl. Tracing) | 53.74 KB |
| @sentry/svelte | 29.23 KB |
| @sentry/remix (Remix 3 client bundle) | 55.78 KB |
| CDN Bundle | 30.93 KB |
| CDN Bundle (incl. Tracing) | 51.38 KB |
| CDN Bundle (incl. Logs, Metrics) | 33.08 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 53.28 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 73.04 KB |
| CDN Bundle (incl. Tracing, Replay) | 88.16 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 90.05 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 94.17 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 96.07 KB |
| CDN Bundle - uncompressed | 91.1 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 152.48 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 97.5 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 158.31 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 224.49 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 269.83 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 275.65 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 283.21 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 289.02 KB |
| @sentry/nextjs (client) | 55.96 KB |
| @sentry/sveltekit (client) | 51.25 KB |
| @sentry/core/server | 40.87 KB |
| @sentry/core/browser | 13.49 KB |
| @sentry/node | 149.37 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 79.67 KB |
| @sentry/node - without tracing | 92.35 KB |
| @sentry/node - without channel injection | 130.47 KB |
| @sentry/aws-serverless | 100.33 KB |
| @sentry/cloudflare (withSentry) - minified | 187.19 KB |
| @sentry/cloudflare (withSentry) | 465.17 KB |
| @sentry/nextjs/cloudflare (withSentry) - minified | 207.67 KB |
The plugin options do not change, but the update brings these breaking changes:
feat(bundler-plugins): Release @sentry/webpack-plugin, @sentry/vite-plugin, @sentry/rollup-plugin and @sentry/esbuild-plugin from the SDK repository (#25095)
The four standalone bundler plugins now release together with the SDK, so their version jumps from 5.4.1 to the SDK version. Each package re-exports the matching @sentry/bundler-plugins entry point, which we recommend for new projects. The plugin options do not change, but the update brings these breaking changes:
@sentry/webpack-plugin requires webpack 5.1 or higher. The @sentry/webpack-plugin/webpack5 entry point still works and exports the same plugin as @sentry/webpack-plugin.sentry CLI SDK instead of @sentry/cli. Sentry self-hosted 26.4.2 or higher is supported. Lower versions may continue to work.VERCEL_TARGET_ENV (production, preview or a custom name) as their environment, instead of vercel-production or vercel-preview. To keep the old value, set release.deploy.env.feat(server-utils): Instrument the OpenAI decisions API as gen_ai.decide spans (#25285)
OpenAI decisions.create calls now create gen_ai.decide spans.
urlQueryParams to the Referer header (#25324)main is a package (#25343)output (#25312)sveltekit.endpoint span (#25376)Work in this release was contributed by @kunal649 and @mketiku. Thank you for your contributions!
| Path | Size |
|---|---|
| @sentry/browser | 29.18 KB |
| @sentry/browser - with treeshaking flags | 27.36 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 27.27 KB |
| @sentry/browser (incl. Tracing) | 50.85 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 50.85 KB |
| @sentry/browser (incl. Tracing, Profiling) | 53.73 KB |
| @sentry/browser (incl. Tracing, Replay) | 89.67 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 78.79 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 94.29 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 106.92 KB |
| @sentry/browser (incl. Feedback) | 46.28 KB |
| @sentry/browser (incl. sendFeedback) | 34.12 KB |
| @sentry/browser (incl. FeedbackAsync) | 39.11 KB |
| @sentry/browser (incl. Metrics) | 30.18 KB |
| @sentry/browser (incl. Logs) | 30.45 KB |
| @sentry/browser (incl. Metrics & Logs) | 31.07 KB |
| @sentry/react | 30.96 KB |
| @sentry/react (incl. Tracing) | 53.11 KB |
| @sentry/vue | 37.15 KB |
| @sentry/vue (incl. Tracing) | 53.72 KB |
| @sentry/svelte | 29.2 KB |
| @sentry/remix (Remix 3 client bundle) | 55.75 KB |
| CDN Bundle | 30.9 KB |
| CDN Bundle (incl. Tracing) | 51.35 KB |
| CDN Bundle (incl. Logs, Metrics) | 33.04 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 53.25 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 73.01 KB |
| CDN Bundle (incl. Tracing, Replay) | 88.13 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 90.02 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 94.14 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 96.04 KB |
| CDN Bundle - uncompressed | 91 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 152.38 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 97.38 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 158.19 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 224.37 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 269.73 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 275.53 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 283.11 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 288.9 KB |
| @sentry/nextjs (client) | 55.47 KB |
| @sentry/sveltekit (client) | 51.22 KB |
| @sentry/core/server | 40.16 KB |
| @sentry/core/browser | 13.49 KB |
| @sentry/node | 148.89 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 81.85 KB |
| @sentry/node - without tracing | 92.39 KB |
| @sentry/node - without channel injection | 127.63 KB |
| @sentry/aws-serverless | 100.36 KB |
| @sentry/cloudflare (withSentry) - minified | 205.66 KB |
| @sentry/cloudflare (withSentry) | 510.28 KB |
| @sentry/nextjs/cloudflare (withSentry) - minified | 222.92 KB |
Before, these spans had the op gen_ai.evaluate , which is now deprecated in the Sentry conventions. If you use gen_ai.evaluate in queries, alerts or d…
feat(cloudflare): Add opt-in cron monitoring for Cron Triggers (#25014)
The new cronTriggersIntegration sends check-ins for Cron Triggers. Each check-in includes the schedule from controller.cron, so Sentry creates the monitor on the first run. The integration is opt-in, because monitors are billed.
Cron Triggers have no names, so map each cron expression of your wrangler config to a monitor slug. With the Sentry Cloudflare Vite plugin, add the integration to src/instrument.server.ts:
// src/monitorSlugs.ts
export const monitorSlugs: Record<string, string> = {
'30 9 * * MON-FRI': 'daily-report',
};
// src/instrument.server.ts
import * as Sentry from '@sentry/cloudflare';
import { monitorSlugs } from './monitorSlugs';
export default Sentry.defineCloudflareOptions(env => ({
dsn: env.SENTRY_DSN,
integrations: [Sentry.cronTriggersIntegration({ monitorSlug: cron => monitorSlugs[cron] })],
}));
// src/index.ts
import { monitorSlugs } from './monitorSlugs';
export default {
async scheduled(controller, env) {
switch (monitorSlugs[controller.cron]) {
case 'daily-report':
// Your daily report job
break;
}
},
};The monitorSlug function can also return monitor settings, for example { monitorSlug: 'daily-report', maxRuntime: 30 }, or undefined to send no check-ins for a trigger. Without monitorSlug, the SDK derives the slug from the cron expression. If you deploy with wrangler directly, pass the same integration to Sentry.withSentry.
feat(node): Add neonIntegration for @neondatabase/serverless (#25164, #25176)
The new neonIntegration creates db spans for queries of the @neondatabase/serverless driver: for the WebSocket Client and Pool, and for the HTTP neon() function. This includes the neon-http and neon-serverless adapters of Drizzle. The integration is on by default when tracing is enabled.
feat(node): Stop sending the process session once request sessions are tracked (#24915)
Node servers sent release health data two times: as request session aggregates, and as the process session of processSessionIntegration. An error in a request also marked the process session as errored, so the SDK counted the error two times. Now the SDK drops the process session when it tracks the first request session. Scripts, CLIs and workers that do not serve requests keep the process session, and so do servers with httpServerIntegration({ sessions: false }). This changes the release health numbers of Node servers, because they no longer send the errored or crashed update of the process session.
feat(server-utils): Record decide calls as gen_ai.decide spans (#25270, #25272, #25274, #25281)
Vercel AI experimental_decide calls, Mastra classifier evaluations, TypeSafe and LangChain Jev calls, and Workers AI calls to TypeSafe Jev and Cloudflare Clef models now create decide <model> spans with the op gen_ai.decide. Before, these spans had the op gen_ai.evaluate, which is now deprecated in the Sentry conventions. If you use gen_ai.evaluate in queries, alerts or dashboards, change it to gen_ai.decide.
fix(browser): Apply urlQueryParams to more URLs (#25262, #25289)
The dataCollection.urlQueryParams option now also filters the query parameters of these URLs:
event.request.urlbrowser.* and resource.* span names with traceLifecycle: 'static'lcp.url and browser.web_vital.lcp.urlui.element.url attribute of elementTimingIntegrationBefore this fix, these URLs could send sensitive query values, for example ?jwt=..., to Sentry.
fix(nextjs): Apply top-level bundleSizeOptimizations to webpack and Turbopack builds (#24818)
The top-level bundleSizeOptimizations option now removes unused SDK code in webpack and in Turbopack builds. Before, the tree-shaking options had no effect on Turbopack. The webpack.treeshake option is deprecated. It still works, but when you set both options, bundleSizeOptimizations takes precedence.
@nuxt/kit 4.6 (#25138)span client report outcomes when discarding transactions (#25006)@sentry/server-runtime-injection external on Nitro v3 (#24901)@sentry/conventions to 0.27.0 (#25264)conditionalTest with a supports helper (#25202)NODE_VERSION and RUNTIME from the test utils (#25292)nuxt/server in the nuxt-5 E2E app (#25232)Work in this release was contributed by @Philip-Nwabuwa and @4ktLuffy. Thank you for your contributions!
| Path | Size |
|---|---|
| @sentry/browser | 29.13 KB |
| @sentry/browser - with treeshaking flags | 27.3 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 27.22 KB |
| @sentry/browser (incl. Tracing) | 50.8 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 50.8 KB |
| @sentry/browser (incl. Tracing, Profiling) | 53.68 KB |
| @sentry/browser (incl. Tracing, Replay) | 89.6 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 78.73 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 94.21 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 106.87 KB |
| @sentry/browser (incl. Feedback) | 46.24 KB |
| @sentry/browser (incl. sendFeedback) | 34.07 KB |
| @sentry/browser (incl. FeedbackAsync) | 39.07 KB |
| @sentry/browser (incl. Metrics) | 30.13 KB |
| @sentry/browser (incl. Logs) | 30.4 KB |
| @sentry/browser (incl. Metrics & Logs) | 31.03 KB |
| @sentry/react | 30.9 KB |
| @sentry/react (incl. Tracing) | 53.07 KB |
| @sentry/vue | 37.09 KB |
| @sentry/vue (incl. Tracing) | 53.66 KB |
| @sentry/svelte | 29.16 KB |
| @sentry/remix (Remix 3 client bundle) | 55.68 KB |
| CDN Bundle | 30.82 KB |
| CDN Bundle (incl. Tracing) | 51.29 KB |
| CDN Bundle (incl. Logs, Metrics) | 32.98 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 53.19 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 72.95 KB |
| CDN Bundle (incl. Tracing, Replay) | 88.08 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 89.95 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 94.08 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 95.98 KB |
| CDN Bundle - uncompressed | 90.8 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 152.18 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 97.19 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 158 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 224.18 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 269.53 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 275.33 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 282.91 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 288.71 KB |
| @sentry/nextjs (client) | 55.42 KB |
| @sentry/sveltekit (client) | 51.18 KB |
| @sentry/core/server | 40.03 KB |
| @sentry/core/browser | 13.49 KB |
| @sentry/node | 148.39 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 81.82 KB |
| @sentry/node - without tracing | 92.32 KB |
| @sentry/node - without channel injection | 127.08 KB |
| @sentry/aws-serverless | 100.28 KB |
| @sentry/cloudflare (withSentry) - minified | 205.45 KB |
| @sentry/cloudflare (withSentry) | 509.38 KB |
| @sentry/nextjs/cloudflare (withSentry) - minified | 222.71 KB |
feat(nextjs): Add @sentry/nextjs/cloudflare
feat(nextjs): Add @sentry/nextjs/cloudflare (#24998)
The new @sentry/nextjs/cloudflare entry point exports withSentry for the Worker entry of a Next.js app on Cloudflare Workers, for example .open-next/worker.js of OpenNext. It is withSentry of @sentry/cloudflare with the Next.js server handling added, so a Next.js app on Workers gets the same spans as on Node.js.
import * as Sentry from '@sentry/nextjs/cloudflare';
import handler from './.open-next/worker.js';
export default Sentry.withSentry(
env => ({
dsn: env.SENTRY_DSN,
tracesSampleRate: 1.0,
}),
handler,
);feat(server-utils): Add instrumentation for pi-durable (#24993)
The new piDurableIntegration traces agents built with pi-durable: each run, with its model requests and tool calls.
fix(core): Correct sleep clock drift on telemetry timestamps (#23054)
When a device sleeps, the performance.now() clock of the browser stops. Before this change, timestamps of spans and other telemetry recorded after the sleep could be too early. The SDK now detects this drift and corrects its time origin, also for spans created from performance entries. Span end times are now computed from the performance.now() duration since the span start, like in OpenTelemetry (#24903).
@sentry/nextjs/cloudflare (#25000)no-unsafe-random-apis rule (#25123)Work in this release was contributed by @zkasuran. Thank you for your contribution!
| Path | Size |
|---|---|
| @sentry/browser | 29.1 KB |
| @sentry/browser - with treeshaking flags | 27.27 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 27.18 KB |
| @sentry/browser (incl. Tracing) | 50.64 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 50.66 KB |
| @sentry/browser (incl. Tracing, Profiling) | 53.52 KB |
| @sentry/browser (incl. Tracing, Replay) | 89.44 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 78.56 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 94.04 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 106.71 KB |
| @sentry/browser (incl. Feedback) | 46.21 KB |
| @sentry/browser (incl. sendFeedback) | 34.02 KB |
| @sentry/browser (incl. FeedbackAsync) | 39.02 KB |
| @sentry/browser (incl. Metrics) | 30.1 KB |
| @sentry/browser (incl. Logs) | 30.38 KB |
| @sentry/browser (incl. Metrics & Logs) | 31 KB |
| @sentry/react | 30.89 KB |
| @sentry/react (incl. Tracing) | 52.9 KB |
| @sentry/vue | 36.95 KB |
| @sentry/vue (incl. Tracing) | 53.49 KB |
| @sentry/svelte | 29.13 KB |
| @sentry/remix (Remix 3 client bundle) | 55.5 KB |
| CDN Bundle | 30.79 KB |
| CDN Bundle (incl. Tracing) | 51.12 KB |
| CDN Bundle (incl. Logs, Metrics) | 32.93 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 53.03 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 72.9 KB |
| CDN Bundle (incl. Tracing, Replay) | 87.9 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 89.81 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 93.92 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 95.85 KB |
| CDN Bundle - uncompressed | 90.74 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 151.82 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 97.13 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 157.63 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 224.12 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 269.17 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 274.97 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 282.55 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 288.34 KB |
| @sentry/nextjs (client) | 55.21 KB |
| @sentry/sveltekit (client) | 51.01 KB |
| @sentry/core/server | 39.9 KB |
| @sentry/core/browser | 13.39 KB |
| @sentry/node | 147.31 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 81.61 KB |
| @sentry/node - without tracing | 91.77 KB |
| @sentry/node - without channel injection | 125.96 KB |
| @sentry/aws-serverless | 99.75 KB |
| @sentry/cloudflare (withSentry) - minified | 204.89 KB |
| @sentry/cloudflare (withSentry) | 508.03 KB |
| @sentry/nextjs/cloudflare (withSentry) - minified | 222.15 KB |
ref(core): Deprecate SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN
feat(core): Warn on repeated Sentry.init() and unbind the client on close() (#24962)
Sentry.init() now warns when it runs while a client is still active. For now, the new client still replaces the active client, but the active client is not closed, so state from both can mix. Call Sentry.init() once, or call await Sentry.close() before you call it again. Sentry.close() now unbinds the client it closes, so after close(), getClient() returns undefined, isInitialized() returns false, and a later init() sets up a new client. In @sentry/cloudflare, later requests no longer reuse the isolate's cached client once it is closed or closing. On the server, @sentry/nextjs and @sentry/remix now return the active client from a repeated init() call, not undefined.
code.file.path to use cache fill spans (#24988)init inside a request of @sentry/cloudflare (#24996)experimental_telemetry.metadata on gen_ai spans (#24721)beforeSendSpan null return warning (#24129)<details> <summary> <strong>Internal Changes</strong> </summary>
@sentry/conventions to 0.26.0 (#25073)isObjectLike for object guards (#25058)serverSpanHooks.ts (#24997)nuxt/server (#25093)</details>
Work in this release was contributed by @minwookshin. Thank you for your contribution!
| Path | Size |
|---|---|
| @sentry/browser | 28.91 KB |
| @sentry/browser - with treeshaking flags | 27.1 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 27 KB |
| @sentry/browser (incl. Tracing) | 50.31 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 50.31 KB |
| @sentry/browser (incl. Tracing, Profiling) | 53.22 KB |
| @sentry/browser (incl. Tracing, Replay) | 89.09 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 78.3 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 93.68 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 106.34 KB |
| @sentry/browser (incl. Feedback) | 46.01 KB |
| @sentry/browser (incl. sendFeedback) | 33.84 KB |
| @sentry/browser (incl. FeedbackAsync) | 38.82 KB |
| @sentry/browser (incl. Metrics) | 29.89 KB |
| @sentry/browser (incl. Logs) | 30.16 KB |
| @sentry/browser (incl. Metrics & Logs) | 30.81 KB |
| @sentry/react | 30.7 KB |
| @sentry/react (incl. Tracing) | 52.58 KB |
| @sentry/vue | 36.67 KB |
| @sentry/vue (incl. Tracing) | 53.12 KB |
| @sentry/svelte | 28.93 KB |
| @sentry/remix (Remix 3 client bundle) | 55.22 KB |
| CDN Bundle | 30.6 KB |
| CDN Bundle (incl. Tracing) | 50.85 KB |
| CDN Bundle (incl. Logs, Metrics) | 32.77 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 52.76 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 72.64 KB |
| CDN Bundle (incl. Tracing, Replay) | 87.64 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 89.55 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 93.65 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 95.58 KB |
| CDN Bundle - uncompressed | 90.29 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 151.14 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 96.72 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 156.96 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 223.61 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 268.45 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 274.25 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 281.83 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 287.62 KB |
| @sentry/nextjs (client) | 54.87 KB |
| @sentry/sveltekit (client) | 50.69 KB |
| @sentry/core/server | 39.7 KB |
| @sentry/core/browser | 13.2 KB |
| @sentry/node | 142.16 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 81.27 KB |
| @sentry/node - without tracing | 91.26 KB |
| @sentry/node - without channel injection | 120.82 KB |
| @sentry/aws-serverless | 99.31 KB |
| @sentry/cloudflare (withSentry) - minified | 204.13 KB |
| @sentry/cloudflare (withSentry) | 505.66 KB |
feat(sveltekit): Support stable SvelteKit 3
| Path | Size |
|---|---|
| @sentry/browser | 28.82 KB |
| @sentry/browser - with treeshaking flags | 27.03 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 26.93 KB |
| @sentry/browser (incl. Tracing) | 50.24 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 50.26 KB |
| @sentry/browser (incl. Tracing, Profiling) | 53.18 KB |
| @sentry/browser (incl. Tracing, Replay) | 88.91 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 78.15 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 93.5 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 106.16 KB |
| @sentry/browser (incl. Feedback) | 45.94 KB |
| @sentry/browser (incl. sendFeedback) | 33.76 KB |
| @sentry/browser (incl. FeedbackAsync) | 38.75 KB |
| @sentry/browser (incl. Metrics) | 29.82 KB |
| @sentry/browser (incl. Logs) | 30.1 KB |
| @sentry/browser (incl. Metrics & Logs) | 30.74 KB |
| @sentry/react | 30.63 KB |
| @sentry/react (incl. Tracing) | 52.54 KB |
| @sentry/vue | 36.63 KB |
| @sentry/vue (incl. Tracing) | 53.06 KB |
| @sentry/svelte | 28.86 KB |
| @sentry/remix (Remix 3 client bundle) | 54.47 KB |
| CDN Bundle | 30.49 KB |
| CDN Bundle (incl. Tracing) | 50.76 KB |
| CDN Bundle (incl. Logs, Metrics) | 32.68 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 52.65 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 72.47 KB |
| CDN Bundle (incl. Tracing, Replay) | 87.46 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 89.39 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 93.48 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 95.42 KB |
| CDN Bundle - uncompressed | 89.98 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 150.87 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 96.4 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 156.69 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 222.93 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 267.8 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 273.6 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 281.18 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 286.97 KB |
| @sentry/nextjs (client) | 55 KB |
| @sentry/sveltekit (client) | 50.65 KB |
| @sentry/core/server | 39.64 KB |
| @sentry/core/browser | 13.31 KB |
| @sentry/node | 141.36 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 81.27 KB |
| @sentry/node - without tracing | 91.12 KB |
| @sentry/node - without channel injection | 120.08 KB |
| @sentry/aws-serverless | 99.2 KB |
| @sentry/cloudflare (withSentry) - minified | 203.72 KB |
| @sentry/cloudflare (withSentry) | 505.28 KB |
chore(deps): dev dependency security fixes
Remix 3 support (alpha, may break in minor releases)
feat(nextjs): Add cache_origin span links to use cache hit spans (#24821)
A cache.get span for a "use cache" hit now carries a span link (sentry.link.type: 'cache_origin') to the cache.put span of the request that filled the cache entry, connecting the trace that reads a cached value to the trace that produced it.
fix(cloudflare): Don't treat DO constructor work as incoming RPC calls (#24829)
Durable Object constructors now run in their own isolation scope. When work that the constructor starts, for example a blockConcurrencyWhile callback, calls a method of the instance, that call is no longer treated as an incoming RPC call, so an error the instance catches itself is no longer reported as unhandled. As a result, Sentry.setTag(), setUser() and setContext() in a constructor now apply only to that constructor work. They no longer reach later fetch, RPC or alarm invocations, because the scope they used to write to is shared by every Durable Object and handler in the isolate. Use initialScope for static data, and set per-instance data in each handler.
fix(effect)!: Change peerDependency to v4 and fix currentSpan (#24940)
@sentry/effect now requires a stable Effect v4 release. Effect v4 beta and release candidate versions are no longer supported. @sentry/effect is in alpha, so this ships in a minor release.
client.sendEnvelope (#24896)<details> <summary> <strong>Internal Changes</strong> </summary>
</details>
Work in this release was contributed by @Shubham-Padkonde and @tobias-schnabel. Thank you for your contributions!
| Path | Size |
|---|---|
| @sentry/browser | 28.82 KB |
| @sentry/browser - with treeshaking flags | 27.03 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 26.93 KB |
| @sentry/browser (incl. Tracing) | 50.24 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 50.26 KB |
| @sentry/browser (incl. Tracing, Profiling) | 53.18 KB |
| @sentry/browser (incl. Tracing, Replay) | 88.91 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 78.15 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 93.5 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 106.16 KB |
| @sentry/browser (incl. Feedback) | 45.94 KB |
| @sentry/browser (incl. sendFeedback) | 33.76 KB |
| @sentry/browser (incl. FeedbackAsync) | 38.75 KB |
| @sentry/browser (incl. Metrics) | 29.82 KB |
| @sentry/browser (incl. Logs) | 30.1 KB |
| @sentry/browser (incl. Metrics & Logs) | 30.74 KB |
| @sentry/react | 30.63 KB |
| @sentry/react (incl. Tracing) | 52.54 KB |
| @sentry/vue | 36.63 KB |
| @sentry/vue (incl. Tracing) | 53.06 KB |
| @sentry/svelte | 28.86 KB |
| @sentry/remix (Remix 3 client bundle) | 54.47 KB |
| CDN Bundle | 30.49 KB |
| CDN Bundle (incl. Tracing) | 50.76 KB |
| CDN Bundle (incl. Logs, Metrics) | 32.68 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 52.65 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 72.47 KB |
| CDN Bundle (incl. Tracing, Replay) | 87.46 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 89.39 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 93.48 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 95.42 KB |
| CDN Bundle - uncompressed | 89.98 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 150.87 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 96.4 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 156.69 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 222.93 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 267.8 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 273.6 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 281.18 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 286.97 KB |
| @sentry/nextjs (client) | 55 KB |
| @sentry/sveltekit (client) | 50.65 KB |
| @sentry/core/server | 39.64 KB |
| @sentry/core/browser | 13.31 KB |
| @sentry/node | 141.34 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 81.25 KB |
| @sentry/node - without tracing | 91.1 KB |
| @sentry/node - without channel injection | 120.08 KB |
| @sentry/aws-serverless | 99.18 KB |
| @sentry/cloudflare (withSentry) - minified | 203.72 KB |
| @sentry/cloudflare (withSentry) | 505.28 KB |
fix(deps): runtime dependency security fixes
feat(hono): add orchestrion-based auto-instrumentation (#24497)
Hono is now instrumented automatically. Request spans are named after the matched Hono route, each middleware gets its own span, and errors thrown in handlers are captured.
feat(node/bun): Enable dedupeIntegration by default (#24794)
@sentry/node and @sentry/bun now include dedupeIntegration in their default integrations, like the browser, Deno, Vercel Edge and Cloudflare SDKs. When the same error is captured two times in a row, only the first event is sent. To keep the previous behavior, remove the integration: integrations: defaults => defaults.filter(integration => integration.name !== 'Dedupe').
feat(remix): Instrument Remix 3 server requests via fetch-router (#24801)
On Remix 3, the SDK now adds the matched route as http.route, the response status and a low-cardinality name to the http.server span of each fetch-router request. Start the app with --import @sentry/remix/v3/node in place of --import remix/node-tsx.
bunRuntimeMetricsIntegration (#24892)fmt / parameterize messages (#24770)next is called (#24854)rolldownOptions in instrumentation file plugin (#24863)<details> <summary> <strong>Internal Changes</strong> </summary>
external label on PRs of external contributors (#24825)dedupeIntegration (#24893)test-utils/cloudflare (#24815)</details>
Work in this release was contributed by @nabi-noor, @LuccaRebelloToledo, @andasan, @breken-ai, @EmileBrunelle, and @diobriggs. Thank you for your contributions!
| Path | Size |
|---|---|
| @sentry/browser | 28.68 KB |
| @sentry/browser - with treeshaking flags | 27 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 26.9 KB |
| @sentry/browser (incl. Tracing) | 50.1 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 50.12 KB |
| @sentry/browser (incl. Tracing, Profiling) | 53.03 KB |
| @sentry/browser (incl. Tracing, Replay) | 88.76 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 78.12 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 93.35 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 106.02 KB |
| @sentry/browser (incl. Feedback) | 45.79 KB |
| @sentry/browser (incl. sendFeedback) | 33.62 KB |
| @sentry/browser (incl. FeedbackAsync) | 38.62 KB |
| @sentry/browser (incl. Metrics) | 29.66 KB |
| @sentry/browser (incl. Logs) | 29.94 KB |
| @sentry/browser (incl. Metrics & Logs) | 30.59 KB |
| @sentry/react | 30.47 KB |
| @sentry/react (incl. Tracing) | 52.41 KB |
| @sentry/vue | 36.04 KB |
| @sentry/vue (incl. Tracing) | 52.62 KB |
| @sentry/svelte | 28.71 KB |
| CDN Bundle | 30.45 KB |
| CDN Bundle (incl. Tracing) | 50.73 KB |
| CDN Bundle (incl. Logs, Metrics) | 32.65 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 52.62 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 72.42 KB |
| CDN Bundle (incl. Tracing, Replay) | 87.42 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 89.35 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 93.45 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 95.38 KB |
| CDN Bundle - uncompressed | 89.89 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 150.82 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 96.31 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 156.63 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 222.84 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 267.74 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 273.54 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 281.12 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 286.91 KB |
| @sentry/nextjs (client) | 54.6 KB |
| @sentry/sveltekit (client) | 50.52 KB |
| @sentry/core/server | 39.05 KB |
| @sentry/core/browser | 13.31 KB |
| @sentry/node | 140.93 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 81.07 KB |
| @sentry/node - without tracing | 90.77 KB |
| @sentry/node - without channel injection | 119.77 KB |
| @sentry/aws-serverless | 98.88 KB |
| @sentry/cloudflare (withSentry) - minified | 201.85 KB |
| @sentry/cloudflare (withSentry) | 502.08 KB |
One column per quarter.