diff --git a/specification/metrics/sdk.md b/specification/metrics/sdk.md index 3145bc52114..2862383297e 100644 --- a/specification/metrics/sdk.md +++ b/specification/metrics/sdk.md @@ -754,15 +754,4 @@ modeled to interact with other components in the SDK: ## Defaults and Configuration -The SDK MUST provide the following configuration parameters for Exemplar -sampling: - -| Name | Description | Default | Notes | -|-----------------|---------|-------------|---------| -| `OTEL_METRICS_EXEMPLAR_FILTER` | Filter for which measurements can become Exemplars. | `"WITH_SAMPLED_TRACE"` | | - -Known values for `OTEL_METRICS_EXEMPLAR_FILTER` are: - -- `"NONE"`: No measurements are eligble for exemplar sampling. -- `"ALL"`: All measurements are eligible for exemplar sampling. -- `"WITH_SAMPLED_TRACE"`: Only allow measurements with a sampled parent span in context. +The SDK MUST provide configuration according to the [SDK environment variables](../sdk-environment-variables.md) specification. diff --git a/specification/sdk-environment-variables.md b/specification/sdk-environment-variables.md index edbf7f67839..2e360272810 100644 --- a/specification/sdk-environment-variables.md +++ b/specification/sdk-environment-variables.md @@ -178,6 +178,20 @@ Known values for OTEL_METRICS_EXPORTER are: - `"prometheus"`: [Prometheus](https://github.com/prometheus/docs/blob/master/content/docs/instrumenting/exposition_formats.md) - `"none"`: No automatically configured exporter for metrics. +## Metrics SDK Configuration + +**Status**: [Experimental](document-status.md) + +| Name | Description | Default | Notes | +|-----------------|---------|-------------|---------| +| `OTEL_METRICS_EXEMPLAR_FILTER` | Filter for which measurements can become Exemplars. | `"with_sampled_trace"` | | + +Known values for `OTEL_METRICS_EXEMPLAR_FILTER` are: + +- `"none"`: No measurements are eligble for exemplar sampling. +- `"all"`: All measurements are eligible for exemplar sampling. +- `"with_sampled_trace"`: Only allow measurements with a sampled parent span in context. + ## Language Specific Environment Variables To ensure consistent naming across projects, this specification recommends that language specific environment variables are formed using the following convention: