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.
| Work | Its id | Evidence, in order | Taught in |
|---|
| An HTTP request | Correlation id | Gateway access line; the owning service’s lines; the answer’s envelope (success, error.code, serviceName, traceId) | M2-S1 |
| A write | Correlation id; the record’s id | The request’s lines; the record’s updateInfo and updateIdentifier; one publish. on the tap; the consumers’ lines with the same id | M2-S1, M2-S3 |
| A bus message | Its messageId; the correlation id | The tap: one publish.<exchange>, one deliver.<queue> per consumer; each consumer’s lines; its $name and valueDiff in the payload | M2-S2 |
| A failed message | The same | The 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 request | Correlation id | At the gateway (401, space and domain errors): only the gateway logs it. Inside a service: the service’s reject line, serviceName in the body | M2-S1 |
| Work | Evidence, in order | Taught in |
|---|
| A list read | The profiled pipeline (store match first, the id tie-break last); docsExamined, millis; per-entity aggregation timing | M3-S2 |
| A statistic or counter | The profiled pipeline (base match, look-ups, unwinds, group); its widgets’ count on the page | M3-S3 |
| A calculated field | Its trigger and scope on the definition; the stored value and updateInfo; the save that last recomputed it | M3-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 titles | The record’s own search text; its title-index document; the indexing service’s handler lines; the reindex job’s completion report | M3-S4 |
| Work | Evidence, in order | Taught in |
|---|
| A scheduled job | Its 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 job | The 202 answer’s job id; the job’s status by id; osos_job_duration_seconds by queue; the job-executed event | M2-S2 |
| A reaction run | Administration › Monitoring › Reaction Logs; the run’s history and its stored state while it waits (a saga); the commands it sent on the tap | M4-S2 |
| A workflow move | The record’s _metaCurrentSteps and _metaWorkflowHistory; the workflow events on the tap; the request’s mirror row for a service | M4-S3 |
| An owner or a time limit | The step’s owner in the record’s workflow state; the time-limit sweep’s events | M4-S4 |
| Work | Evidence, in order | Taught in |
|---|
| A file | The record’s field (a file id); the storage database’s metadata and reference rows | M2-S4 |
| A migration | The migration Job’s log (Applied migration … in N ms, Cannot migrate); the ledger in lk-data | M2-S4 |
| An upgrade | helm history; the migration log; queues and indexing backlog afterwards; Functions’ states | M9-S2 |
| Symptom | First evidence | Then |
|---|
| A slow screen | Per-entity aggregation timing; the page’s widget count | Profile one opening (M9-S1) |
| A growing queue | Which queue; osos_bus_handler_duration_seconds and …_db_calls by handler | Burst or steady rate? |
| A storm of automation | osos_tenant_reactions_total rate; Reaction Logs run counts | The reaction’s trigger and criteria |
The four steps, every time: symptom, engine, design, decision (M9-S1).