Instrumenting AI features so that we can filter by client

This issue aims to unblock https://gitlab.com/gitlab-data/product-analytics/-/issues/1808+s, which is aiming to:

Being able to filter by Client is becoming more and more important for or prioritization and decision work. If it is only available in .com, then let's start with .com and make it clear on the dashboard that it is only for .com. I suggest that you add a filter to all charts that we have and also to those that we will build in the future. The following are in order of priority:

  1. Question categorization
  2. Focus view
  3. Add a colum in Feedback (Note, I also created a whole new issue for the feedback dashboard as well)
  4. slash commands
  5. All sister pages of question categorization
  6. Overview
  7. 7 day average

Furthermore, as came out of this discussion, we should aim to align our instrumentation in such a way that we can easily interrelate different data, rather than creating unrelatable metrics.

Proposal

Proposal based on this comment:

We need the client field added to extra on the execute_llm_method events as the latter is used for the AI Features dashboard. So it seems that adding client to those events would be the most straightforward path to being able to add the information to the dashboard.

Edited by Torsten Linz