tracing

package
v0.0.0-...-02a526c Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TracingSet = wire.NewSet(wire.Struct(new(Tracing), "*"))

Functions

This section is empty.

Types

type Tracing

type Tracing struct {
	Logger       core.ILogger
	TracerConfig *jConfig.Configuration
}

func (*Tracing) GenErrMsg

func (t *Tracing) GenErrMsg(c *gin.Context, desc string, err error) error

func (*Tracing) GenOkMsg

func (t *Tracing) GenOkMsg(c *gin.Context, desc string) string

func (*Tracing) Trace

func (t *Tracing) Trace() gin.HandlerFunc

Trace 通过header传递traceID给下游服务来实现嵌套链路

Jump to

Keyboard shortcuts

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