Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - func InjectCorrelationID(h http.Handler) http.Handler
 - func NoContext() *logrus.Logger
 - func WithContext(ctx context.Context) *logrus.Entry
 - func WithError(ctx context.Context, err error) *logrus.Entry
 - func WithField(ctx context.Context, key string, value interface{}) *logrus.Entry
 - func WithFields(ctx context.Context, f Fields) *logrus.Entry
 - func WrapEntry(ctx context.Context, e *logrus.Entry) *logrus.Entry
 - type Fields
 
Constants ¶
      View Source
      
  
const (
	// KeyCorrelationID const is the context key for Correlation ID
	KeyCorrelationID ctxKey = "X-Correlation-ID"
)
    Variables ¶
This section is empty.
Functions ¶
func WithContext ¶
WithContext provides a *logrus.Entry with the proper "correlation-id" field.
"[MISSING]" will be used when ctx has no value for KeyCorrelationID
func WithFields ¶
WithFields decorates logrus.WithFields with the proper "correlation-id"
Types ¶
 Click to show internal directories. 
   Click to hide internal directories.