Documentation
¶
Overview ¶
Package logattr holds goblin's typed log attribute constructors: each pins one key to one value type, so a dropped value, swapped pair, or wrong type is a compile error instead of a quietly wrong JSON field (go-manifesto section 8). Add new keys here, never inline at call sites. Key vocabulary is shared by convention with gapi's internal/logattr - same concept, same key string (agent_id, topic, err) - so cross-repo log queries line up.
Index ¶
- func Addr(s string) slog.Attr
- func AgentID(s string) slog.Attr
- func Attempt(n int) slog.Attr
- func Backoff(d time.Duration) slog.Attr
- func Bytes(n int) slog.Attr
- func CPUCores(n int) slog.Attr
- func Count(n int) slog.Attr
- func Err(err error) slog.Attr
- func Event(s string) slog.Attr
- func From(s string) slog.Attr
- func InstanceID(s string) slog.Attr
- func JobID(s string) slog.Attr
- func Key(s string) slog.Attr
- func Leader(b bool) slog.Attr
- func Loops(names []string) slog.Attr
- func Member(s string) slog.Attr
- func MemoryMB(n uint64) slog.Attr
- func Message(s string) slog.Attr
- func Method(s string) slog.Attr
- func Namespace(s string) slog.Attr
- func NodeID(s string) slog.Attr
- func PanicValue(s string) slog.Attr
- func Path(s string) slog.Attr
- func Protocol(s string) slog.Attr
- func Reason(s string) slog.Attr
- func Response(s string) slog.Attr
- func Scope(s string) slog.Attr
- func Signum(n int) slog.Attr
- func Source(s string) slog.Attr
- func SpecID(s string) slog.Attr
- func Status(s string) slog.Attr
- func StreamType(n int) slog.Attr
- func Tier(s string) slog.Attr
- func To(s string) slog.Attr
- func Topic(s string) slog.Attr
- func Type(s string) slog.Attr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstanceID ¶
func Loops ¶
Loops carries the names of supervisor loops that outlived their shutdown grace. Joined rather than slog.Any so the field is a plain string in every handler, and pre-sorted by the caller so the value is stable across runs.
func PanicValue ¶
func StreamType ¶
Types ¶
This section is empty.