Review the prerequisites
Suitable for: Developers who understand a tool loop and idempotency.
- OTLP
- OpenTelemetry Protocol carries telemetry; a received span is distinct from a durable business receipt.
- Recovery Link
- A span link connects the replacement worker’s trace to the earlier persisted trace/span identity.
How does the mechanism work?
Step-by-step explanation
- Effect authority
The merchant receipt survives a lost response.
- Transport policy
Disable SDK replay here and reconcile the original write key.
- Diagnostic delivery
OTLP failure does not change the business ledger.
Foundation · Understand the concepts
Three independent authorities
Objectives of this level: Separate SDK transport, business effects and telemetry delivery.
Visual guide · Three acknowledgements, three meanings
The SDK parses authored local responses. Export failure leaves business effects unchanged; collector acknowledgement does not prove audit retention. Select the figure to open it at full size.
Derive the completion contract
A model API response, a merchant receipt and a collector acknowledgement answer different questions. Here the SDK parses an authored localhost response. That demonstrates a real library/HTTP boundary while making no statement about generated reasoning. The merchant owns the unique operation key and effect. Its SQLite transaction commits before the socket is deliberately closed. An application transport exception therefore cannot establish that nothing happened.
Persist intent before dispatch
Save the business key, binding digest and pending call before the action. A replacement worker reads these facts from disk and queries the original receipt. It must compare the receipt's key and digest before linking it to a task. A new key would turn reconciliation into another action. A checkpoint improves recovery only when its interpretation agrees with the effect authority.
A trace explains; it does not authorize
Traceparent and a recovery Link connect work across HTTP and process boundaries. They explain causality but do not grant authority or deduplicate effects. Even a successful OTLP response is a local receiver acknowledgement, not proof of retained audit data. The local business ledger remains the authority when the exporter fails.
code example
Lost response after commit
Predict two states: the worker observes outcome_unknown while the merchant already has one ticket. A later exact receipt allows completed without creating another ticket.
Acceptance task for this level
Before running, draw the SDK, Agent database, merchant database and OTLP receiver; label which facts each owns.
Reading this browser’s record…
Hide the answer and check your understanding
Can a successful SDK response prove a business effect committed?
Expand reference derivation
Only a validated business receipt from the effect authority can establish this effect; a Responses message is insufficient.
Further explanations and practice
When encountering unfamiliar principles, first read the implementation, continuous questioning and migration cases, and then independently explain the premise and boundaries. Answers and notes are saved to the original account record.
All linked explanations and exercises (1 )
Sources and verification scope
The principles are based on public information; the numbers, cases and tasks are the teaching design of this website. Offline experiments verify the range noted on this page, and the learning effect still needs to be judged through independent tasks and feedback.