logging

package
v0.2.0-beta-2 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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