Package brave
Interface TracingCustomizer
-
public interface TracingCustomizerThis allows configuration plugins to collaborate on building an instance ofTracing.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 injectedList<TracingCustomizer>parameter to a provider ofTracing.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 TracingCustomizerNOOPUse to avoid comparing against null references
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcustomize(Tracing.Builder builder)
-
-
-
Field Detail
-
NOOP
static final TracingCustomizer NOOP
Use to avoid comparing against null references
-
-
Method Detail
-
customize
void customize(Tracing.Builder builder)
-
-