@sentry/svelte
Advanced tools
Changelog
9.37.0
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.
beforeStartNavigationSpan
lifecycle hook (#16863)wrapRequestHandler
(#16852)instrumentation-client.ts|js
(#16855)redirect()
calls as errors in Cloudflare (#16853)deleteSourcemapsAfterUpload
jsdoc default value (#16867)Work in this release was contributed by @zachkirsch. Thank you for your contribution!
Changelog
9.36.0
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:
Use @sentry/node
when:
The ANR integration has been deprecated and will be removed in future versions. Use eventLoopBlockIntegration
from @sentry/node-native
instead.
_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'],
},
});
@sentry/replay-internal
(#16794)diagnoseSdkConnectivity
request (#16840)Work in this release was contributed by @Spice-King and @stayallive. Thank you for your contributions!
Changelog
9.35.0
Context
and Contexts
types (#16763)eventLoopBlockIntegration
(#16709)parentSpan
is considered (#16776)require
for fastify integration (#16789)@sentry/cloudflare
as optional peerDependency (#16782)@Cron
decorated tasks (#16792)Work in this release was contributed by @0xbad0c0d3 and @alSergey. Thank you for your contributions!
Changelog
9.34.0
feat(nuxt): Add Cloudflare Nitro plugin (#15597)
A Nitro plugin for @sentry/nuxt
which initializes Sentry when deployed to Cloudflare (cloudflare-pages
preset).
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,
})
}))
Changelog
9.33.0
vercelAiIntegration
to cloudflare & vercel-edge (#16732)The vercelAiIntegration
is now available as opt-in for the Cloudflare and the Next.js SDK for Vercel Edge.
To use it, add the integration in Sentry.init
Sentry.init({
tracesSampleRate: 1.0,
integrations: [Sentry.vercelAIIntegration()],
});
And enable telemetry for Vercel AI calls
const result = await generateText({
model: openai('gpt-4o'),
experimental_telemetry: {
isEnabled: true,
},
});
The Node.js SDK now includes instrumentation for Postgres.js.
If you're on Fastify v5, you no longer need to call setupFastifyErrorHandler
. It is done automatically by the node SDK. Older versions still rely on calling setupFastifyErrorHandler
.
waitUntil
(#16681)ai
from default server external packages (#16736)Work in this release was contributed by @0xbad0c0d3. Thank you for your contribution!