Add workspace creation event and metrics
What does this MR do and why?
Introduce Workspace creation event, and also service ping metrics for aggregate and visualize data in Tableau.
References
Issue - Add metrics for workspace creation result and f... (#535941 - closed)
Screenshots or screen recordings
Snowplow micro event tracking params for succeed workspace creation
Snowplow micro event tracking params for failed workspace creation with reason WorkspaceCreateDevfileFlattenFailed
How to set up and validate locally
- Follow steps for local workspace setup, https://gitlab.com/gitlab-org/workspaces/gitlab-workspaces-docs/-/blob/main/doc/local-development-environment-setup.md?ref_type=heads
- Follow steps for local event setup, https://docs.gitlab.com/development/internal_analytics/internal_event_instrumentation/local_setup_and_debugging/#snowplow-micro
- Go to workspace creation page
http://gdk.test:3000/-/remote_development/workspaces/new, and create one workspace, and see event tracked - On same page, modify the devfile to be invalid (example below), and create one workspace and see failed event tracked
schemaVersion: 2.2.0
components:
- name: tooling-container
attributes:
gl/inject-editor: true
container:
MR acceptance checklist
-
Add new internal event for workspace creation -
Trigger the internal event at workspace creation domain -
Add one Service Ping metrics for workspace created successful total number -
Add one Service Ping metrics for workspace created failed total number -
Add needed Service Ping metrics for workspace created failed number, group by failure reason
Edited by zli

