Skip to content

Add anonymous RudderStack telemetry - #1

Merged
karakanb merged 1 commit into
mainfrom
arsalann/telemetry
Apr 29, 2026
Merged

Add anonymous RudderStack telemetry#1
karakanb merged 1 commit into
mainfrom
arsalann/telemetry

Conversation

@arsalann

Copy link
Copy Markdown
Contributor

Summary

Adds anonymous, opt-out usage telemetry mirroring the bruin-data/bruin pkg/telemetry implementation 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 with TELEMETRY_OPTOUT=1 or DO_NOT_TRACK=1; the write key is injected at build time via -X main.telemetryKey=… and Makefile/.goreleaser.yaml are wired to read TELEMETRY_KEY from the environment.

Testing

  • make test (telemetry package + full suite green)
  • make build
  • Manual smoke test: built with real key, confirmed install, first_run, command_start, dashboards_loaded, command_end events arrive in RudderStack live events feed; second run reuses install_id; TELEMETRY_OPTOUT=1 and DO_NOT_TRACK=1 silence all sends; no-key dev builds are silent

Checklist

  • docs updated (README telemetry section)
  • examples updated if the authoring model changed (n/a)
  • screenshots or recordings attached for UI changes (n/a)

🤖 Generated with Claude Code

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
arsalann force-pushed the arsalann/telemetry branch from 28d4888 to 3ba45b3 Compare April 29, 2026 12:03
@karakanb
karakanb merged commit be66966 into main Apr 29, 2026
1 check passed
@arsalann
arsalann deleted the arsalann/telemetry branch April 29, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants