Class HelidonOpenTelemetry

java.lang.Object
io.helidon.tracing.opentelemetry.HelidonOpenTelemetry

public final class HelidonOpenTelemetry extends Object
Open Telemetry factory methods to create wrappers for Open Telemetry types.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Check if OpenTelemetry is present by indirect properties.
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.helidon.tracing.opentelemetry.OpenTelemetryTracer
    create(io.opentelemetry.api.OpenTelemetry telemetry, io.opentelemetry.api.trace.Tracer tracer, Map<String,String> tags)
    Wrap an open telemetry tracer.
    static Span
    create(io.opentelemetry.api.trace.Span span)
    Wrap an open telemetry span.
    static Span
    create(io.opentelemetry.api.trace.Span span, io.opentelemetry.api.baggage.Baggage baggage)
    Wrap an open telemetry span.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • create

      public static io.helidon.tracing.opentelemetry.OpenTelemetryTracer create(io.opentelemetry.api.OpenTelemetry telemetry, io.opentelemetry.api.trace.Tracer tracer, Map<String,String> tags)
      Wrap an open telemetry tracer.
      Parameters:
      telemetry - open telemetry instance
      tracer - tracer
      tags - tracer tags
      Returns:
      Helidon Tracer
    • create

      public static Span create(io.opentelemetry.api.trace.Span span)
      Wrap an open telemetry span.
      Parameters:
      span - open telemetry span
      Returns:
      Helidon Span
    • create

      public static Span create(io.opentelemetry.api.trace.Span span, io.opentelemetry.api.baggage.Baggage baggage)
      Wrap an open telemetry span.
      Parameters:
      span - open telemetry span
      baggage - open telemetry baggage
      Returns:
      Helidon (@link io.helidon.tracing.Span}