Expand description
Content capture.
Turns serialized inputs/outputs into BlobRefs and persists the bytes to
a BlobStore, gated by the configured CapturePolicy. The
instrumentation macros and SpanBuilder call capture_json to populate a
span’s input_ref / output_ref.
Capture is opt-in at the process level: until init_capture runs (which
init_local does for you), capture_enabled is false and nothing is
serialized or stored, so a MetadataOnly deployment pays no cost.
Structs§
- Capture
Config - Process-wide capture configuration.
- FsBlob
Store - Filesystem blob store: writes each blob to
dir/<hash>. Used byinit_local. - Memory
Blob Store - In-memory blob store, handy for tests and ephemeral runs.
Functions§
- capture_
enabled - Whether content capture is active.
falsewhen capture is uninitialized or the policy isMetadataOnly; callers should skip serialization entirely in that case. - capture_
json - Serialize already-built JSON content into a stored blob and return a
BlobRefdescribing it, honoring the configured policy. ReturnsNonewhen capture is disabled. - capture_
policy - The active process-wide capture policy, or
CapturePolicy::MetadataOnlywhen capture has not been initialized. - init_
capture - Install the process-wide capture configuration. Errors if already set.
- redact_
text - Redact text with the configured redactor, falling back to the default regex redactor even when content capture has not been initialized.