@sentry/profiling-node
Advanced tools
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!
Changelog
9.32.0
Enhances CLS (Cumulative Layout Shift) spans by adding attributes detailing the elements that caused layout shifts.
instrumentWorkflowWithSentry
to instrument workflows (#16672)We've added support for Cloudflare Workflows, enabling comprehensive tracing for your workflow runs. This integration uses the workflow's instanceId as the Sentry trace_id and for sampling, linking all steps together. You'll now be able to see full traces, including retries with exponential backoff.
Adds the ability to send logs to Sentry via a pino transport.
errorHandler
option (#16718)CloudEventsContext
compatible with CloudEvent
(#16705)false
(#16695)@opentelemetry/resources
(#16727)Work in this release was contributed by @flaeppe. Thank you for your contribution!
Changelog
9.31.0
Adds an option to automatically generate a random tunnel route for the Next.js SDK. This helps prevent ad blockers and other tools from blocking Sentry requests by using a randomized path instead of the predictable /monitoring
endpoint.
scope
& client
to getTraceData
(#16633)Adds the ability to pass custom scope
and client
parameters to the getTraceData
function, providing more flexibility when generating trace data for distributed tracing.
x-forwarded-host
and x-forwarded-proto
headers (#16687)@sentry/opentelemetry
dependency (#16677)@sentry/pino-transport
(#16652)safeJoin
usage in console logging integration (#16658)CloudEvent
type compatible (#16661)instrumentation-client.js
file (#16637)Changelog
9.30.0
vercelAiIntegration
when ai
module is detected (#16565)modulesIntegration
works in more environments (#16566)sendDefaultPii
(#16527)Changelog
9.29.0
web-vitals
to 5.0.2 (#16492)This release upgrades the web-vitals
library to version 5.0.2. This upgrade could slightly change the collected web vital values and potentially also influence alerts and performance scores in the Sentry UI.
onError
usage (#16547)vercelAiIntegration
(#16551)ignoreLayersType
option to koa integration (#16553)suppressTracing
does not leak when async (#16545)