Skip to main content

Module timing

Module timing 

Source
Expand description

Comprehensive timing instrumentation for HFT-level latency tracking.

This module provides utilities for recording detailed timing metrics at every step of request processing. All timings are recorded as Prometheus histograms in microseconds for maximum precision.

HTTP timing across exchange crates follows a common pattern (send → body → parse). Each exchange owns its timing to preserve exchange-specific metric labels and auth header patterns. The timed! macro provides the building block.

Modules§

exchange
Exchange implementation metrics

Structs§

TimingGuard
A guard that automatically records timing when dropped. Useful for measuring the total duration of a scope.