Skip to content

render: telemetry is off by default, and the deploy no longer asks - #474

Merged
turbolytics merged 3 commits into
mainfrom
render/telemetry-off-by-default
Nov 17, 2026
Merged

turbolytics merged 3 commits into
mainfrom
render/telemetry-off-by-default

Conversation

@turbolytics

Copy link
Copy Markdown
Owner

The Deploy to Render template sent two install events unless the deployer typed off at a SQLFLOW_TELEMETRY prompt. It now sends nothing unless they opt in.

Changes

  • render/bin/telemetry.sh sends only when SQLFLOW_TELEMETRY is on, true, 1 or yes. Unset, blank and any other value send nothing, and the log says how to opt in.
  • render.yaml no longer names SQLFLOW_TELEMETRY, so the deploy does not prompt for it. To opt in, add SQLFLOW_TELEMETRY=on to sqlflow-metrics-ingest in the dashboard. A sync leaves a variable the Blueprint does not name alone.
  • render/README.md, the root README, entrypoint.sh and docker-compose.yml say so. The README's line count for the script had drifted to 91; it is 97.

Tests

render/test/e2e.sh:

  • The main stack sets SQLFLOW_TELEMETRY=on inline for the section that checks the two events. It is not exported, so the probes after it start with the default.
  • New probes: unset, blank, off and maybe each claim and send nothing.
  • The dead-collector probe opts in.
  • run_probe guards its empty env array: macOS bash 3.2 calls it unbound under set -u.

Out of scope, noted: on macOS, the script died on that unbound variable and make still exited 0, so a failure of that kind can read as a pass locally. CI runs bash 5.

Test plan

  • make -C render validate: render.yaml valid against Render's schema, configs valid
  • make -C render test: PASS, including the four new probes
  • CI render-template green

The Render template sent two install events unless SQLFLOW_TELEMETRY was
off. It now sends nothing unless SQLFLOW_TELEMETRY is on (or true, 1,
yes); blank, unset and any other value send nothing. The Blueprint
prompt, README and compose comments say so.

e2e: the main stack opts in for the telemetry section; probes check that
unset, blank, off and an unknown value claim and send nothing, and the
dead-collector probe opts in. run_probe guards its empty env array for
macOS bash 3.2 under set -u.
The Blueprint named SQLFLOW_TELEMETRY with sync: false, so every deploy
prompted for it. It is gone from render.yaml: the variable is unset and
nothing is sent. Opting in means adding SQLFLOW_TELEMETRY=on to the
ingest service in the dashboard, which a sync leaves alone because the
Blueprint does not name it.
@turbolytics
turbolytics merged commit b17ca8a into main Nov 17, 2026
13 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant