Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add environment variables for Periodic exporting MetricReader #2038

Merged
merged 8 commits into from
Oct 25, 2021
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,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_PEMR_EXPORT_INTERVAL` | The time interval (in milliseconds) between two consecutive exports. | 60000 | |
reyang marked this conversation as resolved.
Show resolved Hide resolved
| `OTEL_PEMR_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