All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.tracing.opentracing.OpenTracingOptions Maven / Gradle / Ivy

There is a newer version: 5.0.0.CR3
Show newest version
package io.vertx.tracing.opentracing;

import io.opentracing.Tracer;
import io.vertx.core.json.JsonObject;
import io.vertx.core.tracing.TracingOptions;

public class OpenTracingOptions extends TracingOptions {

  private Tracer tracer;

  public OpenTracingOptions(Tracer tracer) {
    this.tracer = tracer;
  }

  public OpenTracingOptions() {
  }

  public OpenTracingOptions(JsonObject json) {
    super(json);
  }

  io.vertx.core.spi.tracing.VertxTracer buildTracer() {
    if (tracer != null) {
      return new OpenTracingTracer(false, tracer);
    } else {
      return new OpenTracingTracer(true, OpenTracingTracer.createDefaultTracer());
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy