Skip to content

bug(observability): ingest traces end at the queue publish, and nothing tests trace continuity #774

Closed

Description

@EricAndrechek

Area: observability · ingest · query — regression · found during a backlog review

Expected: a trace for an ingest request continues past the queue to the worker's flush and the ClickHouse INSERT, and a query or pipe trace includes its ClickHouse call — and a test fails if that stops being true.

Actual:

Impact: with the api and ingest roles in separate processes, the publish→consume hop is exactly where a trace is most useful, and it is where every ingest trace stops. A slow or failed insert can't be tied back to the request that produced it.

Note: one worker batch carries rows from many requests, so a flush span can't have a single parent; span links are the usual shape.

Related: #94 (trace gaps 1 and 6), #18, #20, #21.


Found during a backlog review; validated by code-read and git log -S against origin/main at afd76695 on 2026-10-08.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/ingestIngest pipeline (Bento, batching, DLQ)area/observabilityMetrics, logs, traces, health, profilingarea/queryStructured query AST, SQL builderbugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions