Skip to content
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

fix(deps): update sentry sdk #604

Merged
merged 1 commit into from
Oct 5, 2023
Merged

fix(deps): update sentry sdk #604

merged 1 commit into from
Oct 5, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 26, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@sentry/core (source) ^7.63.0 -> ^7.73.0 age adoption passing confidence
@sentry/integrations (source) ^7.63.0 -> ^7.73.0 age adoption passing confidence
@sentry/node (source) ^7.63.0 -> ^7.73.0 age adoption passing confidence
@sentry/profiling-node ^1.1.2 -> ^1.2.1 age adoption passing confidence
@sentry/utils (source) ^7.63.0 -> ^7.73.0 age adoption passing confidence
@sentry/vue (source) ^7.63.0 -> ^7.73.0 age adoption passing confidence

Release Notes

getsentry/sentry-javascript (@​sentry/core)

v7.73.0

Compare Source

Important Changes
  • feat(replay): Upgrade to rrweb2

This is fully backwards compatible with prior versions of the Replay SDK. The only breaking change that we will making is to not be masking aria-label by default. The reason for this change is to align with our core SDK which also does not mask aria-label. This change also enables better support of searching by clicks.

Another change that needs to be highlighted is the 13% bundle size increase. This bundle size increase is necessary to bring improved recording performance and improved replay fidelity, especially in regards to web components and iframes. We will be investigating the reduction of the bundle size in this PR.

Here are benchmarks comparing the version 1 of rrweb to version 2

