Skip to content

umami telemetry data when starting up, init#2107

Open
5byuri wants to merge 3 commits into
mainfrom
telemetry-data
Open

umami telemetry data when starting up, init#2107
5byuri wants to merge 3 commits into
mainfrom
telemetry-data

Conversation

@5byuri

@5byuri 5byuri commented Jun 9, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 9, 2026 04:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds anonymous startup telemetry (Umami) for DevGuard API and DevGuard Scanner, plus environment configuration examples to control/disable it.

Changes:

  • Introduce a new telemetry package to build and send Umami “instance start” events (with optional API DB stats).
  • Hook telemetry into DevGuard API startup (fx.Lifecycle.OnStart) and DevGuard Scanner CLI startup (PersistentPreRunE).
  • Document and template telemetry-related environment variables in .env.example and docker-compose-try-it.yaml.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
telemetry/telemetry.go New package implementing Umami startup event payloads, instance ID hashing, and send logic; includes optional API DB stats collection.
cmd/devguard/main.go Triggers API startup telemetry on application start and centralizes version resolution for telemetry.
cmd/devguard-scanner/commands/root.go Triggers scanner startup telemetry once per CLI process; updates version reporting to prefer build config values.
docker-compose-try-it.yaml Adds telemetry environment variables to local “try-it” services and fixes network indentation.
.env.example Documents telemetry env vars and defaults.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cmd/devguard-scanner/commands/root.go
Comment thread cmd/devguard/main.go
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