Add start_agent_platform_session event to GitLab instance
Problem
We are currently not tracking the start of a GitLab Duo Agent platform (formerly Duo Workflow) session from within the instance. Not getting this data from individual instances means we cannot show the data back to the user as part of AI tracking. The main important part is whether a specific session got started.
Desired Outcome
The start of a session is tracked together with the most important information.
Implementation Plan
-
Instrument a new internal event (quick start guide)
- name:
start_agent_platform_session - label:
[flow_type](e.g.chat,software_developmentetc.) - value:
[session_id](still calledworkflow_idin most places)
- name:
-
Make sure project and user information is passed as described in the docs.
-
Add the event to AI tracking as described in !197129 (diffs).
-
Additionally change the label for the existing
cleanup_stuck_agent_platform_sessionto also include theflow_type
Edited by Sebastian Rehm