-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add React Native Hermes Profiling Alpha (#7228)
Co-authored-by: Shana Matthews <shana.l.matthews@gmail.com> Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
- Loading branch information
1 parent
5cd88e6
commit 247bb7b
Showing
8 changed files
with
119 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/wizard/react-native/profiling-onboarding/react-native/0.alert.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
name: React Native | ||
doc_link: https://docs.sentry.io/platforms/react-native/profiling/ | ||
support_level: alpha | ||
type: language | ||
--- | ||
|
||
<div class='alert warning'> | ||
React Native Profiling is currently in alpha, and there may be some bugs. We recognize the irony. | ||
</div> |
10 changes: 10 additions & 0 deletions
10
src/wizard/react-native/profiling-onboarding/react-native/1.install.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
name: React Native | ||
doc_link: https://docs.sentry.io/platforms/react-native/profiling/ | ||
support_level: alpha | ||
type: language | ||
--- | ||
|
||
#### Install | ||
|
||
For the Profiling integration to work, you must have the Sentry React Native SDK (minimum version v5.7.0). Learn more about installation methods in our [full documentation](https://docs.sentry.io/platforms/react-native/#install). |
17 changes: 17 additions & 0 deletions
17
...izard/react-native/profiling-onboarding/react-native/2.configure-performance.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
name: React Native | ||
doc_link: https://docs.sentry.io/platforms/react-native/profiling/ | ||
support_level: alpha | ||
type: language | ||
--- | ||
|
||
#### Configure Performance | ||
|
||
Sentry’s performance monitoring product has to be enabled in order for Profiling to work. To enable performance monitoring in the SDK: | ||
|
||
```javascript | ||
Sentry.init({ | ||
dsn: "___PUBLIC_DSN___", | ||
tracesSampleRate: 1.0, | ||
}); | ||
``` |
22 changes: 22 additions & 0 deletions
22
src/wizard/react-native/profiling-onboarding/react-native/3.configure-profiling.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
name: React Native | ||
doc_link: https://docs.sentry.io/platforms/react-native/profiling/ | ||
support_level: alpha | ||
type: language | ||
--- | ||
|
||
#### Configure Profiling | ||
|
||
Add the `profilesSampleRate` option to your SDK config. | ||
|
||
```javascript | ||
Sentry.init({ | ||
dsn: "___PUBLIC_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, | ||
}, | ||
}); | ||
``` |
247bb7b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
sentry-docs – ./
docs.sentry.io
sentry-docs-git-master.sentry.dev
sentry-docs.sentry.dev