correlationslog

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 2 Imported by: 1

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.

Jump to

Keyboard shortcuts

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