Skip to content

Commit a46e03e

Browse files
authored
Update env variable values to match other env variables. (open-telemetry#1965)
* Update env variable values to match other env variables in the specification.
1 parent 196aa4c commit a46e03e

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

specification/metrics/sdk.md

+1-12
Original file line numberDiff line numberDiff line change
@@ -754,15 +754,4 @@ modeled to interact with other components in the SDK:
754754

755755
## Defaults and Configuration
756756

757-
The SDK MUST provide the following configuration parameters for Exemplar
758-
sampling:
759-
760-
| Name | Description | Default | Notes |
761-
|-----------------|---------|-------------|---------|
762-
| `OTEL_METRICS_EXEMPLAR_FILTER` | Filter for which measurements can become Exemplars. | `"WITH_SAMPLED_TRACE"` | |
763-
764-
Known values for `OTEL_METRICS_EXEMPLAR_FILTER` are:
765-
766-
- `"NONE"`: No measurements are eligble for exemplar sampling.
767-
- `"ALL"`: All measurements are eligible for exemplar sampling.
768-
- `"WITH_SAMPLED_TRACE"`: Only allow measurements with a sampled parent span in context.
757+
The SDK MUST provide configuration according to the [SDK environment variables](../sdk-environment-variables.md) specification.

specification/sdk-environment-variables.md

+14
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,20 @@ Known values for OTEL_METRICS_EXPORTER are:
178178
- `"prometheus"`: [Prometheus](https://github.com/prometheus/docs/blob/master/content/docs/instrumenting/exposition_formats.md)
179179
- `"none"`: No automatically configured exporter for metrics.
180180

181+
## Metrics SDK Configuration
182+
183+
**Status**: [Experimental](document-status.md)
184+
185+
| Name | Description | Default | Notes |
186+
|-----------------|---------|-------------|---------|
187+
| `OTEL_METRICS_EXEMPLAR_FILTER` | Filter for which measurements can become Exemplars. | `"with_sampled_trace"` | |
188+
189+
Known values for `OTEL_METRICS_EXEMPLAR_FILTER` are:
190+
191+
- `"none"`: No measurements are eligble for exemplar sampling.
192+
- `"all"`: All measurements are eligible for exemplar sampling.
193+
- `"with_sampled_trace"`: Only allow measurements with a sampled parent span in context.
194+
181195
## Language Specific Environment Variables
182196

183197
To ensure consistent naming across projects, this specification recommends that language specific environment variables are formed using the following convention:

0 commit comments

Comments
 (0)