-
-
Notifications
You must be signed in to change notification settings - Fork 351
chore(deps): update JavaScript SDK to v10.4.0 #4615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
github-actions
wants to merge
1
commit into
main
Choose a base branch
from
deps/scripts/update-javascript.sh
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
030274a
to
1345289
Compare
cfd5581
to
03257a4
Compare
03257a4
to
90749e3
Compare
833bcf6
to
ed685c1
Compare
f337332
to
dfdeff3
Compare
dfdeff3
to
ed9b7cd
Compare
eeed16d
to
0f789b7
Compare
40db4dc
to
9d5fb6e
Compare
806489e
to
33260de
Compare
33260de
to
ba8ca71
Compare
fb801b1
to
9327cb7
Compare
870712a
to
e271d2f
Compare
9b01e7c
to
f11bbeb
Compare
f11bbeb
to
52718c9
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 scripts/update-javascript.sh from 8.55.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!
9.40.0
Important Changes
This release adds two Browser SDK APIs to let the main thread know about debugIds of worker files:
webWorkerIntegration({worker})
to be used in the main threadregisterWebWorker({self})
to be used in the web workerThe internal SDK
logger
export fromsentry/core
has been deprecated in favor of thedebug
export.debug
only exposeslog
,warn
, anderror
methods but is otherwise identical tologger
. Note that this deprecation does not affect thelogger
export from other packages (likesentry/browser
orsentry/node
) which is used for Sentry Logging.This release adds official support for instrumenting OpenAI SDK calls in with Sentry tracing, following OpenTelemetry semantic conventions for Generative AI. It instruments:
client.chat.completions.create()
- For chat-based completionsclient.responses.create()
- For the responses APIOther Changes
opentelemetry/instrumentation
range to cover0.203.0
(#17043)Work in this release was contributed by 0xbad0c0d3 and tommy-gilligan. Thank you for your contributions!
9.39.0
Important Changes
afterStartPageloadSpan
hook to improve spanId assignment on web vital spans (#16893)This PR adds a new afterStartPageloadSpan lifecycle hook to more robustly assign the correct pageload span ID to web vital spans, replacing the previous unreliable "wait for a tick" approach with a direct callback that fires when the pageload span becomes available.
This PR implements client-side parameterized routes for Next.js by leveraging an injected manifest within the existing app-router instrumentation to automatically parameterize all client-side transactions (e.g.
users/123
andusers/456
now become becomeusers/:id
).This PR changes the default behavior in the Node SDK to drop HTTP spans with 401-404 and 3xx status codes by default to reduce noise in tracing data.
Other Changes
vercel.ai.X
(#16908)disableSentryWebpackConfig
flag (#17013)tracing/errors.ts
(#16888)beforeSendLog
inconsoleSandbox
(#16968)source=route
(#16984)Work in this release was contributed by janpapenbrock. Thank you for your contribution!
9.38.0
Important Changes
This release publishes the
sentry/node-native
SDK.Other Changes
debug
to replacelogger
(#16906)nextHopProtocol
when adding resource spans (#16900)9.37.0
Important Changes
feat(nuxt): Parametrize SSR routes (#16843)
When requesting dynamic or catch-all routes in Nuxt, those will now be shown as parameterized routes in Sentry.
For example,
/users/123
will be shown as/users/:userId()
in Sentry. This will make it easier to identify patterns and make grouping easier.Other Changes
beforeStartNavigationSpan
lifecycle hook (#16863)wrapRequestHandler
(#16852)instrumentation-client.ts|js
(#16855)redirect()
calls as errors in Cloudflare (#16853)deleteSourcemapsAfterUpload
jsdoc default value (#16867)Work in this release was contributed by zachkirsch. Thank you for your contribution!
9.36.0
Important Changes
This release adds a new SDK
sentry/node-core
which ships without any OpenTelemetry instrumententation out of the box. All OpenTelemetry dependencies are peer dependencies and OpenTelemetry has to be set up manually.Use
sentry/node-core
when:Use
sentry/node
when:The ANR integration has been deprecated and will be removed in future versions. Use
eventLoopBlockIntegration
fromsentry/node-native
instead._experiments.ignoreMutations
option (#16816)This replay option allows to configure a selector list of elements to not capture mutations for.
Other changes
sentry/replay-internal
(#16794)diagnoseSdkConnectivity
request (#16840)Work in this release was contributed by Spice-King and stayallive. Thank you for your contributions!
9.35.0
Context
andContexts
types (#16763)eventLoopBlockIntegration
(#16709)parentSpan
is considered (#16776)require
for fastify integration (#16789)sentry/cloudflare
as optional peerDependency (#16782)Cron
decorated tasks (#16792)Work in this release was contributed by 0xbad0c0d3 and alSergey. Thank you for your contributions!
9.34.0
Important Changes
feat(nuxt): Add Cloudflare Nitro plugin (#15597)
A Nitro plugin for
sentry/nuxt
which initializes Sentry when deployed to Cloudflare (cloudflare-pages
preset).Remove the previous server config file:
sentry.server.config.ts
Add a plugin in
server/plugins
(e.g.server/plugins/sentry-cloudflare-setup.ts
)Add this code in your plugin file
or with access to
nitroApp
:Other Changes
9.33.0
Important Changes
vercelAiIntegration
to cloudflare & vercel-edge (#16732)The
vercelAiIntegration
is now available as opt-in for the Cloudflare and the Next.js SDK for Vercel Edge.To use it, add the integration in
Sentry.init
And enable telemetry for Vercel AI calls
The Node.js SDK now includes instrumentation for Postgres.js.
If you're on Fastify v5, you no longer need to call
setupFastifyErrorHandler
. It is done automatically by the node SDK. Older versions still rely on callingsetupFastifyErrorHandler
.Other Changes
waitUntil
(#16681)ai
from default server external packages (#16736)Work in this release was contributed by 0xbad0c0d3. Thank you for your contribution!
9.32.0
Important Changes
Enhances CLS (Cumulative Layout Shift) spans by adding attributes detailing the elements that caused layout shifts.
instrumentWorkflowWithSentry
to instrument workflows (#16672)We've added support for Cloudflare Workflows, enabling comprehensive tracing for your workflow runs. This integration uses the workflow's instanceId as the Sentry trace_id and for sampling, linking all steps together. You'll now be able to see full traces, including retries with exponential backoff.
Adds the ability to send logs to Sentry via a pino transport.
Other Changes
errorHandler
option (#16718)CloudEventsContext
compatible withCloudEvent
(#16705)false
(#16695)opentelemetry/resources
(#16727)Work in this release was contributed by flaeppe. Thank you for your contribution!
9.31.0
Important Changes
Adds an option to automatically generate a random tunnel route for the Next.js SDK. This helps prevent ad blockers and other tools from blocking Sentry requests by using a randomized path instead of the predictable
/monitoring
endpoint.scope
&client
togetTraceData
(#16633)Adds the ability to pass custom
scope
andclient
parameters to thegetTraceData
function, providing more flexibility when generating trace data for distributed tracing.Other Changes
x-forwarded-host
andx-forwarded-proto
headers (#16687)sentry/opentelemetry
dependency (#16677)sentry/pino-transport
(#16652)safeJoin
usage in console logging integration (#16658)CloudEvent
type compatible (#16661)instrumentation-client.js
file (#16637)9.30.0
vercelAiIntegration
whenai
module is detected (#16565)modulesIntegration
works in more environments (#16566)sendDefaultPii
(#16527)9.29.0
Important Changes
web-vitals
to 5.0.2 (#16492)This release upgrades the
web-vitals
library to version 5.0.2. This upgrade could slightly change the collected web vital values and potentially also influence alerts and performance scores in the Sentry UI.Other Changes
onError
usage (#16547)vercelAiIntegration
(#16551)ignoreLayersType
option to koa integration (#16553)suppressTracing
does not leak when async (#16545)9.28.1
Work in this release was contributed by eltigerchino. Thank you for your contribution!
9.28.0
Important Changes
TracingInterceptor
(#16501)With this change we stop creating spans for
TracingInterceptor
as this interceptor only serves as an internal helper and adds noise for the user.This feature ships updates to the span names and ops to better match OpenTelemetry. This should make them more easily accessible to the new agents module view we are building.
Other Changes
vercelAIIntegration
fromsentry/node
(#16496)Work in this release was contributed by agrattan0820. Thank you for your contribution!
9.27.0
ReactRouterServer
integration (#16470)9.26.0
sentry/react
(#16465)9.25.1
9.25.0
Important Changes
mark
andmeasure
spans (#16443)This release adds an option to
browserTracingIntegration
that lets you ignoremark
andmeasure
spans created from theperformance.mark(...)
andperformance.measure(...)
browser APIs:Other Changes
includeServerName
option (#16442)sentry/nuxt
external (#16444)9.24.0
Important Changes
sentry/angular
peer dependencies to add Angular 20 support (#16414)This release adds support for Angular 20 to the Sentry Angular SDK
sentry/angular
.Other Changes
unregisterOriginalCallbacks
option tobrowserApiErrorsIntegration
(#16412)9.23.0
Important changes
Adds an option to opt out of certain
resource.*
spans viaignoreResourceSpans
.For example, to opt out of
resource.script
spans:Other changes
isEnabled
from all SDKs (#16405)init()
(#16354)captureLog
(#16352)_INTERNAL_captureSerializedLog
(#16387)static/chunks/main-*
files forwidenClientFileUpload
(#16406)browserTracingIntegration
code tosetup
hook (#16386)sentry/nuxt
as external in Rollup (#16407)withScope
keeps span active &_getTraceInfoFromScope
works (#16385)Work in this release was contributed by Xenossolitarius. Thank you for your contribution!
9.22.0
Important changes
This is a revert of a feature introduced in
9.20.0
with #16240. This feature was causing crashes in firefox, so we are reverting it. We will re-enable this functionality in the future after fixing the crash.Other changes
ServerBuild
argument and return (#16336)9.21.0
fastify/otel
(#16328)OnEvent
decorators (#16306)client
exports toserver
andcloudflare
entries (#16341)Work in this release was contributed by phthhieu. Thank you for your contribution!
9.20.0
Important changes
The SDK now automatically collects details passed to
performance.measure
options.Other changes
maxIncomingRequestBodySize
(#16225)aria-label
(#16192)next.route
attribute on root spans (#16297)orgId
option toinit
and DSC (sentry-org_id
in baggage) (#16305)9.19.0
opentelemetry-instrumentation-remix
(#16145)cancelled
reason (#16277)fastify/otel
fork to direct url to allow installing without git (#16287)Work in this release was contributed by sidx1024. Thank you for your contribution!
9.18.0
Important changes
We now also publish profiling binaries for Node 24.
Other changes
import-in-the-middle
to1.13.1
(#16260)consoleLoggingIntegration
from vercel edge sdk (#16228)