fix: add error handling for insecure HTTP endpoints with TLS client configuration by sandy2008 · Pull Request #7914 · open-telemetry/opentelemetry-go (original) (raw)

Summary

This PR moves the insecure + TLS config validation into the core OTLP HTTP exporters in opentelemetry-go (trace, metric, and log), instead of relying on validation in external/config-wrapper code.

This aligns with feedback from open-telemetry/opentelemetry-go-contrib PR open-telemetry/opentelemetry-go-contrib#8560: these packages are maintained/released together, so the check should be enforced in this repo as well.

What changed

Behavior

Testing

Ran: