gin2micro

package
v0.0.0-...-57ed434 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: AGPL-3.0 Imports: 9 Imported by: 10

Documentation

Index

Constants

View Source
const OpenTraceKey = "opentraceId"

Variables

This section is empty.

Functions

func ContextWithSpan

func ContextWithSpan(c *gin.Context) (ctx context.Context, ok bool)

ContextWithSpan 返回context

func SetSamplingFrequency

func SetSamplingFrequency(n int)

SetSamplingFrequency 设置采样频率 0 <= n <= 100

func TracerWrapper

func TracerWrapper(c *gin.Context)

TracerWrapper tracer 中间件

Types

This section is empty.

Jump to

Keyboard shortcuts

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