You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kind of a follow-up for #16952 . When using the opentelemetry extension and observing HTTP spans created for a rest-client request Quarkus creates two client spans. One based on rest-client knowledge in ClientTracingFilter with a proper templated name and another span basically duplicating the information at the vertx level in VertxTracingAdapter. The duplicate span also is not aware of the template so it uses the full name instead (#16952 explains why that is problematic).
Interestingly enough it looks like the Kafka extension encountered a similar problem and special handling was introduced:
Describe the bug
Kind of a follow-up for #16952 . When using the opentelemetry extension and observing HTTP spans created for a rest-client request Quarkus creates two client spans. One based on rest-client knowledge in
ClientTracingFilter
with a proper templated name and another span basically duplicating the information at the vertx level inVertxTracingAdapter
. The duplicate span also is not aware of the template so it uses the full name instead (#16952 explains why that is problematic).Interestingly enough it looks like the Kafka extension encountered a similar problem and special handling was introduced:
quarkus/extensions/opentelemetry/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/vertx/VertxTracingAdapter.java
Lines 187 to 197 in 9f43498
I cannot find where the Kafka extension actually uses this though.
Expected behavior
Ideally only one client span is created for each outgoing request. The span has the template known from the rest-client as its name.
Actual behavior
Two spans are created. One of which has a high cardinality name equal to the requested URL.
To Reproduce
A test sending a rest client request will reproduce the behavior.
Quarkus version or git rev
2.0.0.Final
The text was updated successfully, but these errors were encountered: