Skip to content

Commit

Permalink
adding environment variable for OTEL_LOGS_EXPORTER (#2196)
Browse files Browse the repository at this point in the history
* adding environment variable for OTEL_LOGS_EXPORTER

This PR adds the environment variable to support configuration of log
exporters as is supported for metrics and traces today.

* update changelog
  • Loading branch information
Alex Boten committed Dec 7, 2021
1 parent aae8fa6 commit 9fc9757
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ release.

### Logs

- Add OTEL_LOGS_EXPORTER environment variable.
([#2196](https://github.com/open-telemetry/opentelemetry-specification/pull/2196))

### Resource

### Semantic Conventions
Expand Down
1 change: 1 addition & 0 deletions spec-compliance-matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ Note: Support for environment variables is optional.
|OTEL_EXPORTER_ZIPKIN_* | - | | | | | - | - | - | - | + | - |
|OTEL_TRACES_EXPORTER | - | + | | + | + | + | | - | - | | |
|OTEL_METRICS_EXPORTER | - | + | | + | - | - | | - | - | - | - |
|OTEL_LOGS_EXPORTER | | | | | | | | | | | |
|OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT | - | + | | + | + | - | | + | - | | |
|OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT | | | | | | | | | | | |
|OTEL_SPAN_EVENT_COUNT_LIMIT | - | + | | + | + | - | | + | - | | |
Expand Down
6 changes: 6 additions & 0 deletions specification/sdk-environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ We define environment variables for setting one or more exporters per signal.
| ------------- | ---------------------------------------------------------------------------- | ------- |
| OTEL_TRACES_EXPORTER | Trace exporter to be used | "otlp" |
| OTEL_METRICS_EXPORTER | Metrics exporter to be used | "otlp" |
| OTEL_LOGS_EXPORTER | Logs exporter to be used | "otlp" |

The SDK MAY accept a comma-separated list to enable setting multiple exporters.

Expand All @@ -187,6 +188,11 @@ 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.

Known values for `OTEL_LOGS_EXPORTER` are:

- `"otlp"`: [OTLP](./protocol/otlp.md)
- `"none"`: No automatically configured exporter for logs.

## Metrics SDK Configuration

**Status**: [Experimental](document-status.md)
Expand Down

0 comments on commit 9fc9757

Please sign in to comment.