Add anonymous RudderStack telemetry - #1
Merged
Merged
Conversation
Mirrors bruin-data/bruin's pkg/telemetry so events from both CLIs land in the same RudderStack workspace and improvements stay portable. State lives at ~/.dac/telemetry.json. Honors TELEMETRY_OPTOUT and DO_NOT_TRACK. Tracks command lifecycle (install, first_run, command_start/end/error, template_selected) plus DAC-specific events (serve_started, query_executed, dashboards_loaded). Metadata only — no SQL, results, file paths, dashboard names, or connection details. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
arsalann
force-pushed
the
arsalann/telemetry
branch
from
April 29, 2026 12:03
28d4888 to
3ba45b3
Compare
karakanb
approved these changes
Apr 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds anonymous, opt-out usage telemetry mirroring the bruin-data/bruin
pkg/telemetryimplementation so events from both CLIs land in the same RudderStack workspace and improvements stay portable. State persists at~/.dac/telemetry.json. Tracks command lifecycle (install,first_run,command_start/end/error,template_selected) plus DAC-specific events (serve_started,query_executed,dashboards_loaded) — metadata only, never SQL, results, file paths, dashboard names, or connection details. Disable withTELEMETRY_OPTOUT=1orDO_NOT_TRACK=1; the write key is injected at build time via-X main.telemetryKey=…andMakefile/.goreleaser.yamlare wired to readTELEMETRY_KEYfrom the environment.Testing
make test(telemetry package + full suite green)make buildinstall,first_run,command_start,dashboards_loaded,command_endevents arrive in RudderStack live events feed; second run reuses install_id;TELEMETRY_OPTOUT=1andDO_NOT_TRACK=1silence all sends; no-key dev builds are silentChecklist
🤖 Generated with Claude Code