Documentation ¶
Overview ¶
Package validator describes the logic on reconstructing Traces from Span protos and validating the generated Traces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReconstructTraces ¶
func ReconstructTraces(spans ...*tracepb.Span) (map[trace.TraceID]*SimpleSpan, map[trace.TraceID]error)
ReconstructTraces tries to reconstruct traces from the given spans. If the spans are valid, it will return the root spans for each trace. If there are broken traces, an error for each broken one will be returned instead.
Types ¶
type SimpleSpan ¶
type SimpleSpan struct {
// contains filtered or unexported fields
}
SimpleSpan is a tree-like type that preserves the parent-child relationship among spans and holds the propagation information (trace id, span id, etc.).
Click to show internal directories.
Click to hide internal directories.