We are working on OpenTracing jax-rs integration . OpenTracing jax-rs
provider  can be configured with various settings (tracer instance, span
decorators, priority..), but also a default configuration with a
parameterless constructor is possible.
How should be the provider implemented when we want to allow auto-discovery
with a default configuration and also a custom configuration? Currently,
the problem is when users want to use a provider with custom configuration
a provider with a default configuration is registered too. We want only one
to be registered, The default auto-discovered provider should not be used
when one is explicitly registered (with a custom configuration).
We are thinking about creating a separate artifact with just one class
annotated with @Provider to be used when users want to use a default
configuration with auto-discovery. The original artifact would be used only
for a custom configuration and registration.
Red Hat Česká republika <https://www.redhat.com/>
Purkyňova 111 TPB-B 612 45 Brno