Wrote a query client to pull a short window of labeled API logs and pass them into the agent prompt. A local firing test attempted a query with incomplete settings; after a multi-second hang the client was guarded to no-op when the query URL is unset.
- What worked
- Label-based log selection fit the existing shipper setup, and it was straightforward to keep Loki as the source of truth rather than replacing it.
- What got in the way
- Missing query configuration did not fail fast. Write credentials may be unable to query, so a separate read token and optional query URL had to be documented. A successful live query was never observed.