Skip to content

chore(telemetry): add device ID resolution COMPASS-8443 #1034

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 5, 2025

Conversation

gagik
Copy link
Contributor

@gagik gagik commented May 2, 2025

Adds device ID to the events' user identity in the telemetry service.

@gagik gagik changed the title chore(telemetry): add device ID resolution chore(telemetry): add device ID resolution COMPASS-8443 May 2, 2025
log.info('Segment analytics activated', this.userIdentity);

// Process buffered events
if (this.eventBuffer.length > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: This conditional doesn't do anything, right?

(alternatively: with these cases I definitely have a mild preference for while (event = this.eventBuffer.shift()), I know it doesn't make a real difference right now, but it's basically the same amount of syntax but provides greater resilience around potential future changes where the buffer or the isBufferingEvents flag could be changed concurrently to the loop)

@gagik gagik merged commit de7518b into main May 5, 2025
9 checks passed
@gagik gagik deleted the gagik/add-device-id branch May 5, 2025 12:23
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