Documentation
¶
Index ¶
- Constants
- func GenerateId() string
- func GetTraceID(ctx context.Context) (traceId any)
- func NewContextFromTraceId(traceId string) context.Context
- func NewTraceIDContext() context.Context
- func WithContext(ctx context.Context, traceId string) context.Context
- func WithTraceID(ctx context.Context) context.Context
- type CtxTraceId
Constants ¶
View Source
const (
TraceIDKey = "gcloud-x-trace-id"
)
Variables ¶
This section is empty.
Functions ¶
func GenerateId ¶
func GenerateId() string
func GetTraceID ¶
func NewContextFromTraceId ¶
func NewTraceIDContext ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.