Specifying an endpoint in appsettings.json breaks appending suffix to endpoint path #5668
Labels
bug
Something isn't working
pkg:OpenTelemetry.Exporter.OpenTelemetryProtocol
Issues related to OpenTelemetry.Exporter.OpenTelemetryProtocol NuGet package
Package
OpenTelemetry.Exporter.OpenTelemetryProtocol
Package Version
Runtime Version
net8.0
Description
I tried to configure an app similar to this README, but when I specify the endpoint and do Configure, the exporter uses the same URI as in options and does not append signal specific suffix to any of the calls.
I assume this is because of AppendSignalPathToEndpoint being set to false in Endpoint setter of OtlpExporterOptions.
Steps to Reproduce
Expected Result
Options behavior should be the same for environment variables (OTEL_EXPORTER_OTLP_ENDPOINT, etc) and options registration.
Actual Result
Specifying an endpoint as environment variable allows exporter to append signal suffix.
Specifying an endpoint via options registration prevents exporter from appending signal suffix.
Additional Context
No response
The text was updated successfully, but these errors were encountered: