You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(node): App Not Responding with stack traces (#9079)
This release introduces support for Application Not Responding (ANR) errors for Node.js applications.
These errors are triggered when the Node.js main thread event loop of an application is blocked for more than five seconds.
The Node SDK reports ANR errors as Sentry events and can optionally attach a stacktrace of the blocking code to the ANR event.
To enable ANR detection, import and use the enableANRDetection function from the @sentry/node package before you run the rest of your application code.
Any event loop blocking before calling enableANRDetection will not be detected by the SDK.
Example (ESM):
import*asSentryfrom"@sentry/node";Sentry.init({dsn: "PUBLIC_DSN",tracesSampleRate: 1.0,});awaitSentry.enableANRDetection({captureStackTrace: true});// Function that runs your apprunApp();
Example (CJS):
constSentry=require("@sentry/node");Sentry.init({dsn: "PUBLIC_DSN",tracesSampleRate: 1.0,});Sentry.enableANRDetection({captureStackTrace: true}).then(()=>{// Function that runs your apprunApp();});
Other Changes
fix(nextjs): Filter RequestAsyncStorage locations by locations that webpack will resolve (#9114)
fix(replay): Ensure replay_id is not captured when session is expired (#9109)
feat(node): App Not Responding with stack traces (#9079)
This release introduces support for Application Not Responding (ANR) errors for Node.js applications.
These errors are triggered when the Node.js main thread event loop of an application is blocked for more than five seconds.
The Node SDK reports ANR errors as Sentry events and can optionally attach a stacktrace of the blocking code to the ANR event.
To enable ANR detection, import and use the enableANRDetection function from the @sentry/node package before you run the rest of your application code.
Any event loop blocking before calling enableANRDetection will not be detected by the SDK.
Example (ESM):
import*asSentryfrom"@sentry/node";Sentry.init({dsn: "PUBLIC_DSN",tracesSampleRate: 1.0,});awaitSentry.enableANRDetection({captureStackTrace: true});// Function that runs your apprunApp();
Example (CJS):
constSentry=require("@sentry/node");Sentry.init({dsn: "PUBLIC_DSN",tracesSampleRate: 1.0,});Sentry.enableANRDetection({captureStackTrace: true}).then(()=>{// Function that runs your apprunApp();});
Other Changes
fix(nextjs): Filter RequestAsyncStorage locations by locations that webpack will resolve (#9114)
fix(replay): Ensure replay_id is not captured when session is expired (#9109)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase will rebase this PR
@dependabot recreate will recreate this PR, overwriting any edits that have been made to it
@dependabot merge will merge this PR after your CI passes on it
@dependabot squash and merge will squash and merge this PR after your CI passes on it
@dependabot cancel merge will cancel a previously requested merge and block automerging
@dependabot reopen will reopen this PR if it is closed
@dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
@dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
@dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Breaking changes1: feat(replay): Ensure min/max duration when flushing (#8596)
The replay feature now has a minimum and maximum duration limit. Replays shorter than 5 seconds will not be sent, and replays longer than 1 hour are also prevented. The minimum replay duration can be configured, but it is capped at 15 seconds. This change may affect your application if it relies on sending very short or very long replays.
The build-specific polyfills have been removed. If your codebase was relying on these polyfills, you may need to add them back manually.
2: ref(sveltekit): Remove custom client fetch instrumentation and use default instrumentation (#8802)
The custom client fetch instrumentation in SvelteKit has been removed and replaced with the default instrumentation. If you were using the custom client fetch instrumentation, you will need to update your code to use the default one.
3: ref(tracing-internal): Deprecate tracePropagationTargets in BrowserTracing (#8874)
tracePropagationTargets in BrowserTracing has been deprecated. If you are using this feature, you should plan to update your code as it may be removed in future versions.
Breaking changes1: feat: Mark errors caught by the SDK as unhandled
All errors caught automatically from the SDKs will now be marked as unhandled. This change might lead to a decrease in reported crash-free sessions and consequently in your release health score. If you manually capture errors (e.g. by calling Sentry.captureException), your errors will continue to be reported as handled.
2: ref(browser): Deprecate top-level wrap function
The top-level wrap function has been deprecated. This might require changes in your code where this function is being used.
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
dependenciesPull requests that update a dependency file
0 participants
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 @sentry/node from 7.57.0 to 7.72.0.
Release notes
Sourced from
@sentry/node's releases.... (truncated)
Changelog
Sourced from
@sentry/node's changelog.... (truncated)
Commits
e7bd97brelease: 7.72.0f736381Merge pull request #9118 from getsentry/prepare-release/7.72.0779cd26meta(changelog): Update changelog for 7.72.0a57b66dfix(nextjs): FilterRequestAsyncStoragelocations by locations that webpack...618e992fix(replay): Ensurereplay_idis not captured when session is expired (#9109)c326e15ref(node-experimental): Add resource information (#9088)5a8d4aafeat(node): App Not Responding with stack traces (#9079)50a36bfMerge pull request #9105 from getsentry/master7614bb9Merge branch 'release/7.71.0'a7cce7bfix(node): Remove dom lib types (#9090)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)