Releases: getsentry/sentry-javascript
9.40.0
Important Changes
- feat(browser): Add debugId sync APIs between web worker and main thread (#16981)
This release adds two Browser SDK APIs to let the main thread know about debugIds of worker files:
webWorkerIntegration({worker})
to be used in the main threadregisterWebWorker({self})
to be used in the web worker
// main.js
Sentry.init({...})
const worker = new MyWorker(...);
Sentry.addIntegration(Sentry.webWorkerIntegration({ worker }));
worker.addEventListener('message', e => {...});
// worker.js
Sentry.registerWebWorker({ self });
self.postMessage(...);
- feat(core): Deprecate logger in favor of debug (#17040)
The internal SDK logger
export from @sentry/core
has been deprecated in favor of the debug
export. debug
only exposes log
, warn
, and error
methods but is otherwise identical to logger
. Note that this deprecation does not affect the logger
export from other packages (like @sentry/browser
or @sentry/node
) which is used for Sentry Logging.
import { logger, debug } from '@sentry/core';
// before
logger.info('This is an info message');
// after
debug.log('This is an info message');
- feat(node): Add OpenAI integration (#17022)
This release adds official support for instrumenting OpenAI SDK calls in with Sentry tracing, following OpenTelemetry semantic conventions for Generative AI. It instruments:
client.chat.completions.create()
- For chat-based completionsclient.responses.create()
- For the responses API
// The integration respects your `sendDefaultPii` option, but you can override the behavior in the integration options
Sentry.init({
dsn: '__DSN__',
integrations: [
Sentry.openAIIntegration({
recordInputs: true, // Force recording prompts
recordOutputs: true, // Force recording responses
}),
],
});
Other Changes
- feat(node-core): Expand
@opentelemetry/instrumentation
range to cover0.203.0
(#17043) - fix(cloudflare): Ensure errors get captured from durable objects (#16838)
- fix(sveltekit): Ensure server errors from streamed responses are sent (#17044)
Work in this release was contributed by @0xbad0c0d3 and @tommy-gilligan. Thank you for your contributions!
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.23 KB |
@sentry/browser - with treeshaking flags | 21.82 KB |
@sentry/browser (incl. Tracing) | 38.73 KB |
@sentry/browser (incl. Tracing, Replay) | 75.96 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 66 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 80.56 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 92.37 KB |
@sentry/browser (incl. Feedback) | 39.53 KB |
@sentry/browser (incl. sendFeedback) | 27.8 KB |
@sentry/browser (incl. FeedbackAsync) | 32.58 KB |
@sentry/react | 24.94 KB |
@sentry/react (incl. Tracing) | 40.64 KB |
@sentry/vue | 27.57 KB |
@sentry/vue (incl. Tracing) | 40.48 KB |
@sentry/svelte | 23.25 KB |
CDN Bundle | 24.59 KB |
CDN Bundle (incl. Tracing) | 38.49 KB |
CDN Bundle (incl. Tracing, Replay) | 73.65 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 78.99 KB |
CDN Bundle - uncompressed | 71.72 KB |
CDN Bundle (incl. Tracing) - uncompressed | 114.12 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 225.58 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 238.1 KB |
@sentry/nextjs (client) | 42.64 KB |
@sentry/sveltekit (client) | 39.14 KB |
@sentry/node | 165.02 KB |
@sentry/node - without tracing | 97.85 KB |
@sentry/aws-serverless | 125.35 KB |
9.39.0
Important Changes
- feat(browser): Add
afterStartPageloadSpan
hook to improve spanId assignment on web vital spans (#16893)
This PR adds a new afterStartPageloadSpan lifecycle hook to more robustly assign the correct pageload span ID to web vital spans, replacing the previous unreliable "wait for a tick" approach with a direct callback that fires when the pageload span becomes available.
- feat(nextjs): Client-side parameterized routes (#16934)
This PR implements client-side parameterized routes for Next.js by leveraging an injected manifest within the existing app-router instrumentation to automatically parameterize all client-side transactions (e.g. users/123
and users/456
now become become users/:id
).
- feat(node): Drop 401-404 and 3xx status code spans by default (#16972)
This PR changes the default behavior in the Node SDK to drop HTTP spans with 401-404 and 3xx status codes by default to reduce noise in tracing data.
Other Changes
- feat(core): Prepend vercel ai attributes with
vercel.ai.X
(#16908) - feat(nextjs): Add
disableSentryWebpackConfig
flag (#17013) - feat(nextjs): Build app manifest (#16851)
- feat(nextjs): Inject manifest into client for turbopack builds (#16902)
- feat(nextjs): Inject manifest into client for webpack builds (#16857)
- feat(node-native): Add option to disable event loop blocked detection (#16919)
- feat(react-router): Ensure http.server route handling is consistent (#16986)
- fix(core): Avoid prolonging idle span when starting standalone span (#16928)
- fix(core): Remove side-effect from
tracing/errors.ts
(#16888) - fix(core): Wrap
beforeSendLog
inconsoleSandbox
(#16968) - fix(node-core): Apply correct SDK metadata (#17014)
- fix(react-router): Ensure that all browser spans have
source=route
(#16984)
Work in this release was contributed by @janpapenbrock. Thank you for your contribution!
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.32 KB |
@sentry/browser - with treeshaking flags | 21.83 KB |
@sentry/browser (incl. Tracing) | 38.82 KB |
@sentry/browser (incl. Tracing, Replay) | 76.05 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 66.03 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 80.65 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 92.46 KB |
@sentry/browser (incl. Feedback) | 39.63 KB |
@sentry/browser (incl. sendFeedback) | 27.89 KB |
@sentry/browser (incl. FeedbackAsync) | 32.67 KB |
@sentry/react | 25.01 KB |
@sentry/react (incl. Tracing) | 40.74 KB |
@sentry/vue | 27.65 KB |
@sentry/vue (incl. Tracing) | 40.56 KB |
@sentry/svelte | 23.34 KB |
CDN Bundle | 24.59 KB |
CDN Bundle (incl. Tracing) | 38.51 KB |
CDN Bundle (incl. Tracing, Replay) | 73.67 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 79.01 KB |
CDN Bundle - uncompressed | 71.82 KB |
CDN Bundle (incl. Tracing) - uncompressed | 114.25 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 225.76 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 238.27 KB |
@sentry/nextjs (client) | 42.72 KB |
@sentry/sveltekit (client) | 39.25 KB |
@sentry/node | 163.76 KB |
@sentry/node - without tracing | 97.98 KB |
@sentry/aws-serverless | 125.47 KB |
9.38.0
Important Changes
- chore: Add craft entry for @sentry/node-native (#16907)
This release publishes the @sentry/node-native
SDK.
Other Changes
- feat(core): Introduce
debug
to replacelogger
(#16906) - fix(browser): Guard
nextHopProtocol
when adding resource spans (#16900)
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.32 KB |
@sentry/browser - with treeshaking flags | 21.82 KB |
@sentry/browser (incl. Tracing) | 38.82 KB |
@sentry/browser (incl. Tracing, Replay) | 76.05 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 66.12 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 80.63 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 92.46 KB |
@sentry/browser (incl. Feedback) | 39.61 KB |
@sentry/browser (incl. sendFeedback) | 27.89 KB |
@sentry/browser (incl. FeedbackAsync) | 32.68 KB |
@sentry/react | 25.01 KB |
@sentry/react (incl. Tracing) | 40.73 KB |
@sentry/vue | 27.65 KB |
@sentry/vue (incl. Tracing) | 40.56 KB |
@sentry/svelte | 23.34 KB |
CDN Bundle | 24.57 KB |
CDN Bundle (incl. Tracing) | 38.49 KB |
CDN Bundle (incl. Tracing, Replay) | 73.61 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 78.97 KB |
CDN Bundle - uncompressed | 71.77 KB |
CDN Bundle (incl. Tracing) - uncompressed | 114.15 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 225.65 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 238.16 KB |
@sentry/nextjs (client) | 42.32 KB |
@sentry/sveltekit (client) | 39.26 KB |
@sentry/node | 163.65 KB |
@sentry/node - without tracing | 97.95 KB |
@sentry/aws-serverless | 125.4 KB |
9.37.0
Important Changes
-
feat(nuxt): Parametrize SSR routes (#16843)
When requesting dynamic or catch-all routes in Nuxt, those will now be shown as parameterized routes in Sentry.
For example,/users/123
will be shown as/users/:userId()
in Sentry. This will make it easier to identify patterns and make grouping easier.
Other Changes
- feat(astro): Deprecate passing runtime config to astro integration (#16839)
- feat(browser): Add
beforeStartNavigationSpan
lifecycle hook (#16863) - feat(browser): Detect redirects when emitting navigation spans (#16324)
- feat(cloudflare): Add option to opt out of capturing errors in
wrapRequestHandler
(#16852) - feat(feedback): Return the eventId into the onSubmitSuccess callback (#16835)
- feat(vercel-edge): Do not vendor in all OpenTelemetry dependencies (#16841)
- fix(browser): Ensure standalone CLS and LCP spans have traceId of pageload span (#16864)
- fix(nextjs): Use value injection loader on
instrumentation-client.ts|js
(#16855) - fix(sveltekit): Avoid capturing
redirect()
calls as errors in Cloudflare (#16853) - docs(nextjs): Update
deleteSourcemapsAfterUpload
jsdoc default value (#16867)
Work in this release was contributed by @zachkirsch. Thank you for your contribution!
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.25 KB |
@sentry/browser - with treeshaking flags | 22.01 KB |
@sentry/browser (incl. Tracing) | 38.73 KB |
@sentry/browser (incl. Tracing, Replay) | 75.97 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 66.14 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 80.56 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 92.39 KB |
@sentry/browser (incl. Feedback) | 39.54 KB |
@sentry/browser (incl. sendFeedback) | 27.82 KB |
@sentry/browser (incl. FeedbackAsync) | 32.6 KB |
@sentry/react | 24.99 KB |
@sentry/react (incl. Tracing) | 40.67 KB |
@sentry/vue | 27.6 KB |
@sentry/vue (incl. Tracing) | 40.49 KB |
@sentry/svelte | 23.27 KB |
CDN Bundle | 24.77 KB |
CDN Bundle (incl. Tracing) | 38.7 KB |
CDN Bundle (incl. Tracing, Replay) | 73.8 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 79.13 KB |
CDN Bundle - uncompressed | 72.34 KB |
CDN Bundle (incl. Tracing) - uncompressed | 114.94 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 226.2 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 238.71 KB |
@sentry/nextjs (client) | 42.27 KB |
@sentry/sveltekit (client) | 39.17 KB |
@sentry/node | 163.92 KB |
@sentry/node - without tracing | 98.23 KB |
@sentry/aws-serverless | 125.68 KB |
9.36.0
Important Changes
- feat(node-core): Add node-core SDK (#16745)
This release adds a new SDK @sentry/node-core
which ships without any OpenTelemetry instrumententation out of the box. All OpenTelemetry dependencies are peer dependencies and OpenTelemetry has to be set up manually.
Use @sentry/node-core
when:
- You already have OpenTelemetry set up
- You need custom OpenTelemetry configuration
- You want minimal dependencies
- You need fine-grained control over instrumentation
Use @sentry/node
when:
- You want an automatic setup
- You're new to OpenTelemetry
- You want sensible defaults
- You prefer convenience over control
- feat(node): Deprecate ANR integration (#16832)
The ANR integration has been deprecated and will be removed in future versions. Use eventLoopBlockIntegration
from @sentry/node-native
instead.
- feat(replay): Add
_experiments.ignoreMutations
option (#16816)
This replay option allows to configure a selector list of elements to not capture mutations for.
Sentry.replayIntegration({
_experiments: {
ignoreMutations: ['.dragging'],
},
});
Other changes
- feat(deps): bump @prisma/instrumentation from 6.10.1 to 6.11.1 (#16833)
- feat(nextjs): Add flag for suppressing router transition warning (#16823)
- feat(nextjs): Automatically skip middleware requests for tunnel route (#16812)
- feat(replay): Export compression worker from
@sentry/replay-internal
(#16794) - fix(browser): Avoid 4xx response for succesful
diagnoseSdkConnectivity
request (#16840) - fix(browser): Guard against undefined nextHopProtocol (#16806)
- fix(cloudflare): calculate retries not attempts (#16834)
- fix(nuxt): Parametrize routes on the server-side (#16785)
- fix(vue): Make pageload span handling more reliable (#16799)
Work in this release was contributed by @Spice-King and @stayallive. Thank you for your contributions!
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.42 KB |
@sentry/browser - with treeshaking flags | 23.2 KB |
@sentry/browser (incl. Tracing) | 38.69 KB |
@sentry/browser (incl. Tracing, Replay) | 75.99 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 69.24 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 80.61 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 92.48 KB |
@sentry/browser (incl. Feedback) | 39.79 KB |
@sentry/browser (incl. sendFeedback) | 28.02 KB |
@sentry/browser (incl. FeedbackAsync) | 32.8 KB |
@sentry/react | 25.16 KB |
@sentry/react (incl. Tracing) | 40.63 KB |
@sentry/vue | 27.71 KB |
@sentry/vue (incl. Tracing) | 40.44 KB |
@sentry/svelte | 23.45 KB |
CDN Bundle | 24.9 KB |
CDN Bundle (incl. Tracing) | 38.7 KB |
CDN Bundle (incl. Tracing, Replay) | 73.84 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 79.17 KB |
CDN Bundle - uncompressed | 72.75 KB |
CDN Bundle (incl. Tracing) - uncompressed | 115.01 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 226.63 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 239.15 KB |
@sentry/nextjs (client) | 42.24 KB |
@sentry/sveltekit (client) | 39.14 KB |
@sentry/node | 158.05 KB |
@sentry/node - without tracing | 96.48 KB |
@sentry/aws-serverless | 121.7 KB |
9.36.0-alpha.2
This is an internal alpha for @sentry/node-core
and @sentry/node
.
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.43 KB |
@sentry/browser - with treeshaking flags | 23.21 KB |
@sentry/browser (incl. Tracing) | 38.67 KB |
@sentry/browser (incl. Tracing, Replay) | 75.87 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 69.12 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 80.53 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 92.36 KB |
@sentry/browser (incl. Feedback) | 39.8 KB |
@sentry/browser (incl. sendFeedback) | 28.03 KB |
@sentry/browser (incl. FeedbackAsync) | 32.81 KB |
@sentry/react | 25.16 KB |
@sentry/react (incl. Tracing) | 40.61 KB |
@sentry/vue | 27.71 KB |
@sentry/vue (incl. Tracing) | 40.44 KB |
@sentry/svelte | 23.45 KB |
CDN Bundle | 24.91 KB |
CDN Bundle (incl. Tracing) | 38.68 KB |
CDN Bundle (incl. Tracing, Replay) | 73.73 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 79.07 KB |
CDN Bundle - uncompressed | 72.76 KB |
CDN Bundle (incl. Tracing) - uncompressed | 114.88 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 226.25 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 238.78 KB |
@sentry/nextjs (client) | 42.21 KB |
@sentry/sveltekit (client) | 39.11 KB |
@sentry/node | 158.06 KB |
@sentry/node - without tracing | 96.49 KB |
@sentry/aws-serverless | 121.72 KB |
9.36.0-alpha.1
This is an internal alpha for @sentry/node-core
and @sentry/node
.
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.43 KB |
@sentry/browser - with treeshaking flags | 23.21 KB |
@sentry/browser (incl. Tracing) | 38.67 KB |
@sentry/browser (incl. Tracing, Replay) | 75.87 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 69.12 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 80.53 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 92.36 KB |
@sentry/browser (incl. Feedback) | 39.8 KB |
@sentry/browser (incl. sendFeedback) | 28.03 KB |
@sentry/browser (incl. FeedbackAsync) | 32.81 KB |
@sentry/react | 25.16 KB |
@sentry/react (incl. Tracing) | 40.61 KB |
@sentry/vue | 27.71 KB |
@sentry/vue (incl. Tracing) | 40.44 KB |
@sentry/svelte | 23.45 KB |
CDN Bundle | 24.91 KB |
CDN Bundle (incl. Tracing) | 38.68 KB |
CDN Bundle (incl. Tracing, Replay) | 73.73 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 79.07 KB |
CDN Bundle - uncompressed | 72.76 KB |
CDN Bundle (incl. Tracing) - uncompressed | 114.88 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 226.25 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 238.78 KB |
@sentry/nextjs (client) | 42.21 KB |
@sentry/sveltekit (client) | 39.11 KB |
@sentry/node | 158.06 KB |
@sentry/node - without tracing | 96.49 KB |
@sentry/aws-serverless | 121.72 KB |
9.35.0
- feat(browser): Add ElementTiming instrumentation and spans (#16589)
- feat(browser): Export
Context
andContexts
types (#16763) - feat(cloudflare): Add user agent to cloudflare spans (#16793)
- feat(node): Add
eventLoopBlockIntegration
(#16709) - feat(node): Export server-side feature flag integration shims (#16735)
- feat(node): Update vercel ai integration attributes (#16721)
- fix(astro): Handle errors in middlewares better (#16693)
- fix(browser): Ensure explicit
parentSpan
is considered (#16776) - fix(node): Avoid using dynamic
require
for fastify integration (#16789) - fix(nuxt): Add
@sentry/cloudflare
as optional peerDependency (#16782) - fix(nuxt): Ensure order of plugins is consistent (#16798)
- fix(nestjs): Fix exception handling in
@Cron
decorated tasks (#16792)
Work in this release was contributed by @0xbad0c0d3 and @alSergey. Thank you for your contributions!
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.42 KB |
@sentry/browser - with treeshaking flags | 23.2 KB |
@sentry/browser (incl. Tracing) | 38.66 KB |
@sentry/browser (incl. Tracing, Replay) | 75.87 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 69.12 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 80.52 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 92.35 KB |
@sentry/browser (incl. Feedback) | 39.79 KB |
@sentry/browser (incl. sendFeedback) | 28.02 KB |
@sentry/browser (incl. FeedbackAsync) | 32.8 KB |
@sentry/react | 25.16 KB |
@sentry/react (incl. Tracing) | 40.6 KB |
@sentry/vue | 27.71 KB |
@sentry/vue (incl. Tracing) | 40.43 KB |
@sentry/svelte | 23.45 KB |
CDN Bundle | 24.9 KB |
CDN Bundle (incl. Tracing) | 38.67 KB |
CDN Bundle (incl. Tracing, Replay) | 73.73 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 79.06 KB |
CDN Bundle - uncompressed | 72.75 KB |
CDN Bundle (incl. Tracing) - uncompressed | 114.87 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 226.25 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 238.77 KB |
@sentry/nextjs (client) | 42.2 KB |
@sentry/sveltekit (client) | 39.1 KB |
@sentry/node | 158.23 KB |
@sentry/node - without tracing | 96.32 KB |
@sentry/aws-serverless | 121.48 KB |
9.34.0-alpha.1
This is an internal alpha for @sentry/node-core
and @sentry/node
.
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.43 KB |
@sentry/browser - with treeshaking flags | 23.21 KB |
@sentry/browser (incl. Tracing) | 38.67 KB |
@sentry/browser (incl. Tracing, Replay) | 75.87 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 69.12 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 80.53 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 92.36 KB |
@sentry/browser (incl. Feedback) | 39.8 KB |
@sentry/browser (incl. sendFeedback) | 28.03 KB |
@sentry/browser (incl. FeedbackAsync) | 32.81 KB |
@sentry/react | 25.16 KB |
@sentry/react (incl. Tracing) | 40.61 KB |
@sentry/vue | 27.71 KB |
@sentry/vue (incl. Tracing) | 40.44 KB |
@sentry/svelte | 23.45 KB |
CDN Bundle | 24.91 KB |
CDN Bundle (incl. Tracing) | 38.68 KB |
CDN Bundle (incl. Tracing, Replay) | 73.73 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 79.07 KB |
CDN Bundle - uncompressed | 72.76 KB |
CDN Bundle (incl. Tracing) - uncompressed | 114.88 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 226.25 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 238.78 KB |
@sentry/nextjs (client) | 42.21 KB |
@sentry/sveltekit (client) | 39.11 KB |
@sentry/node | 158.06 KB |
@sentry/node - without tracing | 96.49 KB |
@sentry/aws-serverless | 121.72 KB |
9.34.0
Important Changes
-
feat(nuxt): Add Cloudflare Nitro plugin (#15597)
A Nitro plugin for
@sentry/nuxt
which initializes Sentry when deployed to Cloudflare (cloudflare-pages
preset).-
Add
@sentry/cloudflare
as additional dependency (same version as@sentry/nuxt
) -
Remove the previous server config file:
sentry.server.config.ts
-
Add a plugin in
server/plugins
(e.g.server/plugins/sentry-cloudflare-setup.ts
) -
Add this code in your plugin file
// server/plugins/sentry-cloudflare-setup.ts (filename does not matter) import { sentryCloudflareNitroPlugin } from '@sentry/nuxt/module/plugins'; export default defineNitroPlugin( sentryCloudflareNitroPlugin({ dsn: 'https://dsn', tracesSampleRate: 1.0, }), );
or with access to
nitroApp
:// server/plugins/sentry-cloudflare-setup.ts (filename does not matter) import { sentryCloudflareNitroPlugin } from '@sentry/nuxt/module/plugins'; export default defineNitroPlugin(sentryCloudflareNitroPlugin((nitroApp: NitroApp) => { // You can access nitroApp here if needed return ({ dsn: 'https://dsn', tracesSampleRate: 1.0, }) }))
-
Other Changes
- feat(browser): Record standalone LCP spans (#16591)
- fix(nuxt): Only add OTel alias in dev mode (#16756)
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.42 KB |
@sentry/browser - with treeshaking flags | 23.2 KB |
@sentry/browser (incl. Tracing) | 38.11 KB |
@sentry/browser (incl. Tracing, Replay) | 75.35 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 68.61 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 80.01 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 91.81 KB |
@sentry/browser (incl. Feedback) | 39.79 KB |
@sentry/browser (incl. sendFeedback) | 28.02 KB |
@sentry/browser (incl. FeedbackAsync) | 32.8 KB |
@sentry/react | 25.16 KB |
@sentry/react (incl. Tracing) | 40.04 KB |
@sentry/vue | 27.69 KB |
@sentry/vue (incl. Tracing) | 39.9 KB |
@sentry/svelte | 23.45 KB |
CDN Bundle | 24.9 KB |
CDN Bundle (incl. Tracing) | 38.19 KB |
CDN Bundle (incl. Tracing, Replay) | 73.24 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 78.57 KB |
CDN Bundle - uncompressed | 72.75 KB |
CDN Bundle (incl. Tracing) - uncompressed | 113.89 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 225.27 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 237.8 KB |
@sentry/nextjs (client) | 41.64 KB |
@sentry/sveltekit (client) | 38.56 KB |
@sentry/node | 150.68 KB |
@sentry/node - without tracing | 96.32 KB |
@sentry/aws-serverless | 121.48 KB |