package
0.0.0-20231226055340-e0dfddaad70c
Repository: https://github.com/icco/gutil.git
Documentation: pkg.go.dev
# Functions
FromContext returns a logger stored in a context.
Handler does the actual work of the http middleware.
Middleware is a middleware for writing request logs in a structured format to stackdriver.
Must panics if the logger can not be created.
NewContext wraps a context with a logger with default fields.
NewLogger creates a logger with stackdriver settings.
ParseTraceHeader takes a GCP trace header and translates it to a trace, span, and whether or not this was sampled.