honeycombio / honeycomb-opentelemetry-go

Honeycomb's OpenTelemetry Go SDK distribution
Apache License 2.0
22 stars 7 forks source link

Distro does not honour OTEL_EXPORTER_OTLP_ENDPOINT env var #134

Closed MikeGoldsmith closed 1 year ago

MikeGoldsmith commented 1 year ago

Versions The distro does not use the OTEL_EXPORTER_OTLP_ENDPOINT env var and should. It does use HONEYCOMB_API_ENDPOINT as exepcted.

When fixing, the honeycomb endpoint should have precedence over the OTLP endpoint and if none are provided use the default value.

vreynolds commented 1 year ago

Confirmed this is indeed not honoring the OTEL_EXPORTER_OTLP_ENDPOINT, I believe this is the culprit that always overrides anything set in the OTEL_ env var to use Honeycomb prod.