@ParametersAreNonnullByDefault
Package io.opentelemetry.api.trace
API for distributed tracing.
Distributed tracing, also called distributed request tracing, is a technique that helps debugging distributed applications.
Trace represents a tree of spans. A trace has a root span that encapsulates all the spans from start to end, and the children spans being the distinct calls invoked in between.
Span
represents a single operation within a trace.
Spans
are propagated in-process in the Context
and between process using one of the wire propagation formats
supported in the opentelemetry.trace.propagation
package.
-
Interface Summary Interface Description Span An interface that represents a span.SpanBuilder SpanBuilder
is used to constructSpan
instances which define arbitrary scopes of code that are sampled for distributed tracing as a single atomic unit.SpanContext A class that represents a span context.TraceFlags A valid trace flags is a byte or 2 character lowercase hex (base16) String.Tracer Tracer is the interface forSpan
creation and interaction with the in-process context.TracerProvider A registry for creating namedTracer
s.TraceState Carries tracing-system specific context in a list of key-value pairs.TraceStateBuilder A builder ofTraceState
. -
Class Summary Class Description SpanId Helper methods for dealing with a span identifier.TraceId Helper methods for dealing with a trace identifier. -
Enum Summary Enum Description SpanKind Type ofSpan
.StatusCode The set of canonical status codes.