Closed willie closed 1 year ago
I’ve spent some time trying out other OpenTelemetry vendor integrations and I've confirmed:
HTTP endpoints with non-standard HTTP port numbers work. http://localhost:4318/v1/traces HTTPS endpoints on standard HTTPS (443) ports work: https://otlp.uptrace.dev/v1/traces HTTPS endpoints on custom ports do not work: https://otlp.nr-data.net:4318/v1/traces
However, it's not your bug. This is a Cloudflare Worker runtime issue: ...fetch ignoring custom (HTTPS) ports is considered behaviour as designed...
In order to instrument Cloudflare Workers at this time, New Relic would need an OpenTelemetry endpoint that is HTTPS on standard HTTPS ports, or HTTP on any port.
Not sure where you want to leave this issue as a result.
New Relic doesn't work on the standard HTTPS port either. I've been working with their tech support on this. It seems peculiar to New Relic only.
Huge apology here. It turns out that the issue, this entire time, was NextDNS having otlp.nr-data.net
on some blocking list and nothing to do with this library or New Relic. I don't know if you can log the hostname and IP address on those kinds of connection errors, but it might be helpful to others in the future. Again my apologies.
You have to use https://otlp.nr-data.net/v1/traces
as the endpoint, though. Custom port numbers do not work.
I've been unable to get this working with New Relic. This is my config.
and this is the error:
I have the .dev.vars file with the secret set. I also tried set the value directly in code. Same error. I get the same error with no api-key header or complete gibberish as an api-key header value.
This configuration, which is similar, works fine with Jaeger and SigNoz running on localhost.
I've updated the issue here from our discussion from discord. https://discord.com/channels/595317990191398933/1093094892080738394/1139831369107767406