Skip to content

Commit

Permalink
Results from /fix:all
Browse files Browse the repository at this point in the history
  • Loading branch information
opentelemetrybot committed Apr 21, 2024
1 parent 734042b commit ca03f76
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions content/en/docs/languages/java/sampling.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ weight: 80
---

[Sampling](/docs/concepts/sampling/) is a process that restricts the amount of
spans that are generated by a system. Which sampler to use depends
on your needs. In general, decide which sampler to use at the start of a trace
and allow the sampling decision to propagate to other services.
spans that are generated by a system. Which sampler to use depends on your
needs. In general, decide which sampler to use at the start of a trace and allow
the sampling decision to propagate to other services.

A sampler can be set on the tracer provider using the `setSampler` method, as
follows:
Expand All @@ -29,9 +29,9 @@ public class Example {
}
```

The `alwaysOn` value means that every span is sampled, while
`alwaysOff` means that no span is sampled. When
you’re getting started, or in a development environment, use `alwaysOn`.
The `alwaysOn` value means that every span is sampled, while `alwaysOff` means
that no span is sampled. When you’re getting started, or in a development
environment, use `alwaysOn`.

Other samplers include:

Expand Down

0 comments on commit ca03f76

Please sign in to comment.