Skip to main content

Module recording

Module recording 

Source
Expand description

Unified runtime recording model.

This module provides a typed Record<{...}> model that can be routed to observability/audit/security/operations channels with one entry point.

Macros§

debug
Re-export migration bridge macros under recording::*.
error
info
log
Re-export macro as recording::log!. Macro entry-point.
trace
warn

Structs§

AuditPayload
Audit-specific payload.
ChannelFilters
Holds the active filter for each channel.
Common
Common metadata shared by all channel payloads.
ObservabilityPayload
Observability-specific payload.
OperationsPayload
Operations-specific payload.
Record
Full recording item, with channel mask on type level.
RecordId
Stable identifier for each recording item.
SecurityPayload
Security-specific payload.

Enums§

AuditFilter
Audit channel filter — controls scope (which actions).
ObservabilityFilter
Observability channel filter — controls resolution (how much detail).
OperationsFilter
Operations channel filter — controls detail level.
Outcome
Result/outcome of one runtime action.
Protocol
Runtime/request protocol.
RecordLevel
Unified severity level for runtime recording.
RecordingError
Runtime recording validation/emit error.
SecurityFilter
Security channel filter — controls severity threshold.
SecuritySeverity
Security impact level.

Constants§

CHANNEL_AUDIT
Recording channel mask: audit.
CHANNEL_OBSERVABILITY
Recording channel mask: observability.
CHANNEL_OPERATIONS
Recording channel mask: operations.
CHANNEL_SECURITY
Recording channel mask: security.

Functions§

emit
Emit a typed recording through current tracing backend.
emit_with_callsite
Emit a typed recording with explicit callsite metadata.
get_channel_filters
Read the active channel filters (returns defaults if never set).
parse_audit_filter
Parse a config string into an AuditFilter.
parse_observability_filter
Parse a config string into an ObservabilityFilter.
parse_operations_filter
Parse a config string into an OperationsFilter.
parse_security_filter
Parse a config string into a SecurityFilter.
set_channel_filters
Install channel filters (call once at pipeline init).