Documentation ¶
Index ¶
- Constants
- func AgentId(agentId int64) zap.Field
- func CommitId(commitId string) zap.Field
- func CorrelationId(correlationId string) zap.Field
- func CorrelationIdFromContext(ctx context.Context) zap.Field
- func Error(err error) zap.Field
- func GrpcMethod(method string) zap.Field
- func GrpcService(service string) zap.Field
- func IsWebSocket(isWebSocket bool) zap.Field
- func KasUrl(kasUrl string) zap.Field
- func LevelFromString(levelStr string) (zapcore.Level, error)
- func LoggerWithLevel(level zapcore.LevelEnabler) *zap.Logger
- func ModuleName(name string) zap.Field
- func NetAddress(listenAddress string) zap.Field
- func NetAddressFromAddr(addr net.Addr) zap.Field
- func NetNetwork(listenNetwork string) zap.Field
- func NetNetworkFromAddr(addr net.Addr) zap.Field
- func NoSync(w io.Writer) zapcore.WriteSyncer
- func NumberOfFilesSent(n uint32) zap.Field
- func NumberOfFilesVisited(n uint32) zap.Field
- func PoolConnectionUrl(poolConnUrl string) zap.Field
- func ProjectId(projectId string) zap.Field
- func RedisKey(key []byte) zap.Field
- func RemovedHashKeys(n int) zap.Field
- func ReportName(name string) zap.Field
- func SentryDSN(sentryDSN string) zap.Field
- func SentryEnv(sentryEnv string) zap.Field
- func TokenLimit(limit uint64) zap.Field
- func U64Count(count uint64) zap.Field
- func UID(uid types.UID) zap.Field
- func UrlPath(url string) zap.Field
- func UrlPathPrefix(urlPrefix string) zap.Field
- func VulnerabilitiesCount(n int) zap.Field
Constants ¶
View Source
const ( AgentConfig = "agent_config" AgentFeatureName = "feature_name" AgentFeatureStatus = "feature_status" )
These constants are for type-safe zap field helpers that are not here to: - avoid adding a dependency or - because they are not generally useful. Field names are here to make it possible to see all field names that are in use.
Variables ¶
This section is empty.
Functions ¶
func CorrelationId ¶
func GrpcMethod ¶
func GrpcService ¶
func IsWebSocket ¶
func LoggerWithLevel ¶
func LoggerWithLevel(level zapcore.LevelEnabler) *zap.Logger
func NetAddress ¶
func NetNetwork ¶
func NoSync ¶
func NoSync(w io.Writer) zapcore.WriteSyncer
NoSync can be used to wrap a io.Writer that implements zapcore.WriteSyncer but does not actually support the Sync() operation. An example is os.Stderr that returns "sync /dev/stderr: inappropriate ioctl for device" on sync attempt.
func NumberOfFilesSent ¶
func NumberOfFilesVisited ¶
func PoolConnectionUrl ¶ added in v14.5.0
func RemovedHashKeys ¶
func ReportName ¶ added in v14.5.0
func UID ¶ added in v14.5.0
Use for any UID associated with a Kubernetes object https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
func UrlPathPrefix ¶
func VulnerabilitiesCount ¶ added in v14.5.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.