mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add mock telemetry server for local development (#21932)
Adds a standalone command that acts as a mock telemetry server, receiving snapshots and printing them as a JSON stream to stdout. Useful for local development testing with scripts/develop.sh by setting CODER_TELEMETRY_ENABLE and CODER_TELEMETRY_URL environment variabless.
This commit is contained in:
@@ -2380,6 +2380,8 @@ func (c *DeploymentValues) Options() serpent.OptionSet {
|
||||
Group: &deploymentGroupTelemetry,
|
||||
UseInstead: []serpent.Option{telemetryEnable},
|
||||
},
|
||||
// For local development testing, see scripts/telemetry-server which
|
||||
// provides a mock server that prints received telemetry as JSON.
|
||||
{
|
||||
Name: "Telemetry URL",
|
||||
Description: "URL to send telemetry.",
|
||||
|
||||
Reference in New Issue
Block a user