Documentation
¶
Overview ¶
Package correlationslog provides at most three diagnostic slog attributes through Attrs, without installing a logger or handler. Disclosure defaults to redaction; raw/hash values stay caller-reviewed and must not become metrics. Calls own returned slices but borrow disclosure keys for synchronous use.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Attrs ¶
func Attrs(values correlation.Values, policy correlation.DisclosurePolicy) ([]slog.Attr, error)
Attrs returns only non-empty identifier attributes under an explicit disclosure policy, ordered correlation, request, causation. It returns a new slice or nil on error, without partial attributes. All-empty Values returns an empty slice without validating policy; exposed text is not validated here.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.