Investigation: Track event for code commits from within a workspace
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
MR: Pending
Description
Based on the discussion here, we would like to track user activity for code commits from within a workspace. And use this as one of inputs into our active user metric (Combined with other activities, like clicking open workspace button).
In this issue, we should first discovery technical plan for the implementation.
Chad has some initial thoughts at high level.
As for code commits, that's tricker. However, it may be possible. We might be able to hack this by modifying the workspace's git client config to pass some additional data to the git server which identifies it as a workspace. I asked AI, and it indicated this should be possible for both http and ssh, e.g. via
http.extraHeader
for http and ENV var for ssh. We could then detect this on the monolith somehow (hooking into rack/gitaly/??? to detect it and fire off a metrics event). Of course, users can always disable this config in their workspace git config if they want.
Acceptance criteria
TODO: Fill out (required)
-
[Describe what must be achieved to complete this issue.] -
[If applicable, please provide design specifications for this feature/enhancement.] -
[If applicable, please list any technical requirements (performance, security, database, etc.)]
Implementation plan
TODO: Fill out or delete (optional)
[Provide a high-level plan for implementation of this issue, including relevant technical and/or design details.]