-
Returning
null
frombeforeSendSpan
span is deprecated. -
Passing
undefined
totracesSampleRate
/tracesSampler
/enableTracing
will be handled differently in v9In v8, a setup like the following:
Sentry.init({ tracesSampleRate: undefined, });
Will result in tracing being enabled, although no spans will be generated. In v9, we will streamline this behavior so that passing
undefined
will result in tracing being disabled, the same as not passing the option at all. If you are relying onundefined
being passed in and having tracing enabled because of this, you should update your config to set e.g.tracesSampleRate: 0
instead, which will also enable tracing in v9.
-
The
@sentry/utils
package has been deprecated. Import everything from@sentry/core
instead. -
Deprecated
AddRequestDataToEventOptions.transaction
. This option effectively doesn't do anything anymore, and will be removed in v9. -
Deprecated
TransactionNamingScheme
type. -
Deprecated
validSeverityLevels
. Will not be replaced. -
Deprecated
urlEncode
. No replacements. -
Deprecated
addRequestDataToEvent
. UseaddNormalizedRequestDataToEvent
instead. -
Deprecated
extractRequestData
. Instead manually extract relevant data off request. -
Deprecated
arrayify
. No replacements. -
Deprecated
memoBuilder
. No replacements. -
Deprecated
getNumberOfUrlSegments
. No replacements. -
Deprecated
BAGGAGE_HEADER_NAME
. No replacements. -
Deprecated
makeFifoCache
. No replacements. -
Deprecated
dynamicRequire
. No replacements. -
Deprecated
flatten
. No replacements. -
Deprecated
_browserPerformanceTimeOriginMode
. No replacements.
- Deprecated
transactionNamingScheme
option inrequestDataIntegration
. - Deprecated
debugIntegration
. To log outgoing events, use Hook Options (beforeSend
,beforeSendTransaction
, ...). - Deprecated
sessionTimingIntegration
. To capture session durations alongside events, use Context (Sentry.setContext()
). - Deprecated
addTracingHeadersToFetchRequest
method - this was only meant for internal use and is not needed anymore. - Deprecated
generatePropagationContext()
in favor of usinggenerateTraceId()
directly. - Deprecated
spanId
field onpropagationContext
- this field will be removed in v9, and should neither be read or set anymore.
- Deprecated
@WithSentry
. Use@SentryExceptionCaptured
instead. - Deprecated
SentryTracingInterceptor
. If you are using@sentry/nestjs
you can safely remove any references to theSentryTracingInterceptor
. If you are using another package migrate to@sentry/nestjs
and remove theSentryTracingInterceptor
afterwards. - Deprecated
SentryService
. If you are using@sentry/nestjs
you can safely remove any references to theSentryService
. If you are using another package migrate to@sentry/nestjs
and remove theSentryService
afterwards. - Deprecated
SentryGlobalGenericFilter
. Use theSentryGlobalFilter
instead. TheSentryGlobalFilter
is a drop-in replacement. - Deprecated
SentryGlobalGraphQLFilter
. Use theSentryGlobalFilter
instead. TheSentryGlobalFilter
is a drop-in replacement.
-
The
@sentry/types
package has been deprecated. Import everything from@sentry/core
instead. -
Deprecated
Request
in favor ofRequestEventData
.
- Deprecated
tracingOptions
inSentry.init()
in favor of passing thevueIntegration()
toSentry.init({ integrations: [...] })
and settingtracingOptions
there.
-
Deprecated
tracingOptions
,trackComponents
,timeout
,hooks
options everywhere other than in thetracingOptions
option of thevueIntegration()
. These options should now be set as follows:import * as Sentry from '@sentry/vue'; Sentry.init({ integrations: [ Sentry.vueIntegration({ tracingOptions: { trackComponents: true, timeout: 1000, hooks: ['mount', 'update', 'unmount'], }, }), ], });
- Deprecated passing
dsn
,release
,environment
,sampleRate
,tracesSampleRate
,replaysSessionSampleRate
to the integration. Use the runtime-specificSentry.init()
calls for passing these options instead.
- Deprecated
autoInstrumentRemix: false
. The next major version will default to behaving as if this option weretrue
and the option itself will be removed.
- Deprecated
wrapUseRoutes
. UsewrapUseRoutesV6
orwrapUseRoutesV7
instead. - Deprecated
wrapCreateBrowserRouter
. UsewrapCreateBrowserRouterV6
orwrapCreateBrowserRouterV7
instead.
- Deprecated
generateSpanContextForPropagationContext
in favor of doing this manually - we do not need this export anymore.
- Deprecated
processThreadBreadcrumbIntegration
in favor ofchildProcessIntegration
. Functionally they are the same. - Deprecated
nestIntegration
. Use the NestJS SDK (@sentry/nestjs
) instead. - Deprecated
setupNestErrorHandler
. Use the NestJS SDK (@sentry/nestjs
) instead. - Deprecated
addOpenTelemetryInstrumentation
. Use theopenTelemetryInstrumentations
option inSentry.init()
or your custom Sentry Client instead. - Deprecated
registerEsmLoaderHooks.include
andregisterEsmLoaderHooks.exclude
. SetonlyIncludeInstrumentedModules: true
instead. registerEsmLoaderHooks
will only accepttrue | false | undefined
in the future. The SDK will default to wrapping modules that are used as part of OpenTelemetry Instrumentation.