@sentry/hub
Advanced tools
Changelog
7.102.0
captureContext
function (#10737)Changelog
7.100.1
This release contains build fixes for profiling-node.
Changelog
7.100.0
This release includes some deprecations. For more details please look at our migration guide.
The deprecation most likely to affect you is the one of BrowserTracing
. Instead of new BrowserTracing()
, you should
now use browserTracingIntegration()
, which will also handle framework-specific instrumentation out of the box for
you - no need to pass a custom routingInstrumentation
anymore. For @sentry/react
, we expose dedicated integrations
for the different react-router versions:
reactRouterV6BrowserTracingIntegration()
reactRouterV5BrowserTracingIntegration()
reactRouterV4BrowserTracingIntegration()
reactRouterV3BrowserTracingIntegration()
See the migration guide for details.
browserTracingIntegration()
(#10353)BrowserTracing
integration (#10493)browserProfilingIntegration
(#10438)bunServerIntegration()
(#10439)browserTracingIntegration
(#10397)reactRouterV3BrowserTracingIntegration
for react router v3 (#10489)reactRouterV4/V5BrowserTracingIntegration
for react router v4 & v5 (#10488)reactRouterV6BrowserTracingIntegration
for react router v6 & v6.4 (#10491)browserTracingIntegration
(#10442)WinterCGFetch
with winterCGFetchIntegration
(#10436)continueTrace
(#10301)new VueIntegration()
(#10440)browserTracingIntegration()
(#10477)browserTracingIntegration()
(#10450)@sentry/profiling-node
has been ported into the monorepo. Future development for it will happen here!
setHttpStatus
from all packages (#10475)Sentry
namespace (#10452)name
& attributes
to tracesSampler
(#10426)system-ui
to start of font family (#10464)rrweb
to 2.10.0 (#10445)propagationContextFromHeaders
(#10313)startSpan
, startSpanManual
and startInactiveSpan
pick up the scopes at time of creation instead of
termination (#10492)require
call to import Undici (#10388)Changelog
7.98.0
This release primarily fixes some type declaration errors:
IntegrationIndex
type (#10337)Changelog
7.97.0
Note: The 7.96.0 release was incomplete. This release is partially encompassing changes from 7.96.0
.
stripBasename
option for React Router 6 (#10314)Changelog
7.95.0
This release includes some deprecations in preparation for v8.
Most notably, it deprecates the Replay
& Feedback
classes in favor of a functional replacement:
import * as Sentry from '@sentry/browser';
Sentry.init({
integrations: [
// Instead of
new Sentry.Replay(),
new Sentry.Feedback(),
// Use the functional replacement:
Sentry.replayIntegration(),
Sentry.feedbackIntegration(),
],
});
Span.origin
in favor of sentry.origin
attribute (#10260)Span.parentSpanId
(#10244)isInitialized()
to replace checking via getClient
(#10296)Replay
, ReplayCanvas
, Feedback
classes (#10270)Wasm
integration class (#10230)parameterize
function available through browser and node API (#10085)addOrUpdateIntegration
(#10263)Work in this release contributed by @AleshaOleg. Thank you for your contribution!
Changelog
7.93.0
As we're moving closer to the next major version of the SDK, more public APIs were deprecated.
To get a head start on migrating to the replacement APIs, please take a look at our migration guide.
getActiveTransaction()
& scope.getTransaction()
(#10098)Hub.shouldSendDefaultPii
(#10062)new Transaction()
(#10125)scope.getSpan()
& scope.setSpan()
(#10114)scope.setTransactionName()
(#10113)span.startChild()
(#10091)startTransaction()
(#10073)Transaction.getDynamicSamplingContext
in favor of getDynamicSamplingContextFromSpan
(#10094)startSpan()
(#10101)Scope
(#10039)name
and description
(#10056)tags
, data
, context
& setters (#10053)span.sampled
in favor of span.isRecording()
(#10034)lastEventId
on scope (#10093)node-schedule
libraryThis release adds auto instrumented check-ins for the node-schedule
library.
import * as Sentry from '@sentry/node';
import * as schedule from 'node-schedule';
const scheduleWithCheckIn = Sentry.cron.instrumentNodeSchedule(schedule);
const job = scheduleWithCheckIn.scheduleJob('my-cron-job', '* * * * *', () => {
console.log('You will see this message every minute');
});
node-schedule
library (#10086)span.spanContext()
(#10037)spanToJSON()
method to get span properties (#10074)scope
to startSpan
APIs (#10076)getModuleFromFilename
compatible with ESM (#10061)parameterize
function (#9145)setup
for integration on client multiple times (#10116)LocalVariables
integration should have correct name (#10084)event_id
(#10068)LocalVariables
(#10077)