-
Notifications
You must be signed in to change notification settings - Fork 0
[Feature][ISSUE-V5-17] API Token (local key) dimension — logs & analytics #5
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Background
Users may use different local keys (Dashboard API Tokens) for different agents, but hit analysis and request logs lack an API Token dimension.
Source of truth (main repo): Smart-Router_ForAIAgents → docs/ISSUE-LOG.md → ISSUE-V5-17
User need
Stats and logs (hit analysis, request logs, export, overview, etc.) have no local-key dimension, so calls cannot be analyzed per API Token name.
Goals
- Proxy: After auth, persist
api_token_idand displayable token name inemitLog/request_logs(consistent with encryption/redaction). - Dashboard: Request log list/filter/export, hit analysis, overview support filter/aggregate by token name or ID.
- Data: Extend
request_logs/ Prisma; migrations and 90-day retention compatible; indexes and aggregation performance.
Related
- ISSUE-V3-03–V3-05 (Token UI), ApiToken model; can ship alongside ISSUE-V5-16 (modality fields)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers