tracing

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: MIT Imports: 8 Imported by: 1

README

tracing

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithContext

func WithContext(ctx context.Context, tracer trace.Tracer) context.Context

Types

type Trace

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

func SetTrace

func SetTrace(ctx context.Context, args ...interface{}) *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 added in v1.0.3

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