Tags: PaperDebugger/paperdebugger
Tags
feat: track OpenRouter usage (#134) Store usage information in database to track user behavior (if user is not BYOK) as a precursor to billing users, e.g., Hourly: ``` { _id: ObjectId('69cd2e9a926e4b5665909027'), user_id: ObjectId('6975da46d6096ac1b07342c2'), hour_bucket: ISODate('2026-04-01T14:00:00.000Z'), project_id: '69746440592738ba2708cc34', success_cost: 0.014026150000000001, failed_cost: 0.024026150312000001, updated_at: ISODate('2026-04-01T14:41:37.465Z') } ``` Weekly: ``` { _id: ObjectId('69cd2e9a926e4b5665909028'), week_bucket: ISODate('2026-03-30T00:00:00.000Z'), project_id: '69746440592738ba2708cc34', user_id: ObjectId('6975da46d6096ac1b07342c2'), success_cost: 0.014026150000000001, failed_cost: 0.024026150312000001, updated_at: ISODate('2026-04-01T14:41:37.465Z') } ``` Lifetime: ``` { _id: ObjectId('69cd2e9a926e4b5665909029'), user_id: ObjectId('6975da46d6096ac1b07342c2'), project_id: '69746440592738ba2708cc34', success_cost: 0.014026150000000001, failed_cost: 0.024026150312000001, updated_at: ISODate('2026-04-01T14:41:37.465Z') } ```
PreviousNext