Package io.helidon.tracing.opentelemetry
Class HelidonOpenTelemetry
java.lang.Object
io.helidon.tracing.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. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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 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}
-