Commit bbb6aac
committed
Suppress the OTel SDK's auto-configured exporters
With the metrics and logs SDK gems loaded, `OpenTelemetry::SDK.configure`
auto-installs a metrics reader and a log processor based on the
OTEL_METRICS_EXPORTER / OTEL_LOGS_EXPORTER env vars, which default to
"otlp" pointed at the default OTLP endpoint. Each spawns a background
thread. Collector mode replaces both providers with its own right
after, orphaning those threads where no shutdown can reach them.
Default the env vars to "none" so the SDK skips the auto-setup; the
exporters collector mode builds explicitly are the only ones that
should run. User-set values still win.
[skip changeset]1 parent 0877919 commit bbb6aac
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
27 | 37 | | |
28 | 38 | | |
29 | 39 | | |
| |||
0 commit comments