Documentation
¶
Overview ¶
Package logattr holds gapi'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 goblin's internal/logattr - same concept, same key string (agent_id, topic, err) - so cross-repo log queries line up.
Index ¶
- func Action(s string) slog.Attr
- func Addr(s string) slog.Attr
- func AgentID(s string) slog.Attr
- func Bytes(n int) slog.Attr
- func Component(s string) slog.Attr
- func Count(n int) slog.Attr
- func Dependency(s string) slog.Attr
- func Err(err error) slog.Attr
- func Event(s string) slog.Attr
- func EventID(s string) slog.Attr
- func Hash(s string) slog.Attr
- func Host(s string) slog.Attr
- func KeyPath(s string) slog.Attr
- func Lang(s string) slog.Attr
- func MissingDependency(s string) slog.Attr
- func Module(s string) slog.Attr
- func Path(s string) slog.Attr
- func PathType(s string) slog.Attr
- func PayloadType(s string) slog.Attr
- func Reason(s string) slog.Attr
- func RetryIn(d time.Duration) slog.Attr
- func Scope(s string) slog.Attr
- func Signal(s string) slog.Attr
- func Source(s string) slog.Attr
- func Topic(s string) slog.Attr
- func Type(s string) slog.Attr
- func Version(s string) slog.Attr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dependency ¶
func MissingDependency ¶
MissingDependency names the unmet requirement that blocked a start.
func PayloadType ¶
PayloadType records the Go type of an event payload (%T), not the payload itself - payloads may carry secrets.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.