public interface VertxTracerFactory extends VertxServiceProvider
Modifier and Type | Field and Description |
---|---|
static VertxTracerFactory |
NOOP
Noop tracer factory, it can be useful for disabling metrics, e.g
new VertxOptions().setTracingOptions(new TracingOptions().setFactory(VertxTracerFactory.NOOP)) |
Modifier and Type | Method and Description |
---|---|
default void |
init(io.vertx.core.impl.VertxBuilder builder)
Let the provider initialize the Vert.x builder.
|
default TracingOptions |
newOptions()
Create an empty tracing options.
|
default TracingOptions |
newOptions(JsonObject jsonObject)
Create tracing options from the provided
jsonObject . |
VertxTracer |
tracer(TracingOptions options)
Create a new
VertxTracer object.
No specific thread and context can be expected when this method is called. |
static final VertxTracerFactory NOOP
new VertxOptions().setTracingOptions(new TracingOptions().setFactory(VertxTracerFactory.NOOP))
default void init(io.vertx.core.impl.VertxBuilder builder)
VertxServiceProvider
init
in interface VertxServiceProvider
builder
- the builderVertxTracer tracer(TracingOptions options)
VertxTracer
object.
No specific thread and context can be expected when this method is called.options
- the metrics configuration optiondefault TracingOptions newOptions()
Launcher
class when creating new options when building a CLI Vert.x.default TracingOptions newOptions(JsonObject jsonObject)
jsonObject
.
Providers can override this method to provide a custom tracing options subclass that exposes custom configuration.
It is used by the Launcher
class when creating new options when building a CLI Vert.x.jsonObject
- json provided by the userCopyright © 2022 Eclipse. All rights reserved.