Interface VertxTracerFactory
- All Superinterfaces:
VertxServiceProvider
- All Known Implementing Classes:
OpenTelemetryTracingFactory, OpenTracingTracerFactory, ZipkinTracerFactory
A factory for the plug-able tracing SPI.
- Author:
- Julien Viet
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final VertxTracerFactoryNoop tracer factory, it can be useful for disabling metrics, e.g. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidinit(io.vertx.core.internal.VertxBootstrap bootstrap) Let the provider initialize the Vert.x builder.default TracingOptionsCreate an empty tracing options.default TracingOptionsnewOptions(JsonObject jsonObject) Create tracing options from the providedjsonObject.tracer(TracingOptions options) Create a newVertxTracerobject.
-
Field Details
-
NOOP
Noop tracer factory, it can be useful for disabling metrics, e.g.new VertxOptions().setTracingOptions(new TracingOptions().setFactory(VertxTracerFactory.NOOP))
-
-
Method Details
-
init
default void init(io.vertx.core.internal.VertxBootstrap bootstrap) Description copied from interface:VertxServiceProviderLet the provider initialize the Vert.x builder.- Specified by:
initin interfaceVertxServiceProvider- Parameters:
bootstrap- the builder
-
tracer
Create a newVertxTracerobject. No specific thread and context can be expected when this method is called.- Parameters:
options- the metrics configuration option- Returns:
- the tracing implementation
-
newOptions
Create an empty tracing options. Providers can override this method to provide a custom tracing options subclass that exposes custom configuration.- Returns:
- new tracing options
-
newOptions
Create tracing options from the providedjsonObject. Providers can override this method to provide a custom tracing options subclass that exposes custom configuration.- Parameters:
jsonObject- json provided by the user- Returns:
- new tracing options
-