Skip to content

Commit

Permalink
Add environment variables for Periodic exporting MetricReader (#2038)
Browse files Browse the repository at this point in the history
* add environment variables for Periodic exporting MetricReader

* adjust format

* update changelog

* use user friendly name based on SIG discussion

* update wording
  • Loading branch information
reyang committed Oct 25, 2021
1 parent 76da9da commit 0f18f33
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ release.
([#1935](https://github.com/open-telemetry/opentelemetry-specification/pull/1935))
- Add clarifications on how to handle numerical limits.
([#2007](https://github.com/open-telemetry/opentelemetry-specification/pull/2007))
- Add environment variables for Periodic exporting MetricReader.
([#2038](https://github.com/open-telemetry/opentelemetry-specification/pull/2038))

### Logs

Expand Down
7 changes: 7 additions & 0 deletions specification/sdk-environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,13 @@ Known values for `OTEL_METRICS_EXEMPLAR_FILTER` are:
- `"all"`: All measurements are eligible for exemplar sampling.
- `"with_sampled_trace"`: Only allow measurements with a sampled parent span in context.

### Periodic exporting MetricReader

| Name | Description | Default | Notes |
| ----------------------------- | ----------------------------------------------------------------------------- | ------- | ----- |
| `OTEL_METRIC_EXPORT_INTERVAL` | The time interval (in milliseconds) between the start of two export attempts. | 60000 | |
| `OTEL_METRIC_EXPORT_TIMEOUT` | Maximum allowed time (in milliseconds) to export data. | 30000 | |

## Language Specific Environment Variables

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

0 comments on commit 0f18f33

Please sign in to comment.