Query Params passed in the endpoint URL are ignored (or) dropped #6725
Labels
blocked:specification
Waiting on clarification of the OpenTelemetry specification before progress can be made
enhancement
New feature or request
Problem Statement
When setting an explicit OTLP metrics endpoint URL using WithEndpointURL or OTEL_EXPORTER_OTLP_ENDPOINT or OTEL_EXPORTER_OTLP_METRICS_ENDPOINT, any query parameters passed along in the URL are dropped or ignored. This makes it impossible to send query parameters to an endpoint which has a must requirement.
Proposed Solution
We should implement an API which accepts query parameters called WithQueryParams() and if there are any query parameters passed in the endpoint URL, we should save them and use it during URL construction.
Alternatives
A clear and concise description of any alternative solutions or features you've considered.
Prior Art
A clear and concise list of any similar and existing solutions from other projects that provide context to possible solutions.
Additional Context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: