@sentry/hub
Advanced tools
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)Changelog
7.87.0
getCurrentScope()
method (#9800)rrweb
to 2.5.0 (#9803)./exports
(#9775)assetPrefix
is defined (#9766)Changelog
7.84.0
automaticVercelMonitors
to be false
by default (#9697)From this version onwards the default for the automaticVercelMonitors
option in the Next.js SDK is set to false.
Previously, if you made use of Vercel Crons the SDK automatically instrumented the relevant routes to create Sentry
monitors. Because this feature will soon be generally available, we are now flipping the default to avoid situations
where quota is used unexpectedly.
If you want to continue using this feature, make sure to set the automaticVercelMonitors
flag to true
in your
next.config.js
Sentry settings.
astro
peer dependency range (#9696)middleware
in node_modules (#9686)