Skip to content

Add verbose request logs page#13

Draft
BenItBuhner wants to merge 4 commits into
cursor/mobile-siderail-59d8from
cursor/osp-102-verbose-logging-clean-69d2
Draft

Add verbose request logs page#13
BenItBuhner wants to merge 4 commits into
cursor/mobile-siderail-59d8from
cursor/osp-102-verbose-logging-clean-69d2

Conversation

@BenItBuhner

Copy link
Copy Markdown
Owner

Summary

  • Add a /logs admin page that lists recent requests and loads the selected request's verbose event trace.
  • Reuse the existing event timeline to surface routing, fallback, key, proxy, error, and enforcement events.
  • Enrich route trace events with masked API-key source and egress-proxy metadata, plus a dedicated proxy cooldown event.
  • Add backend coverage for key/proxy metadata in admin event traces.

Testing

  • bun test tests/admin-events.test.ts
  • cd web && bun run typecheck
  • bun run typecheck currently fails on base-branch errors unrelated to this PR:
    • src/server/routes/openai.ts extraHeaders not in EnforceCallArgs
    • tests/models-list.test.ts Bun fetch typing / RequestInfo issues
Open in Web Open in Cursor 

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