Interface ExtendedTracer
- All Superinterfaces:
Tracer
- All Known Implementing Classes:
ExtendedDefaultTracer
,SdkTracer
Extended
Tracer
with experimental APIs.-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Returnstrue
if the tracer is enabled.Methods inherited from interface io.opentelemetry.api.trace.Tracer
spanBuilder
-
Method Details
-
isEnabled
default boolean isEnabled()Returnstrue
if the tracer is enabled.This allows callers to avoid unnecessary compute when nothing is consuming the data. Because the response is subject to change over the application, callers should call this before each call to
Tracer.spanBuilder(String)
.
-