method

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseMethodContext added in v0.2.0

func CloseMethodContext(ctx *MethodCtx)

func End

func End(methodCtx *MethodCtx, err error) error

func Trace

func Trace(ctx context.Context, name string, elapsed int, err error) error

Types

type MethodCtx

type MethodCtx struct {
	Txid        int64
	ServiceName string
	StartTime   int64
	Method      string
	Stack       string
	Cpu         int64
	Mem         int64
	// contains filtered or unexported fields
}

func NewMethodCtx

func NewMethodCtx() *MethodCtx

func PoolMethodContext added in v0.2.0

func PoolMethodContext() *MethodCtx

func Start

func Start(ctx context.Context, name string) (*MethodCtx, error)

func (*MethodCtx) Clear added in v0.2.0

func (this *MethodCtx) Clear()

Jump to

Keyboard shortcuts

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