package
1.5.0
Repository: https://github.com/m3db/m3.git
Documentation: pkg.go.dev

# Functions

NewContext returns a context has a zap logger with the extra fields added.
NewContextWithGeneratedID returns a context with a generated id with a zap logger and an id field.
NewContextWithID returns a context which has a zap logger and an id field.
NewContextWithLogger returns a context with the provided logger set as a context value.
ReadContextID returns the context's id or "undefined".
WithContext returns a zap logger with as much context as possible.