logattr

package
v0.1.0-proto2h Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MPL-2.0 Imports: 2 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Action

func Action(s string) slog.Attr

func Addr

func Addr(s string) slog.Attr

func AgentID

func AgentID(s string) slog.Attr

func Bytes

func Bytes(n int) slog.Attr

func Component

func Component(s string) slog.Attr

func Count

func Count(n int) slog.Attr

func Dependency

func Dependency(s string) slog.Attr

func Err

func Err(err error) slog.Attr

Err pins the conventional "err" key; nil-safe for termini that log unconditionally.

func Event

func Event(s string) slog.Attr

func EventID

func EventID(s string) slog.Attr

func Hash

func Hash(s string) slog.Attr

func Host

func Host(s string) slog.Attr

func KeyPath

func KeyPath(s string) slog.Attr

func Lang

func Lang(s string) slog.Attr

func MissingDependency

func MissingDependency(s string) slog.Attr

MissingDependency names the unmet requirement that blocked a start.

func Module

func Module(s string) slog.Attr

func Path

func Path(s string) slog.Attr

func PathType

func PathType(s string) slog.Attr

func PayloadType

func PayloadType(s string) slog.Attr

PayloadType records the Go type of an event payload (%T), not the payload itself - payloads may carry secrets.

func Reason

func Reason(s string) slog.Attr

func RetryIn

func RetryIn(d time.Duration) slog.Attr

func Scope

func Scope(s string) slog.Attr

func Signal

func Signal(s string) slog.Attr

func Source

func Source(s string) slog.Attr

func Topic

func Topic(s string) slog.Attr

func Type

func Type(s string) slog.Attr

func Version

func Version(s string) slog.Attr

Types

This section is empty.

Jump to

Keyboard shortcuts

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