Skip to content
New issue

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

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

Already on GitHub? # to your account

collect client-side telemetry (useChat) #5114

Open
lgrammel opened this issue Mar 10, 2025 · 0 comments
Open

collect client-side telemetry (useChat) #5114

lgrammel opened this issue Mar 10, 2025 · 0 comments
Labels
ai/ui enhancement New feature or request

Comments

@lgrammel
Copy link
Collaborator

Feature Description

I think we should start instrumenting 2 metrics that map to TTFT and TOK/s, but the trigger when we perform UI transitions on the client.

Submit starts timer
When we receive the first token in the frontend that causes us to transition into a first token UI state we mark: TTFUI
And then whenever we actually change the UI display we tick a unit for TOKUI/s

Such a metric would map to actual UX, it would catch regressions through egregious buffering at any layer

Use Cases

No response

Additional context

No response

@lgrammel lgrammel added enhancement New feature or request ai/ui labels Mar 10, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
ai/ui enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant