lg

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: BSD-3-Clause Imports: 26 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fork

func Htrace

func Htrace(h http.Handler, name string) http.Handler

func Init

func Init(ctx context.Context, name string) (context.Context, func(context.Context) error)

func Meter

func Meter(ctx context.Context) api.Meter

func NamedSpan

func NamedSpan(ctx context.Context, name string, opts ...trace.SpanStartOption) (context.Context, trace.Span)

func NewHTTP

func NewHTTP(ctx context.Context) *httpHandle

func Span

func Tracer

func Tracer(ctx context.Context) trace.Tracer

Types

type SampleRate

type SampleRate string
const (
	SampleAlways SampleRate = "always"
	SampleNever  SampleRate = "never"
)

Jump to

Keyboard shortcuts

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