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 #563

Merged
merged 1 commit into from
May 9, 2023
Merged

fix(deps): update sentry sdk #563

merged 1 commit into from
May 9, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 20, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@sentry/core (source) ^7.48.0 -> ^7.50.0 age adoption passing confidence
@sentry/integrations (source) ^7.48.0 -> ^7.50.0 age adoption passing confidence
@sentry/node (source) ^7.48.0 -> ^7.50.0 age adoption passing confidence
@sentry/utils (source) ^7.48.0 -> ^7.50.0 age adoption passing confidence
@sentry/vue (source) ^7.48.0 -> ^7.50.0 age adoption passing confidence
@sentry/webpack-plugin 1.20.0 -> 1.20.1 age adoption passing confidence

Release Notes

getsentry/sentry-javascript

v7.50.0

Compare Source

Important Changes
  • doc(sveltekit): Promote the SDK to beta state (#​7976)
    • feat(sveltekit): Convert sentryHandle to a factory function (#​7975)

With this release, the Sveltekit SDK (@​sentry/sveltekit) is promoted to Beta.
This means that we do not expect any more breaking changes.

The final breaking change is that sentryHandle is now a function.
So in order to update to 7.50.0, you have to update your hooks.server.js file:

// hooks.server.js

// Old:
export const handle = sentryHandle;
// New:
export const handle = sentryHandle();
  • feat(replay): Allow to configure URLs to capture network bodies/headers (#​7953)

You can now capture request/response bodies & headers of network requests in Replay.
You have to define an allowlist of URLs you want to capture additional information for:

new Replay({
  networkDetailAllowUrls: ['https://sentry.io/api'],
});

By default, we will capture request/response bodies, as well as the request/response headers content-type, content-length and accept.
You can configure this with some additional configuration:

new Replay({
  networkDetailAllowUrls: ['https://sentry.io/api'],
  // opt-out of capturing bodies
  networkCaptureBodies: false,
  // These headers are captured _in addition to_ the default headers
  networkRequestHeaders: ['X-Custom-Header'],
  networkResponseHeaders: ['X-Custom-Header', 'X-Custom-Header-2']
});

Note that bodies will be truncated to a max length of ~150k characters.

- feat(replay): Changes of sampling behavior & public API

  • feat(replay): Change the behavior of error-based sampling (#​7768)
  • feat(replay): Change flush() API to record current event buffer (#​7743)
  • feat(replay): Change stop() to flush and remove current session (#​7741)

We have changed the behavior of error-based sampling, as well as adding & adjusting APIs a bit to be more aligned with expectations.
See Sampling for details.

We've also revamped some public APIs in order to be better aligned with expectations. See Stoping & Starting Replays manually for details.

  • feat(core): Add multiplexed transport (#​7926)

We added a new transport to support multiplexing.
With this, you can configure Sentry to send events to different DSNs, depending on a logic of your choosing:

import { makeMultiplexedTransport } from '@​sentry/core';
import { init, captureException, makeFetchTransport } from '@​sentry/browser';

function dsnFromFeature({ getEvent }) {
  const event = getEvent();
  switch(event?.tags?.feature) {
    case 'cart':
      return ['__CART_DSN__'];
    case 'gallery':
      return ['__GALLERY_DSN__'];
  }
  return []
}

init({
  dsn: '__FALLBACK_DSN__',
  transport: makeMultiplexedTransport(makeFetchTransport, dsnFromFeature)
});
Additional Features and Fixes
  • feat(nextjs): Add disableLogger option that automatically tree shakes logger statements (#​7908)
  • feat(node): Make Undici a default integration. (#​7967)
  • feat(replay): Extend session idle time until expire to 15min (#​7955)
  • feat(tracing): Add db.system span data to DB spans (#​7952)
  • fix(core): Avoid crash when Function.prototype is frozen (#​7899)
  • fix(nextjs): Fix inject logic for Next.js 13.3.1 canary (#​7921)
  • fix(replay): Ensure console breadcrumb args are truncated (#​7917)
  • fix(replay): Ensure we do not set replayId on dsc if replay is disabled (#​7939)
  • fix(replay): Ensure we still truncate large bodies if they are failed JSON (#​7923)
  • fix(utils): default normalize() to a max. of 100 levels deep instead of Inifnity (#​7957)

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

v7.49.0

Compare Source

Important Changes
  • feat(sveltekit): Read adapter output directory from svelte.config.js (#​7863)

Our source maps upload plugin is now able to read svelte.config.js. This is necessary to automatically find the output directory that users can specify when setting up the Node adapter.

  • fix(replay): Ensure we normalize scope breadcrumbs to max. depth to avoid circular ref (#​7915)

This release fixes a potential problem with how Replay captures console logs.
Any objects logged will now be cut off after a maximum depth of 10, as well as cutting off any properties after the 1000th.
This should ensure we do not accidentally capture massive console logs, where a stringified object could reach 100MB or more.

  • fix(utils): Normalize HTML elements as string (#​7916)

We used to normalize references to HTML elements as POJOs.
This is both not very easily understandable, as well as potentially large, as HTML elements may have properties attached to them.
With this change, we now normalize them to e.g. [HTMLElement: HTMLInputElement].

Additional Features and Fixes
  • feat(browser): Simplify stack parsers (#​7897)
  • feat(node): Add monitor upsert types (#​7914)
  • feat(replay): Truncate network bodies to max size (#​7875)
  • fix(gatsby): Don't crash build when auth token is missing (#​7858)
  • fix(gatsby): Use import for gatsby-browser.js instead of require (#​7889)
  • fix(nextjs): Handle braces in stack frame URLs (#​7900)
  • fix(nextjs): Mark value injection loader result as uncacheable (#​7870)
  • fix(node): Correct typo in trpc integration transaciton name (#​7871)
  • fix(node): reduce deepReadDirSync runtime complexity (#​7910)
  • fix(sveltekit): Avoid capturing "Not Found" errors in server handleError wrapper (#​7898)
  • fix(sveltekit): Detect sentry release before creating the Vite plugins (#​7902)
  • fix(sveltekit): Use sentry.properties file when uploading source maps (#​7890)
  • fix(tracing): Ensure we use s instead of ms for startTimestamp (#​7877)
  • ref(deprecate): Deprecate timestampWithMs (#​7878)
  • ref(nextjs): Don't use Sentry Webpack Plugin in dev mode (#​7901)
getsentry/sentry-webpack-plugin

v1.20.1

Compare Source

  • fix: Update Webpack plugin to 1.75.1 to fix bug in Angular source maps (#​439)
  • fix: Update @​sentry/cli to 1.75.0 to fix ansi-regex security warning (#​427)
  • build(deps): bump loader-utils from 1.1.0 to 1.4.1 in /example

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 Apr 20, 2023

size-limit report 📦

Path Size
fixture: base 365.57 KB (+0.19% 🔺)
fixture: lazy 370 KB (+0.19% 🔺)
fixture: tracing 382.33 KB (+0.23% 🔺)
fixture: lazy+tracing 386.72 KB (+0.23% 🔺)

@renovate renovate bot force-pushed the renovate/sentry-sdk branch from 9356a21 to 7e52b03 Compare April 27, 2023 15:37
@renovate renovate bot changed the title fix(deps): update sentry sdk to ^7.49.0 fix(deps): update sentry sdk Apr 27, 2023
@renovate renovate bot force-pushed the renovate/sentry-sdk branch 3 times, most recently from 2b05575 to e4ca382 Compare May 8, 2023 15:12
@renovate renovate bot force-pushed the renovate/sentry-sdk branch from e4ca382 to 1030af8 Compare May 8, 2023 19:31
@rchl rchl merged commit bcb9500 into main May 9, 2023
@rchl rchl deleted the renovate/sentry-sdk branch May 9, 2023 14:23
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