7.0.0-alpha.0
Pre-release
Pre-release
Upgrading from 6.x to 7.0
Version 7 of the Sentry React Native SDK primarily introduces API cleanup and version support changes based on the Sentry Javascript SDK version 9. This update contains behavioral changes that will not be caught by type checkers, linters, or tests, so we recommend carefully reading through the entire migration guide instead of relying on automatic tooling.
Version 7 of the SDK is compatible with Sentry self-hosted versions 24.4.2 or higher (unchanged from v6). Lower versions may continue to work, but may not support all features.
Fixes
- Expo Updates Context is passed to native after native init to be available for crashes (#4808)
- Expo Updates Context values should all be lowercase (#4809)
- Avoid duplicate network requests (fetch, xhr) by default (#4816)
traceFetch
is disabled by default on mobile as RN uses a polyfill which will be traced bytraceXHR
Major Changes
- Set
{{auto}}
ifuser.ip_address
isundefined
andsendDefaultPii: true
(#4466) - Exceptions from
captureConsoleIntegration
are now marked as handled: true by default shutdownTimeout
moved fromcore
to@sentry/react-native
hasTracingEnabled
was renamed tohasSpansEnabled
- You can no longer drop spans or return null on
beforeSendSpan
hook
Removed types
- TransactionNamingScheme
- Request
- Scope (prefer using the Scope class)
Other removed items.
autoSessionTracking
from options.
To enable session tracking, ensure thatenableAutoSessionTracking
is enabled.enableTracing
. Instead, settracesSampleRate
to a value greater thanzero
toenable tracing
,0
to keep tracing integrations active without sampling, orundefined
to disable the performance integration.getCurrentHub()
,Hub
, andgetCurrentHubShim()
spanId
from propagationcontext
- metrics API
transactionContext
fromsamplingContext
@sentry/utils
package, the exports were moved to@sentry/core
- Standalone
Client
interface & deprecateBaseClient
Other Changes
- Fork
scope
if custom scope is passed tostartSpanManual
orstartSpan
- On React Native Web,
browserSessionIntegration
is added whenenableAutoSessionTracking
is set toTrue
(#4732)
ChangeCold/Warm App Start
span description toCold/Warm Start
(#4636)