ignoreSpans option (#17078)This release adds a new top-level Sentry.init option, ignoreSpans, that can be used as follows:
Sentry.init({
ignoreSpans: [
'partial match', // string matching on the span name
/regex/, // regex matching on the span name
{
name: 'span name',
op: /http.client/,
},
],
});
Spans matching the filter criteria will not be recorded. Potential child spans of filtered spans will be re-parented, if possible.
Adds support for OpenAI manual instrumentation in @sentry/cloudflare and @sentry/vercel-edge.
To instrument the OpenAI client, wrap it with Sentry.instrumentOpenAiClient and set recording settings.
import * as Sentry from '@sentry/cloudflare';
import OpenAI from 'openai';
const openai = new OpenAI();
const client = Sentry.instrumentOpenAiClient(openai, { recordInputs: true, recordOutputs: true });
// use the wrapped client
The startTrace option is deprecated and will be removed in a future major version. If you want to disable tracing, set SENTRY_TRACES_SAMPLE_RATE to 0.0. instead. As of today, the flag does not affect traces anymore.
gen_ai.invoke_agent spans from child LLM calls (#17281)sentry.origin span attribute to SentryTraced decorator (#17318)openai to the instrumented fn (#17320)sendBufferedReplayOrFlush when opening/sending feedback (#17236)| Path | Size |
|---|---|
| @sentry/browser | 23.48 KB |
| @sentry/browser - with treeshaking flags | 22.09 KB |
| @sentry/browser (incl. Tracing) | 38.82 KB |
| @sentry/browser (incl. Tracing, Replay) | 76.03 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 66.11 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 80.62 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 92.44 KB |
| @sentry/browser (incl. Feedback) | 39.74 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.72 KB |
| @sentry/vue | 27.84 KB |
| @sentry/vue (incl. Tracing) | 40.59 KB |
| @sentry/svelte | 23.51 KB |
| CDN Bundle | 24.95 KB |
| CDN Bundle (incl. Tracing) | 38.71 KB |
| CDN Bundle (incl. Tracing, Replay) | 73.92 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 79.21 KB |
| CDN Bundle - uncompressed | 72.95 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 114.57 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 226.16 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 238.47 KB |
| @sentry/nextjs (client) | 42.72 KB |
| @sentry/sveltekit (client) | 39.25 KB |
| @sentry/node-core | 46.61 KB |
| @sentry/node | 143.18 KB |
| @sentry/node - without tracing | 89.68 KB |
| @sentry/aws-serverless | 100.85 KB |
Fetched March 31, 2026