package
0.0.0-20191121140916-9649366ff4b2
Repository: https://github.com/chronosphereiox/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.
ReadContextID returns the context's id or "undefined".
WithContext returns a zap logger with as much context as possible.
WithPanicErrorResponder wraps around the given handler, providing panic recovery and logging.
WithResponseTimeAndPanicErrorLogging wraps around the given handler, providing panic recovery and response time logging.
WithResponseTimeAndPanicErrorLoggingFunc wraps around the http request handler function, providing panic recovery and response time logging.