mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
chore: track terraform modules in telemetry (#15450)
Addresses https://github.com/coder/nexus/issues/35. This PR: - Adds a `workspace_modules` table to track modules used by the Terraform provisioner in provisioner jobs. - Adds a `module_path` column to the `workspace_resources` table, allowing to identify which module a resource originates from. - Starts pushing this new information into telemetry. For the person reviewing this PR, do not fret about the 1,500 new lines - ~1,000 of them are auto-generated.
This commit is contained in:
20
coderd/database/migrations/testdata/fixtures/000276_workspace_modules.up.sql
vendored
Normal file
20
coderd/database/migrations/testdata/fixtures/000276_workspace_modules.up.sql
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
INSERT INTO
|
||||
public.workspace_modules (
|
||||
id,
|
||||
job_id,
|
||||
transition,
|
||||
source,
|
||||
version,
|
||||
key,
|
||||
created_at
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
'5b1a722c-b8a0-40b0-a3a0-d8078fff9f6c',
|
||||
'424a58cb-61d6-4627-9907-613c396c4a38',
|
||||
'start',
|
||||
'test-source',
|
||||
'v1.0.0',
|
||||
'test-key',
|
||||
'2024-11-08 10:00:00+00'
|
||||
);
|
Reference in New Issue
Block a user