@sentry/browser
Advanced tools
Changelog
10.2.0
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)Changelog
9.44.2
This release is publishing the AWS Lambda Layer under SentryNodeServerlessSDKv9
. The previous release 9.44.1
accidentally published the layer under SentryNodeServerlessSDKv10
.
Changelog
10.0.0
Version 10.0.0
marks a release of the Sentry JavaScript SDKs that contains breaking changes. The goal of this release is to primarily upgrade the underlying OpenTelemetry dependencies to v2 with minimal breaking changes.
Please carefully read through the migration guide in the Sentry docs on how to upgrade from version 9 to version 10. Make sure to select your specific platform/framework in the top left corner: https://docs.sentry.io/platforms/javascript/migration/v9-to-v10/
A comprehensive migration guide outlining all changes can be found within the Sentry JavaScript SDK Repository: https://github.com/getsentry/sentry-javascript/blob/develop/MIGRATION.md
BaseClient
(#17071)enableLogs
and beforeSendLog
experimental options (#17063)hasTracingEnabled
(#17072)_experiments.autoFlushOnFeedback
option as default (#17220)SentryNodeServerlessSDKv10
v10 AWS Lambda Layer (#17069)flushIfServerless
function (#17177)strictTraceContinuation
(#16313)@sentry-internal/node-native-stacktrace
to 0.2.2
(#17207)shouldHandleError
option to fastifyIntegration
(#16845)createSentryHandleError
(#17235)fastifyIntegration
error handler (#17208)vercelAiIntegration
have correct trace connected (#17132)handleErrorWithSentry
(#17157)Work in this release was contributed by @richardjelinek-fastest. Thank you for your contribution!
Changelog
9.44.0
_experiments.autoFlushOnFeedback
(#17219)flushIfServerless
function (#17239)@sentry-internal/node-native-stacktrace
to 0.2.2
(#17256)createSentryHandleError
(#17244)