trace

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TraceID      = "X-B3-TraceId"
	SpanID       = "X-B3-SpanId"
	ParentSpanID = "X-B3-ParentSpanId"
	Sampled      = "X-B3-Sampled"
	Flags        = "X-B3-Flags"
	Context      = "B3"
)

Variables

This section is empty.

Functions

func CloseReporter

func CloseReporter()

func GetReporter

func GetReporter() reporter.Reporter

Types

type Span

type Span struct {
	model.SpanContext
	Kind           model.Kind         `json:"kind,omitempty"`
	Name           string             `json:"name,omitempty"`
	Timestamp      int64              `json:"timestamp,omitempty"`
	Duration       int64              `json:"duration,omitempty"`
	Shared         bool               `json:"shared,omitempty"`
	LocalEndpoint  *model.Endpoint    `json:"localEndpoint,omitempty"`
	RemoteEndpoint *model.Endpoint    `json:"remoteEndpoint,omitempty"`
	Annotations    []model.Annotation `json:"annotations,omitempty"`
	Tags           map[string]string  `json:"tags,omitempty"`
}

Jump to

Keyboard shortcuts

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