metric v1 v2
lcp 1486.06 ms 1529.11 ms
cls 0.40 ms 0.40 ms
fid 1.53 ms 1.50 ms
tbt 3207.22 ms 3036.80 ms
memoryAvg 131.83 MB 124.84 MB
memoryMax 324.8 MB 339.03 MB
netTx 282.67 KB 272.51 KB
netRx 8.02 MB 8.07 MB
Other Changes
  • feat: Always assemble Envelopes (#​9101)
  • feat(node): Rate limit local variables for caught exceptions and enable captureAllExceptions by default (#​9102)
  • fix(core): Ensure tunnel is considered for isSentryUrl checks (#​9130)
  • fix(nextjs): Fix RequestAsyncStorage fallback path (#​9126)
  • fix(node-otel): Suppress tracing for generated sentry spans (#​9142)
  • fix(node): fill in span data from http request options object (#​9112)
  • fix(node): Fixes and improvements to ANR detection (#​9128)
  • fix(sveltekit): Avoid data invalidation in wrapped client-side load functions (#​9071)
  • ref(core): Refactor InboundFilters integration to use processEvent (#​9020)
  • ref(wasm): Refactor Wasm integration to use processEvent (#​9019)

Work in this release contributed by @​vlad-zhukov. Thank you for your contribution!

Bundle size 📦

Path Size
@​sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 84.26 KB
@​sentry/browser (incl. Tracing) - Webpack (gzipped) 31.42 KB
@​sentry/browser - Webpack (gzipped) 22 KB
@​sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 78.69 KB
@​sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 28.52 KB
@​sentry/browser - ES6 CDN Bundle (gzipped) 20.59 KB
@​sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 254.14 KB
@​sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 86.42 KB
@​sentry/browser - ES6 CDN Bundle (minified & uncompressed) 61.23 KB
@​sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.38 KB
@​sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 84.28 KB
@​sentry/react - Webpack (gzipped) 22.03 KB
@​sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 102.2 KB
@​sentry/nextjs Client - Webpack (gzipped) 50.95 KB

v7.72.0

Compare Source

Important Changes
  • 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 * as Sentry from "@​sentry/node";

Sentry.init({
  dsn: "___PUBLIC_DSN___",
  tracesSampleRate: 1.0,
});

await Sentry.enableANRDetection({ captureStackTrace: true });
// Function that runs your app
runApp();

Example (CJS):

const Sentry = require("@​sentry/node");

Sentry.init({
  dsn: "___PUBLIC_DSN___",
  tracesSampleRate: 1.0,
});

Sentry.enableANRDetection({ captureStackTrace: true }).then(() => {
  // Function that runs your app
  runApp();
});
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)

v7.71.0

Compare Source

  • feat(bun): Instrument Bun.serve (#​9080)
  • fix(core): Ensure global event processors are always applied to event (#​9064)
  • fix(core): Run client eventProcessors before global ones (#​9032)
  • fix(nextjs): Use webpack module paths to attempt to resolve internal request async storage module (#​9100)
  • fix(react): Add actual error name to boundary error name (#​9065)
  • fix(react): Compare location against basename-prefixed route. (#​9076)
  • ref(browser): Refactor browser integrations to use processEvent (#​9022)

Work in this release contributed by @​jorrit. Thank you for your contribution!

v7.70.0

Compare Source

Important Changes

This release contains the beta version of @sentry/bun, our SDK for the Bun JavaScript runtime! For details on how to use it, please see the README. Any feedback/bug reports are greatly appreciated, please reach out on GitHub.

Note that as of now the Bun runtime does not support global error handlers. This is being actively worked on, see the tracking issue in Bun's GitHub repo.

  • feat(remix): Add Remix 2.x release support. (#​8940)

The Sentry Remix SDK now officially supports Remix v2! See our Remix docs for more details.

Other Changes
  • chore(node): Upgrade cookie to ^0.5.0 (#​9013)
  • feat(core): Introduce processEvent hook on Integration (#​9017)
  • feat(node): Improve non-error messages (#​9026)
  • feat(vercel-edge): Add Vercel Edge Runtime package (#​9041)
  • fix(remix): Use React.ComponentType instead of React.FC as withSentry's generic type. (#​9043)
  • fix(replay): Ensure replay events go through preprocessEvent hook (#​9034)
  • fix(replay): Fix typo in Replay types (#​9028)
  • fix(sveltekit): Adjust handleErrorWithSentry type (#​9054)
  • fix(utils): Try-catch monkeypatching to handle frozen objects/functions (#​9031)

Work in this release contributed by @​Dima-Dim, @​krist7599555 and @​lifeiscontent. Thank you for your contributions!

Special thanks for @​isaacharrisholt for helping us implement a Vercel Edge Runtime SDK which we use under the hood for our Next.js SDK.

Bundle size 📦

Path Size
@​sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 75.58 KB
@​sentry/browser (incl. Tracing) - Webpack (gzipped) 31.49 KB
@​sentry/browser - Webpack (gzipped) 22.09 KB
@​sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 70.27 KB
@​sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 28.59 KB
@​sentry/browser - ES6 CDN Bundle (gzipped) 20.66 KB
@​sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 222.15 KB
@​sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 86.64 KB
@​sentry/browser - ES6 CDN Bundle (minified & uncompressed) 61.49 KB
@​sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.46 KB
@​sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 75.61 KB
@​sentry/react - Webpack (gzipped) 22.12 KB
@​sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 93.49 KB
@​sentry/nextjs Client - Webpack (gzipped) 51.07 KB

v7.69.0

Compare Source

Important Changes
  • New Performance APIs
    • feat: Update span performance API names (#​8971)
    • feat(core): Introduce startSpanManual (#​8913)

This release introduces a new set of top level APIs for the Performance Monitoring SDKs. These aim to simplify creating spans and reduce the boilerplate needed for performance instrumentation. The three new methods introduced are Sentry.startSpan, Sentry.startInactiveSpan, and Sentry.startSpanManual. These methods are available in the browser and node SDKs.

Sentry.startSpan wraps a callback in a span. The span is automatically finished when the callback returns. This is the recommended way to create spans.

// Start a span that tracks the duration of expensiveFunction
const result = Sentry.startSpan({ name: 'important function' }, () => {
  return expensiveFunction();
});

// You can also mutate the span wrapping the callback to set data or status
Sentry.startSpan({ name: 'important function' }, (span) => {
  // span is undefined if performance monitoring is turned off or if
  // the span was not sampled. This is done to reduce overhead.
  span?.setData('version', '1.0.0');
  return expensiveFunction();
});

If you don't want the span to finish when the callback returns, use Sentry.startSpanManual to control when the span is finished. This is useful for event emitters or similar.

// Start a span that tracks the duration of middleware
function middleware(_req, res, next) {
  return Sentry.startSpanManual({ name: 'middleware' }, (span, finish) => {
    res.once('finish', () => {
      span?.setHttpStatus(res.status);
      finish();
    });
    return next();
  });
}

Sentry.startSpan and Sentry.startSpanManual create a span and make it active for the duration of the callback. Any spans created while this active span is running will be added as a child span to it. If you want to create a span without making it active, use Sentry.startInactiveSpan. This is useful for creating parallel spans that are not related to each other.

const span1 = Sentry.startInactiveSpan({ name: 'span1' });

someWork();

const span2 = Sentry.startInactiveSpan({ name: 'span2' });

moreWork();

const span3 = Sentry.startInactiveSpan({ name: 'span3' });

evenMoreWork();

span1?.finish();
span2?.finish();
span3?.finish();
Other Changes
  • feat(core): Export BeforeFinishCallback type (#​8999)
  • build(eslint): Enforce that ts-expect-error is used (#​8987)
  • feat(integration): Ensure LinkedErrors integration runs before all event processors (#​8956)
  • feat(node-experimental): Keep breadcrumbs on transaction (#​8967)
  • feat(redux): Add 'attachReduxState' option (#​8953)
  • feat(remix): Accept org, project and url as args to upload script (#​8985)
  • fix(utils): Prevent iterating over VueViewModel (#​8981)
  • fix(utils): uuidv4 fix for cloudflare (#​8968)
  • fix(core): Always use event message and exception values for ignoreErrors (#​8986)
  • fix(nextjs): Add new potential location for Next.js request AsyncLocalStorage (#​9006)
  • fix(node-experimental): Ensure we only create HTTP spans when outgoing (#​8966)
  • fix(node-experimental): Ignore OPTIONS & HEAD requests (#​9001)
  • fix(node-experimental): Ignore outgoing Sentry requests (#​8994)
  • fix(node-experimental): Require parent span for pg spans (#​8993)
  • fix(node-experimental): Use Sentry logger as Otel logger (#​8960)
  • fix(node-otel): Refactor OTEL span reference cleanup (#​9000)
  • fix(react): Switch to props in useRoutes (#​8998)
  • fix(remix): Add glob to Remix SDK dependencies. (#​8963)
  • fix(replay): Ensure handleRecordingEmit aborts when event is not added (#​8938)
  • fix(replay): Fully stop & restart session when it expires (#​8834)

Work in this release contributed by @​Duncanxyz and @​malay44. Thank you for your contributions!

v7.68.0

Compare Source

  • feat(browser): Add BroadcastChannel and SharedWorker to TryCatch EventTargets (#​8943)
  • feat(core): Add name to Span (#​8949)
  • feat(core): Add ServerRuntimeClient (#​8930)
  • fix(node-experimental): Ensure span.finish() works as expected (#​8947)
  • fix(remix): Add new sourcemap-upload script files to prepack assets. (#​8948)
  • fix(publish): Publish downleveled TS3.8 types and fix types path (#​8954)

v7.67.0

Compare Source

Important Changes
  • feat: Mark errors caught by the SDK as unhandled
    • feat(browser): Mark errors caught from TryCatch integration as unhandled (#​8890)
    • feat(integrations): Mark errors caught from HttpClient and CaptureConsole integrations as unhandled (#​8891)
    • feat(nextjs): Mark errors caught from NextJS wrappers as unhandled (#​8893)
    • feat(react): Mark errors captured from ErrorBoundary as unhandled (#​8914)
    • feat(remix): Add debugid injection and map deletion to sourcemaps script (#​8814)
    • feat(remix): Mark errors caught from Remix instrumentation as unhandled (#​8894)
    • feat(serverless): Mark errors caught in Serverless handlers as unhandled (#​8907)
    • feat(vue): Mark errors caught by Vue wrappers as unhandled (#​8905)

This release fixes inconsistent behaviour of when our SDKs classify captured errors as unhandled.
Previously, some of our instrumentations correctly set unhandled, while others set handled.
Going forward, all errors caught automatically from our SDKs will be marked as unhandled.
If you manually capture errors (e.g. by calling Sentry.captureException), your errors will continue to be reported as handled.

This change might lead to a decrease in reported crash-free sessions and consequently in your release health score.
If you have concerns about this, feel free to open an issue.

Other Changes
  • feat(node-experimental): Implement new performance APIs (#​8911)
  • feat(node-experimental): Sync OTEL context with Sentry AsyncContext (#​8797)
  • feat(replay): Allow to configure maxReplayDuration (#​8769)
  • fix(browser): Add replay and profiling options to BrowserClientOptions (#​8921)
  • fix(browser): Check for existence of instrumentation targets (#​8939)
  • fix(nextjs): Don't re-export default in route handlers (#​8924)
  • fix(node): Improve mysql integration (#​8923)
  • fix(remix): Guard against missing default export for server instrument (#​8909)
  • ref(browser): Deprecate top-level wrap function (#​8927)
  • ref(node-otel): Avoid exporting internals & refactor attribute adding (#​8920)

Work in this release contributed by @​SorsOps. Thank you for your contribution!

v7.66.0

Compare Source

  • fix: Defer tracing decision to downstream SDKs when using SDK without performance (#​8839)
  • fix(nextjs): Fix package.json exports (#​8895)
  • fix(sveltekit): Ensure target file exists before applying auto instrumentation (#​8881)
  • ref: Use consistent console instrumentation (#​8879)
  • ref(browser): Refactor sentry breadcrumb to use hook (#​8892)
  • ref(tracing): Add origin to spans (#​8765)

v7.65.0

Compare Source

  • build: Remove build-specific polyfills (#​8809)
  • build(deps): bump protobufjs from 6.11.3 to 6.11.4 (#​8822)
  • deps(sveltekit): Bump @sentry/vite-plugin (#​8877)
  • feat(core): Introduce Sentry.startActiveSpan and Sentry.startSpan (#​8803)
  • fix: Memoize AsyncLocalStorage instance (#​8831)
  • fix(nextjs): Check for validity of API route handler signature (#​8811)
  • fix(nextjs): Fix requestAsyncStorageShim path resolution on windows (#​8875)
  • fix(node): Log entire error object in OnUncaughtException (#​8876)
  • fix(node): More relevant warning message when tracing extensions are missing (#​8820)
  • fix(replay): Streamline session creation/refresh (#​8813)
  • fix(sveltekit): Avoid invalidating data on route changes in wrapServerLoadWithSentry (#​8801)
  • fix(tracing): Better guarding for performance observer (#​8872)
  • ref(sveltekit): Remove custom client fetch instrumentation and use default instrumentation (#​8802)
  • ref(tracing-internal): Deprecate tracePropagationTargets in BrowserTracing (#​8874)

v7.64.0

Compare Source

  • feat(core): Add setMeasurement export (#​8791)
  • fix(nextjs): Check for existence of default export when wrapping pages (#​8794)
  • fix(nextjs): Ensure imports are valid relative paths (#​8799)
  • fix(nextjs): Only re-export default export if it exists (#​8800)
getsentry/profiling-node (@​sentry/profiling-node)

v1.2.1

Compare Source

Various fixes & improvements

v1.2.0

Compare Source

Various fixes & improvements

v1.1.3

Compare Source

Various fixes & improvements

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@github-actions
Copy link

github-actions bot commented Jul 26, 2023

size-limit report 📦

Path Size
fixture: base 378.27 KB (+1.54% 🔺)
fixture: lazy 382.94 KB (+1.54% 🔺)
fixture: tracing 398.42 KB (+1.64% 🔺)
fixture: lazy+tracing 403.06 KB (+1.63% 🔺)

@renovate renovate bot force-pushed the renovate/sentry-sdk branch from 6e72eb9 to efeaecc Compare July 31, 2023 17:20
@renovate renovate bot changed the title fix(deps): update sentry sdk to ^7.60.1 fix(deps): update sentry sdk to ^7.61.0 Jul 31, 2023
@renovate renovate bot changed the title fix(deps): update sentry sdk to ^7.61.0 fix(deps): update sentry sdk to ^7.61.1 Aug 4, 2023
@renovate renovate bot force-pushed the renovate/sentry-sdk branch 2 times, most recently from f8736c3 to 6084a93 Compare August 9, 2023 15:34
@renovate renovate bot changed the title fix(deps): update sentry sdk to ^7.61.1 fix(deps): update sentry sdk to ^7.62.0 Aug 9, 2023
@renovate renovate bot changed the title fix(deps): update sentry sdk to ^7.62.0 fix(deps): update sentry sdk to ^7.63.0 Aug 10, 2023
@renovate renovate bot force-pushed the renovate/sentry-sdk branch 2 times, most recently from 37f2bc2 to f7988dd Compare August 11, 2023 12:21
@renovate renovate bot changed the title fix(deps): update sentry sdk to ^7.63.0 fix(deps): update sentry sdk to ^7.63.0 - autoclosed Aug 11, 2023
@renovate renovate bot closed this Aug 11, 2023
@renovate renovate bot deleted the renovate/sentry-sdk branch August 11, 2023 12:38
@renovate renovate bot changed the title fix(deps): update sentry sdk to ^7.63.0 - autoclosed fix(deps): update sentry sdk to ^7.63.0 Aug 14, 2023
@renovate renovate bot reopened this Aug 14, 2023
@renovate renovate bot restored the renovate/sentry-sdk branch August 14, 2023 13:05
@renovate renovate bot changed the title fix(deps): update sentry sdk to ^7.63.0 fix(deps): update sentry sdk to ^7.64.0 Aug 14, 2023
@renovate renovate bot force-pushed the renovate/sentry-sdk branch from f7988dd to 287f5f7 Compare August 14, 2023 13:05
@renovate renovate bot changed the title fix(deps): update sentry sdk to ^7.64.0 fix(deps): update sentry sdk to ^7.65.0 Aug 28, 2023
@renovate renovate bot force-pushed the renovate/sentry-sdk branch 2 times, most recently from d3c6495 to e0f363d Compare August 28, 2023 16:32
@renovate renovate bot changed the title fix(deps): update sentry sdk to ^7.65.0 fix(deps): update sentry sdk Aug 28, 2023
@renovate renovate bot force-pushed the renovate/sentry-sdk branch 4 times, most recently from dcc24fc to 6c9be5f Compare September 5, 2023 19:20
@renovate renovate bot force-pushed the renovate/sentry-sdk branch 2 times, most recently from 4df1ee7 to f4f70d2 Compare September 13, 2023 10:03
@renovate renovate bot force-pushed the renovate/sentry-sdk branch 2 times, most recently from fcebb94 to 546ed94 Compare September 25, 2023 16:32
@renovate renovate bot force-pushed the renovate/sentry-sdk branch 2 times, most recently from c99f0e7 to bbc4c64 Compare October 2, 2023 12:34
@renovate renovate bot force-pushed the renovate/sentry-sdk branch from bbc4c64 to 2b38204 Compare October 5, 2023 10:43
@rchl rchl merged commit 3ae9b5b into main Oct 5, 2023
5 checks passed
@rchl rchl deleted the renovate/sentry-sdk branch October 5, 2023 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant