Skip to content

Enhanced analytics #2658

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 22, 2025
Merged

Enhanced analytics #2658

merged 3 commits into from
Apr 22, 2025

Conversation

thedadams
Copy link
Contributor

This change does three things and I plan to keep them as three separate commits:

  1. Add the concept of internal users, and ignores these users when calculating daily active users
  2. Adds the ability to track tokens for LLM requests. APIs are added for user and system reporting
  3. Changes the user authorization so that we don't have to check usernames in the API layer. The impetus for this is so that a user can look at their own usages.

Related issue: https://github.com/obot-platform/sensitive-issues/issues/24

Internal users are excluded from the active users API. Additionally,
APIs are added to mark users and internal and external.

Signed-off-by: Donnie Adams <[email protected]>
This change also changes the UI API calls to to always use user IDs
instead of usernames.

Signed-off-by: Donnie Adams <[email protected]>
@thedadams thedadams merged commit 5b624e9 into obot-platform:main Apr 22, 2025
3 checks passed
@thedadams thedadams deleted the token-tracking branch April 22, 2025 15:51
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.

3 participants