-
-
Notifications
You must be signed in to change notification settings - Fork 354
chore(deps): update JavaScript SDK to v10.8.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
Closed
Closed
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
8410885 to
afaa8f6
Compare
01862b4 to
155e884
Compare
7ed8e37 to
73add9b
Compare
73add9b to
8c7d540
Compare
Contributor
|
Handled in v7 with #5111 |
6a9402b to
c00fb65
Compare
1911cfd to
023d0c4
Compare
023d0c4 to
6616b33
Compare
Contributor
|
Bumped in v7 with #5123 |
Contributor
|
Closing since the version has been bumped on main with the merge of v7 |
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.8.0.
Auto-generated by a dependency updater.
Changelog
10.8.0
Important Changes
feat(sveltekit): Add Compatibility for builtin SvelteKit Tracing (#17423)
This release makes the
sentry/sveltekitSDK compatible with SvelteKit's native observability support introduced in SvelteKit version2.31.0.If you enable both, instrumentation and tracing, the SDK will now initialize early enough to set up additional instrumentation like database queries and it will pick up spans emitted from SvelteKit.
We will follow up with docs how to set up the SDK soon.
For now, If you're on SvelteKit version
2.31.0or newer, you can easily opt into the new feature:Enable experimental tracing and instrumentation support in
svelte.config.js:Move your
Sentry.init()call fromsrc/hooks.server.(js|ts)to the newinstrumentation.server.(js|ts)file:The rest of your Sentry config in
hooks.server.ts(sentryHandleandhandleErrorWithSentry) should stay the same.If you prefer to stay on the hooks-file based config for now, the SDK will continue to work as previously.
Thanks to the Svelte team and elliott-with-the-longest-name-on-github for implementing observability support and for reviewing our PR!
Other Changes
Internal Changes
10.7.0
Important Changes
instrumentPrototypeMethodsoption to instrument RPC methods for DurableObjects (#17424)By default,
Sentry.instrumentDurableObjectWithSentrywill not wrap any RPC methods on the prototype. To enable wrapping for RPC methods, setinstrumentPrototypeMethodstotrueor, if performance is a concern, a list of only the methods you want to instrument:Other Changes
requestAnimationFramefor canvas snapshots (#17380)Internal Changes
10.6.0
Important Changes
This release adds support for automatically tracing Anthropic AI SDK requests, providing better observability for AI-powered applications.
aiv5 (#17395)This release makes the Sentry
vercelAiIntegrationcompatible with version 5 of Vercelai.The Sentry Nuxt SDK is now considered stable and no longer in beta!
Other Changes
DedicatedWorkerGlobalScopeglobal object type inregisterWebWorker(#17447)isSentryRequestUrl(#17393)Internal Changes
10.5.0
SystemErrorcontext and remove paths from message (#17331)Internal Changes
Work in this release was contributed by ha1fstack. Thank you for your contribution!
10.4.0
Important Changes
sendDefaultPiiistrueThis 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
sendDefaultPiiwas 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: truein yourSentry.initoptions.We apologize for any inconvenience caused!
ignoreStaticAssets(#17370)This release adds a new option to
httpIntegrationto ignore requests for static assets (e.g.favicon.xmlorrobots.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
skipOpenTelemetrySetupoption (#17349)globalHandlersIntegration(#17216)handle(#17277)10.2.0
Important Changes
ignoreSpansoption (#17078)This release adds a new top-level
Sentry.initoption,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/cloudflareandsentry/vercel-edge.To instrument the OpenAI client, wrap it with
Sentry.instrumentOpenAiClientand set recording settings.The
startTraceoption is deprecated and will be removed in a future major version. If you want to disable tracing, setSENTRY_TRACES_SAMPLE_RATEto0.0. instead. As of today, the flag does not affect traces anymore.Other Changes
gen_ai.invoke_agentspans from child LLM calls (#17281)sentry.originspan attribute toSentryTraceddecorator (#17318)openaito the instrumented fn (#17320)sendBufferedReplayOrFlushwhen opening/sending feedback (#17236)10.1.0
diagnoseSdkConnectivitydoesn't create span (#17280)10.0.0
Version
10.0.0marks 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)enableLogsandbeforeSendLogexperimental options (#17063)hasTracingEnabled(#17072)_experiments.autoFlushOnFeedbackoption as default (#17220)Other Changes
SentryNodeServerlessSDKv10v10 AWS Lambda Layer (#17069)flushIfServerlessfunction (#17177)strictTraceContinuation(#16313)sentry-internal/node-native-stacktraceto0.2.2(#17207)shouldHandleErroroption tofastifyIntegration(#16845)createSentryHandleError(#17235)fastifyIntegrationerror handler (#17208)vercelAiIntegrationhave 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.1accidentally published the layer underSentryNodeServerlessSDKv10.9.44.1
9.44.0
_experiments.autoFlushOnFeedback(#17219)flushIfServerlessfunction (#17239)sentry-internal/node-native-stacktraceto0.2.2(#17256)createSentryHandleError(#17244)9.43.0
fastifyIntegrationerror handler (#17211)9.42.1
globalThis(#17185)handleErrorWithSentry(#17174)9.42.0
9.41.0
Important Changes
enableLogsandbeforeSendLogoption (#17092)Sentry now has support for structured logging. Previously to enable structured logging, you had to use the
_experiments.enableLogsand_experiments.beforeSendLogoptions. These options have been deprecated in favor of the top-levelenableLogsandbeforeSendLogoptions.Server-side and client-side parameterized routes are now supported in the Astro SDK. No configuration changes are required.
Other Changes
vercelAiIntegrationhave 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
loggerexport fromsentry/corehas been deprecated in favor of thedebugexport.debugonly exposeslog,warn, anderrormethods but is otherwise identical tologger. Note that this deprecation does not affect theloggerexport from other packages (likesentry/browserorsentry/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/instrumentationrange 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
afterStartPageloadSpanhook 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/123andusers/456now 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)disableSentryWebpackConfigflag (#17013)tracing/errors.ts(#16888)beforeSendLoginconsoleSandbox(#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-nativeSDK.Other Changes
debugto replacelogger(#16906)nextHopProtocolwhen 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/123will be shown as/users/:userId()in Sentry. This will make it easier to identify patterns and make grouping easier.Other Changes
beforeStartNavigationSpanlifecycle hook (#16863)wrapRequestHandler(#16852)instrumentation-client.ts|js(#16855)redirect()calls as errors in Cloudflare (#16853)deleteSourcemapsAfterUploadjsdoc 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-corewhich 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-corewhen:Use
sentry/nodewhen:The ANR integration has been deprecated and will be removed in future versions. Use
eventLoopBlockIntegrationfromsentry/node-nativeinstead._experiments.ignoreMutationsoption (#16816)This replay option allows to configure a selector list of elements to not capture mutations for.
Other changes
sentry/replay-internal(#16794)diagnoseSdkConnectivityrequest (#16840)Work in this release was contributed by Spice-King and stayallive. Thank you for your contributions!
9.35.0
ContextandContextstypes (#16763)eventLoopBlockIntegration(#16709)parentSpanis considered (#16776)requirefor fastify integration (#16789)sentry/cloudflareas optional peerDependency (#16782)Crondecorated 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/nuxtwhich initializes Sentry when deployed to Cloudflare (cloudflare-pagespreset).Remove the previous server config file:
sentry.server.config.tsAdd 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
vercelAiIntegrationto cloudflare & vercel-edge (#16732)The
vercelAiIntegrationis now available as opt-in for the Cloudflare and the Next.js SDK for Vercel Edge.To use it, add the integration in
Sentry.initAnd 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)aifrom 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.
instrumentWorkflowWithSentryto 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
errorHandleroption (#16718)CloudEventsContextcompatible 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
/monitoringendpoint.scope&clienttogetTraceData(#16633)Adds the ability to pass custom
scopeandclientparameters to thegetTraceDatafunction, providing more flexibility when generating trace data for distributed tracing.Other Changes
x-forwarded-hostandx-forwarded-protoheaders (#16687)sentry/opentelemetrydependency (#16677)sentry/pino-transport(#16652)safeJoinusage in console logging integration (#16658)CloudEventtype compatible (#16661)instrumentation-client.jsfile (#16637)9.30.0
vercelAiIntegrationwhenaimodule is detected (#16565)modulesIntegrationworks in more environments (#16566)sendDefaultPii(#16527)9.29.0
Important Changes
web-vitalsto 5.0.2 (#16492)This release upgrades the
web-vitalslibrary 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
onErrorusage (#16547)vercelAiIntegration(#16551)ignoreLayersTypeoption to koa integration (#16553)suppressTracingdoes 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
TracingInterceptoras 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
vercelAIIntegrationfromsentry/node(#16496)Work in this release was contributed by agrattan0820. Thank you for your contribution!
9.27.0
ReactRouterServerintegration (#16470)9.26.0
sentry/react(#16465)9.25.1
9.25.0
Important Changes
markandmeasurespans (#16443)This release adds an option to
browserTracingIntegrationthat lets you ignoremarkandmeasurespans created from theperformance.mark(...)andperformance.measure(...)browser APIs:Other Changes
includeServerNameoption (#16442)sentry/nuxtexternal (#16444)9.24.0
Important Changes