'Proxy Configuration for OpenTelemetry Exporter
I am using the quarkus-opentelemetry-exporter-otlp extension to send OpenTelemetry data to NewRelic, however after the service is being deployed the following error occurs:
[grpc-default-executor-1] ERROR io.opentelemetry.exporter.otlp.trace.OtlpGrpcSpanExporter - Failed to export spans. Server is UNAVAILABLE. Make sure your collector is running and reachable from this network. Full error message:UNAVAILABLE: io exception
Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0]
I was able to solve this error by specifying the -Dhttps.proxyHost and -Dhttps.proxyPort env variable on _JAVA_OPTS level. I was wondering if there is a way to specify the proxy configuration on a lower level, maybe on the library/extension side?
The reason for this question is basically because that all the trafic goes through the proxy, which is not something we want. Ok, another workaround would be to specify also the -Dhttp.nonProxyHosts alongside to the other two, however I feel that this is not the correct approach. My expectation would be to specify the proxy configuration only for the functionality which is sending the OpenTelemetry data.
Thank you, Alex
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
