@sentry/angular
Advanced tools
Changelog
10.4.0
sendDefaultPii
is true
This release includes a fix for a behaviour change
that was originally introduced with v9 of the SDK: User IP Addresses should only be added to Sentry events automatically,
if sendDefaultPii
was set to true
.
However, the change in v9 required further internal adjustment, which should have been included in v10 of the SDK.
Unfortunately, the change did not make it into the initial v10 version but is now applied with 10.4.0
.
There is no API breakage involved and hence it is safe to update.
However, after updating the SDK, events (errors, traces, replays, etc.) sent from the browser, will only include
user IP addresses, if you set sendDefaultPii: true
in your Sentry.init
options.
We apologize for any inconvenience caused!
ignoreStaticAssets
(#17370)This release adds a new option to httpIntegration
to ignore requests for static assets (e.g. favicon.xml
or robots.txt
). The option defaults to true
, meaning that going forward, such requests will not be traced by default. You can still enable tracing for these requests by setting the option to false
:
Sentry.init({
integrations: [
Sentry.httpIntegration({
// defaults to true, set to false to enable traces for static assets
ignoreStaticAssets: false,
}),
],
});
Changelog
10.3.0
skipOpenTelemetrySetup
option (#17349)globalHandlersIntegration
(#17216)handle
(#17277)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)