Skip to content

Log generate_cube_query prompts

Problem to solve

See discussion for more context: #442058 (comment 1806551057)+

The generate_cube_query AI action is not currently logged, so we have no way to find and fix problems with our prompt.

We would also like to relate customer feedback back to their specific prompt to enable us to better debug / respond to issues.

Proposed solution

Log the generate_cube_query prompts, similar to how GitLab Duo Chat logs are handled.

Additionally, allow passing a UUID to be logged with the prompt, so that it can be associated back to feedback / errors etc.

If we have errors while generating the prompt, include the UUID with the error data sent to Sentry.

Implementation plan

Edited by Max Woolf