spantagger

package
v0.0.0-...-77b9a16 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InconsistentTraceIDsError = Error("inconsistent traceIDs")
	OrphanedSpanError         = Error("orphaned span")
	NoRootError               = Error("no root span")
	MultipleRootsError        = Error("multiple root spans")
)

Variables

This section is empty.

Functions

func Fingerprint

func Fingerprint(traces ptrace.Traces) (fingerprint uint64, hasError bool, err error)

Fingerprint generates a fingerprint for a set of traces. The fingerprint is a string that represents the sorted, unique paths in the traces.

If an error is returned, it will be of type Error and will indicate the problem with the trace. The fingerprint will be 0 in this case.

Types

type Error

type Error string

func (Error) Error

func (e Error) Error() string

type Graph

type Graph struct {
	Fingerprint int64     `json:"fingerprint,omitempty"`
	Graph       *spanNode `json:"graph,omitempty"`
}

func BuildTree

func BuildTree(traces ptrace.Traces, fingerprint int64) (graph *Graph, hasError bool, err error)

Jump to

Keyboard shortcuts

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