Documentation ¶
Index ¶
- Constants
- func GetRequestID(ctx context.Context) string
- func GetTransactionID(ctx context.Context) string
- func LogCtxFields(ctx context.Context) []any
- func SetRequestID(ctx context.Context, requestID string) context.Context
- func SetTransactionID(ctx context.Context, transactionID string) context.Context
- type ContextKey
Constants ¶
View Source
const ( RequestIDStr string = "x-request-id" RequestID ContextKey = "x-request-id" TransactionIDStr string = "transaction-id" TransactionID ContextKey = "transaction-id" )
Variables ¶
This section is empty.
Functions ¶
func GetRequestID ¶
func GetTransactionID ¶
func LogCtxFields ¶
Types ¶
type ContextKey ¶
type ContextKey string
Click to show internal directories.
Click to hide internal directories.