logattr

package
v0.1.0-proto2g Latest Latest
Warning

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

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

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Addr

func Addr(s string) slog.Attr

func AgentID

func AgentID(s string) slog.Attr

func Attempt

func Attempt(n int) slog.Attr

func Backoff

func Backoff(d time.Duration) slog.Attr

func Bytes

func Bytes(n int) slog.Attr

func CPUCores

func CPUCores(n int) slog.Attr

func Count

func Count(n int) 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 From

func From(s string) slog.Attr

func InstanceID

func InstanceID(s string) slog.Attr

func JobID

func JobID(s string) slog.Attr

func Key

func Key(s string) slog.Attr

func Leader

func Leader(b bool) slog.Attr

func Loops

func Loops(names []string) slog.Attr

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 Member

func Member(s string) slog.Attr

func MemoryMB

func MemoryMB(n uint64) slog.Attr

func Message

func Message(s string) slog.Attr

func Method

func Method(s string) slog.Attr

func Namespace

func Namespace(s string) slog.Attr

func NodeID

func NodeID(s string) slog.Attr

func PanicValue

func PanicValue(s string) slog.Attr

func Path

func Path(s string) slog.Attr

func Protocol

func Protocol(s string) slog.Attr

func Reason

func Reason(s string) slog.Attr

func Response

func Response(s string) slog.Attr

func Scope

func Scope(s string) slog.Attr

func Signum

func Signum(n int) slog.Attr

func Source

func Source(s string) slog.Attr

func SpecID

func SpecID(s string) slog.Attr

func Status

func Status(s string) slog.Attr

func StreamType

func StreamType(n int) slog.Attr

func Tier

func Tier(s string) slog.Attr

Tier names a supervisor loop tier ("pre-userspace", "run") in shutdown records.

func To

func To(s string) slog.Attr

func Topic

func Topic(s string) slog.Attr

func Type

func Type(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