Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clarify OTLP/HTTP endpoint configuration option handling (#3739)
1. The specification should define how the configuration options should handle the value. We cannot force the user to not set an env var value. 2. Changed `endpoint` to `option` to make it more clear that the specification says how the configuration option should work. 3. Initially I thought about defining `MUST not accept a path that contains other parts` (instead of `MAY`), but I have not found any OTLP exporter that makes such a detailed validation ([Java](https://github.com/open-telemetry/opentelemetry-java/blob/main/exporters/common/src/main/java/io/opentelemetry/exporter/internal/ExporterBuilderUtil.java), [.NET](https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExporterOptions.cs), [Python](https://github.com/open-telemetry/opentelemetry-python/blob/main/exporter/opentelemetry-exporter-otlp-proto-http/src/opentelemetry/exporter/otlp/proto/http/trace_exporter/__init__.py)). _I was even considering to remove this statement, but I feel that it may be a too drastic change._
- Loading branch information