Skip to content

Commit 3e6983a

Browse files
committed
docs: update configuration information
1 parent 8085d6d commit 3e6983a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

init-tracing-opentelemetry/README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,12 @@ To ease setup and compliance with [OpenTelemetry SDK configuration](https://open
8686
- `OTEL_PROPAGATORS` for the configuration of the propagators
8787
- `OTEL_TRACES_SAMPLER` & `OTEL_TRACES_SAMPLER_ARG` for configuration of the sampler
8888

89-
In the context of kubernetes, the above environment variable can be injected by the Opentelemetry operator (via `inject-sdk`):
89+
Few other environment variables can also be used to configure OTLP exporter (eg to configure headers, authentication,, etc...):
90+
91+
- [`OTEL_EXPORTER_OTLP_HEADERS`](https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/#otel_exporter_otlp_headers)
92+
- [`OTEL_EXPORTER_OTLP_TRACES_HEADERS`](https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/#otel_exporter_otlp_traces_headers)
93+
94+
In the context of **kubernetes**, some of the above environment variables can be injected by the Opentelemetry operator (via `inject-sdk`):
9095

9196
```yaml
9297
apiVersion: apps/v1
@@ -137,10 +142,10 @@ spec:
137142
- check you only have a single version of opentelemtry (could be part of your CI/build), use `cargo-deny` or `cargo tree`
138143

139144
```sh
140-
# Check only one version of opentelemetry_api should be used
145+
# Check only one version of opentelemetry should be used
141146
# else issue with setup of global (static variable)
142147
# check_single_version_opentelemtry:
143-
cargo tree -i opentelemetry_api
148+
cargo tree -i opentelemetry
144149
```
145150

146151
- check the code of your exporter and the integration with `tracing` (as subscriber's layer)

0 commit comments

Comments
 (0)