Class ExtendedTracer
java.lang.Object
io.opentelemetry.extension.incubator.trace.ExtendedTracer
- All Implemented Interfaces:
io.opentelemetry.api.trace.Tracer
Provides easy mechanisms for wrapping standard Java constructs with an OpenTelemetry Span.
-
Method Summary
Modifier and TypeMethodDescription<T> T
Call the providedCallable
and wrap with aSpan
with the provided name.static ExtendedTracer
create
(io.opentelemetry.api.trace.Tracer delegate) Create a newExtendedTracer
that wraps the provided Tracer.void
Run the providedRunnable
and wrap with aSpan
with the provided name.io.opentelemetry.api.trace.SpanBuilder
spanBuilder
(String spanName)
-
Method Details
-
create
Create a newExtendedTracer
that wraps the provided Tracer. -
run
Run the providedRunnable
and wrap with aSpan
with the provided name. -
call
Call the providedCallable
and wrap with aSpan
with the provided name.- Throws:
Exception
-
spanBuilder
- Specified by:
spanBuilder
in interfaceio.opentelemetry.api.trace.Tracer
-