Skip to content

Releases: getsentry/sentry-react-native

5.24.3

20 Sep 08:05
Compare
Choose a tag to compare

Fixes

  • Support metro@0.80.10 new sourceMapString export (#4004)

Dependencies

5.33.0

18 Sep 15:37
Compare
Choose a tag to compare

Features

  • Add an option to disable native (iOS and Android) profiling for the HermesProfiling integration (#4094)

    To disable native profilers add the hermesProfilingIntegration.

    import * as Sentry from '@sentry/react-native';
    
    Sentry.init({
      integrations: [
        Sentry.hermesProfilingIntegration({ platformProfilers: false }),
      ],
    });

5.24.2

17 Sep 14:16
Compare
Choose a tag to compare

Features

  • Add an option to disable native (iOS and Android) profiling for the HermesProfiling integration (#4094)

    To disable native profilers add the hermesProfilingIntegration.

    import * as Sentry from '@sentry/react-native';
    
    Sentry.init({
      integrations: [
        Sentry.hermesProfilingIntegration({ platformProfilers: false }),
      ],
    });

6.0.0-beta.1

16 Sep 11:01
Compare
Choose a tag to compare
6.0.0-beta.1 Pre-release
Pre-release

Features

  • Add sentry.origin to SDK spans to indicated if spans are created by a part of the SDK or manually (#4066)

Changes

  • Set parentSpanIsAlwaysRootSpan to true to make parent of network requests predictable (#4084)
  • Remove deprecated enableSpotlight and spotlightSidecarUrl (#4086)
  • tracePropagationTargets defaults to all targets on mobile and same origin on the web (#4083)
  • Move _experiments.profilesSampleRate to profilesSampleRate root options object #3851)

Dependencies

5.32.0

12 Sep 21:46
Compare
Choose a tag to compare

Features

  • Exclude Sentry Web Replay, reducing the code in 130KB. (#4006)

    • You can keep Sentry Web Replay by setting includeWebReplay to true in your metro config as shown in the snippet:
    // For Expo
    const { getSentryExpoConfig } = require("@sentry/react-native/metro");
    const config = getSentryExpoConfig(__dirname, { includeWebReplay: true });
    
    // For RN
    const { getDefaultConfig } = require('@react-native/metro-config');
    const { withSentryConfig } = require('@sentry/react-native/metro');
    module.exports = withSentryConfig(getDefaultConfig(__dirname), { includeWebReplay: true });

Changes

  • Add Android Logger when new frame event is not emitted (#4081)
  • React Native Tracing Deprecations (#4073)
    • new ReactNativeTracing to reactNativeTracingIntegration()
    • new ReactNavigationInstrumentation to reactNavigationIntegration().
    • new ReactNativeNavigationInstrumentation to reactNativeNavigationIntegration().
    • ReactNavigationV4Instrumentation won't be supported in the next major SDK version, upgrade to react-navigation@5 or newer.
    • RoutingInstrumentation and RoutingInstrumentationInstance replace by Integration interface from @sentry/types.
    • enableAppStartTracking, enableNativeFramesTracking, enableStallTracking, enableUserInteractionTracing moved to Sentry.init({}) root options.

Dependencies

6.0.0-beta.0

06 Sep 18:16
Compare
Choose a tag to compare
6.0.0-beta.0 Pre-release
Pre-release

This is a beta version of the next major version of the Sentry React Native SDK 6.0.0.
Please, read the changes listed below as well as the changes made in the underlying
Sentry Javascript SDK 8.0.0 (JS Docs).

Major Changes

  • React Native Tracing options were moved to the root options

    import Sentry from '@sentry/react-native';
    
    Sentry.init({
      tracesSampleRate: 1.0,
      enableAppStartTracking: true, // default true
      enableNativeFramesTracking: true, // default true
      enableStallTracking: true, // default true
      enableUserInteractionTracing: true, // default false
      integrations: [
        Sentry.reactNativeTracingIntegration({
          beforeStartSpan: (startSpanOptions) => {
            startSpanOptions.name = 'New Name';
            return startSpanOptions;
          },
        }),
        Sentry.appStartIntegration({
          standalone: false, // default false
        }),
      ],
    });
  • New React Navigation Integration interface (#4003)

    import Sentry from '@sentry/react-native';
    import { NavigationContainer } from '@react-navigation/native';
    
    const reactNavigationIntegration = Sentry.reactNavigationIntegration();
    
    Sentry.init({
      tracesSampleRate: 1.0,
      integrations: [reactNavigationIntegration],
    });
    
    function RootComponent() {
      const navigation = React.useRef(null);
    
      return <NavigationContainer ref={navigation}
        onReady={() => {
          reactNavigationIntegration.registerNavigationContainer(navigation);
        }}>
      </NavigationContainer>;
    }
  • Removed beforeNavigate use beforeStartSpan instead (#3998)

    • beforeStartSpan is executed before the span start, compared to beforeNavigate which was executed before the navigation ended (after the span was created)

Dependencies

Other Changes

  • Native Frames uses spanId to attach frames replacing traceId (#4030)

  • Removed deprecated ReactNativeTracing option idleTimeout use idleTimeoutMs instead (#3998)

  • Removed deprecated ReactNativeTracing option maxTransactionDuration use finalTimeoutMs instead (#3998)

  • New Native Frames Integration (#3996)

  • New Stall Tracking Integration (#3997)

  • New User Interaction Tracing Integration (#3999)

  • New App Start Integration (#3852)

    • By default app start spans are attached to the first created transaction.
    • Standalone mode creates single root span (transaction) including only app start data.
  • New React Native Navigation Integration interface (#4003)

    import Sentry from '@sentry/react-native';
    import { Navigation } from 'react-native-navigation';
    
    Sentry.init({
      tracesSampleRate: 1.0,
      integrations: [
        Sentry.reactNativeNavigationIntegration({ navigation: Navigation })
      ],
    });

6.0.0-alpha.2

04 Sep 11:23
Compare
Choose a tag to compare
6.0.0-alpha.2 Pre-release
Pre-release
  • Only internal changes. No SDK changes.

6.0.0-alpha.1

03 Sep 08:47
Compare
Choose a tag to compare
6.0.0-alpha.1 Pre-release
Pre-release

Changes

  • Native Frames uses spanId to attach frames replacing traceId (#4030)

Dependencies

5.31.1

28 Aug 12:10
Compare
Choose a tag to compare

Fixes

  • Sentry CLI passes thru recursive node calls during source maps auto upload from Xcode ((#3843))
    • This fixes React Native 0.75 Xcode auto upload failures

Dependencies

5.31.0

27 Aug 14:03
Compare
Choose a tag to compare

Features

  • Add Sentry.crashedLastRun() (#4014)

Fixes

  • Use install_modules_dependencies for React iOS dependencies (#4040)
  • Replay.maskAllText masks RCTParagraphComponentView (#4048)

Dependencies