package opentelemetry.proto.trace.v1

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

message ConstantSampler

trace_config.proto:54

Sampler that always makes a constant decision on span sampling.

Used in: TraceConfig

enum ConstantSampler.ConstantDecision

trace_config.proto:59

How spans should be sampled: - Always off - Always on - Always follow the parent Span's decision (off if no parent).

Used in: ConstantSampler

message InstrumentationLibrarySpans

trace.proto:107

A collection of Spans produced by an InstrumentationLibrary. InstrumentationLibrarySpans is wire-compatible with ScopeSpans for binary Protobuf format. This message is deprecated and will be removed on June 15, 2022.

Used in: ResourceSpans

message RateLimitingSampler

trace_config.proto:75

Sampler that tries to sample with a rate per time window.

Used in: TraceConfig

message ResourceSpans

trace.proto:47

A collection of ScopeSpans from a Resource.

Used in: collector.trace.v1.ExportTraceServiceRequest, TracesData

message ScopeSpans

trace.proto:90

A collection of Spans produced by an InstrumentationScope.

Used in: ResourceSpans

message Span

trace.proto:131

Span represents a single operation within a trace. Spans can be nested to form a trace tree. Spans may also be linked to other spans from the same or different trace and form graphs. Often, a trace contains a root span that describes the end-to-end latency, and one or more subspans for its sub-operations. A trace can also contain multiple root spans, or none at all. Spans do not need to be contiguous - there may be gaps or overlaps between spans in a trace. The next available field id is 17.

Used in: InstrumentationLibrarySpans, ScopeSpans

message Span.Event

trace.proto:246

Event is a time-stamped annotation of the span, consisting of user-supplied text description and key-value pairs.

Used in: Span

trace.proto:275

A pointer from the current span to another span in the same trace or in a different trace. For example, this can be used in batching operations, where a single batch handler processes multiple requests from different traces or when the handler receives a request from a different project.

Used in: Span

enum Span.SpanKind

trace.proto:176

SpanKind is the type of span. Can be used to specify additional relationships between spans in addition to a parent/child relationship.

Used in: Span

message Status

trace.proto:311

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs.

Used in: Span

enum Status.StatusCode

trace.proto:319

For the semantics of status codes see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#set-status

Used in: Status

message TraceConfig

trace_config.proto:26

Global configuration of the trace service. All fields must be specified, or the default (zero) values will be used for each type.

message TraceIdRatioBased

trace_config.proto:69

Sampler that tries to uniformly sample traces with a given ratio. The ratio of sampling a trace is equal to that of the specified ratio.

Used in: TraceConfig

message TracesData

trace.proto:37

TracesData represents the traces data that can be stored in a persistent storage, OR can be embedded by other protocols that transfer OTLP traces data but do not implement the OTLP protocol. The main difference between this message and collector protocol is that in this message there will not be any "control" or "metadata" specific to OTLP protocol. When new fields are added into this message, the OTLP request MUST be updated as well.