MCPcopy
hub / github.com/uber/kraken / With

Function With

utils/log/log.go:171–173  ·  view source on GitHub ↗

With adds a variadic number of fields to the logging context. It accepts a mix of strongly-typed zapcore.Field objects and loosely-typed key-value pairs.

(args ...interface{})

Source from the content-addressed store, hash-verified

169// With adds a variadic number of fields to the logging context.
170// It accepts a mix of strongly-typed zapcore.Field objects and loosely-typed key-value pairs.
171func With(args ...interface{}) *zap.SugaredLogger {
172 return Default().With(args...)
173}
174
175// WithTraceContext returns a logger with trace_id and span_id fields extracted from the context.
176// If the context doesn't contain a valid span, returns the default logger.

Callers 15

HealthHandlerFunction · 0.92
HandlerMethod · 0.92
decrementTotalSizeMethod · 0.92
ReleaseReservationMethod · 0.92
BuildMethod · 0.92
failedMethod · 0.92
UploadMethod · 0.92
DownloadMethod · 0.92
NotifyMethod · 0.92
AdjustBandwidthMethod · 0.92
ListMethod · 0.92
ListMethod · 0.92

Calls 1

DefaultFunction · 0.70

Tested by

no test coverage detected