trace

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 9 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

View Source
var DefaultLogger *zap.Logger

DefaultLogger is default trace logger

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