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 committed Jul 25, 2024
1 parent ec3f845 commit 4514c58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,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`.
If you however need to use your own sampler then make sure to wrap your `SamplingResult` wit our `wrapSamplingDecision` method:
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}
const { wrapSamplingDecision } = require("@sentry/opentelemetry");
Expand Down

0 comments on commit 4514c58

Please sign in to comment.