Class OpenTelemetryTracingFactory

java.lang.Object
io.vertx.tracing.opentelemetry.OpenTelemetryTracingFactory
All Implemented Interfaces:
VertxServiceProvider, VertxTracerFactory

public class OpenTelemetryTracingFactory extends Object implements VertxTracerFactory
  • Constructor Details

    • OpenTelemetryTracingFactory

      public OpenTelemetryTracingFactory()
    • OpenTelemetryTracingFactory

      public OpenTelemetryTracingFactory(io.opentelemetry.api.OpenTelemetry openTelemetry)
  • Method Details

    • tracer

      public VertxTracer<?,?> tracer(TracingOptions options)
      Description copied from interface: VertxTracerFactory
      Create a new VertxTracer object.

      No specific thread and context can be expected when this method is called.

      Specified by:
      tracer in interface VertxTracerFactory
      Parameters:
      options - the metrics configuration option
      Returns:
      the tracing implementation
    • newOptions

      public OpenTelemetryOptions 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 interface VertxTracerFactory
      Returns:
      new tracing options
    • newOptions

      public OpenTelemetryOptions newOptions(JsonObject jsonObject)
      Description copied from interface: VertxTracerFactory
      Create tracing options from the provided jsonObject. Providers can override this method to provide a custom tracing options subclass that exposes custom configuration.
      Specified by:
      newOptions in interface VertxTracerFactory
      Parameters:
      jsonObject - json provided by the user
      Returns:
      new tracing options