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

feat(SR): Add SR to Mobile project onboarding features #87304

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kahest
Copy link
Member

@kahest kahest commented Mar 18, 2025

🛑 we decided to only merge the Android changes now, will review iOS+RN when new view renderer is default 🛑

Adds SR config snippets to onboarding feature snippets for iOS/RN as applicable (Flutter will follow in 1-2 months):

  • ✅ iOS
  • ✅ RN

Note: this PR also changes the order of the product selection buttons -> split out into #87412

related PR for sentry-docs: getsentry/sentry-docs#13034

fixes #84250

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 18, 2025
@@ -391,18 +403,6 @@ export function ProductSelection({
checked={urlProducts.includes(ProductSolution.PERFORMANCE_MONITORING)}
/>
)}
{products.includes(ProductSolution.SESSION_REPLAY) && (
Copy link
Member Author

Choose a reason for hiding this comment

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

this changes the order of the product selection buttons (see PR description why)

  • from Tracing - Session Replay - Profiling
  • to Tracing - Profiling - Session Replay

we might want to reconsider this, not a strong opinion of mine :)

// Record Session Replays for 100% of Errors and 10% of Sessions
options.sessionReplay.onErrorSampleRate = 1.0
options.sessionReplay.sessionSampleRate = 0.1
// We recommend the ~5x more performant experimental view renderer
Copy link
Member Author

Choose a reason for hiding this comment

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

we need to decide if we want to point this out here. IMO we should, or we postpone this PR for iOS (and RN, see below)

Copy link
Member

Choose a reason for hiding this comment

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

Make sense to me as well.

}${
params.isReplaySelected
? `
// Record Session Replays for 10% of Sessions and 100% of Errors
Copy link
Member Author

Choose a reason for hiding this comment

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

RN will have the enableExperimentalViewRenderer option soon (PR in review), same considerations as for iOS (see https://github.com/getsentry/sentry/pull/87304/files#r2001723725) apply

@kahest kahest marked this pull request as ready for review March 18, 2025 18:34
description={t(
'Video-like reproductions of user sessions with debugging context to help you confirm issue impact and troubleshoot faster.'
)}
docLink="https://docs.sentry.io/platforms/javascript/guides/react/session-replay/"
Copy link
Member

Choose a reason for hiding this comment

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

i know the other links are also platform-specific too, but curious why these links are platform-specific and not linking to the general product docs

Copy link
Member Author

Choose a reason for hiding this comment

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

good point - IMO makes sense to link to product docs for all of these (in a separate PR?)

Copy link
Member

Choose a reason for hiding this comment

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

works for me!

Copy link
Member Author

Choose a reason for hiding this comment

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

split it out to #87412

@kahest kahest marked this pull request as draft March 19, 2025 17:15
@kahest kahest changed the title feat(SR): Add SR to Mobile onboarding features feat(SR): Add SR to Mobile project onboarding features Mar 19, 2025
kahest added a commit that referenced this pull request Mar 19, 2025
Adds SR config snippets to onboarding feature snippets for Android:

Android part of #87304

related PR for sentry-docs:
getsentry/sentry-docs#13051
kahest added a commit that referenced this pull request Mar 20, 2025
…87412)

<!-- Describe your PR here. -->

- updates order of products in the product selector to: Tracing -
Profiling - Session Replay
  - came up in [this PR](#87304)
- relevant for Mobile platforms that have all three now, first of which
is [Android](#87408)
- changes the links in the product buttons from specific SDK pages to
generic product pages
- came up in [this
PR](#87304 (comment))
- TBD: Tracing links to Key Terms page because there isn't a dedicated
single product page

![Screenshot 2025-03-18 at 19 03
11](https://github.com/user-attachments/assets/a6eb56b8-6ad6-4427-b4c9-32163f8e31c1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[New Org/Project Creation] Add Mobile Replay Instructions, Opt-in Only
3 participants