Skip to content

Conversation

@Angelmmiguel
Copy link
Contributor

The new telemetry service collects anonymous data to understand how developers use rover. It mostly uses counters just to understand the number of completed tasks and called commands.

Closes #37

Changes

  • Create a separate package for telemetry
  • Add a simple class to manage telemetry and user options
  • Create a random ID per user. It's not associated to any data
  • Configure commands to send the events

@Angelmmiguel Angelmmiguel added this to the beta milestone Aug 12, 2025
@Angelmmiguel Angelmmiguel requested a review from ereslibre August 12, 2025 15:41
@Angelmmiguel Angelmmiguel self-assigned this Aug 12, 2025
Copy link
Collaborator

@ereslibre ereslibre left a comment

Choose a reason for hiding this comment

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

LGTM 👏

Comment on lines 69 to 77
try {
userId = readFileSync(USER_CONFIG_PATH, 'utf-8').trim();
} catch (error) {
userId = uuidv4();
this.writeUserId(CONFIG_DIR, USER_CONFIG_PATH, userId);
}
} else {
userId = uuidv4();
this.writeUserId(CONFIG_DIR, USER_CONFIG_PATH, userId);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Having CONFIG_DIR and USER_CONFIG_PATH seems a bit off when reading the first time, having these two parameters instead of one

@Angelmmiguel Angelmmiguel merged commit fff2cc9 into main Aug 13, 2025
3 checks passed
@Angelmmiguel Angelmmiguel deleted the 37/telemetry branch September 11, 2025 05:46
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.

Introduce basic telemetry

3 participants