NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm
npm, #3252 most downloaded on npm
Official Sentry Webpack plugin
Latest stable
11.12.0
Last release 12 days ago
10 Nov 2026
Release timing varies
gaps range from 8 days to 3 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
149 releases · first in 2017
Drag across the ruler to compare, or tap a release to open it.
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)<details> <summary><strong>Internal Changes</strong></summary>
@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)</details>
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 |
Your coding agent can read these notes before it upgrades. Set up the MCP server →
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)<details> <summary><strong>Internal Changes</strong></summary>
canaryVariants (#25866)requiresParentSpan in favor of onlyIfParent (#25926)canaryVariants (#25865)nuxt-5 (tunnel-dev) e2e variant optional (#26004)</details>
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)<details> <summary><strong>Internal Changes</strong></summary>
ServerRequestOptions type across runtimes (#25579)GEN_AI_EXTRACT op from @sentry/conventions (#25734)</details>
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 ([#25601](https://github.com/getsentry/sentry-javascript/pull/25601))
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)<details> <summary> <strong>Internal Changes</strong> </summary>
@types/node to 20 (#25501).bin scripts (#25635)</details>
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)<details> <summary> <strong>Internal Changes</strong> </summary>
</details>
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 |
(deps) Bump @sentry/bundler-plugins to ^10.76.0 by @Lms24 in #954
The Sentry bundler plugins are moving to our main sentry-javascript monorepo and will be bumped to version 11.0.0 with the next SDK major release. In
The Sentry bundler plugins are moving to our main sentry-javascript monorepo and
will be bumped to version 11.0.0 with the next SDK major release.
In preparation, we've already ported the @sentry/bundler-plugin-core and sentry/babel-plugin-component-annotatepackages, which are now merged and called @@sentry/bundler-plugins.
If you're using any of our bundler plugins (e.g. @sentry/vite-plugin), nothing will change for you at the moment.
If you encounter any problems, please open an issue in getsentry/sentry-javascript going forward.
Thank you!
This repo will be closed after the v11 bump.
Related PRs:
@sentry/bundler-plugins core package by @timfish in #938webpack import lazy to support rspack-only projects by @s1gr1d in #940ts-node usage by @timfish in #931(babel) Auto-inject sentry-label from static text children by @antonis in #925
(webpack) Await source map deletion before signaling build completion by @andreiborza in #918
(deps) Bump vulnerable webpack version by @chargome in #909
mapDir to rewriteSourcesHook by @chargome in #908crypto.randomUUID rather than uuid by @timfish in #892Align engines with Node support by @timfish in #893
Bump @sentry/cli from 2.57.0 to 2.58.5 by @andreiborza in #890
Updating minimatch by @isaacs in #885
globFiles helper by @andreiborza in #883Track major version for Vite and Rollup by @timfish in #867
(telemetry) Add bundler-major-version tag to webpack by @chargome in #857
Inject component annotations into HTML elements rather than React components by @timfish in #851
docs: Add RELEASE.md to document release process
sourcemap.ignore values for injecting debugIDs (#836)<details> <summary> <strong>Internal Changes</strong> </summary>
fix(vite): Ensure sentryVitePlugin always returns an array of plugins
chore(deps): Update glob to 10.5.0
fix(core): Stop awaiting build start telemetry to avoid breaking module federation builds
docs: added info on debug flag value precedence
feat(core): Explicitly allow undefined as value for authToken option
feat(core): Extend deploy option to allow opting out of automatic deploy creation
feat(core): Add prepareArtifacts option for uploading sourcemaps
fix(react-native): Enhance fragment detection for indirect references
feat(deps): Bump @sentry/cli to 2.51.0 #786
fix(core): Make moduleMetadata injection snippet ES5-compliant
moduleMetadata injection snippet ES5-compliant (#774)fix(core): Make plugin inject ES5-friendly code
Deprecated function getBuildInformation has been removed
fix(core): Observe and handle Sentry CLI sourcemap upload failures
feat(core): Don't add debugIdUploadPlugin when sourcemaps option is disabled
feat(core): Add hook to customize source map file resolution
fix: Replace existing debug ID comments
createSentryBuildPluginManager (#714)fix(webpack5): All esm files must have .mjs postfix
esm files must have .mjs postfix (#721)feat(webpack): Add @sentry/webpack-plugin/webpack5 export for webpack 5.1+ and compatible environments
@sentry/webpack-plugin/webpack5 export for webpack 5.1+ and compatible environments (#715)Pre-release to test primitive APIs.
Pre-release to test primitive APIs.
Pre-release to test primitive APIs.
Pre-release to test primitive APIs.
ref: Remove deprecated use of useArtifacBundles
useArtifacBundles (#707)feat(core): Use path instead of debug IDs as artifact names for debug ID upload
contentHash for debug ID hash (#702)feat(annotation): Handle JSX member expressions
SENTRY_AUTH_TOKEN, SENTRY_ORG and SENTRY_PROJECT in passThroughEnv when using Turborepo (#675)deps: Bump @sentry/cli to 2.42.2
feat(core): Accept and await a promise in sourcemaps.filesToDeleteAfterUpload
sourcemaps.filesToDeleteAfterUpload (#677)deps: Bump @sentry/cli to 2.41.1
@sentry/cli to 2.41.1 (#671)fix(core): Disable release creation and source maps upload in dev mode
fix(core): Disable release creation and source maps upload in dev mode (#666)
This fix disables any external calls to the Sentry API for managing releases or uploading source maps, when detecting that the plugin is running in dev-mode. While this rarely actually happened, it also polluted the dev server output with unnecessary logs about missing auth tokens, which shouldn't be required in dev mode.
feat(webpack): Gate forced process exit behind experimental flag
Deprecated options have been removed:
Injected code will now use let, which was added in ES6 (ES2015).
This means that ES6 is the minimum JavaScript version that the Sentry bundler plugins support.
Deprecated options have been removed:
deleteFilesAfterUpload - Use filesToDeleteAfterUpload insteadbundleSizeOptimizations.excludePerformanceMonitoring - Use bundleSizeOptimizations.excludeTracing instead_experiments.moduleMetadata - Use moduleMetadata insteadcleanArtifacts - Did not do anythingbundleSizeOptimizations.excludeTracing (#644)Work in this release contributed by @jdelStrother. Thank you for your contribution!
fix(v2/core): Make moduleMetadata injection code ES5-compliant
moduleMetadata injection code ES5-compliant (#773)chore(deps): bump nanoid from 3.3.6 to 3.3.8
globalThis (#636)Work in this release contributed by @conor-ob. Thank you for your contribution!
deps: Bump @sentry/cli to 2.39.1 and require specific version
@sentry/cli to 2.39.1 and require specific version (#632)fix(core): Use sha256 instead of md5 to generate uuids from string
fix: Ignore stderr output from git command
@sentry/cli to 2.36.1 (#609)feat(react-component-annotate): Handle function body returning a ternary
Work in this release contributed by @Thristhart. Thank you for your contribution!
fix(core): Always instantiate global Error class in injected code snippets
Error class in injected code snippets (#594)fix: Disable debug ID injection when sourcemaps.disable is set
sourcemaps.disable is set (#589)fix: Use sourcemaps.disable to disable debug ID upload instead of legacy upload
sourcemaps.disable to disable debug ID upload instead of legacy upload (#587)feat: Add bundleSizeOptimizations.excludeTracing option as alias to deprecated bundleSizeOptimizations.excludePerformanceMonitoring
@sentry/cli to 2.33.1 (#581)bundleSizeOptimizations.excludeTracing option as alias to deprecated bundleSizeOptimizations.excludePerformanceMonitoring (#582)post order of sentry-vite-release-injection-plugin to avoid breaking @rollup/plugin-commonjs step (#578)fix: Do not delete files before all upload tasks executed
Work in this release contributed by @tyouzu1. Thank you for your contribution!
fix: Use sequential and post order for vite artifact deletion
sequential and post order for vite artifact deletion (#568)Work in this release contributed by @tyouzu1. Thank you for your contribution!
feat(telemetry): Collect whether applicationKey is set
feat: Export esbuild plugin as default
One column per quarter.