jaeger

package
v0.0.0-...-4d7706c Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SampledFlag = Flags(0b01)
	DebugFlag   = Flags(0b10)
)
View Source
const (
	ChildOf     = SpanRefType("CHILD_OF")
	FollowsFrom = SpanRefType("FOLLOWS_FROM")
)
View Source
const (
	StringTag = TagType("string")
)

Variables

This section is empty.

Functions

func Convert

func Convert(traces ...Trace) (*trace.Timeline, error)

Types

type Duration

type Duration int64 // in microseconds

func (Duration) Std

func (d Duration) Std() time.Duration

func (Duration) Time

func (d Duration) Time() trace.Time

type File

type File struct {
	Data []Trace `json:"data"`
}

type Flags

type Flags int32

type Log

type Log struct {
	Timestamp Duration
	Fields    []Tag
}

type Process

type Process struct {
	ServiceName string `json:"serviceName"`
	Tags        []Tag  `json:"tags"`
}

type ProcessID

type ProcessID string

type Span

type Span struct {
	TraceSpanID
	Flags         Flags     `json:"flags"`
	OperationName string    `json:"operationName"`
	References    []SpanRef `json:"references"`
	StartTime     Duration  `json:"startTime"`
	Duration      Duration  `json:"duration"`
	Tags          []Tag     `json:"tags"`
	Logs          []Log     `json:"logs"`
	ProcessID     ProcessID `json:"processID"`
	Warnings      []string  `json:"warnings,omitempty"`
}

type SpanID

type SpanID string

type SpanRef

type SpanRef struct {
	RefType SpanRefType `json:"refType"`
	TraceSpanID
}

type SpanRefType

type SpanRefType string

type Tag

type Tag struct {
	Type  TagType     `json:"type"`
	Key   string      `json:"key"`
	Value interface{} `json:"value"`
}

type TagType

type TagType string

type Trace

type Trace struct {
	TraceID   TraceID               `json:"traceID"`
	Spans     []Span                `json:"spans"`
	Processes map[ProcessID]Process `json:"processes"`
}

type TraceID

type TraceID string

type TraceSpanID

type TraceSpanID struct {
	TraceID TraceID `json:"traceID"`
	SpanID  SpanID  `json:"spanID"`
}

Jump to

Keyboard shortcuts

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