feat: Track quick chat telemetry
Description
Adds Quick chat telemetry
Can be merged only after upgrade of the LS with these changes
Related Issues
How has this been tested?
- Link this LS MR to the extension from this branch
- Setup local Snowplow collector
- In VSCode
settings.json
setgitlab.trackingUrl
to the host of your Snowplow micro e.ghttp://localhost:9090
if you did a default setup in step 2 - Open Quick Chat and try running different slash commands or just ask random questions. Go to the local collector and check that you have events with the following attributes.
{
"se_category": "gitlab_quick_chat",
"se_action": "message_sent",
"se_label": "/tests"
}
se_label
will depend on your message
-
Now try opening Quick Chat with the hotkeys
alt+c
or via the command palette. Depending on how you triggered the chat opening, you should see the event with the following payload wherese_label
will indicate the trigger{ "se_category": "gitlab_quick_chat", "se_action": "open_quick_chat", "se_label": "click_button" // or "shortcut" }
Related Issues
Resolves #[issue_number]
How has this been tested?
Screenshots (if appropriate)
What CHANGELOG entry will this MR create?
-
fix:
Bug fix fixes - a user-facing issue in production - included in changelog -
feature:
New feature - a user-facing change which adds functionality - included in changelog -
BREAKING CHANGE:
(fix or feature that would cause existing functionality to change) - should bump major version, mentioned in the changelog -
None - other non-user-facing changes
Closes #1572 (closed)
Edited by Jacques Erasmus