trace

package
v0.0.0-...-c848364 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithAutoLinks(ctx Context, links ...*Link) Context

func ContextWithSpanID

func ContextWithSpanID(ctx Context, id SpanID) Context

func ContextWithTraceID

func ContextWithTraceID(ctx Context, id TraceID) Context

func ContextWithoutTrace

func ContextWithoutTrace(ctx Context) Context

Types

type Link struct {
	TraceID TraceID
	SpanID  SpanID
}
func ContextAutoLinks(ctx Context) []*Link

func LinkToContext

func LinkToContext(ctx Context) *Link

type SpanID

type SpanID [8]byte

func ContextSpanID

func ContextSpanID(ctx Context) (SpanID, bool)

func (SpanID) String

func (id SpanID) String() string

type TraceID

type TraceID [16]byte

func ContextTraceID

func ContextTraceID(ctx Context) (TraceID, bool)

func (TraceID) String

func (id TraceID) String() string

Jump to

Keyboard shortcuts

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