You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: develop-docs/sdk/telemetry/traces/tracing-without-performance.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,15 +13,15 @@ Tracing without Performance is the default fallback behavior of SDKs, when users
13
13
This means that SDKs in this mode always:
14
14
15
15
- continue incoming traces
16
-
-attache`event.contexts.trace` context on events (e.g. errors, check-ins)
16
+
-attach`event.contexts.trace` context on events (e.g. errors, check-ins)
17
17
- attach the `trace` envelope header to Sentry envelopes, populated from the dynamic sampling context
18
18
- propagate trace data (`sentry-trace`, `baggage`) via the usual channels (e.g. HTTP headers, `<meta> HTML tags`, etc), with the correct [sampling decision](#sampling-decision)
19
19
20
20
If users [explicitly opt out](#completely-disable-tracing) of all tracing capabilities, TwP mode will no longer be active.
21
21
22
22
## Configuration
23
23
24
-
Twp is active by default if users don't specify sampling options that enable span collection and sending.
24
+
TwP is active by default if users don't specify sampling options that enable span collection and sending.
25
25
For example, the following trivial SDK setup (note the absence of sampling options) enables TwP:
26
26
27
27
```JavaScript
@@ -39,9 +39,9 @@ This is fine as long as there's a good reason why additional configuration is re
39
39
40
40
</Alert>
41
41
42
-
### Upgrading to Tracing With Performance
42
+
### Enable Regular Tracing
43
43
44
-
As soon as users specify a tracing option in the SDK configuration, SDKs will use the normal tracing mode, which means collecting and sending spans (or transactions).
44
+
As soon as users specify a tracing option in the SDK configuration, SDKs will use the normal tracing mode, which means collecting and sending spans (or transactions) in addition to continuing and propagating traces.
45
45
46
46
This can be achieved by specifying `tracesSampleRate` or `tracesSampler`, or any other equivalent option in the SDK configuration:
47
47
@@ -56,7 +56,7 @@ Sentry.init({
56
56
});
57
57
```
58
58
59
-
It's important to note that setting `tracesSampleRate: 0`disables TwP mode.
59
+
It's important to note that setting `tracesSampleRate: 0`does not mean that we fall back to TwP mode but that sampling decisions are always negative and we propagate the trace with a negative sampling decision.
0 commit comments