Skip to content

Commit 894cd1c

Browse files
coolguyzonelizokm
andauthored
Update docs/concepts/key-terms/sample-rates.mdx
Co-authored-by: Liza Mock <[email protected]>
1 parent 5d7155b commit 894cd1c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/concepts/key-terms/sample-rates.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,19 @@ description: Learn how to manage the amount of data you send and are billed for
88
Some of the options below aren't available in every SDK; check out our platform-specific docs for more info.
99
</Note>
1010

11+
## Error Events
1112

13+
- **SampleRate** - Configures the sample rate for error events, in the range of 0.0 to 1.0. The default is 1.0, which means that 100% of error events will be sent. If set to 0.1, only 10% of error events will be sent. Events are picked randomly.
14+
15+
## Tracing
1216

1317
- **tracesSampleRate** - A number between 0 and 1, controlling the percentage chance a given transaction will be sent to Sentry. (0 represents 0% while 1 represents 100%.) Applies equally to all transactions created in the app. Either this or `tracesSampler` must be defined to enable tracing.
1418

1519
- **tracesSampler** - A function responsible for determining the percentage chance a given transaction will be sent to Sentry. It will automatically be passed information about the transaction and the context in which it's being created, and must return a number between 0 (0% chance of being sent) and 1 (100% chance of being sent). Can also be used for filtering transactions, by returning 0 for those that are unwanted. Either this or `tracesSampleRate` must be defined to enable tracing.
1620

21+
## Session Replay
22+
1723
- **replaysSessionSampleRate** - The sample rate for replays that begin recording immediately and last the entirety of the user's session. 1.0 collects all replays, and 0 collects none.
1824

1925
- **replaysOnErrorSampleRate** - The sample rate for replays that are recorded when an error happens. This type of replay will record up to a minute of events prior to the error and continue recording until the session ends. 1.0 captures all sessions with an error, and 0 captures none.
2026

21-
- **SampleRate** - Configures the sample rate for error events, in the range of 0.0 to 1.0. The default is 1.0, which means that 100% of error events will be sent. If set to 0.1, only 10% of error events will be sent. Events are picked randomly.

0 commit comments

Comments
 (0)