common

package
v0.0.0-...-a4179b6 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoggerKeyTraceId string = "trace-id"
	LoggerKeySpanId  string = "span-id"
	LoggerKeyEvent   string = "event"
)
View Source
const (
	ReqHeaderKeyRequestId string = "x-request-id"
)

Variables

This section is empty.

Functions

func NewContextWithProvidedTraceIdAndSpanId

func NewContextWithProvidedTraceIdAndSpanId(ctx context.Context, traceId, spanId string) context.Context

func SpanId

func SpanId(ctx context.Context) string

func TraceId

func TraceId(ctx context.Context) string

Types

type ContextKey

type ContextKey string
const (
	ContextKeyTraceId ContextKey = "ctx-key-trace-id"
	ContextKeySpanId  ContextKey = "ctx-key-span-id"
)

Jump to

Keyboard shortcuts

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