chore(deps): update JavaScript SDK to v10.4.0 #3157
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bumps packages/flutter/scripts/update-js.sh from 9.40.0 to 10.4.0.
Auto-generated by a dependency updater.
Changelog
10.4.0
Important Changes
sendDefaultPii
istrue
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 totrue
.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 yourSentry.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
orrobots.txt
). The option defaults totrue
, meaning that going forward, such requests will not be traced by default. You can still enable tracing for these requests by setting the option tofalse
:Other Changes
Internal Changes
10.3.0
skipOpenTelemetrySetup
option (#17349)globalHandlersIntegration
(#17216)handle
(#17277)10.2.0
Important Changes
ignoreSpans
option (#17078)This release adds a new top-level
Sentry.init
option,ignoreSpans
, that can be used as follows: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
andsentry/vercel-edge
.To instrument the OpenAI client, wrap it with
Sentry.instrumentOpenAiClient
and set recording settings.The
startTrace
option is deprecated and will be removed in a future major version. If you want to disable tracing, setSENTRY_TRACES_SAMPLE_RATE
to0.0
. instead. As of today, the flag does not affect traces anymore.Other Changes
gen_ai.invoke_agent
spans from child LLM calls (#17281)sentry.origin
span attribute toSentryTraced
decorator (#17318)openai
to the instrumented fn (#17320)sendBufferedReplayOrFlush
when opening/sending feedback (#17236)10.1.0
diagnoseSdkConnectivity
doesn't create span (#17280)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.How To Upgrade
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
Breaking Changes
BaseClient
(#17071)enableLogs
andbeforeSendLog
experimental options (#17063)hasTracingEnabled
(#17072)_experiments.autoFlushOnFeedback
option as default (#17220)Other Changes
SentryNodeServerlessSDKv10
v10 AWS Lambda Layer (#17069)flushIfServerless
function (#17177)strictTraceContinuation
(#16313)sentry-internal/node-native-stacktrace
to0.2.2
(#17207)shouldHandleError
option tofastifyIntegration
(#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!
9.44.2
This release is publishing the AWS Lambda Layer under
SentryNodeServerlessSDKv9
. The previous release9.44.1
accidentally published the layer underSentryNodeServerlessSDKv10
.9.44.1
9.44.0
_experiments.autoFlushOnFeedback
(#17219)flushIfServerless
function (#17239)sentry-internal/node-native-stacktrace
to0.2.2
(#17256)createSentryHandleError
(#17244)9.43.0
fastifyIntegration
error handler (#17211)9.42.1
globalThis
(#17185)handleErrorWithSentry
(#17174)9.42.0
9.41.0
Important Changes
enableLogs
andbeforeSendLog
option (#17092)Sentry now has support for structured logging. Previously to enable structured logging, you had to use the
_experiments.enableLogs
and_experiments.beforeSendLog
options. These options have been deprecated in favor of the top-levelenableLogs
andbeforeSendLog
options.Server-side and client-side parameterized routes are now supported in the Astro SDK. No configuration changes are required.
Other Changes
vercelAiIntegration
have correct trace (#17142)Work in this release was contributed by richardjelinek-fastest. Thank you for your contribution!