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

Profiling for RN #2668

Closed
14 of 15 tasks
krystofwoldrich opened this issue Dec 5, 2022 · 6 comments
Closed
14 of 15 tasks

Profiling for RN #2668

krystofwoldrich opened this issue Dec 5, 2022 · 6 comments

Comments

@krystofwoldrich
Copy link
Member

krystofwoldrich commented Dec 5, 2022

This issue tracks all related tasks to Sentry React Native Profiling support.

  1. krystofwoldrich

In Progress

  1. krystofwoldrich
  2. krystofwoldrich
  3. krystofwoldrich

Planned

  1. Platform: React-Native
    krystofwoldrich

Private Notion page link.


This issue serves to gather interest and comments regarding Profiling for RN.

More about the Profiling product here.

Android and iOS support profiling therefore RN native could offer an option to turn it on in the native layers.

Thumbs up if you are interested.

@marandaneto
Copy link
Contributor

Right now that would be possible if you init the SDK manually.

Enable Performance and Profiling directly on the Native SDKs, for example, Android.
https://docs.sentry.io/platforms/android/performance/
https://docs.sentry.io/platforms/android/profiling/

The same steps for iOS, would work for Android and iOS native code only, not in the JS bits nor C bits for Android.

@krystofwoldrich
Copy link
Member Author

Linking opened Profiling discussion.

@krystofwoldrich
Copy link
Member Author

For everyone interested in updates on the RN Profiling please see the new post in the discussion.

#3009 (comment)

@marandaneto
Copy link
Contributor

@krystofwoldrich is there a draft PR we can look at? no need to be finished or polished, the earlier a draft PR is out, the earlier you get feedback :)

@krystofwoldrich
Copy link
Member Author

@krystofwoldrich
Copy link
Member Author

krystofwoldrich commented Jul 27, 2023

Experimental support released in https://github.com/getsentry/sentry-react-native/releases/tag/5.8.0

Docs: https://docs.sentry.io/platforms/react-native/profiling/

yarn add @sentry/react-native@latest
Sentry.init({
  dsn: '__DSN__',
  tracesSampleRate: 1.0,
  _experiments: {
    // The sampling rate for profiling is relative to TracesSampleRate.
    // In this case, we'll capture profiles for 100% of transactions.
    profilesSampleRate: 1.0,
  },
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

4 participants