Review the prerequisites
Suitable for: Readers who have run the normal integration.
- 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.
Debugging · Diagnose failures
Locate failures using separate evidence
Objectives of this level: Diagnose an unknown write, rejected continuation and collector outage without erasing evidence.
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.
Break delivery, preserve the effect
Run the controlled collector rejection into another empty directory:
.venv/bin/python -B lab.py demo --work work/rejected --reject-export
HTTP 400 exporter errors on stderr are intentional. completed and one merchant effect remain. No exported bytes means raw_sensitive_payload_absent is null; an empty collection cannot establish redaction. force_flush_returned may still be true because it is a processor API result, while the real exporter results are false. Read workers.json and collector_rejections before interpreting a green process exit.
Trace the first relevant failure
For the lost response, inspect the single dropped action HTTP attempt, the persisted original key, outcome_unknown and the later GET receipt. The SDK's max_retries=0 prevents its connection-error policy from replaying the ambiguous POST. Explicitly replaying the same key/binding returns the old receipt; changing the binding is rejected with 409. The bad function call ID returns 400 and cannot be presented as a successful continuation. Request IDs and trace IDs do not replace a business deduplication key.
Repair source, keep the recorded failure
The initial red log has six test methods and seventeen failed assertions/subcases; the subsequent green log is a different observation. Usage probes reject empty, bool, negative and inconsistent fields. Process probes use named fictional secret sentinels and a real timeout; they do not inspect real secrets. When changing source, preserve before/after reports and source hashes. A changed output expectation cannot prove the application was repaired. The recorded evidence is a reproducible local reference, not independent learner mastery.
code example
Collector refused, receipt still exists
Expected: otlp_export_observed=false, completed, effect_count=1, audit_authority=merchant_sqlite_receipt; do not mark telemetry delivery successful.
Acceptance task for this level
Run the rejection scenario; then independently explain the first failed boundary and implement a new receipt-binding negative control in your own copy.
Reading this browser’s record…
Hide the answer and check your understanding
A receipt lookup is empty after a connection failure. May a new key be used?
Expand reference derivation
No. An empty point-in-time lookup does not establish terminal absence; preserve unknown and require the external service’s safe reconciliation/fencing contract.
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.