Skip to content

Where each kind of work leaves evidence, and how to follow it. Start from the row for the work you are investigating, find its id, then read the evidence in the order given. The commands are on the workbench. Names are Larkspur Lab’s.

The correlation id (x-correlation-id on a request; traceId in an error body; correlationId in every log line; an attribute on every bus message) travels from the gateway into every service and every message a request causes (M2-S1, M2-S2). Send your own on every test call. Work with no request behind it (a scheduled job, a migration) carries its own id, or NO-TRACE-ID.

WorkIts idEvidence, in orderTaught in
An HTTP requestCorrelation idGateway access line; the owning service’s lines; the answer’s envelope (success, error.code, serviceName, traceId)M2-S1
A writeCorrelation id; the record’s idThe request’s lines; the record’s updateInfo and updateIdentifier; one publish. on the tap; the consumers’ lines with the same idM2-S1, M2-S3
A bus messageIts messageId; the correlation idThe tap: one publish.<exchange>, one deliver.<queue> per consumer; each consumer’s lines; its $name and valueDiff in the payloadM2-S2
A failed messageThe sameThe consumer’s lines with the error; retries; the message in <queue>’s dead-letter queue; nothing it staged was sent (the outbox)M2-S2
A refused requestCorrelation idAt the gateway (401, space and domain errors): only the gateway logs it. Inside a service: the service’s reject line, serviceName in the bodyM2-S1
WorkEvidence, in orderTaught in
A list readThe profiled pipeline (store match first, the id tie-break last); docsExamined, millis; per-entity aggregation timingM3-S2
A statistic or counterThe profiled pipeline (base match, look-ups, unwinds, group); its widgets’ count on the pageM3-S3
A calculated fieldIts trigger and scope on the definition; the stored value and updateInfo; the save that last recomputed itM3-S1
A read model (proxy, joiner, aggregate)The source’s record event; the data service’s handler line; the derived record (its source reference, its id computed from the source)M3-S3
Search and titlesThe record’s own search text; its title-index document; the indexing service’s handler lines; the reindex job’s completion reportM3-S4
WorkEvidence, in orderTaught in
A scheduled jobIts stored job in the scheduler’s database; the job-fired event on the bus; the work it caused (records, reaction runs)M4-S1
A background jobThe 202 answer’s job id; the job’s status by id; osos_job_duration_seconds by queue; the job-executed eventM2-S2
A reaction runAdministration › Monitoring › Reaction Logs; the run’s history and its stored state while it waits (a saga); the commands it sent on the tapM4-S2
A workflow moveThe record’s _metaCurrentSteps and _metaWorkflowHistory; the workflow events on the tap; the request’s mirror row for a serviceM4-S3
An owner or a time limitThe step’s owner in the record’s workflow state; the time-limit sweep’s eventsM4-S4
WorkEvidence, in orderTaught in
A fileThe record’s field (a file id); the storage database’s metadata and reference rowsM2-S4
A migrationThe migration Job’s log (Applied migration … in N ms, Cannot migrate); the ledger in lk-dataM2-S4
An upgradehelm history; the migration log; queues and indexing backlog afterwards; Functions’ statesM9-S2
SymptomFirst evidenceThen
A slow screenPer-entity aggregation timing; the page’s widget countProfile one opening (M9-S1)
A growing queueWhich queue; osos_bus_handler_duration_seconds and …_db_calls by handlerBurst or steady rate?
A storm of automationosos_tenant_reactions_total rate; Reaction Logs run countsThe reaction’s trigger and criteria

The four steps, every time: symptom, engine, design, decision (M9-S1).