mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Tracing: Support remote, rate-limited, and probabilistic sampling in tracing.opentelemetry config section (#73587)
* tracing: Support remote sampling server Signed-off-by: Dave Henderson <dave.henderson@grafana.com> * Update docs/sources/setup-grafana/configure-grafana/_index.md Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com> * Update docs/sources/setup-grafana/configure-grafana/_index.md Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com> * Update docs/sources/setup-grafana/configure-grafana/_index.md Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com> * Update docs/sources/setup-grafana/configure-grafana/_index.md Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com> * Update docs/sources/setup-grafana/configure-grafana/_index.md * Update docs/sources/setup-grafana/configure-grafana/_index.md * Update docs/sources/setup-grafana/configure-grafana/_index.md * Satisfying the doc-validator check * satisfy prettier Signed-off-by: Dave Henderson <dave.henderson@grafana.com> * back out unnecessary change Signed-off-by: Dave Henderson <dave.henderson@grafana.com> --------- Signed-off-by: Dave Henderson <dave.henderson@grafana.com> Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
This commit is contained in:
@@ -1801,6 +1801,8 @@ Refer to https://www.jaegertracing.io/docs/1.16/sampling/#client-sampling-config
|
||||
|
||||
Can be set with the environment variable `JAEGER_SAMPLER_TYPE`.
|
||||
|
||||
_To override this setting, enter `sampler_type` in the `tracing.opentelemetry` section._
|
||||
|
||||
### sampler_param
|
||||
|
||||
Default value is `1`.
|
||||
@@ -1816,10 +1818,14 @@ This is the sampler configuration parameter. Depending on the value of `sampler_
|
||||
|
||||
May be set with the environment variable `JAEGER_SAMPLER_PARAM`.
|
||||
|
||||
_Setting `sampler_param` in the `tracing.opentelemetry` section will override this setting._
|
||||
|
||||
### sampling_server_url
|
||||
|
||||
sampling_server_url is the URL of a sampling manager providing a sampling strategy.
|
||||
|
||||
_Setting `sampling_server_url` in the `tracing.opentelemetry` section will override this setting._
|
||||
|
||||
### zipkin_propagation
|
||||
|
||||
Default value is `false`.
|
||||
@@ -1846,6 +1852,31 @@ Comma-separated list of attributes to include in all new spans, such as `key1:va
|
||||
|
||||
Can be set with the environment variable `OTEL_RESOURCE_ATTRIBUTES` (use `=` instead of `:` with the environment variable).
|
||||
|
||||
### sampler_type
|
||||
|
||||
Default value is `const`.
|
||||
|
||||
Specifies the type of sampler: `const`, `probabilistic`, `ratelimiting`, or `remote`.
|
||||
|
||||
### sampler_param
|
||||
|
||||
Default value is `1`.
|
||||
|
||||
Depending on the value of `sampler_type`, the sampler configuration parameter can be `0`, `1`, or any decimal value between `0` and `1`.
|
||||
|
||||
- For the `const` sampler, use `0` to never sample or `1` to always sample
|
||||
- For the `probabilistic` sampler, you can use a decimal value between `0.0` and `1.0`
|
||||
- For the `rateLimiting` sampler, enter the number of spans per second
|
||||
- For the `remote` sampler, use a decimal value between `0.0` and `1.0`
|
||||
to specify the initial sampling rate used before the first update
|
||||
is received from the sampling server
|
||||
|
||||
### sampling_server_url
|
||||
|
||||
When `sampler_type` is `remote`, this specifies the URL of the sampling server. This can be used by all tracing providers.
|
||||
|
||||
Use a sampling server that supports the Jaeger remote sampling API, such as jaeger-agent, jaeger-collector, opentelemetry-collector-contrib, or [Grafana Agent](/oss/agent/).
|
||||
|
||||
<hr>
|
||||
|
||||
## [tracing.opentelemetry.jaeger]
|
||||
|
Reference in New Issue
Block a user