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.
io. represents a single operation within a trace.
Spans are propagated in-process in the io. and between process using one of the wire propagation formats
supported in the opentelemetry.trace.propagation package.
| Modifier and Type | Interface and Description |
|---|---|
| public interface | Span
An interface that represents a span. |
| public interface | SpanBuilder
|
| public interface | SpanContext
A class that represents a span context. |
| public interface | TraceFlags
A valid trace flags is a byte or 2 character lowercase hex (base16) String. |
| public interface | |
| public interface | TracerBuilder
Builder class for creating |
| public interface | TracerProvider
A registry for creating named |
| public interface | TraceState
Carries tracing-system specific context in a list of key-value pairs. |
| public interface | TraceStateBuilder
A builder of |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv abstract class | |
| pack-priv class | |
| pack-priv class | DefaultTracer
No-op implementation of |
| pack-priv class | |
| pack-priv class | |
| pack-priv class | |
| pack-priv class | PropagatedSpan
The default |
| pack-priv class | SpanContextKey
Util class to hold on to the key for storing a Span in the Context. |
| public class | SpanId
Helper methods for dealing with a span identifier. |
| public class | TraceId
Helper methods for dealing with a trace identifier. |
| Modifier and Type | Enum and Description |
|---|---|
| public enum | |
| public enum | StatusCode
The set of canonical status codes. |