Documentation ¶
Index ¶
- Variables
- func Bool(ctx context.Context, key string) bool
- func ClickhouseUserAgent(ctx context.Context) string
- func Debug(ctx context.Context, name string) bool
- func Grafana(ctx context.Context) string
- func HttpRequest(r *http.Request) *http.Request
- func Logger(ctx context.Context) *zap.Logger
- func LoggerWithHeaders(ctx context.Context, r *http.Request, headersToLog []string) *zap.Logger
- func RequestID(ctx context.Context) string
- func String(ctx context.Context, key string) string
- func Table(ctx context.Context) string
- func With(ctx context.Context, key string, value interface{}) context.Context
- func WithDebug(ctx context.Context, name string) context.Context
- func WithLogger(ctx context.Context, logger *zap.Logger) context.Context
- func WithRequestID(ctx context.Context, requestID string) context.Context
- func WithTable(ctx context.Context, table string) context.Context
- type Context
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CarbonapiUUIDName = "carbonapi_uuid" RequestHeadersName = "request_headers" )
View Source
var Version string
Functions ¶
func ClickhouseUserAgent ¶
ClickhouseUserAgent ...
func LoggerWithHeaders ¶ added in v0.13.4
Logger returns zap.Logger instance
func WithLogger ¶
WithLogger ...
func WithRequestID ¶
WithRequestID ...
Types ¶
type Context ¶
Context wrapper for context.Context with chain constructor
func (*Context) WithLogger ¶
WithLogger ...
func (*Context) WithRequestID ¶
WithRequestID ...
Click to show internal directories.
Click to hide internal directories.