Package io.vertx.tracing.opentelemetry
Class OpenTelemetryTracingFactory
- java.lang.Object
-
- io.vertx.tracing.opentelemetry.OpenTelemetryTracingFactory
-
- All Implemented Interfaces:
VertxServiceProvider
,VertxTracerFactory
public class OpenTelemetryTracingFactory extends Object implements VertxTracerFactory
-
-
Field Summary
-
Fields inherited from interface io.vertx.core.spi.VertxTracerFactory
NOOP
-
-
Constructor Summary
Constructors Constructor Description OpenTelemetryTracingFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TracingOptions
newOptions()
Create an empty tracing options.TracingOptions
newOptions(JsonObject jsonObject)
Create tracing options from the providedjsonObject
.VertxTracer<?,?>
tracer(TracingOptions options)
Create a newVertxTracer
object.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.vertx.core.spi.VertxTracerFactory
init
-
-
-
-
Method Detail
-
tracer
public VertxTracer<?,?> tracer(TracingOptions options)
Description copied from interface:VertxTracerFactory
Create a newVertxTracer
object. No specific thread and context can be expected when this method is called.- Specified by:
tracer
in interfaceVertxTracerFactory
- Parameters:
options
- the metrics configuration option- Returns:
- the tracing implementation
-
newOptions
public TracingOptions newOptions()
Description copied from interface:VertxTracerFactory
Create an empty tracing options. Providers can override this method to provide a custom tracing options subclass that exposes custom configuration.- Specified by:
newOptions
in interfaceVertxTracerFactory
- Returns:
- new tracing options
-
newOptions
public TracingOptions newOptions(JsonObject jsonObject)
Description copied from interface:VertxTracerFactory
Create tracing options from the providedjsonObject
. Providers can override this method to provide a custom tracing options subclass that exposes custom configuration.- Specified by:
newOptions
in interfaceVertxTracerFactory
- Parameters:
jsonObject
- json provided by the user- Returns:
- new tracing options
-
-