Hydra doesn't like Grafana Cloud OTLP endpoint #778
Labels
bug
Something is not working.
effort/small
It will probably need less than a day to solve this problem.
good first issue
A good issue to tackle when being a novice to the project.
help wanted
We are looking for help on this one.
Preflight checklist
Ory Network Project
No response
Describe the bug
When I set
tracing.providers.otlp.server_url
to the URL given by Grafana cloud (https://otlp-gateway-prod-gb-south-0.grafana.net/otlp
), Hydra logs show "The configuration contains values or keys which are invalid" and three regexes that look like they should match an ipv4 address and host, ipv6 address and host, or domain name and host.Digging into the code SetupOTLP in otelx/otlp.go, you're calling
otlptracehttp.WithEndpoint
, which does only accept a host/address and port number, but that should also be called withWithURLpath
since not all providers (e.g., Grafana Cloud) use the standard path.What I'd really like you to do is not call any of the
With*
methods at all, and let otlptracehttp pick up it's config from the environment, in line with other otlp collectors.Reproducing the bug
Relevant log output
Relevant configuration
Version
2.2.0-rc.3
On which operating system are you observing this issue?
Linux
In which environment are you deploying?
Other
Additional Context
I'm running the container under podman on a linux host. Otherwise my install is fine (it's great!).
The text was updated successfully, but these errors were encountered: