TECHNOLOGY

Late inference logs: preserve event time and observation time separately

In this article
THE QUICK TAKE

Event time locates the operation; observation time locates collection, and neither alone proves ingestion delay.

The diagnostic situation

An incident dashboard shows a burst of old request failures immediately after a collector reconnects. Sorting by arrival makes the model appear to fail during recovery. Sorting only by the application timestamp conceals the collection interruption. These are different operational questions, and flattening both into a single timestamp destroys evidence needed to distinguish them.

Why the observation changes meaning

The OpenTelemetry log model separates Timestamp, when the event occurred, from ObservedTimestamp, when collection observed it. For externally collected records the clocks may belong to different processes. Their difference is not automatically an exact transport latency: source clock offset, buffering before observation and timestamp parsing can all contribute. Preserve the original meaning instead of relabeling the difference as engine delay.

Define the instrumentation contract

Document which component assigns each field and whether the application supplied an event timestamp. State how records without event time are handled. If an export destination supports only one timestamp, inspect its mapping rather than assuming both survived. Retain a separate ingestion observation in the diagnostic dataset when the destination cannot express the distinction directly.

A bounded verification procedure

Create synthetic records with stable identifiers and explicit source times. First send them without buffering, then hold a bounded subset before collection. Compare the original records, collector observations and backend query output. Add a record with no source timestamp and one with a deliberately offset source clock. The analysis should identify uncertainty rather than report a fabricated precise delay.

Evidence required for acceptance

The evidence bundle needs the parser configuration, source clock assumptions, collection topology and the records observed at each accessible boundary. Show both event-time and observation-time views of the same identifiers. Mark unknown timestamp provenance and invalid parses explicitly. A backlog clearing should be visible as delayed observation of older events, not silently recast as newly occurring failures.

Failure cases and limits

Observation time is not necessarily durable backend storage time. Several collectors or queues can intervene after that boundary. Likewise, an event timestamp supplied by an untrusted client is not verified chronology. This procedure supports a bounded statement about where delay became visible. It cannot reconstruct unobserved stages, synchronize clocks or determine whether a missing historical record was never generated.

Event time locates the operation; observation time locates collection, and neither alone proves ingestion delay. OpenTelemetry logs data model; OpenTelemetry tracing API specification.

The proposed investigation of log event observed time is not an executed deployment benchmark. Related reading: Monotonic clocks for inference API latency measurements; OpenTelemetry Collector drops data during backend outages: queues and limits.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles