On this page
API reference for the meta package — environment variables, git context, parent process details, the resolved ancestry chain and custom pairs per deletion.
#internal/meta
#internal/meta
Package meta collects rich metadata about each deletion: environment variables, git repository context, parent process information, and arbitrary user-supplied key-value pairs.
#Metadata
type Metadata structMetadata holds contextual information captured at deletion time.
#Collect
func Collect(excludePatterns []string, customMeta map[string]string) (*Metadata, error)Collect gathers metadata from the current environment.
Best-effort per collector -- git context, parent-process details and the process ancestry read from the trace store degrade to empty values, or to a recorded anomaly, rather than failing. The one thing it refuses to work around is an exclude pattern that does not compile: that is the caller asking for a redaction, and continuing without it would write the very variables the caller meant to keep out. See collectEnv.