Documentation
¶
Overview ¶
Package trace loads OTLP JSON trace files into a flat, analyzer-friendly form.
The input format is the newline-delimited OTLP JSON written by the OpenTelemetry Collector fileexporter: one ExportTraceServiceRequest per line. Parsing uses pdata's JSON unmarshaler so hex trace/span ids and enums are decoded exactly as the collector encodes them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Span ¶
type Span struct {
TraceID string
SpanID string
ParentID string // empty for root spans
Name string
Kind ptrace.SpanKind
Status ptrace.StatusCode
StatusMsg string
Service string
Attrs map[string]string // scalar attributes rendered as strings
Line int // 1-based line in the input file (for evidence)
}
Span is a flattened span with only the fields the rules need.