validator

package
v0.0.0-...-7a23ab9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

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.

func ToSpanID

func ToSpanID(bytes []byte) trace.SpanID

ToSpanID creates a SpanID ID from the given byte array.

func ToTraceID

func ToTraceID(bytes []byte) trace.TraceID

ToTraceID creates a Trace ID from the given byte array.

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.).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL