Open fabrii opened 5 months ago
@jasondlee can you help?
I've added a test that works in SR OpenTelemetry (but we use Jetty).
@fabrii are you able to debug and check the filter if instrumenter
is null or if the constructor with the OpenTelemetry
injection is being called?
Hello!
I am working with OpenTelemetry in WildFly 32.0.1 that uses smallrye-opentelemetry 2.6.0. I dont know if this a smallrye-opentelemetry bug or a wildfly bug.
I create my RestClients like this:
Interface
Generic Client
Client
I read in the WildFly docs, that the OpenTelemetryClientFilter is registered by default for Jakarta Rest Clients, but it is not working as no traces are sent to the collector. I think the problem is related to injection, because of the following:
If I manually register the filter, like this:
I get the following log:
So, the Filter seems to be registered, but not working.
To bypass this problem, I created a
CustomOpenTelemetryClientFilter
, that is basically a copy ofOpenTelemetryClientFilter
with different name. After registering with@RegisterProvider(CustomOpenTelemetryClientFilter.class)
on the interface level, the traces are correctly sent to the collector.I think that the problem might be related to the injection of
in the automatic registration of the filter.