trace

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceKey = "service.name"
	ErrorKey   = "err"
)
View Source
const MaxSpanSize = 65000

Variables

This section is empty.

Functions

func Trace

func Trace(id, component string, args map[string]string)

Trace add trace to jaeger

Types

type Caller

type Caller struct {
	FunctionName string
	FileName     string
	Line         int
}

func Call

func Call(skip int) Caller

type IdGenerator

type IdGenerator struct {
	RequestId string
}

func (IdGenerator) NewIDs

func (gen IdGenerator) NewIDs(ctx context.Context) (trace.TraceID, trace.SpanID)

func (IdGenerator) NewSpanID

func (gen IdGenerator) NewSpanID(ctx context.Context, traceID trace.TraceID) trace.SpanID

Jump to

Keyboard shortcuts

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