fix(deps): update dependency @sentry/nextjs to v9.46.0 (develop)
This MR contains the following updates:
Package | Change | Age | Confidence |
---|---|---|---|
@sentry/nextjs (source) | 9.38.0 -> 9.46.0 |
Release Notes
getsentry/sentry-javascript (@sentry/nextjs)
v9.46.0
- feat(v9/node): Capture
SystemError
context and remove paths from message (#17394) - fix(v9/mcp): capture prompt results and add defensive edge cases for transport instrumentation (#17401)
- fix(v9/nuxt): Do not drop parametrized routes (#17357) (#17359)
📦
Bundle size Path | Size |
---|---|
@sentry/browser | 23.24 KB |
@sentry/browser - with treeshaking flags | 21.83 KB |
@sentry/browser (incl. Tracing) | 38.73 KB |
@sentry/browser (incl. Tracing, Replay) | 75.94 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 65.98 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 80.53 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 92.34 KB |
@sentry/browser (incl. Feedback) | 39.53 KB |
@sentry/browser (incl. sendFeedback) | 27.81 KB |
@sentry/browser (incl. FeedbackAsync) | 32.59 KB |
@sentry/react | 24.95 KB |
@sentry/react (incl. Tracing) | 40.64 KB |
@sentry/vue | 27.58 KB |
@sentry/vue (incl. Tracing) | 40.48 KB |
@sentry/svelte | 23.25 KB |
CDN Bundle | 24.59 KB |
CDN Bundle (incl. Tracing) | 38.49 KB |
CDN Bundle (incl. Tracing, Replay) | 73.63 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 78.97 KB |
CDN Bundle - uncompressed | 71.73 KB |
CDN Bundle (incl. Tracing) - uncompressed | 114.12 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 225.6 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 238.11 KB |
@sentry/nextjs (client) | 42.64 KB |
@sentry/sveltekit (client) | 39.14 KB |
@sentry/node | 165.4 KB |
@sentry/node - without tracing | 98.16 KB |
@sentry/aws-serverless | 125.65 KB |
v9.45.0
- feat(v9/nuxt): Do not inject trace meta-tags on cached HTML pages (#17305) (#17319)
- fix(v9/node): Assign default export of
openai
to the instrumented fn (#17353)
📦
Bundle size Path | Size |
---|---|
@sentry/browser | 23.24 KB |
@sentry/browser - with treeshaking flags | 21.83 KB |
@sentry/browser (incl. Tracing) | 38.73 KB |
@sentry/browser (incl. Tracing, Replay) | 75.94 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 65.98 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 80.53 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 92.34 KB |
@sentry/browser (incl. Feedback) | 39.53 KB |
@sentry/browser (incl. sendFeedback) | 27.81 KB |
@sentry/browser (incl. FeedbackAsync) | 32.59 KB |
@sentry/react | 24.95 KB |
@sentry/react (incl. Tracing) | 40.64 KB |
@sentry/vue | 27.58 KB |
@sentry/vue (incl. Tracing) | 40.48 KB |
@sentry/svelte | 23.25 KB |
CDN Bundle | 24.59 KB |
CDN Bundle (incl. Tracing) | 38.49 KB |
CDN Bundle (incl. Tracing, Replay) | 73.63 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 78.97 KB |
CDN Bundle - uncompressed | 71.73 KB |
CDN Bundle (incl. Tracing) - uncompressed | 114.12 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 225.6 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 238.11 KB |
@sentry/nextjs (client) | 42.64 KB |
@sentry/sveltekit (client) | 39.14 KB |
@sentry/node | 165.23 KB |
@sentry/node - without tracing | 97.96 KB |
@sentry/aws-serverless | 125.47 KB |
v9.44.2
This release is publishing the AWS Lambda Layer under SentryNodeServerlessSDKv9
. The previous release 9.44.1
accidentally published the layer under SentryNodeServerlessSDKv10
.
v9.44.1
- fix(replay/v9): Call sendBufferedReplayOrFlush when opening/sending feedback (#17270)
v9.44.0
- feat(replay/v9): Deprecate
_experiments.autoFlushOnFeedback
(#17219) - feat(v9/core): Add shared
flushIfServerless
function (#17239) - feat(v9/node-native): Upgrade
@sentry-internal/node-native-stacktrace
to0.2.2
(#17256) - feat(v9/react-router): Add
createSentryHandleError
(#17244) - feat(v9/react-router): Automatically flush on serverless for loaders/actions (#17243)
- feat(v9/react-router): Automatically flush on serverless for request handler (#17242)
- fix(v9/astro): Construct parametrized route during runtime (#17227)
- fix(v9/nextjs): Flush in route handlers (#17245)
- fix(v9/node): Fix exports for openai instrumentation (#17238) (#17241)
v9.43.0
- feat(v9/core): add MCP server instrumentation (#17196)
- feat(v9/meta): Unify detection of serverless environments and add Cloud Run (#17204)
- fix(v9/node): Add mechanism to
fastifyIntegration
error handler (#17211) - fix(v9/replay): Fix re-sampled sessions after a click (#17195)
v9.42.1
- fix(v9/astro): Revert Astro v5 storing route data to
globalThis
(#17185) - fix(v9/cloudflare): Avoid turning DurableObject sync methods into async (#17187)
- fix(v9/nextjs): Handle async params in url extraction (#17176)
- fix(v9/sveltekit): Align error status filtering and mechanism in
handleErrorWithSentry
(#17174)
v9.42.0
- feat(v9/aws): Detect SDK source for AWS Lambda layer (#17150)
- fix(v9/core): Fix OpenAI SDK private field access by binding non-instrumented fns (#17167)
- fix(v9/core): Update ai.response.object to gen_ai.response.object (#17155)
- fix(v9/nextjs): Update stackframe calls for next v15.5 (#17161)
v9.41.0
Important Changes
- feat(v9/core): Deprecate experimental
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-level enableLogs
and beforeSendLog
options.
// before
Sentry.init({
_experiments: {
enableLogs: true,
beforeSendLog: log => {
return log;
},
},
});
// after
Sentry.init({
enableLogs: true,
beforeSendLog: log => {
return log;
},
});
- feat(astro): Implement parameterized routes
Server-side and client-side parameterized routes are now supported in the Astro SDK. No configuration changes are required.
Other Changes
- feat(v9/node): Add shouldHandleError option to fastifyIntegration (#17123)
- fix(v9/cloudflare) Allow non UUID workflow instance IDs (#17135)
- fix(v9/node): Ensure tool errors for
vercelAiIntegration
have correct trace (#17142) - fix(v9/remix): Ensure source maps upload fails silently if Sentry CLI fails (#17095)
- fix(v9/svelte): Do not insert preprocess code in script module in Svelte 5 (#17124)
Work in this release was contributed by @richardjelinek-fastest. Thank you for your contribution!
v9.40.0
Important Changes
- feat(browser): Add debugId sync APIs between web worker and main thread (#16981)
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 thread -
registerWebWorker({self})
to be used in the web worker
// main.js
Sentry.init({...})
const worker = new MyWorker(...);
Sentry.addIntegration(Sentry.webWorkerIntegration({ worker }));
worker.addEventListener('message', e => {...});
// worker.js
Sentry.registerWebWorker({ self });
self.postMessage(...);
- feat(core): Deprecate logger in favor of debug (#17040)
The internal SDK logger
export from @sentry/core
has been deprecated in favor of the debug
export. debug
only exposes log
, warn
, and error
methods but is otherwise identical to logger
. Note that this deprecation does not affect the logger
export from other packages (like @sentry/browser
or @sentry/node
) which is used for Sentry Logging.
import { logger, debug } from '@​sentry/core';
// before
logger.info('This is an info message');
// after
debug.log('This is an info message');
- feat(node): Add OpenAI integration (#17022)
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 completions -
client.responses.create()
- For the responses API
// The integration respects your `sendDefaultPii` option, but you can override the behavior in the integration options
Sentry.init({
dsn: '__DSN__',
integrations: [
Sentry.openAIIntegration({
recordInputs: true, // Force recording prompts
recordOutputs: true, // Force recording responses
}),
],
});
Other Changes
- feat(node-core): Expand
@opentelemetry/instrumentation
range to cover0.203.0
(#17043) - fix(cloudflare): Ensure errors get captured from durable objects (#16838)
- fix(sveltekit): Ensure server errors from streamed responses are sent (#17044)
Work in this release was contributed by @0xbad0c0d3 and @tommy-gilligan. Thank you for your contributions!
v9.39.0
Important Changes
- feat(browser): Add
afterStartPageloadSpan
hook to improve spanId assignment on web vital spans (#16893)
This MR 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.
- feat(nextjs): Client-side parameterized routes (#16934)
This MR 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
and users/456
now become become users/:id
).
- feat(node): Drop 401-404 and 3xx status code spans by default (#16972)
This MR 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
- feat(core): Prepend vercel ai attributes with
vercel.ai.X
(#16908) - feat(nextjs): Add
disableSentryWebpackConfig
flag (#17013) - feat(nextjs): Build app manifest (#16851)
- feat(nextjs): Inject manifest into client for turbopack builds (#16902)
- feat(nextjs): Inject manifest into client for webpack builds (#16857)
- feat(node-native): Add option to disable event loop blocked detection (#16919)
- feat(react-router): Ensure http.server route handling is consistent (#16986)
- fix(core): Avoid prolonging idle span when starting standalone span (#16928)
- fix(core): Remove side-effect from
tracing/errors.ts
(#16888) - fix(core): Wrap
beforeSendLog
inconsoleSandbox
(#16968) - fix(node-core): Apply correct SDK metadata (#17014)
- fix(react-router): Ensure that all browser spans have
source=route
(#16984)
Work in this release was contributed by @janpapenbrock. Thank you for your contribution!
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.