Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Commit c9b617c

Browse files
authored
feat: Note about sample rates for tracing (#66)
1 parent 5694c56 commit c9b617c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/docs/sdk/unified-api/tracing.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This document covers how unified SDKs should implement AM.
66
Things listed here are in no specific order, cover the API shape and not how it should be internally implemented.
77
Read this fully before asking questions.
88

9-
See [https://github.com/getsentry/sentry-javascript](https://github.com/getsentry/sentry-javascript)
9+
See [https://github.com/getsentry/sentry-javascript](https://github.com/getsentry/sentry-javascript)
1010

1111
or
1212

@@ -17,6 +17,11 @@ or
1717
- `1.0` (100% delivery rate) means send all transactions
1818
- Value is expressed in `0.0` - `1.0` float, ranged from 0% to 100% rate
1919
- Default makes AM an opt-in feature
20+
- Transactions should be sampled only by `tracesSampleRate`.
21+
The `sampleRate` configuration is used for error events and should not
22+
apply to transactions. Pay special attention not to incur in evaluating
23+
the sampling decision twice for transaction events from their creation
24+
until their delivery to Sentry.
2025
- Introduce `Sentry.startTransaction`
2126
- Internally this creates a `Transaction` and returns the instance
2227
- Users need to interact with the instance and keep track of it themselves

0 commit comments

Comments
 (0)