apache / apache/camel-quarkus

camel-quarkus-opentelemetry2 disconnected vertx-http spans

Open
#8,277 1 comment 0 reactions 1 assignee Claimed by @jamesnetherton View on GitHub
area/opentelemetry2 area/vertx-http bug
Dominant language
Java
Stars
302
Forks
232
Avg merge
1d 22h
Merged PRs (30d)
108

Description

### Bug description

I discovered this by switching the [Observability example project](https://github.com/apache/camel-quarkus-examples/tree/main/observability) from `camel-quarkus-http` to `camel-quarkus-vertx-http`.

Here's a typical view of how tracing looks. All 10 spans should be connected together, but they are split:

vertx-http-traces

I think it's caused when the Vert.x HTTP Client creates its own internal spans. When tracing is suppressed on the client, then all of the Camel route spans are connected properly.

I tested with a standalone `camel-main` application and this issue does not occur when the Otel agent is used.

The workaround will be to disable internal tracing for the HTTP client. You loose a span for the request but we still have the `vertx-http` endpoint span, which contains mostly identical info.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.