The scenario is familiar to many teams. The dashboard is green: the error rate is close to zero, latency is within normal bounds, queues are being drained. But support receives a ticket from a customer whose money was debited, yet the payment does not appear in the application. Every service in the chain operated normally, and yet the operation was not completed.
This is not a paradox. An HTTP call answers the question "did the service process the request." A business operation answers a different question: "was the promised state achieved in the ledger and with the external participant." Below is a breakdown of how to observe the latter. The foundation of the analysis: operation states and invariants, a business-SLI with an allowed deadline, correlation of technical and business identifiers, reconciliation with external reports, and the investigation sequence. The financial example in this article is fictional: it explains the method and does not describe a real incident.
Where Technical Signals End
The four "golden signals" — latency, traffic, errors, and saturation — are described in the Google SRE chapter on monitoring distributed systems. They are necessary; without them you cannot understand how a service behaves. But the same chapter highlights a class of silent errors, for example an HTTP 200 response with incorrect content, and notes that detecting them may require end-to-end result checks.
The limitation is worth stating explicitly. The sources do not claim that HTTP 200 by itself proves the completion of a specific financial operation or, conversely, disproves it. The practical conclusion is different: completion must be confirmed by the expected business state, not by response codes and service availability.
In the chapter on SLOs, correctness — whether the right result or the right data was obtained — is listed alongside availability, latency, and throughput as a system health indicator. It also recommends choosing an SLI based on what matters to the user, not on what is easier to measure. For a payment, what matters to the user is that the money has been transferred and reflected in the ledger, not that the gateway responded in 80 ms.
The Operation Contract: States, Transitions, Invariants
To verify completion, you first need to define what counts as completion. The sources do not prescribe a universal finite state machine: the set of states, invariants, and completion criteria depend on the product, the accounting model, and agreements with payment participants. Therefore the model below is illustrative, not a standard.
| State (example) | What confirms the transition | What counts as suspicious |
|---|---|---|
accepted |
Request accepted, operation identifier created | No transition further within the agreed deadline |
authorized |
Provider confirmed authorization | Confirmation exists, but no ledger entry |
captured |
Debit confirmed | Debit confirmed, no internal posting |
posted |
Internal posting created | Posting exists, but the amount does not match the confirmed one |
settled |
Operation reflected in provider report and payout | Missing from the report or the amount diverges |
Above the transitions, invariants are defined — conditions that must always hold or hold by a certain point. Examples within this same model:
- after a confirmed debit, a corresponding ledger entry exists;
- one business event leads to one business effect, even if the message is delivered more than once;
- the total sum across operations is reconciled against the provider report.
Each invariant is checked by a query against the data, not by an engineer's opinion. This distinguishes it from a general wish that "everything should be consistent."
A separate question is deadlines. For each transition you need to decide when an operation is already overdue and when it is simply awaiting external confirmation. There is no universal value; it is chosen for a specific process together with the product owner and taking external participants into account.
Distributed Process: Look at the Whole Chain
A multi-step operation is often structured as a saga: a sequence of local transactions where, upon failure, the process continues by retry or triggers compensating actions. Saga orchestration assumes that the execution of a distributed process must be tracked.
For observability, two things follow from this. First, the outcome of a single local call does not indicate the state of the process as a whole: each step may succeed while the result remains incomplete. Second, a saga is an architectural pattern, not a guarantee of automatic recovery and not a substitute for reconciliation. A compensation may be a separate business operation with its own states and deadlines, not a literal rollback. Therefore it too must be observed by state and invariants.
Business-SLI and Deadline as a Measurable Goal
An SLO links a measurable indicator to a target value and measurement conditions. For a business operation, the indicator can be formulated as follows (the formula is illustrative, not a source recommendation):
business-SLI = operations reaching the correct final state within the allowed deadline / accepted eligible operations
The deadline and target value must be set for a specific process. The denominator also requires a decision: what counts as an "eligible" operation. For example, payments rejected by rules are not included, while accepted operations are. This must be fixed in advance; otherwise the indicator can be made artificially attractive by redefining boundaries.
Equally, the target state for the indicator, the acceptance window, and the evaluation moment must be defined in advance. Operations whose allowed deadline has not yet expired at the evaluation moment must not be automatically counted as violations. They are tracked as pending evaluation and included in the calculation once the deadline passes. Otherwise the indicator will be understated by fresh operations, and with a careless window boundary — overstated.
Alongside the ratio, it is useful to maintain two "safety" indicators: the age of the oldest incomplete operation and the number of violated invariants. A ratio of 98% hides whether two operations are stuck for five minutes or two days. Age and a violation counter reveal this.
Fictional Scenario: 98 out of 100
Suppose that within a certain window the system accepted 100 payments. The target completion deadline is 5 minutes. The evaluation moment is chosen so that for all 100 payments these 5 minutes have already expired, so there are no operations pending evaluation. The target state for the indicator in this example is posted, that is, an internal posting has been created. The transition to settled is checked separately, by reconciliation with the provider report and payout, and in the scenario this reconciliation has not yet been performed. All data below are invented for illustration.
- 98 payments reached the
postedstate within 5 minutes. - 2 payments did not reach it within this deadline and remain incomplete.
- One of them has a confirmed debit of 120 USD but no corresponding internal posting.
The timely completion ratio equals 98/100 = 98%. This number by itself does not say whether that is good or bad: the target level is set separately. But something else becomes visible. One operation with a confirmed debit of 120 USD and no internal posting requires investigation regardless of the fact that on average everything looks healthy. The business invariant "a confirmed debit has a ledger entry" is violated here. If every service in the chain returned a successful HTTP response and monitoring only tracks response codes and standard technical signals, such a violation may go unnoticed. To see it, you need a check of the business state and the accounting invariant. Whether this operation appears in the provider report and in which payout it ended up is not defined by the scenario: that remains to be determined by reconciliation. What exactly happened to the second incomplete payment is also not defined by the example: it may be awaiting external confirmation or have its own cause.
Outcome Metrics for This Scenario
For such a process, it is reasonable to derive the following set. Specific metrics and thresholds are a design decision, not a norm.
- Ratio of correctly completed operations within the deadline. In the example, 98%.
- Count and age of operations in intermediate states. In the example, 2 operations, and each needs an age.
- Number and sum of discrepancies between provider confirmations and the internal ledger, and after reconciliation, between the internal ledger and the provider report. In the example, at the evaluation moment 1 discrepancy of 120 USD is identified: the debit is confirmed but the posting is missing. Discrepancies with the provider report will appear in this metric only after reconciliation; its result is not defined in the scenario.
- Time from operation start to final state. Better to look at the distribution, not the mean.
- Technical signals separately: errors, retries, message delivery latency.
The first three metrics reflect business outcome and data consistency. The rest help explain the cause but do not replace the outcome. It is important to keep them on the same screen: a gap between "technically green" and "business red" is itself a diagnostic signal.
Tracing and Correlation
A trace shows the causal chain. According to the OpenTelemetry description, context propagation links spans across services and allows correlating traces, logs, and metrics. For investigating a single operation, it is worth adding a separate business-operation identifier alongside the trace ID and recording it as a span attribute and in logs. A trace ID lives within a request or call chain, while a business operation may last longer and pass through several traces: a retried request, asynchronous processing, a callback from the provider.
In the illustrative scenario, the operation trace might include these steps:
- incoming payment request and creation of a record with status
accepted; - local write and event placement in the outbox;
- publication and processing of the message by the consumer;
- call to the provider and receipt of the response;
- creation of the internal posting.
If at step 5 the span is missing or completed without a write, this immediately narrows the search. But a trace has a limit: it shows the observable causal chain only within the instrumented system. By itself it does not confirm an actual entry in the accounting register and does not replace reconciliation with an external source of funds. The absence of a span is also not proof of the absence of an action if part of the system is not instrumented.
A separate caution concerns data. OpenTelemetry warns that arbitrary data in baggage propagates between services and must not include sensitive information such as personal data or credentials. Therefore an opaque operation identifier is suitable as a correlation key, not a card number, name, or account. What exactly is permissible to store in logs and traces is determined by internal policy and applicable regulations.
Duplicate Delivery and Idempotency
Events may arrive twice. AWS recommends making consumers idempotent when using a transactional outbox, and Stripe notes that a webhook may be delivered more than once. Exact retry intervals and idempotency mechanisms depend on the platform, but the principle is general: you cannot assume every event is unique.
For observability this means two checks in an investigation. Were there duplicate messages for this operation? And if there were, did they lead to a repeated business effect or were they safely ignored? The second question can be expressed as an invariant: one operation corresponds to exactly one posting of the required type.
Reconciliation with External Data
An API response does not prove that the operation is recorded as accounting and the provider expect. The Adyen documentation on transaction-level reconciliation describes matching operations by identifiers, accounting for credits and debits including fees, and verifying that the sum of net credits minus net debits matches the payout for a batch.
This is a description of a specific provider, and the page's scope is narrow: regarding verification, it covers reconciliation of costs and payouts for installment credit-card payments in Brazil. The set of reports, date rules, and reconciliation structure may differ for other products and providers, so field names and logic must be verified for your integration. The method, however, transfers: find the pair "our record — provider record" by identifier, compare amounts accounting for fees, and reconcile the total with the payout.
In the 120 USD example, reconciliation closes the question that the trace leaves open: did the provider actually confirm the debit, and in which payout did it end up. The result of such reconciliation is not defined in the scenario, and only it will show whether there is a separate discrepancy with the provider report.
Investigation Order
The sequence matters: if you immediately restart processing, you may destroy evidence or create a duplicate effect.
- Detect the violation. The signal comes from the business-SLI, from the age of incomplete operations, or from the violated-invariant counter, not from a customer complaint.
- Find the operation and its state timeline. By the opaque identifier, list transitions with timestamps. This immediately shows at which step the process stopped and whether it is overdue by the agreed deadline.
- Check the trace and correlation boundaries. Are there spans for all steps, has the chain broken at a service or queue boundary? Remember that the absence of a span may indicate a gap in instrumentation.
- Check the queue, outbox, duplicate delivery, and consumer idempotency. Was the event published, processed, were there duplicates, did they lead to a repeated effect?
- Match internal records against the provider's transaction and payout reports. For 120 USD — confirm that the debit exists at the provider and determine which payout it belongs to. Before this step, a discrepancy with the report is a hypothesis, not an established fact.
- Choose a recovery method: controlled retry, continuation from the current step, compensation, or manual investigation. Which path is safe depends on the process. A compensation may be a separate business operation, not a rollback.
- Confirm the final state by re-reconciliation. The fix is considered complete when the invariant holds again and the data matches the provider report, not when the retried call returned success.
Limitations of the Approach
The sources describe general SRE and distributed-systems practices and features of individual platforms. They do not establish universal financial states, invariants, or completion deadlines. The state table, the choice of posted as the target state for the indicator, the SLI formula, the 5-minute deadline, and the numbers 98/100 and 120 USD are editorial illustrations. The Adyen, Stripe, and AWS materials pertain to specific platforms, and their applicability must be verified for the chosen integration.
There also remain open questions that the team will have to answer on its own:
- which states are mandatory and terminal in your product: authorization, debit, posting, settlement with the provider, payout;
- what deadline is allowed for each transition and when an operation is considered overdue;
- how to account in the SLI for operations whose deadline has not yet expired;
- which internal records and external reports are authoritative for invariants and reconciliation;
- what is the safe recovery procedure;
- what correlation data is permitted to be transmitted between services and stored in logs and traces.
Conclusion
Technical metrics explain how the system worked: how many requests there were, how many errors, and what the latency was. A business-SLI answers a different question: did the operation achieve its promised result within the promised deadline. For a reliable answer, the described states, verifiable invariants, end-to-end correlation through an opaque identifier, reconciliation with an external source, and explicit deadlines work well together. This is a complementary approach, not a proven universal minimum: the specific composition is determined by the operation contract in your process. But successful service responses and a green dashboard by themselves speak to service health, not to operation completion.