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

@ -132,6 +132,7 @@ function toLakeEvent(time: string, data: Record<string, unknown>) {
error_cause2: string(data, "error.cause2"),
api_key: string(data, "api_key"),
workspace: string(data, "workspace"),
user_id: string(data, "user_id"),
is_subscription: boolean(data, "isSubscription"), // removed
subscription: string(data, "subscription"),
response_length: integer(data, "response_length"),