mirror of
https://github.com/coder/coder.git
synced 2025-07-29 10:35:52 +00:00
feat: Add anonymized telemetry to report product usage (#2273)
* feat: Add anonymized telemetry to report product usage This adds a background service to report telemetry to a Coder server for usage data. There will be realtime event data sent in the future, but for now usage will report on a CRON. * Fix flake and requested changes * Add reporting options for setup * Add reporting for workspaces * Add resources as they are reported * Track API key usage * Ensure telemetry is tracked prior to exit
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
UPDATE
|
||||
templates
|
||||
SET
|
||||
created_by = (
|
||||
SELECT user_id FROM organization_members
|
||||
WHERE organization_members.organization_id = templates.organization_id
|
||||
ORDER BY created_at
|
||||
LIMIT 1
|
||||
)
|
||||
WHERE
|
||||
created_by IS NULL;
|
||||
|
||||
|
||||
ALTER TABLE ONLY templates ALTER COLUMN created_by SET NOT NULL;
|
Reference in New Issue
Block a user