Skip to content

Commit

Permalink
Update docs/platforms/javascript/common/tracing/instrumentation/opent…
Browse files Browse the repository at this point in the history
…elemetry.mdx

Co-authored-by: Francesco Novy <francesco.novy@sentry.io>
  • Loading branch information
chargome and mydea authored Jul 25, 2024
1 parent 4514c58 commit d8eca04
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ You can also use any other tracer; all OpenTelemetry spans will be picked up by
## Using a Custom Sampler
We recommend using `SentrySampler` as this will correctly will ensure the correct subset of traces is sent to Sentry depending on your `tracesSampleRate`.
We recommend using `SentrySampler` as this will ensure the correct subset of traces is sent to Sentry depending on your `tracesSampleRate`, as well as that all other Sentry features like trace propagation work as expected.
If you however need to use your own sampler then make sure to wrap your `SamplingResult` with our `wrapSamplingDecision` method:
```js {filename: custom-sampler.js}
Expand Down

0 comments on commit d8eca04

Please sign in to comment.