Skip to content

Commit

Permalink
Add include explaining sample code options
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Krawiec authored and Alex Krawiec committed Nov 18, 2024
1 parent 8e4c9a3 commit 9ec1de8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ Sentry captures data by using a platform-specific SDK that you add to your appli
});
```

It's important to import and initialize the SDK as early as possible in your application's lifecycle so Sentry can capture errors throughout the lifecycle.
It's important to import and initialize the SDK as early as possible in your application's lifecycle so Sentry can capture errors throughout the lifecycle. <Include name="platforms/configuration/options/js-config-options" />




1. Add your DSN key to the Sentry SDK configuration.

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Learn more about the [tracesSampleRate](/platforms/javascript/configuration/options/#traces-sample-rate), [replaysSessionSampleRate](/platforms/javascript/session-replay/configuration/#general-integration-configuration), and [replaysOnErrorSampleRate](/platforms/javascript/session-replay/configuration/#general-integration-configuration).

0 comments on commit 9ec1de8

Please sign in to comment.