-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
feat(replay): add mobile platforms to onboarding sidebar #76709
Conversation
static/app/components/onboarding/gettingStartedDoc/utils/replayOnboarding.tsx
Outdated
Show resolved
Hide resolved
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.
Apple onboarding looks good
Sentry.mobileReplayIntegration({ | ||
maskAllText: true, | ||
maskAllImages: true, | ||
}), |
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.
These values are repeated in the configuration snippet, I would leave them out here since they are not needed and will make the init snipped a bit less overwhelming.
Also it will match the Browser JS which also by default doesn't show any config options.
Sentry.mobileReplayIntegration({ | |
maskAllText: true, | |
maskAllImages: true, | |
}), | |
Sentry.mobileReplayIntegration(), |
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.
oh yes, good point -- i copied this from the docs so maybe we want to update it there too?
https://docs.sentry.io/platforms/react-native/session-replay/
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.
fixed here getsentry/sentry-docs#11192
In our other guides the |
Just a two small nits, otherwise RN looks good! |
yup, I can add that |
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.
I did not check the android/ios syntax but everything else looks good
static/app/components/onboarding/gettingStartedDoc/utils/replayOnboarding.tsx
Outdated
Show resolved
Hide resolved
import * as Sentry from '@sentry/react-native'; | ||
|
||
Sentry.init({ | ||
dsn = "${params.dsn.public}", |
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.
dsn = "${params.dsn.public}", | |
dsn: "${params.dsn.public}", |
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.
oh if this is the right syntax we should also update our docs, it's wrong there too https://docs.sentry.io/platforms/react-native/session-replay/
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.
Yes, this was an oversight in the docs, thank you for fixing it there as well.
_experiments: { | ||
replaysSessionSampleRate: 1.0, | ||
replaysOnErrorSampleRate: 1.0, | ||
}, |
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.
I'm not up to date on the RN sdk but should this still be in _experiments
?
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.
that's how it is in our docs! https://docs.sentry.io/platforms/react-native/session-replay/
cc @krystofwoldrich👀
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.
Yes, _experiments
is correct.
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.
RN Looks good!
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.
Apple looks good!
{ | ||
label: 'Kotlin', | ||
value: 'kotlin', | ||
language: 'java', |
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.
language: 'java', | |
language: 'kotlin', |
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.
ah okay, didn't know what was the standard since other onboardings use java
for the language for kotlin
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.
updated those here: #76876
options.isDebug = true | ||
|
||
// Currently under experimental options: | ||
options.experimental.sessionReplay.errorSampleRate = 1.0 |
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.
FYI: i've already merged the PR that changes the name to onErrorSampleRate
- do we wanna wait for the new SDK release and change it now, or rather ship this and follow-up later?
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.
hmm @romtsn let's follow up perhaps, since we need to update the docs anyway - can do both at the same time. feel free to ping me to update when the SDK release is out
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.
left a few comments, but otherwise LGTM! If we don't wanna wait for the new Android SDK version, let's merge it
closes #67695
android:
Screen.Recording.2024-08-29.at.11.54.50.AM.mov
react native:
Screen.Recording.2024-08-29.at.11.55.57.AM.mov
apple:
Screen.Recording.2024-08-29.at.11.56.19.AM.mov