feat(core,cloudflare,deno): Add instrumentPostgresJsSql instrumentation (#19566)
Added a new instrumentation helper for the postgres (postgres.js) library, designed for
SDKs that are not based on OpenTelemetry (e.g. Cloudflare, Deno). This wraps a postgres.js sql tagged template instance so that
all queries automatically create Sentry spans.
import postgres from 'postgres';
import * as Sentry from '@sentry/cloudflare'; // or '@sentry/deno'
export default Sentry.withSentry(env => ({ dsn: '__DSN__' }), {
async fetch(request, env, ctx) {
const sql = Sentry.instrumentPostgresJsSql(postgres(env.DATABASE_URL));
// All queries now create Sentry spans
const users = await sql`SELECT * FROM users WHERE id = ${userId}`;
return Response.json(users);
},
});
The instrumentation is available in @sentry/core, @sentry/cloudflare, and @sentry/deno.
feat(nextjs): Add Turbopack support for thirdPartyErrorFilterIntegration (#19542)
We added experimental support for the thirdPartyErrorFilterIntegration with Turbopack builds.
This feature requires Next.js 16+ and is currently behind an experimental flag:
// next.config.ts
import { withSentryConfig } from '@sentry/nextjs';
export default withSentryConfig(nextConfig, {
_experimental: {
turbopackApplicationKey: 'my-app-key',
},
});
Then configure the integration in your client instrumentation file with a matching key:
// instrumentation-client.ts
import * as Sentry from '@sentry/nextjs';
Sentry.init({
integrations: [
Sentry.thirdPartyErrorFilterIntegration({
filterKeys: ['my-app-key'],
behaviour: 'apply-tag-if-exclusively-contains-third-party-frames',
}),
],
});
not: foreign condition in turbopack loaders (#19502)dotagents (#19526)AGENTS.md for browser (#19551)AGENTS.md for nextjs (#19556)AGENTS.md (#19521)Work in this release was contributed by @YevheniiKotyrlo. Thank you for your contribution!
| Path | Size |
|---|---|
| @sentry/browser | 25.02 KB |
| @sentry/browser - with treeshaking flags | 23.57 KB |
| @sentry/browser (incl. Tracing) | 41.44 KB |
| @sentry/browser (incl. Tracing, Profiling) | 45.99 KB |
| @sentry/browser (incl. Tracing, Replay) | 79.35 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 69.21 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 83.93 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 95.91 KB |
| @sentry/browser (incl. Feedback) | 41.44 KB |
| @sentry/browser (incl. sendFeedback) | 29.58 KB |
| @sentry/browser (incl. FeedbackAsync) | 34.52 KB |
| @sentry/browser (incl. Metrics) | 26.17 KB |
| @sentry/browser (incl. Logs) | 26.31 KB |
| @sentry/browser (incl. Metrics & Logs) | 26.96 KB |
| @sentry/react | 26.74 KB |
| @sentry/react (incl. Tracing) | 43.72 KB |
| @sentry/vue | 29.37 KB |
| @sentry/vue (incl. Tracing) | 43.26 KB |
| @sentry/svelte | 25.05 KB |
| CDN Bundle | 27.51 KB |
| CDN Bundle (incl. Tracing) | 42.25 KB |
| CDN Bundle (incl. Logs, Metrics) | 28.33 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 43.07 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 66.49 KB |
| CDN Bundle (incl. Tracing, Replay) | 78.26 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 79.1 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 83.65 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 84.5 KB |
| CDN Bundle - uncompressed | 80.42 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 125.07 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 83.19 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 127.83 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 203.96 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 239.21 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 241.96 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 251.82 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 254.56 KB |
| @sentry/nextjs (client) | 46.08 KB |
| @sentry/sveltekit (client) | 41.89 KB |
| @sentry/node-core | 51.01 KB |
| @sentry/node | 170.59 KB |
| @sentry/node - without tracing | 95.1 KB |
| @sentry/aws-serverless | 110.53 KB |
Fetched March 26, 2026