Documentation
¶
Index ¶
- func CtxRequestId(ctx context.Context) string
- func CtxRootSpan(ctx context.Context) trace.Span
- func CtxSessionID(ctx context.Context) string
- func CtxStartTime(ctx context.Context) time.Time
- func WithRequestID(ctx context.Context, requestID string) context.Context
- func WithRootSpan(ctx context.Context, span trace.Span) context.Context
- func WithSessionID(ctx context.Context, sessionID string) context.Context
- func WithStartTime(ctx context.Context, t time.Time) context.Context
- type CtxRequestIdKey
- type CtxRootSpanKey
- type CtxSessionIdKey
- type CtxStartTimeKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CtxRequestId ¶
CtxRequestId returns the request id from a given context.
func CtxRootSpan ¶
CtxRootSpan returns the root span from a given context.
func CtxSessionID ¶
CtxSessionID returns the session id from a given context.
func CtxStartTime ¶
CtxStartTime returns the start time from a given context.
func WithRequestID ¶
WithRequestID adds a given request id to a given context.
func WithRootSpan ¶
WithRootSpan adds a root span to a given context.
func WithSessionID ¶
WithSessionID adds a given session id to a given context.
Types ¶
type CtxRequestIdKey ¶
type CtxRequestIdKey struct{}
type CtxRootSpanKey ¶
type CtxRootSpanKey struct{}
type CtxSessionIdKey ¶
type CtxSessionIdKey struct{}
type CtxStartTimeKey ¶
type CtxStartTimeKey struct{}
Click to show internal directories.
Click to hide internal directories.