request_identify

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

README

golang_request_identify

distributed services request identify trace for golang

Documentation

Index

Constants

View Source
const (
	HeaderFieldRequestIdentity = "x-md-global-request-identity" // 请求头追踪标识字段名称
)

Variables

This section is empty.

Functions

func CreateRequestIdentity

func CreateRequestIdentity() string

CreateRequestIdentity 生成请求唯一标识.

func GetRequestIdentity

func GetRequestIdentity(ctx context.Context) string

GetRequestIdentity 获取请求标识.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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