java.lang.Object
io.helidon.tracing.providers.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.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    OpenTelemetry property for the Java agent.
    static final String
    OpenTelemetry property for indicating if the Java agent is present.
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.helidon.tracing.providers.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.Builder<?>
    create(io.opentelemetry.api.trace.SpanBuilder spanBuilder, Tracer helidonTracer)
    Wrap an open telemetry span builder.
    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
  • Field Details

    • OTEL_AGENT_PRESENT_PROPERTY

      public static final String OTEL_AGENT_PRESENT_PROPERTY
      OpenTelemetry property for indicating if the Java agent is present.
      See Also:
    • IO_OPENTELEMETRY_JAVAAGENT

      public static final String IO_OPENTELEMETRY_JAVAAGENT
      OpenTelemetry property for the Java agent.
      See Also:
  • Method Details

    • create

      public static io.helidon.tracing.providers.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}
    • create

      public static Span.Builder<?> create(io.opentelemetry.api.trace.SpanBuilder spanBuilder, Tracer helidonTracer)
      Wrap an open telemetry span builder.
      Parameters:
      spanBuilder - open telemetry span builder
      helidonTracer - Helidon Tracer to use in creating the wrapping span builder
      Returns:
      Helidon Span.Builder