Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(2) ref(tracing): Extract NativeFrames as standalone integration #3996

Merged
merged 27 commits into from
Aug 13, 2024

Conversation

krystofwoldrich
Copy link
Member

@krystofwoldrich krystofwoldrich commented Aug 6, 2024

📢 Type of change

  • Refactoring

📜 Description

This PR extracts Native Frames Tracking to a standalone integration. This is possible via client event spanStart and spanEnd which is available in JS v8. Before ReactNativeTracing integration ensured the Stall Tracking is started and stopped on transaction start and stop.

Moving the tracking to a standalone integration will let us measure usage of this feature (enabled integrations telemetry).

This PR introduces user facing breaking change.

Before

import Sentry from '@sentry/react-native';
Sentry.init({
  tracesSampleRate: 1.0,
  integrations: [
    new Sentry.ReactNativeTracing({
      enableNativeFramesTracking: true, // default true
    }),
  ],
});

After

import Sentry from '@sentry/react-native';
Sentry.init({
  tracesSampleRate: 1.0,
  enableNativeFramesTracking: true, // default true
});

💚 How did you test it?

sample app, tests

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • All tests passing
  • No breaking changes

Predecessor to this PR

Copy link
Contributor

github-actions bot commented Aug 6, 2024

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1230.83 ms 1238.80 ms 7.96 ms
Size 2.36 MiB 3.06 MiB 714.24 KiB

Copy link
Collaborator

@lucas-zimerman lucas-zimerman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@krystofwoldrich krystofwoldrich changed the title ref(tracing): Extract NativeFrames as standalone integration (2) ref(tracing): Extract NativeFrames as standalone integration Aug 8, 2024
Base automatically changed from kw/ref-app-start-integration to v6 August 9, 2024 08:40
An error occurred while trying to automatically change base from kw/ref-app-start-integration to v6 August 9, 2024 08:40
Copy link
Contributor

github-actions bot commented Aug 9, 2024

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1239.96 ms 1243.57 ms 3.61 ms
Size 2.92 MiB 3.62 MiB 720.12 KiB

Copy link
Contributor

github-actions bot commented Aug 9, 2024

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 433.73 ms 457.73 ms 24.00 ms
Size 17.73 MiB 20.04 MiB 2.31 MiB

@krystofwoldrich krystofwoldrich merged commit a9abb93 into v6 Aug 13, 2024
57 of 58 checks passed
@krystofwoldrich krystofwoldrich deleted the kw/ref-native-frames-integration branch August 13, 2024 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants