@sentry/hub
Advanced tools
Changelog
7.112.2
browserTracingIntegration
(#11765)Changelog
7.112.1
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
7.111.0
server.address
to browser http.client
spans (#11663)browserTracingIntegration
(#11647)Changelog
7.110.1
tunnelRoute
matching logic for hybrid cloud (#11577)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)