package
2.7.11
Repository: https://github.com/influxdata/influxdb.git
Documentation: pkg.go.dev

# Functions

Database returns a field for tracking the name of a database.
IsTerminal checks if w is a file and whether it is an interactive terminal session.
LoggerFromContext returns the zap.Logger associated with ctx or nil if no logger has been assigned.
NewConfig returns a new instance of Config with defaults.
NewContextWithLogger returns a new context with log added.
NewOperation uses the exiting log to create a new logger with context containing a trace id and the operation.
OperationElapsed returns a field for tracking the duration of an operation.
OperationEventEnd returns a field for tracking the end of an operation.
OperationEventStart returns a field for tracking the start of an operation.
OperationName returns a field for tracking the name of an operation.
Database returns a field for tracking the name of a database.
Shard returns a field for tracking the shard identifier.
ShardGroup returns a field for tracking the shard group identifier.
TraceFields returns a fields "ot_trace_id" and "ot_trace_sampled", values pulled from the (Jaeger) trace ID found in the given context.
TraceID returns a field "trace_id", value pulled from the (Jaeger) trace ID found in the given context.

# Constants

DBInstanceKey is the logging context key used for identifying name of the relevant database.
DBRetentionKey is the logging context key used for identifying name of the relevant retention policy.
DBShardGroupKey is the logging context key used for identifying relevant shard group.
DBShardIDKey is the logging context key used for identifying name of the relevant shard number.
OperationElapsedKey is the logging context key used for identifying time elapsed to finish an operation.
OperationEventKey is the logging context key used for identifying a notable event during the course of an operation.
OperationNameKey is the logging context key used for identifying name of an operation.
TraceIDKey is the logging context key used for identifying the current trace.
TraceSampledKey is the logging context key used for determining whether the current trace will be sampled.

# Structs