Skip to main content

Crate hick_trace

Crate hick_trace 

Source
Expand description

Tracing-or-noop diagnostic macro shim and backend-agnostic stats/metrics primitives for the hick mDNS stack.

§Macros

The five macros trace!, debug!, info!, warn!, and error! are always available as hick_trace::<name>!(...). When the tracing Cargo feature is enabled they delegate to the real [tracing] crate; otherwise they discard every argument without emitting code.

§stats / metrics feature

Enabling stats unlocks [stats::Stats] and [stats::StatsSnapshot]: a set of atomic counters and gauges that are no_std-safe. Enabling metrics additionally forwards every counter/gauge update to the [metrics] facade (requires std).

Structs§

NoopSpan
No-op span returned when the tracing feature is disabled.