Interface SpanAttributesProviderRegistry

All Superinterfaces:
DescribableComponent
All Known Implementing Classes:
DefaultSpanAttributesProviderRegistry

@Internal public interface SpanAttributesProviderRegistry extends DescribableComponent
A registry of SpanAttributesProviders, collecting the providers a SpanFactory implementation is constructed with.

Provides operations to register providers one by one. Registered providers can be retrieved through providers(Configuration) -- typically by the component builder constructing the SpanFactory, so the factory receives its complete, immutable provider list at construction time.

Registration operations are expected to be invoked within a DecoratorDefinition on this registry component. As such, any registered provider is only applied when the SpanFactory requiring it is constructed. Providers that are registered once the SpanFactory has already been constructed are not taken into account.

Since:
5.3.0
Author:
Mateusz Nowak