Versions in this module Expand all Collapse all v1 v1.0.1 Aug 8, 2022 v1.0.0 Aug 4, 2022 Changes in this version + var DefaultLogHostname = false + var DefaultLogTraceID = false + var DefaultLogUsername = false + var ErrCanceled = context.Canceled + var ErrDeadlineExceeded = context.DeadlineExceeded + var ErrPaused = errors.New("job is paused") + func WithCancel(parent Context, errs ...error) (Context, CancelFunc) + func WithDeadline(parent Context, t time.Time) (Context, CancelFunc) + func WithNotify(parent Context, errs ...error) (Context, CancelFunc) + func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) + type CancelFunc = context.CancelFunc + type Context interface + Clone func() Context + IsSignaledWith func(errs ...error) bool + Logger func() Logger + Metrics func() Metrics + Notifications func() []error + Recover func() interface{} + StdCtxUntil func(err error) context.Context + TraceID func() TraceID + Tracer func() Tracer + Until func(err error) <-chan struct{} + WithField func(key string, value interface{}) Context + WithFields func(Fields) Context + WithLogger func(logger Logger) Context + WithMetrics func(Metrics) Context + WithTag func(key string, value interface{}) Context + WithTags func(Fields) Context + WithTraceID func(TraceID) Context + WithTracer func(Tracer) Context + func Background() Context + func Extend(parent context.Context) Context + func NewContext(stdCtx context.Context, traceID TraceID, loggerInstance Logger, ...) Context + func WithResetSignalers(parent Context) Context + func WithStdContext(parent Context, stdCtx context.Context) Context + func WithValue(parent context.Context, key, value interface{}) Context + type Fields = fields.Fields + type Logger = logger.Logger + func LoggerFrom(stdCtx context.Context) Logger + type Metrics = metrics.Metrics + type TimeSpan interface + Finish func() time.Duration + type TraceID string + func NewTraceID() TraceID + func (traceID TraceID) String() string + type Tracer interface + StartSpan func(label string) TimeSpan + WithField func(key string, value interface{}) Tracer + WithFields func(Fields) Tracer