trace

package
v1.25.4 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 7 Imported by: 3 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyPreHeaderToCurRoutine added in v1.1.16

func CopyPreHeaderToCurRoutine(preRoutineId uint64)

从其他协程克隆headers到当前协程的缓存

func GetClientIp added in v1.1.6

func GetClientIp() string

func GetGoroutineID added in v1.1.15

func GetGoroutineID() uint64

func GetHeader added in v1.1.9

func GetHeader(header string) string

func GetHeaders added in v1.1.9

func GetHeaders() map[string]string

func GetRequestId

func GetRequestId() string

func GetUserAgent added in v1.1.6

func GetUserAgent() string

func Headers added in v1.1.9

func Headers() gin.HandlerFunc

func PutRequestId

func PutRequestId(c *gin.Context)

func SetHeader added in v1.19.33

func SetHeader(key, value string)

func TraceId

func TraceId() gin.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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