From 7f2e7de11560aac9b4e73d1ca5b9d0e8f9f186dd Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Tue, 23 Jun 2020 16:26:44 +0200 Subject: [PATCH] feat: Note about sample rates for tracing --- src/docs/sdk/unified-api/tracing.mdx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/docs/sdk/unified-api/tracing.mdx b/src/docs/sdk/unified-api/tracing.mdx index 54d85ea8cb..1c7a24641f 100644 --- a/src/docs/sdk/unified-api/tracing.mdx +++ b/src/docs/sdk/unified-api/tracing.mdx @@ -6,7 +6,7 @@ This document covers how unified SDKs should implement AM. Things listed here are in no specific order, cover the API shape and not how it should be internally implemented. Read this fully before asking questions. -See [https://github.com/getsentry/sentry-javascript](https://github.com/getsentry/sentry-javascript) +See [https://github.com/getsentry/sentry-javascript](https://github.com/getsentry/sentry-javascript) or @@ -17,6 +17,11 @@ or - `1.0` (100% delivery rate) means send all transactions - Value is expressed in `0.0` - `1.0` float, ranged from 0% to 100% rate - Default makes AM an opt-in feature + - Transactions should be sampled only by `tracesSampleRate`. + The `sampleRate` configuration is used for error events and should not + apply to transactions. Pay special attention not to incur in evaluating + the sampling decision twice for transaction events from their creation + until their delivery to Sentry. - Introduce `Sentry.startTransaction` - Internally this creates a `Transaction` and returns the instance - Users need to interact with the instance and keep track of it themselves