logging

package
v0.2.0-beta-8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommonAttrs

func CommonAttrs(tenantID, agentID, jobID, phase, reqKind string) []any

CommonAttrs builds a consistent set of slog attributes used across agent/bridge logs.

func DurationAttr

func DurationAttr(d time.Duration) slog.Attr

DurationAttr records a millisecond duration under a consistent key.

func MapLogLevel

func MapLogLevel(level string) slog.Level

MapLogLevel converts agent log strings into slog levels.

func RedactURLHost

func RedactURLHost(raw string) string

RedactURLHost returns only the scheme://host:port portion, dropping path/query/credentials.

func RowsAttrs

func RowsAttrs(rows int, truncated bool) []any

RowsAttrs records row counts and truncation state for query jobs.

func SQLHint

func SQLHint(sql string) string

SQLHint returns a minimal, redacted hint about a SQL statement (first keyword only).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL