tracing

package module
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: MIT Imports: 17 Imported by: 0

README

tracing

Documentation

Index

Constants

View Source
const ShutdownTimeout = time.Second * 5

Variables

This section is empty.

Functions

func ProviderRunner

func ProviderRunner(opts ...Option) execs.Runner

Types

type Option

type Option func(o *tracingOptions)

func WithEnvironment

func WithEnvironment(env string) Option

func WithService

func WithService(service string) Option

func WithURL

func WithURL(url string) Option

type Trace

type Trace struct {
	// contains filtered or unexported fields
}

func SetTrace

func SetTrace(ctx context.Context, args ...any) *Trace

func (*Trace) Context

func (t *Trace) Context() context.Context

func (*Trace) End

func (t *Trace) End()

func (*Trace) TraceID

func (t *Trace) TraceID() string

func (*Trace) WithError

func (t *Trace) WithError(err error, args ...any) (*Trace, error)

func (*Trace) WithFields

func (t *Trace) WithFields(flds ...fields.Field) *Trace

func (*Trace) WithFormattedError

func (t *Trace) WithFormattedError(err error, args ...any) (*Trace, error)

Jump to

Keyboard shortcuts

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