Open mleegwt opened 3 months ago
Good question, one difference between how the Java agent handles OTEL_EXPORTER_OTLP_ENDPOINT
and what this plugin does is that the Java agent adds /v1/traces
to the URL when publishing traces.
Please try the URL with the traces path in it as well in the plugin configuration and see if that works for you: http://opentelemetry.local:4318/v1/traces
If that fixes the problem, please let me know and I'll update the docs to include a note about that for the HTTP exporter.
Alas, unfortunately the same stacktrace occurs when using /v1/traces
as well.
Bummer! The next thing I'd try is using the gRCP exporter instead of the HTTP one and see if that makes any difference.
I've tried that as well. But it didn't work. A colleague will assist me some time in the future. We might be able to progress on this issue. I'll let you know what happens.
Spinned local instance of JegerUI
docker run -d --name jaeger \
-e COLLECTOR_ZIPKIN_HTTP_PORT=9411 \
-p 5775:5775/udp \
-p 6831:6831/udp \
-p 6832:6832/udp \
-p 5778:5778 \
-p 16686:16686 \
-p 14268:14268 \
-p 9411:9411 \
jaegertracing/all-in-one:1.6
and configuration as
openTelemetryBuild {
endpoint = "http://localhost:16686/"
exporterMode = OpenTelemetryExporterMode.HTTP
}
Build, succeeds without any error - but i don't see any traces on exporter.
@ritesh-singh good question, with a couple tweaks to that config I was able to get traces going to Jaegar locally.
I wrote up the instructions in a new section in the project readme: https://github.com/craigatk/opentelemetry-gradle-plugin?tab=readme-ov-file#jaeger
Thanks @craigatk - 🙌 I can see the traces.
Great idea to make an OpenTelemetry plugin for Gradle!
When getting this to work on my local setup for development I fail to get the setup to work. My configuration is:
I receive:
My application that I'm developing correctly connects to the HTTP setting on the URL and port above. So I'm sure the OpenTelemetry collector is set up correctly! That application is using the Java Agent default environment variables. So the endpoint setting is
OTEL_EXPORTER_OTLP_ENDPOINT=http://opentelemetry.local
What could be the issue that the communication breaks down?