smallrye / smallrye-opentelemetry

SmallRye OpenTelemetry - A CDI and Jakarta REST implementation of OpenTelemetry Tracing
Apache License 2.0
20 stars 15 forks source link

[Enhancement] Tries to inject Vertx instance from CDI using a qualifier #380

Open gaol opened 10 hours ago

gaol commented 10 hours ago

Currently the Vertx instance used in the smallrye opentelemetry comes from Vertx.vertx() which creates a new instance each time.

In some case, the Vertx instance is exposed with a CDI qualifier, it would be good if we can only inject the instance with the qualifier using CDI.

More information can be found at the Zulip discussion: https://wildfly.zulipchat.com/#narrow/stream/174184-wildfly-developers/topic/vertx.20subsystem.20integration

gaol commented 10 hours ago

@jasondlee would you please check ? thanks :)