Class HelidonOpenTelemetry
java.lang.Object
io.helidon.tracing.providers.opentelemetry.HelidonOpenTelemetry
Open Telemetry factory methods to create wrappers for Open Telemetry types.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Check if OpenTelemetry is present by indirect properties. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
<?> 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.
-
Field Details
-
OTEL_AGENT_PRESENT_PROPERTY
OpenTelemetry property for indicating if the Java agent is present.- See Also:
-
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 instancetracer
- tracertags
- tracer tags- Returns:
- Helidon
Tracer
-
create
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 spanbaggage
- 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 builderhelidonTracer
- HelidonTracer
to use in creating the wrapping span builder- Returns:
- Helidon
Span.Builder
-