Expand description
Cycle-time data-source audit log.
Emits one structured line per significant data-source event so
the operator can spot mismatches between what
crate::library::vectors::do_dataset_prebuffer covered and
what cycle-time accessors opened. The typical failure mode
this catches: prebuffer reports success but readers still hit
HTTP per cycle, because the facets the workload reads aren’t
in the active profile’s manifest.
Output is routed through set_log_fn when the caller (the
activity runner, the test harness, …) installs a sink. With no
sink installed, lines go to stderr — preserves visibility from
contexts that don’t carry an observer::log plumbing path
(unit tests, the dryrun= paths).
Structs§
- LogBridge
- A
loglogger that forwards vectordata’s records into the audit channel, so its warnings reach the host’s sink beside polydat’s own lines. The records forwarded are those atInfoand above from thevectordatacrate and itsveks_*crates, each as<target>: <message>at the matchingLogLevel.
Enums§
- LogLevel
- Severity for audit-channel events. A conventional severity ladder so a host’s installed sink can map it 1:1 to its own logger levels without reformatting.
Functions§
- debug
- Convenience helpers for callsite ergonomics.
- error
- Log at
Error. - info
- Log at
Info. - log
- Emit a leveled message through the configured sink, falling back to stderr when no sink is installed (unit tests, dryrun paths, pre-init).
- log_
prebuffer_ summary - One-line summary at the end of
dataset_prebufferoverprofileof the dataset nameddataset. Pairs with the per-facetprebuffer: covered …lines above and thevectordata: opened …lines below to make the covered-vs-opened delta easy to read. - record_
opened - Record that a reader was opened for
facetofprofileof the dataset nameddataset. Emitted from everyvectors::*reader-open path before the actualview.<facet>_as()/view.facet_as()call so the line lands even if the open errors.kinddistinguishes the open shape (uniform,ivvec32,generic-typed, …) for at-a-glance debugging. - record_
prebuffer_ entered - Record that
dataset_prebuffer(...)was invoked. Emitted at the top ofdo_dataset_prebufferunconditionally — fires even if the function bails on a resolve / profile-missing error, so the absence of this line insession.logis definitive evidence thatinit prebuffer = ...never evaluated. Pairs withrecord_prebuffered(per-facet) andlog_prebuffer_summary(tail). - record_
prebuffered - Record that the prebuffer pass covered
facetofprofileof the dataset nameddataset. Emitted once per facet in the report of the prebuffer’sview.fetch. - set_
log_ fn - Install the audit sink. A host installs this once so audit lines flow through its own logger alongside the rest of the run output. Subsequent calls are no-ops.
- warn
- Log at
Warn.