package
0.0.0-20250114002236-001872c9942d
Repository: https://github.com/percona/saas.git
Documentation: pkg.go.dev
# Functions
GetContextWithLogger returns derived context with given logger set.
GetLoggerFromContext returns logger from given context produced by GetContextWithLogger.
HTTP returns http.RoundTripper with request/response logger.
LogFullRequest enable/disables logging of request/response body and headers.
NewGRPCMessageDumper creates gRPC message dumper for zap logger.
SetupGlobal setups global zap logger.
# Constants
AppIDAttr attribute name for application ID field in log record.
HookAttr attribute name hook field in log record.
RequestIDAttr attribute name for request ID field in log record.
UserIDAttr attribute name for user ID field in log record.
# Variables
nolint:gochecknoglobals.
# Structs
GRPC is a compatibility wrapper between zap's sugared logger entry and gRPC logger interface.
GRPCMessageDumper helper struct for dumping gRPC message using zap logger.
PromHTTP is a compatibility wrapper between zap's sugared logger entry and Prometheus HTTP logger interface.
SetupGlobalOpts contains logger options.
# Type aliases
HTTPOption is an option for http.RoundTripper returned by HTTP constructor.