Reapply "feat(stats): add user ids to inference metrics"

This reverts commit e0ff4fd1ac.
This commit is contained in:
Adam 2026-06-23 07:27:01 -05:00
commit f416f52ae3
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
6 changed files with 62 additions and 10 deletions

View file

@ -697,6 +697,7 @@ export async function handler(
logger.metric({
api_key: data.apiKey,
workspace: data.workspaceID,
user_id: data.user.id,
...(() => {
if (data.billing.subscription)
return {