tailtriage
tailtriage is the recommended default entry point for Tokio tail-latency triage.
It re-exports tailtriage-core at the crate root and exposes integration namespaces for controller workflows, Tokio runtime sampling, and Axum request boundaries. Only controller is enabled by default; tokio and axum are opt-in features.
What problem this solves
When a Tokio service slows down, the first triage question is often:
Is this slowdown mostly application queueing, executor pressure, blocking-pool pressure, or a slow downstream stage?
tailtriage helps you run the loop:
capture -> analyze -> next check -> re-run
The analysis result is triage guidance (evidence-ranked suspects plus next checks), not proof of root cause.
Installation
Optional integrations:
To install the tailtriage binary for analyzing artifacts, install the tailtriage-cli crate:
Quick start
1) Capture one run
use Tailtriage;
2) Analyze the artifact
Crate selection
Start with tailtriage when you want the recommended entry point and optional integrations behind feature flags.
Choose a focused crate only when you need a narrower boundary:
tailtriage-core: framework-agnostic instrumentation primitivestailtriage-controller: repeated bounded windowstailtriage-tokio: runtime-pressure samplingtailtriage-axum: Axum request-boundary wiring
Feature flags
controller(default): enablestailtriage::controllertokio(opt-in): enablestailtriage::tokioaxum(opt-in): enablestailtriage::axumfull: enablescontroller,tokio, andaxum
Docs.rs note: tailtriage docs are built with all-features = true, so docs.rs may render optional namespaces such as tailtriage::tokio and tailtriage::axum. In downstream crates, those namespaces are available only when their Cargo features are enabled.
Important constraints
- Capture and analysis are separate: this crate writes artifacts,
tailtriage-clianalyzes them. CaptureModeselection does not auto-start Tokio runtime sampling.- Analysis output is triage guidance, not root-cause proof.
Related crates
tailtriage-core: framework-agnostic instrumentation primitives and artifact modeltailtriage-controller: repeated bounded capture windowstailtriage-tokio: Tokio runtime-pressure samplingtailtriage-axum: Axum request-boundary integrationtailtriage-cli: artifact analysis and report generation