Skip to content

Commit 0178c25

Browse files
pellaredtigrannajaryanSergeyKanzhelev
authored
Allow selecting multiple exporters (#1758)
* Allow selecting multiple exporters * Update CHANGELOG.md * Update CHANGELOG.md * Update specification/sdk-environment-variables.md Co-authored-by: Tigran Najaryan <4194920+tigrannajaryan@users.noreply.github.com> Co-authored-by: Tigran Najaryan <4194920+tigrannajaryan@users.noreply.github.com> Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
1 parent 00733a2 commit 0178c25

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ release.
3131

3232
### SDK Configuration
3333

34+
- Allow selecting multiple exporters via `OTEL_TRACES_EXPORTER` and `OTEL_METRICS_EXPORTER`
35+
by using a comma-separated list. ([#1758](https://github.com/open-telemetry/opentelemetry-specification/pull/1758))
36+
3437
## v1.4.0 (2021-06-07)
3538

3639
### Context

specification/sdk-environment-variables.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ For example, the value `12000` indicates 12000 milliseconds, i.e., 12 seconds.
3434
| OTEL_RESOURCE_ATTRIBUTES | Key-value pairs to be used as resource attributes | | See [Resource SDK](./resource/sdk.md#specifying-resource-information-via-an-environment-variable) for more details. |
3535
| OTEL_SERVICE_NAME | Sets the value of the [`service.name`](./resource/semantic_conventions/README.md#service) resource attribute | | If `service.name` is also provided in `OTEL_RESOURCE_ATTRIBUTES`, then `OTEL_SERVICE_NAME` takes precedence. |
3636
| OTEL_LOG_LEVEL | Log level used by the SDK logger | "info" | |
37-
| OTEL_PROPAGATORS | Propagators to be used as a comma separated list | "tracecontext,baggage" | Values MUST be deduplicated in order to register a `Propagator` only once. |
37+
| OTEL_PROPAGATORS | Propagators to be used as a comma-separated list | "tracecontext,baggage" | Values MUST be deduplicated in order to register a `Propagator` only once. |
3838
| OTEL_TRACES_SAMPLER | Sampler to be used for traces | "parentbased_always_on" | See [Sampling](./trace/sdk.md#sampling) |
3939
| OTEL_TRACES_SAMPLER_ARG | String value to be used as the sampler argument | | The specified value will only be used if OTEL_TRACES_SAMPLER is set. Each Sampler type defines its own expected input, if any. Invalid or unrecognized input MUST be logged and MUST be otherwise ignored, i.e. the SDK MUST behave as if OTEL_TRACES_SAMPLER_ARG is not set. |
4040

@@ -132,13 +132,15 @@ thrift or protobuf. As of 1.0 of the specification, there
132132

133133
**Status**: [Stable](document-status.md)
134134

135-
We define environment variables for setting a single exporter per signal.
135+
We define environment variables for setting one or more exporters per signal.
136136

137137
| Name | Description | Default |
138138
| ------------- | ---------------------------------------------------------------------------- | ------- |
139139
| OTEL_TRACES_EXPORTER | Trace exporter to be used | "otlp" |
140140
| OTEL_METRICS_EXPORTER | Metrics exporter to be used | "otlp" |
141141

142+
The SDK MAY accept a comma-separated list to enable setting multiple exporters.
143+
142144
Known values for OTEL_TRACES_EXPORTER are:
143145

144146
- `"otlp"`: [OTLP](./protocol/otlp.md)

0 commit comments

Comments
 (0)