eclipse-vertx / vertx-tracing

Vertx integration with tracing libraries
Other
42 stars 34 forks source link

http2client stream timeout , opentracing NullPointerException #53

Closed xiongrl closed 1 year ago

xiongrl commented 2 years ago

Questions

[12:01:14:024] vert.x-eventloop-thread-11 [ERROR] - i.n.h.c.h.DefaultHttp2Connection: - Caught Throwable from listener onStreamClosed. java.lang.NullPointerException: Cannot read field "statusCode" because "resp" is null at io.vertx.core.http.impl.HttpUtils$4.value(HttpUtils.java:159) ~[vertx-core-4.3.3.jar:4.3.3] at io.vertx.core.http.impl.HttpUtils$4.value(HttpUtils.java:144) ~[vertx-core-4.3.3.jar:4.3.3] at io.vertx.tracing.opentracing.OpenTracingTracer.reportTags(OpenTracingTracer.java:162) ~[vertx-opentracing-4.3.3.jar:4.3.3] at io.vertx.tracing.opentracing.OpenTracingTracer.receiveResponse(OpenTracingTracer.java:154) ~[vertx-opentracing-4.3.3.jar:4.3.3] at io.vertx.tracing.opentracing.OpenTracingTracer.receiveResponse(OpenTracingTracer.java:37) ~[vertx-opentracing-4.3.3.jar:4.3.3] at io.vertx.core.http.impl.Http2ClientConnection$Stream.onClose(Http2ClientConnection.java:343) ~[vertx-core-4.3.3.jar:4.3.3] at io.vertx.core.http.impl.Http2ConnectionBase.onStreamClosed(Http2ConnectionBase.java:150) ~[vertx-core-4.3.3.jar:4.3.3] at io.vertx.core.http.impl.VertxHttp2ConnectionHandler.onStreamClosed(VertxHttp2ConnectionHandler.java:189) ~[vertx-core-4.3.3.jar:4.3.3] at io.netty.handler.codec.http2.DefaultHttp2Connection.notifyClosed(DefaultHttp2Connection.java:357) ~[netty-codec-http2-4.1.78.Final.jar:4.1.78.Final]

Version

4.3.3

Context

http2 client request timeout,opentracing NullPointerException , httpclient exceptionHandler not work.

vietj commented 2 years ago

can you provide a reproducer ?

xiongrl commented 2 years ago

io.vertx.core.http.impl.Http2ClientConnection.Stream#onClose image

io.vertx.core.spi.tracing.TagExtractor#value image

vietj commented 2 years ago

can you provide a small project that reproduces the issue ?

xiongrl commented 2 years ago

https://github.com/xiongrl/vertx-opentrace-example

vietj commented 1 year ago

can you provide also the CLI to run the agent in a docker container as instruction ? thanks