Package brave
Interface TracingCustomizer
public interface TracingCustomizer
This allows configuration plugins to collaborate on building an instance of
Tracing
.
For example a customizer can configure span handlers without having to also configure the local service name.
Integration examples
In practice, a dependency injection tool applies a collection of these instances prior to
building the tracing instance
. For example, an injected
List<TracingCustomizer>
parameter to a provider of Tracing
.
Here are some examples, in alphabetical order:
Note: This type is safe to implement as a lambda, or use as a method reference as it
is effectively a FunctionalInterface
. It isn't annotated as such because the project has
a minimum Java language level 6.
- Since:
- 5.7
- See Also:
BaggagePropagationCustomizer
,CurrentTraceContextCustomizer
-
Field Summary
Fields Modifier and Type Field Description static TracingCustomizer
NOOP
Use to avoid comparing against null references -
Method Summary
Modifier and Type Method Description void
customize(Tracing.Builder builder)