@sentry/core
Advanced tools
Changelog
8.0.0-beta.4
INP web vital support was now forward-ported to version 8. Recording of INP data is enabled by default.
The default limit of queued events to be sent was increased from 30 to 64 events. You may observe a higher memory
footprint of the SDK. You can override this limit by setting the transportOptions.bufferSize
option in
Sentry.init()
.
A maxCanvasSize
option was added to the replayCanvasIntegration
to disallow capturing of canvases larger than a
certain size. This value defaults to 1280
which will not capture canvases bigger than 1280x1280 pixels.
@opentelemetry/instrumentation-http
to 0.48.0
(#11745)@opentelemetry/api
dependency from Next.js package (#11717)lazyLoadIntegration
works in NPM mode (#11673)Changelog
7.112.0
Instead of installing @sentry/integrations
, you can now import the pluggable integrations directly from your SDK
package:
// Before
import * as Sentry fromv '@sentry/browser';
import { dedupeIntegration } from '@sentry/integrations';
Sentry.init({
integrations: [dedupeIntegration()],
});
// After
import * as Sentry from '@sentry/browser';
Sentry.init({
integrations: [Sentry.dedupeIntegration()],
});
Note that only the functional integrations (e.g. xxxIntegration()
) are re-exported.
Changelog
8.0.0-beta.3
addOpenTelemetryInstrumentation
(#11667)A utility function addOpenTelemetryInstrumentation
was added that allows for the registration of instrumentations that
conform to the OpenTelemetry JS API without having to specify @opentelemetry/instrumentation
as a dependency.
Going forward, the Sentry trpcMiddleware
will only create spans. Previously it used to always create a transaction.
This change was made to integrate more nicely with the HTTP instrumentation added in earlier versions to avoid creating
unnecessary transactions.
Changelog
7.111.0
server.address
to browser http.client
spans (#11663)browserTracingIntegration
(#11647)Changelog
8.0.0-beta.2
propagationContext
on spanEnd
to keep trace consistentTo ensure consistency throughout a route's duration, we update the scope's propagation context when the initial page load or navigation span ends. This keeps span-specific attributes like the sampled decision and dynamic sampling context on the scope, even after the transaction has ended.
We won't assume window.dodument
is available in the browser SDKs anymore. This should prevent errors in environments
where window.document
is not available (such as web workers).
server.address
to browser http.client
spans (#11634)NodeClient
without calling init
(#11585)Changelog
8.0.0-beta.1
This is the first beta release of Sentry JavaScript SDK v8. With this release, there are no more planned breaking changes for the v8 cycle.
Read the in-depth migration guide to find out how to address any breaking changes in your code. All
deprecations from the v7 cycle, with the exception of getCurrentHub()
, have been removed and can no longer be used in
v8.
The Sentry JavaScript SDK v8 now supports Node.js 14.8.0 or higher. This applies to @sentry/node
and all of our
node-based server-side sdks (@sentry/nextjs
, @sentry/remix
, etc.).
The browser SDKs now require ES2018+ compatible browsers. New minimum browser versions:
For more details, please see the version support section in migration guide.
The following packages will no longer be published
Changelog
7.110.0
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,
}),
],
});
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.
trpcMiddleware
(#11389)Hub
class (#11528)Hub
interface (#11530)addRequestDataToTransaction
(#11368)OPTIONS
and HEAD
request. (#11485)statsd
to metric_bucket
(#11505)