apache / apache/camel-quarkus

OpenTelemetry extension `exclude-patterns` config property does not work for platform-http endpoints

Open
#2,897 0 comments 0 reactions 1 assignee Claimed by @jamesnetherton View on GitHub
bug
Dominant language
Java
Stars
302
Forks
232
Avg merge
1d 20h
Merged PRs (30d)
114

Description

If you configure the [`exclude-patterns`](https://camel.apache.org/camel-quarkus/latest/reference/extensions/opentelemetry.html#quarkus.camel.opentelemetry.exclude-patterns) config property to match `platform-http` endpoints, then you end up with a redundant span being recorded.

[VertxTracingAdapter](https://github.com/quarkusio/quarkus/blob/main/extensions/opentelemetry/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/vertx/VertxTracingAdapter.java) will have already initiated tracing before Camel routing starts, so by the time the filtering logic runs, it's too late at that point to do anything.

We probably need something in Quarkus OpenTelemetry (I.e a BuildItem) so that we could filter out specific Vert.x HTTP endpoint paths from being traced.

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.