NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm
npm, #2494 most downloaded on npm
Sentry Node SDK using OpenTelemetry for performance instrumentation
Latest stable
11.12.0
Last release 12 days ago
10 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
755 releases · first in 2018
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 |
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 da…
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)<details> <summary> <strong>Internal Changes</strong> </summary>
@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)</details>
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` ([#24998](https://github.com/getsentry/sentry-javascript/pull/24998))
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).
<details> <summary> <strong>Internal Changes</strong> </summary>
@sentry/nextjs/cloudflare (#25000)no-unsafe-random-apis rule (#25123)</details>
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 |
feat(server-utils): Auto-instrument MCP servers via orchestrion ([#24529](https://github.com/getsentry/sentry-javascript/pull/24529))
feat(server-utils): Auto-instrument MCP servers via orchestrion (#24529)
A new default mcpServerIntegration wraps every McpServer instance (from @modelcontextprotocol/server and @modelcontextprotocol/sdk) when it is created. You no longer need to call wrapMcpServerWithSentry manually. You can still call wrapMcpServerWithSentry to override options, for example recordInputs: false.
feat(node): Support Prisma 8 in prismaIntegration (#24682)
prismaIntegration now creates a prisma:client:operation span for each Prisma 8 ORM call, with the database query spans nested below it. No code changes are necessary.
feat(server-utils): Add TypeSafe integration (#24703)
A new default typesafeIntegration creates a gen_ai.evaluate span for each TypeSafe Jev call through @typesafe-ai/sdk (TypeSafeClient.systemOne). For runtimes without auto-instrumentation, use instrumentTypeSafeClient().
feat(server-utils): Instrument Vercel AI experimental_evaluate (#24694)
Vercel AI experimental_evaluate calls now create a gen_ai.evaluate span, with the state and questions as input messages and the answers as output messages.
onError callback to showReportDialog (#24780)registerHooks path) (#24705)@opentelemetry/api via the SDK on SvelteKit 3 (#24736)<details> <summary> <strong>Internal Changes</strong> </summary>
@sentry/conventions to 0.24.0 (#24645)@cloudflare/think (#24660)</details>
Work in this release was contributed by @camc314, @ihsraham, @zkasuran, @Shubham-Padkonde, and @itz-puneet. Thank you for your contributions!
| Path | Size |
|---|---|
| @sentry/browser | 28.55 KB |
| @sentry/browser - with treeshaking flags | 26.86 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 26.76 KB |
| @sentry/browser (incl. Tracing) | 49.95 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 49.97 KB |
| @sentry/browser (incl. Tracing, Profiling) | 52.91 KB |
| @sentry/browser (incl. Tracing, Replay) | 88.63 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 77.99 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 93.23 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 105.87 KB |
| @sentry/browser (incl. Feedback) | 45.67 KB |
| @sentry/browser (incl. sendFeedback) | 33.49 KB |
| @sentry/browser (incl. FeedbackAsync) | 38.49 KB |
| @sentry/browser (incl. Metrics) | 29.54 KB |
| @sentry/browser (incl. Logs) | 29.8 KB |
| @sentry/browser (incl. Metrics & Logs) | 30.45 KB |
| @sentry/react | 30.36 KB |
| @sentry/react (incl. Tracing) | 52.28 KB |
| @sentry/vue | 35.88 KB |
| @sentry/vue (incl. Tracing) | 52.44 KB |
| @sentry/svelte | 28.58 KB |
| CDN Bundle | 30.29 KB |
| CDN Bundle (incl. Tracing) | 50.56 KB |
| CDN Bundle (incl. Logs, Metrics) | 32.51 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 52.49 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 72.27 KB |
| CDN Bundle (incl. Tracing, Replay) | 87.27 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 89.19 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 93.29 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 95.21 KB |
| CDN Bundle - uncompressed | 89.51 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 150.42 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 95.93 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 156.24 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 222.46 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 267.34 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 273.14 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 280.73 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 286.52 KB |
| @sentry/nextjs (client) | 54.47 KB |
| @sentry/sveltekit (client) | 50.39 KB |
| @sentry/core/server | 39.05 KB |
| @sentry/core/browser | 13.31 KB |
| @sentry/node | 138.55 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 80.94 KB |
| @sentry/node - without tracing | 88.76 KB |
| @sentry/node - without channel injection | 117.43 KB |
| @sentry/aws-serverless | 96.81 KB |
| @sentry/cloudflare (withSentry) - minified | 201.77 KB |
| @sentry/cloudflare (withSentry) | 501.97 KB |
fix(nuxt): dev dependency security fixes - bump nuxt to 3.21.11
Version 11.0.0 marks a major release of the Sentry JavaScript SDKs containing breaking changes.
The goal of this release is to be better compatible with OpenTelemetry, make our integrations work across Node.js, Cloudflare, Bun and Deno through run-time and build-time instrumentation, and make span streaming and more permissive data collection the default.
Please carefully read through the migration guide in the Sentry docs on how to upgrade from version 10 to version 11. Make sure to select your specific platform/framework in the top left corner: https://docs.sentry.io/platforms/javascript/migration/v10-to-v11/
A comprehensive migration guide outlining all changes can be found within the Sentry JavaScript SDK Repository: https://github.com/getsentry/sentry-javascript/blob/develop/MIGRATION.md
--require (#22513)http.* span attributes (#23574)net. span attributes (#23301)skipOpenTelemetrySetup with enableOpenTelemetrySetup (#23199)http.target span attribute (#23575)>=20.19.0 as minimum supported version (#22558)handler span op for terminal request handlers (#22871)middleware span op for web-server middleware (#22852)function op for framework functions (#23047)honoIntegration (#22480)@sentry/server-utils (#22954)@sentry/server-utils (#22959)@sentry/server-utils (#22962)@sentry/server-utils (#22953)@sentry/server-utils (#22964)@sentry/server-utils (#22960)router span op for frontend routers (#23086)ui.mount and function span ops for tracing decorators (#22667)sourceMapsUploadOptions build option (#23630)nodejs18.x from the Lambda layer runtimes (#23155)disableAwsContextPropagation option (#23170)faas.invocation_id and cloud.resource_id (#24384)startTrace option and tryPatchHandler (#23219)function.aws span op for Lambda invocations (#22677)queue Span OP for AWS SQS & SNS messaging (#23757)profilesSampleRate (#23220)performance.{mark,measure} spans into new userTimingSpansIntegration (#22554)interactionsIntegration (#23295)bfcacheIntegration to bfcacheMetricsIntegration (#23776)browser.navigation.type exactly as web-vitals does (#24479)unhandled instead of crashed for unhandled errors (#22475)page (#21245)browser.paint span op for paint entries (#22673)trackFetchStreamPerformance flag (#23172)navigationStart fallback and pagehide listeners (#21293)beforeSpanEnd callback in favor of beforeIdleSpanEnd hook (#22818)webpack5 entry point (#24455)function span op for cron, email and workflow steps (#22703)instrumentD1WithSentry export (#23153)SentryTracerProvider for OpenTelemetry interop (#23300)span from ScopeData (#23225)attachStacktrace to true (#22572)genAI defaults to collect it by default (#22706)dataCollection.httpBodies (#22834)beforeSendSpan compatible with streamed spans by default (#22643)tracePropagationTargets matching case-insensitive (#23534)enableMetrics option (#23321)enableTruncation flag and all AI integrations truncation logic (#23045)endTimestamp from SentrySpanArguments (#23269)kind for spans, move to sentry.kind attribute (#22528)queryParams in favor of urlQueryParams (#22711)scope.clear() method (#23230)sendDefaultPii in favor of dataCollection (#22918)sentry.sdk_meta.gen_ai.input.messages.original_length attribute (#22516)streamGenAiSpans flag (#22495)_experiments.enableLogs option (#22808)inboundFiltersIntegration (#23008)instrumentLangGraph (#22485)StreamedSpanJSON from spanToJSON (#23238)url.full, url.fragment and url.query (#22547)rpc span op for tRPC spans (#22914)router span op for backend router layers (#23088)enableLogs option (#23319)attributes in sampling context required (#24153)attributes required on ScopeData (#23277)getComponentName to browser-utils (#23716)getLocationHref export from core (#23717)startIdleSpan from server exports (#23420)supportsDOMError, supportsHistory, supportsReportingObserver exports (#23718)supportsNativeFetch export (#23719)addAutoIpAddressToUser export (#23174)htmlTreeAsString from core (#23715)patchExpressModule(options) signature (#23175)spanOrigin argument from instrumentFetchRequest (#23177)enableMetrics / beforeSendMetric flags (#23276)gen_ai.request.available_tools to gen_ai.tool.definitions (#22820)gen_ai.system to gen_ai.provider.name (#22814)gen_ai.tool.input to gen_ai.tool.call.arguments (#22821)gen_ai.tool.output to gen_ai.tool.call.result (#22822)code.* and fs_error span attributes (#23401)gen_ai.tool.type span attribute (#22824)tracePropagation vs propagateTrace option names (#23649)router span op for frontend routers (#23086)function and ui.task span ops for route hooks and runloop (#22669)'ui.ember.component.render' to ui.render (#23587)function.gcp op for GCP functions (#23050)grpc span op for GCP gRPC calls (#22666)http.client span op for GCP HTTP requests (#22660)function span op for setup & lifecycle handlers (#22897)vercel- prefix from default environment and deploys (#24197)middleware span op for Next.js middleware (#22674)withSentryConfig to @sentry/nextjs/config (#23628)profilesSampleRate and profilesSampler) (#23216)shouldHandleError from setupExpressErrorHandler (#23732)<3.21.0 (#22752)init, preload entry points and preloadOpenTelemetry (#23074)db.query and db span ops for Redis (#22690)@sentry/node-core back into @sentry/node (#22418)@opentelemetry/instrumentation dependency (#22843)prismaInstrumentation option (#22898)setupFastifyErrorHandler (#23460)sourceMapsUploadOptions module option (#22875)setupEventContextTrace (#23226).prefetch suffix from inferred HTTP span ops (#23094)faas.trigger (#23053)SentrySpanProcessor & SentrySampler (#22557)contexts.otel.resource (#23013)OpenTelemetrySpanContext (#23285)setOpenTelemetryContextAsyncContextStrategy() (#22586)prune-profiler-binaries bin script (#23104)ui.* ops for component lifecycles (#23085)url.path.params.<key> attribute (#23506)@sentry/react-router/vite (#23509)@sentry/remix/vite (#23989)router span op for backend router layers (#23088)queue.* span ops for messaging spans (#23042)otlpIntegration to openTelemetryIntegration (#23938)cache spans (#23933)ai.* and gen_ai.prompt attributes (#23410)db.* span attributes (#23408)net.* span attributes on db and messaging spans (#23422)koa.name on Koa spans (#24420)function.gcp op for firebase function spans (#23022)ui.* ops for component lifecycles (#23085)router span op for frontend routers (#23086)sourceMapsUploadOptions Vite plugin option (#22874)sentrySvelteKit off the runtime entry to @sentry/sveltekit/vite (#23247)@sentry/tanstackstart utility package (#22427)@sentry/types (#23073)ui.* ops for component lifecycles (#23085)browser request timing span names (#24602)ui span names (#24578)browser.navigation.type on the pageload span (#24509)sentry.is_localhost on every streamed span (#24597)@OnEvent function span name (#24588)function spans (#24567)function spans (#24568)url.full and url.path attributes to http.server spans (#22496)TraceMethod span name and preserve description (#24239)function.aws span names (#24072)bfcacheIntegration (#22397)bunHttpServerIntegration (#22870)maxRequestBodySize (#24233)@sentry/bundler-plugins (#22392)function span names and preserve span descriptions (#24246)CollectBehavior shorthand for dataCollection.httpHeaders (#24336)afterEnvelope and flushTraceSpans client hooks (#23136)filterUrlQuery util (#23060)refs field to Scope for non-serialized references (#23236)safeCallback helper for isolating user-provided callbacks (#23760)dataCollection.queues option (#24087)getActiveSpan (#23222)ok in transaction mode (#22521)beforeSendTransaction and ignoreTransactions and log warnings if used with streaming (#22908)forceTransaction option in StartSpanOptions (#23821)cache.* span names (#23830)sentry.op attribute to samplers (#23354)callback_error client reports for throwing user callbacks (#23903)getActiveSpan instead of _getSpanFromScope for logs & metrics (#23223)maxRequestBodySize to capture HTTP bodies (#22912)function.gcp span names (#24060).query() handlers (#23283)code.function.name attribute to function spans for description inference (#24305)function span names (#24319)function span names for server components (#24333)use cache functions (#24302)eveConversationHook() to link eve sessions as Sentry conversations (#24247)getInstrumentedModuleNames() (#24254)expressIntegration (#23464)ignoreStatusCodes in http integrations (#23973)nuxt dev on Nitro v3 (Nuxt 5) (#23644)@sentry/react/react-router entry with automatic React Router hooks (#24014)function span names (#24323)db span op for generic-pool acquire spans (#23213)otlpIntegration to connect Sentry to an existing OpenTelemetry setup (#23099)prime, clear and clearAll (#23212)function.gcp span names for firebase functions (#24069)setAsyncLocalStorageAsyncContextStrategy (#22889)code.function.name attribute to solid-start function spans (#24316)function spans (#24341)dataCollection.userInfo for trackClientIp (#24091)timeOrigin (#23502)dataCollection.httpHeaders.request in httpContextIntegration (#23025)onFCP and rebase FP against activationStart (#23032)runtime option (#24487)node:http in bunHttpServerIntegration (#24584)faas.queue op on queue consumer spans (#22664)dataCollection.urlQueryParams to url.full and url.query (#23061)beforeSendSpan callback throws (#22836)url.full on request data and navigate errors (#23143)supabaseIntegration from ending spans twice (#24126)function (#24263)routerService.recognize() against unrecognizable URLs (#24120)silent to the SDK's own build logs (#23621)tracesSampler for edge middleware root spans (#22232)[lng] locale routes and prefer narrower routes over catch-alls (#23520)NodeClient con… (#24293)#imports/server in addMiddlewareImports() (#24150)moduleSideEffects in Nuxt 5 / Nitro 3 (#24309)require() of JSON working on Deno (#24412)db.query.text (#24089)resolveId options in the orchestrion Rollup plugin (#24286)gen_ai.tool.definitions on dataCollection.genAI.inputs (#24088)db.query.summary (#23853)event.platform (#24241)include from RequestData (#22906)spanStreamingIntegration tree-shakeable via __SENTRY_TRACING__ flag (#22835)ignoreSentryInternalFrames (#23200)messages.countTokens in Anthropic AI (#23205)models.retrieve / models.get in Anthropic AI (#23206)<details> <summary> <strong>Internal Changes</strong> </summary>
sideEffects: false externals (#23674)getPerformanceIntegrations (#24533)no-unfiltered-url-attributes rule (#23144)sentry.previous_trace TODOs to v12 (#24392)attribution.sessionUrl to false for claude code (#24021)_trackNavigator TODO to v12 (#24385)getClient usage when avoidable (#23135)@sentry/conventions to 0.19.0 (#23161)@sentry/conventions to 0.20.0 (#23544)@solidjs/router to v1 in solidstart test apps (#23164)@sentry/bundler-plugins into the aws-serverless lambda test app (#23159)next from 14.2.35 to 15.5.21 (#22629)lint:types to packages (#23578)injectChannelSubscribers (#23033)@nuxt/kit (#23303)enableLogs and enableMetrics (#23617)db.query.text in the v11 beforeSendSpan example (#23957)@sentry/core entrypoint split (#23990)@sentry/core (#23006)httpHeaders shape in dataCollection baseline (#23169)Note truncated.
feat(browser)!: Report `browser.navigation.type` exactly as web-vitals does ([#24479](https://github.com/getsentry/sentry-javascript/pull/24479))
browser.navigation.type exactly as web-vitals does (#24479)The browser.navigation.type attribute now reports the same values as the web-vitals library.
The global-fetch integrations in @sentry/bun, @sentry/cloudflare, @sentry/deno and @sentry/vercel-edge now share one implementation. All four gain a tracePropagation option (default true) to stop injecting sentry-trace and baggage without also turning off spans. In @sentry/deno, fetch breadcrumbs are now recorded by fetchIntegration instead of breadcrumbsIntegration, matching the other runtime SDKs.
Adds instrumentation for the Groq and Together AI SDKs, enabled by default.
webpack5 entry point (#24455)The Sentry webpack plugin now requires webpack >=5.1 and is only exported from the package root.
runtime option (#24487)require() of JSON working on Deno (#24412)<details> <summary> <strong>Internal Changes</strong> </summary>
getPerformanceIntegrations (#24533)test-utils/cli (#24279)</details>
Work in this release was contributed by @chiliec, @ihsraham, @msnelling, and @oesnuj. Thank you for your contributions!
| Path | Size |
|---|---|
| @sentry/browser | 28.39 KB |
| @sentry/browser - with treeshaking flags | 26.7 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 26.6 KB |
| @sentry/browser (incl. Tracing) | 49.36 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 49.38 KB |
| @sentry/browser (incl. Tracing, Profiling) | 52.3 KB |
| @sentry/browser (incl. Tracing, Replay) | 87.98 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 77.33 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 92.56 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 105.23 KB |
| @sentry/browser (incl. Feedback) | 45.51 KB |
| @sentry/browser (incl. sendFeedback) | 33.33 KB |
| @sentry/browser (incl. FeedbackAsync) | 38.33 KB |
| @sentry/browser (incl. Metrics) | 29.38 KB |
| @sentry/browser (incl. Logs) | 29.63 KB |
| @sentry/browser (incl. Metrics & Logs) | 30.28 KB |
| @sentry/react | 30.11 KB |
| @sentry/react (incl. Tracing) | 51.62 KB |
| @sentry/vue | 35.48 KB |
| @sentry/vue (incl. Tracing) | 51.61 KB |
| @sentry/svelte | 28.42 KB |
| CDN Bundle | 30.05 KB |
| CDN Bundle (incl. Tracing) | 49.87 KB |
| CDN Bundle (incl. Logs, Metrics) | 32.25 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 51.81 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 71.99 KB |
| CDN Bundle (incl. Tracing, Replay) | 86.54 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 88.42 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 92.44 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 94.41 KB |
| CDN Bundle - uncompressed | 88.94 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 148.88 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 95.36 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 154.69 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 221.73 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 265.64 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 271.44 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 279.02 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 284.81 KB |
| @sentry/nextjs (client) | 53.9 KB |
| @sentry/sveltekit (client) | 49.79 KB |
| @sentry/core/server | 39.03 KB |
| @sentry/core/browser | 13.31 KB |
| @sentry/node | 130.25 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 80.23 KB |
| @sentry/node - without tracing | 87.82 KB |
| @sentry/node - without channel injection | 109.53 KB |
| @sentry/aws-serverless | 95.9 KB |
| @sentry/cloudflare (withSentry) - minified | 199.88 KB |
| @sentry/cloudflare (withSentry) | 497.4 KB |
One column per quarter.