instrumenter

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT, Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTraceID

func GetTraceID(ctx context.Context) string

Types

type MethodInstrumenter

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

func GetInstrumenter

func GetInstrumenter(ctx context.Context) *MethodInstrumenter

func NewMethodInstrument

func NewMethodInstrument(ctx context.Context, methodName string) (context.Context, *MethodInstrumenter)

func (MethodInstrumenter) Annotate

func (mi MethodInstrumenter) Annotate(text string)

func (*MethodInstrumenter) End

func (mi *MethodInstrumenter) End()

func (*MethodInstrumenter) SetCallSite

func (mi *MethodInstrumenter) SetCallSite(callSite string)

func (*MethodInstrumenter) SetError

func (mi *MethodInstrumenter) SetError(err error, errShort string)

func (MethodInstrumenter) TraceID

func (mi MethodInstrumenter) TraceID() string

Jump to

Keyboard shortcuts

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