Trace projection policy.
Policies are data. They decide whether trace entries are emitted, how much to sample, and which keys should be omitted or redacted before a trace sink sees the event data.
Summary
Functions
Returns the default keys that are removed from trace data.
Returns the default keys whose values are redacted.
Normalizes optional trace policy input.
Builds a trace policy from keyword or map attributes.
Builds a trace policy and raises if the attributes are invalid.
Returns the Zoi schema for a trace policy.
Types
Functions
@spec default_omit_keys() :: [String.t()]
Returns the default keys that are removed from trace data.
@spec default_redact_keys() :: [String.t()]
Returns the default keys whose values are redacted.
Normalizes optional trace policy input.
Builds a trace policy from keyword or map attributes.
Builds a trace policy and raises if the attributes are invalid.
@spec schema() :: Zoi.schema()
Returns the Zoi schema for a trace policy.