Operations
Workflow observability: what to log, alert, and replay
The minimum operational telemetry for multi-step automations, including correlation IDs, queue freshness, owner alerts, and safe replay controls.
8 min read · Published 2026-11-25
Observe transitions, not just endpoints
An automation can be healthy at the HTTP layer while work stalls between steps. Give each run a correlation ID and record every transition: event received, validation result, external API outcome, human decision requested, action completed, and delivery confirmed. Capture duration and status without unnecessary customer content.
Separate technical errors from business exceptions. A provider timeout is an error; a request missing a required budget field is a normal exception. Both need visibility, but they need different owners and recovery paths.
Alert on user impact
Build alerts around failed runs per hour, oldest queued item, execution latency, and synchronization lag. A run that waits three days for an approval may be technically successful and operationally unacceptable.
Use warning and critical thresholds instead of alerting on every error. Route customer-impacting failures to an on-call owner and low-risk exceptions to a review queue. Include the correlation ID, affected workflow, and safe runbook link in the alert.
Design the dead-letter view
A dead-letter record should answer four questions: what was attempted, why it stopped, what data is needed to recover, and whether replay is safe. Store a minimal payload snapshot and redact tokens, credentials, and unnecessary personal data.
Provide two actions: resolve with a recorded reason or replay after validation. Replays should create a new attempt linked to the original run. Never overwrite the failure history; repeated attempts are useful evidence.
Review reliability with the business owner
A weekly review should cover incidents, near misses, overrides, queue age, and recurring integration failures. The named workflow owner decides whether to change rules, add capacity, or accept a documented exception.
Define a recovery objective for each workflow. For some reports, a four-hour recovery is acceptable; for a payment confirmation or customer-facing handoff, a short delay may require an immediate manual fallback. Observability only matters when it is connected to that decision.
This guide is educational and does not guarantee a business, security, or compliance outcome. Workflows and legal obligations must be assessed for your own systems and jurisdiction.
Keep reading