Vert.x clustered event bus doesn’t pass opentelemetry tracing information (traceId, parentSpanId) when opentelemetry is enabled through javaagent. After debugging I found that opentelemetry context is not being bound to vert.x context.
AFAIK vertx-opentelemetry
provides VertxContextStorageProvider
to bind opentelemetry context with vert.x context. VertxContextStorage
gets somehow replaced with or wrapped into AgentContextStorage
and this class doesn’t delegate call to VertxContextStorage
for method attach()
when application make call to Span.makeCurrent()
AgentContextStorage
VertxContextStorage
OpenTelemetryTracer.sendRequest
Thanks