Skip to content
Durable Workflowrust

Module metrics

Source
Expand description

Stable client/worker metrics, with application-owned recording and export.

Recorders must be fast and handle exporter errors locally. Panics are isolated from SDK operations. Durations use a monotonic clock and seconds; observations describe this process, not durable execution counts or billing units.

Structs§

NoopMetrics
Explicit no-op recorder; omission has the same behavior.
PrometheusMetrics
Prometheus adapter backed by the official prometheus crate.

Constants§

CLIENT_REQUESTS
CLIENT_REQUEST_DURATION_SECONDS
WORKER_POLLS
WORKER_POLL_DURATION_SECONDS
WORKER_TASKS
WORKER_TASK_DURATION_SECONDS
WORKER_TASK_SCHEDULE_TO_START_SECONDS
Server-measured eligibility-to-claim delay, in seconds.

Traits§

MetricsRecorder
Pluggable, thread-safe recorder. Counter increments are counts; records are seconds.

Type Aliases§

MetricTags
Exact core labels. Exporter resource labels are separate application policy.