Skip to content

chore: debug LLM tracking + cache-TTL isolation test - #5375

Open
philip wants to merge 1 commit into
mainfrom
debug/llm-tracking-cache-probe
Open

chore: debug LLM tracking + cache-TTL isolation test#5375
philip wants to merge 1 commit into
mainfrom
debug/llm-tracking-cache-probe

Conversation

@philip

@philip philip commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Throwaway debugging for the drop in logged LLM/agent pageviews (postgresql tutorial bucket fell sharply). Not for permanent merge — revert after investigating.

Changes

  • Revert the moved-`.md` 308 cache TTL to its shorter pre-docs: redirect .md URLs for moved docs pages #5321 value to test whether cache duration (fewer middleware runs = fewer tracked hits) explains the drop.
  • Log each middleware run (`LLMPROBE`) and the tracking beacon's outcome (`LLMBEACON`) to Vercel server logs.
  • Add an `x-llm-debug` response header for external probing.

How to use

Deploy to preview, run the synthetic probe, and search Vercel logs for `LLMPROBE` / `LLMBEACON` to confirm branch labeling and beacon delivery.

This pull request and its description were written by Isaac.

@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)
neon-next Ready Ready Preview Aug 3, 2026 11:00pm

Request Review

Throwaway debugging for the drop in logged LLM/agent pageviews. Revert after
investigating — not for permanent merge.

- Revert moved-.md 308 cache TTL to its shorter pre-#5321 value to test whether
  cache duration explains the drop.
- Log each middleware run (LLMPROBE) and the tracking beacon's outcome (LLMBEACON).
- Add an x-llm-debug response header for external probing.

Co-authored-by: Isaac
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