Important Changes
- feat: Add opt-in
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,
},
});
- feat(node): Add postgresjs instrumentation (#16665)
The Node.js SDK now includes instrumentation for Postgres.js.
- feat(node): Use diagnostics channel for Fastify v5 error handling (#16715)
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
.
Other Changes
- feat(cloudflare): Allow interop with OpenTelemetry emitted spans (#16714)
- feat(cloudflare): Flush after
waitUntil
(#16681) - fix(nextjs): Remove
ai
from default server external packages (#16736)
Work in this release was contributed by @0xbad0c0d3. Thank you for your contribution!
Bundle size 📦
Path | Size |
---|---|
@sentry/browser | 23.42 KB |
@sentry/browser - with treeshaking flags | 23.2 KB |
@sentry/browser (incl. Tracing) | 37.93 KB |
@sentry/browser (incl. Tracing, Replay) | 75.18 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 68.42 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 79.83 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 91.63 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) | 39.88 KB |
@sentry/vue | 27.69 KB |
@sentry/vue (incl. Tracing) | 39.75 KB |
@sentry/svelte | 23.45 KB |
CDN Bundle | 24.9 KB |
CDN Bundle (incl. Tracing) | 38 KB |
CDN Bundle (incl. Tracing, Replay) | 73.08 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 78.41 KB |
CDN Bundle - uncompressed | 72.75 KB |
CDN Bundle (incl. Tracing) - uncompressed | 112.71 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 224.1 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 236.62 KB |
@sentry/nextjs (client) | 41.48 KB |
@sentry/sveltekit (client) | 38.41 KB |
@sentry/node | 150.68 KB |
@sentry/node - without tracing | 96.32 KB |
@sentry/aws-serverless | 121.48 KB |