Skip to main content

Module reader

Module reader 

Source
Expand description

Trace parsing with hard resource limits.

Traces are untrusted input by design — they arrive from arbitrary implementations and arbitrary capture tooling. The reader therefore enforces explicit caps (line length, event count) and produces typed, line-addressed errors instead of panics. It performs no I/O itself: callers hand it the document text.

Structs§

Limits
Resource limits applied while parsing a trace document.

Enums§

TraceParseError
Why a trace document was rejected. Every variant carries the 1-based line number.

Functions§

parse_trace
Parses a JSON Lines trace document into events, enforcing Limits.