Skip to content

feat(serve): write search request metadata to local JSONL - #125

Merged
yichuan-w merged 1 commit into
mainfrom
feat/query-log
Jul 27, 2026
Merged

feat(serve): write search request metadata to local JSONL#125
yichuan-w merged 1 commit into
mainfrom
feat/query-log

Conversation

@yichuan-w

Copy link
Copy Markdown
Contributor

Summary

  • Appends per-request diagnostic records to a local JSONL file for operational visibility
  • Thread-safe writes via lock; configurable output dir via PIXELRAG_QUERY_LOG_DIR (defaults to logs/, already gitignored)
  • Initialized at server startup in load()

Test plan

  • Deploy to ssd1 and verify logs/queries.jsonl is created on first search
  • Confirm entries contain expected fields (ts, request_id, n_docs, department)

Appends per-request records (timestamp, request_id, n_docs,
department) to a local file for operational diagnostics.
Configurable via PIXELRAG_QUERY_LOG_DIR; defaults to logs/.
@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
web Building Building Preview, Comment Jul 27, 2026 9:14pm

@yichuan-w
yichuan-w merged commit 1bfbb5d into main Jul 27, 2026
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant