Description
openedon Aug 12, 2024
Describe the bug
Hello,
I just followed the documentation (https://quarkus.io/guides/observability-devservices-lgtm) to set up the observability dev service (based on OTel-LGTM).
The container is correctly started but it seems quarkus cannot connect to it.
I get this error:
10:06:59,906 SEVERE [io.qu.op.ru.ex.ot.VertxGrpcExporter] (vert.x-eventloop-thread-4) Failed to export spans. The request could not be executed. Full error message: Connection refused: getsockopt: localhost/127.0.0.1:4317
When I look at the ports binding of the dev service container I can see indeed that there is no binding for port 4317 :
And here are the logs in quarkus when the dev service is started :
10:04:36,327 INFO [io.qu.ob.te.Lg.docker] (build-79) Container docker.io/grafana/otel-lgtm:0.4.0 is starting: 52211bceca20ea75cf5c7f490027a6bacfbcc3b7f92c2cb8f7820be8c32f0872
10:04:36,807 INFO [or.te.co.wa.st.HttpWaitStrategy] (build-79) /sweet_rubin: Waiting for 60 seconds for URL: http://localhost:55974/ (where port 55974 maps to container port 3000)
10:04:40,906 INFO [io.qu.ob.te.Lg.docker] (build-79) Container docker.io/grafana/otel-lgtm:0.4.0 started in PT5.9585031S
10:04:40,907 INFO [io.qu.ob.de.ObservabilityDevServiceProcessor] (build-79) Dev Service Lgtm started, config: {quarkus.otel-collector.url=localhost:55975, quarkus.grafana.url=localhost:55974}
__ ____ __ _____ ___ __ ____ ______
--/ __ \/ / / / _ | / _ \/ //_/ / / / __/
-/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/
10:04:41,469 WARN [io.qu.config] (Quarkus Main Thread) Unrecognized configuration key "quarkus.grafana.url" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo
10:04:41,469 WARN [io.qu.config] (Quarkus Main Thread) Unrecognized configuration key "quarkus.otel-collector.url" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo
Expected behavior
Connection to LGTM container should work
Actual behavior
Connection to LGTM container is not working
How to Reproduce?
- Add these dependencies in pom.xml :
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-observability-devservices-lgtm</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-opentelemetry</artifactId>
</dependency>
-
Start quarkus in dev mode
-
Make a request to a REST endpoint
-
See the error in the logs
Output of uname -a
or ver
No response
Output of java -version
21.0.3
Quarkus version or git rev
3.12.3
Build tool (ie. output of mvnw --version
or gradlew --version
)
No response
Additional information
No response