Socket
Socket
Sign inDemoInstall

@sentry/hub

Package Overview
Dependencies
3
Maintainers
11
Versions
428
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1345
43Next

7.110.0

Diff

Changelog

Source

7.110.0

Important Changes

  • feat(tracing): Add interactions sample rate to browser tracing integrations (#11382)

You can now use a interactionsSampleRate to control the sample rate of INP spans. interactionsSampleRate is applied on top of the global tracesSampleRate. Therefore if interactionsSampleRate is 0.5 and tracesSampleRate is 0.1, then the actual sample rate for interactions is 0.05.

Sentry.init({
  tracesSampleRate: 0.1,
  integrations: [
    Sentry.browserTracingIntegration({
      interactionsSampleRate: 0.5,
    }),
  ],
});
  • Deprecations

This release deprecates the Hub class, as well as the addRequestDataToTransaction method. The trpcMiddleware method is no longer on the Handlers export, but instead is a standalone export.

Please see the detailed Migration docs on how to migrate to the new APIs.

  • feat: Deprecate and relocate trpcMiddleware (#11389)
  • feat(core): Deprecate Hub class (#11528)
  • feat(types): Deprecate Hub interface (#11530)
  • ref: Deprecate addRequestDataToTransaction (#11368)

Other Changes

  • feat(core): Update metric normalization (#11519)
  • feat(feedback): Customize feedback placeholder text color (#11521)
  • feat(remix): Skip span creation for OPTIONS and HEAD request. (#11485)
  • feat(utils): Add metric buckets rate limit (#11506)
  • fix(core): unref timer to not block node exit (#11483)
  • fix(metrics): Map statsd to metric_bucket (#11505)
  • fix(spans): Allow zero exclusive time for INP spans (#11408)
  • ref(feedback): Configure feedback fonts (#11520)
sentry-bot
published 7.109.0 •

Changelog

Source

7.109.0

This release deprecates some exports from the @sentry/replay package. These exports have been moved to the browser SDK (or related framework SDKs like @sentry/react).

  • feat(feedback): Make "required" text for input elements configurable (#11287)
  • feat(node): Add scope to ANR events (#11267)
  • feat(replay): Bump rrweb to 2.12.0 (#11317)
  • fix(node): Local variables skipped after Promise (#11248)
  • fix(node): Skip capturing Hapi Boom error responses (#11324)
  • fix(web-vitals): Check for undefined navigation entry (#11312)
  • ref(replay): Deprecate @sentry/replay exports (#11242)

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

sentry-bot
published 7.108.0 •

Changelog

Source

7.108.0

This release fixes issues with Time to First Byte (TTFB) calculation in the SDK that was introduced with 7.95.0. It also fixes some bugs with Interaction to First Paint (INP) instrumentation. This may impact your Sentry Performance Score calculation.

  • feat(serverless): Add Node.js 20 to compatible runtimes (#11104)
  • feat(core): Backport ResizeObserver and googletag default filters (#11210)
  • feat(webvitals): Adds event entry names for INP handler. Also guard against empty metric value
  • fix(metrics): use correct statsd data category (#11187)
  • fix(node): Record local variables with falsy values (v7) (#11190)
  • fix(node): Use unique variable for ANR context transfer (v7) (#11162)
  • fix(node): Time zone handling for cron (#11225)
  • fix(tracing): use web-vitals ttfb calculation (#11231)
  • fix(types): Fix incorrect sampled type on Transaction (#11146)
  • fix(webvitals): Fix mapping not being maintained properly and sometimes not sending INP spans (#11183)

Work in this release contributed by @quisido and @joshkel. Thank you for your contributions!

sentry-bot
published 7.107.0 •

Changelog

Source

7.107.0

This release fixes issues with INP instrumentation with the Next.js SDK and adds support for the enableInp option in the deprecated BrowserTracing integration for backwards compatibility.

  • feat(performance): Port INP span instrumentation to old browser tracing (#11085)
  • fix(ember): Ensure browser tracing is correctly lazy loaded (#11027)
  • fix(node): Do not assert in vendored proxy code (v7 backport) (#11009)
  • fix(react): Set handled value in ErrorBoundary depending on fallback [v7] (#11037)
sentry-bot
published 7.106.1 •

Changelog

Source

7.106.1

  • fix(nextjs/v7): Use passthrough createReduxEnhancer on server (#11010)
sentry-bot
published 7.106.0 •

Changelog

Source

7.106.0

  • feat(nextjs): Support Hybrid Cloud DSNs with tunnelRoute option (#10958)
  • feat(remix): Add Vite dev-mode support to Express instrumentation (#10811)
  • fix(core): Undeprecate setTransactionName
  • fix(browser): Don't use chrome variable name (#10874)
  • fix(nextjs): Client code should not use Node global (#10925)
  • fix(node): support undici headers as strings or arrays (#10938)
  • fix(types): Add AttachmentType and use for envelope attachment_type property (#10946)
  • ref(ember): Avoid namespace import to hopefully resolve minification issue (#10885)
  • chore(sveltekit): Fix punctuation in a console.log (#10895)

Work in this release contributed by @jessezhang91 and @bfontaine. Thank you for your contributions!

sentry-bot
published 7.105.0 •

Changelog

Source

7.105.0

Important Changes

  • feat: Ensure withActiveSpan is exported everywhere (#10877)

You can use the withActiveSpan method to ensure a certain span is the active span in a given callback. This can be used to create a span as a child of a specific span with the startSpan API methods:

const parentSpan = Sentry.startInactiveSpan({ name: 'parent' });
if (parentSpan) {
  withActiveSpan(parentSpan, () => {
    // This will be a direct child of parentSpan
    const childSpan = Sentry.startInactiveSpan({ name: 'child' });
  });
}
sentry-bot
published 7.104.0 •

Changelog

Source

7.104.0

Important Changes

  • feat(performance): create Interaction standalone spans on inp events (#10709)

This release adds support for the INP web vital. This is currently only supported for Saas Sentry, and product support is released with the upcoming 24.3.0 release of self-hosted.

To opt-in to this feature, you can use the enableInp option in the browserTracingIntegration:

Sentry.init({
  integrations: [
    Sentry.browserTracingIntegration({
      enableInp: true,
    });
  ]
})

Other Changes

  • feat(feedback): Flush replays when feedback form opens (#10567)
  • feat(profiling-node): Expose nodeProfilingIntegration (#10864)
  • fix(profiling-node): Fix dependencies to point to current versions (#10861)
  • fix(replay): Add errorHandler for replayCanvas integration (#10796)
sentry-bot
published 7.103.0 •

Changelog

Source

7.103.0

Important Changes

  • feat(core): Allow to pass forceTransaction to startSpan() APIs (#10819)

You can now pass forceTransaction: true to startSpan(), startSpanManual() and startInactiveSpan(). This allows you to start a span that you want to be a transaction, if possible. Under the hood, the SDK will connect this span to the running active span (if there is one), but still send the new span as a transaction to the Sentry backend, if possible, ensuring it shows up as a transaction throughout the system.

Please note that setting this to true does not guarantee that this will be sent as a transaction, but that the SDK will try to do so. You can enable this flag if this span is important to you and you want to ensure that you can see it in the Sentry UI.

Other Changes

  • fix: Make breadcrumbs option optional in WinterCGFetch integration (#10792)
sentry-bot
published 7.102.1 •

Changelog

Source

7.102.1

  • fix(performance): Fixes latest route name and source for interactions not updating properly on navigation (#10702)
  • fix(tracing): Guard against missing window.location (#10659)
  • ref: Make span types more robust (#10660)
  • ref(remix): Make @remix-run/router a dependency (v7) (#10779)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc