context

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorHandlerWithCorrelationID

func ErrorHandlerWithCorrelationID(ctx context.Context, errorHandler emperror.Handler) emperror.Handler

ErrorHandlerWithCorrelationID returns a new error handler with a correlation ID in its context.

func LoggerWithCorrelationID

func LoggerWithCorrelationID(ctx context.Context, logger logrus.FieldLogger) logrus.FieldLogger

LoggerWithCorrelationID returns a new logger with a correlation ID in it's context.

func WithCorrelationID

func WithCorrelationID(ctx context.Context, cid string) context.Context

WithCorrelationID returns a new context with the current correlation ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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