Skip to content

Commit

Permalink
fix(replay onboarding): fix bug where mask/block toggles not working …
Browse files Browse the repository at this point in the history
…for JS Loader (#62597)

(wrong param name being called)
  • Loading branch information
michellewzhang authored Jan 4, 2024
1 parent 6106735 commit c0e74e4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import ExternalLink from 'sentry/components/links/externalLink';
import {DocsParams} from 'sentry/components/onboarding/gettingStartedDoc/types';
import {t, tct} from 'sentry/locale';
import type {Organization, PlatformKey} from 'sentry/types';
import {trackAnalytics} from 'sentry/utils/analytics';
Expand Down Expand Up @@ -78,12 +79,12 @@ export const getReplayConfigureDescription = ({link}: {link: string}) =>
}
);

export const getReplayJsLoaderSdkSetupSnippet = params => `
export const getReplayJsLoaderSdkSetupSnippet = (params: DocsParams) => `
<script>
Sentry.onLoad(function() {
Sentry.init({
integrations: [
new Sentry.Replay(${getReplayConfigOptions(params.replayConfigOptions)}),
new Sentry.Replay(${getReplayConfigOptions(params.replayOptions)}),
],
// Session Replay
replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.
Expand Down

0 comments on commit c0e74e4

Please sign in to comment.