Skip to content
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

[Obs AI Assistant] More detailed request & token tracking #205838

Open
dgieselaar opened this issue Jan 8, 2025 · 1 comment
Open

[Obs AI Assistant] More detailed request & token tracking #205838

dgieselaar opened this issue Jan 8, 2025 · 1 comment
Labels
Team:Obs AI Assistant Observability AI Assistant

Comments

@dgieselaar
Copy link
Member

Currently, we have the following events:

  • observability_ai_assistant_user_sent_prompt_in_chat
  • observability_ai_assistant_insight_response

That indicate that a user "does something". We track this with EBT. However, for capacity planning, we need to be able to predict usage at a lower level: LLM requests and token counts.

We can add the following metrics to these events:

  • input_tokens
  • output_tokens
  • llm_requests

We can also separately track LLM requests (in order to have a baseline, regardless of which event they belong to), with the following metrics:

  • input_tokens
  • output_tokens
  • response_time

Additionally, we can also track tool calls:

  • tool_name
  • input_tokens
  • output_tokens
  • response_time
  • is_error
@dgieselaar dgieselaar added the Team:Obs AI Assistant Observability AI Assistant label Jan 8, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ai-assistant (Team:Obs AI Assistant)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Obs AI Assistant Observability AI Assistant
Projects
None yet
Development

No branches or pull requests

2 participants