coder / coder

Provision remote development environments via Terraform
https://coder.com
GNU Affero General Public License v3.0
8.02k stars 672 forks source link

chore: track `module` usage in telemetry #11645

Open matifali opened 8 months ago

matifali commented 8 months ago

We publish plenty of terraform modules to be used with templates at https://registry.coder.com/modules. We need to track them in telemetry to better know the value of registry.coder.com before investing any more resources in it

We should be able to track the module name source, and the version if any.

For example to track

module "jetbrains_gateway" {
  source          = "https://registry.coder.com/modules/jetbrains-gateway"
  version         = "1.0.0"
  agent_id        = coder_agent.main.id
  agent_name      = "main"
  folder          = "/home/coder/coder"
  jetbrains_ides  = ["GO", "WS"]
  default         = "GO"
}

we need source, version, and name i.e. jetbrains_gateway.

stirby commented 4 months ago

@bpmct relevant to "search".

bpmct commented 4 months ago

We're tracking this issue via an internal doc so happy to close this out