Skip to content

feat: adds device_id, device_os, and coder_desktop_version to telemetry #17086

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 2 commits into from
Mar 25, 2025

Conversation

spikecurtis
Copy link
Contributor

@spikecurtis spikecurtis commented Mar 25, 2025

Records the Device ID, Device OS and Coder Desktop version to telemetry.

These values are provided by the Coder Desktop client in the StartRequest method of the VPN protocol. We render them as an HTTP header to transmit to Coderd, where they are decoded and added to telemetry.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@spikecurtis spikecurtis force-pushed the spike/coder-desktop-telemetry-header branch from 1a803fe to dea30ba Compare March 25, 2025 10:37
@spikecurtis spikecurtis marked this pull request as ready for review March 25, 2025 10:39
@spikecurtis spikecurtis requested a review from johnstcn as a code owner March 25, 2025 10:39
@johnstcn johnstcn requested a review from hugodutka March 25, 2025 10:43
@spikecurtis spikecurtis force-pushed the spike/coder-desktop-telemetry-header branch from dea30ba to 91f5fba Compare March 25, 2025 10:44
Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

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

I don't have any blocking concerns, just some suggestions below.

Comment on lines +2513 to +2520
func requireEqualOrBothNil[T any](t testing.TB, a, b *T) {
t.Helper()
if a != nil && b != nil {
require.Equal(t, *a, *b)
return
}
require.Equal(t, a, b)
}
Copy link
Member

Choose a reason for hiding this comment

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

suggestion: potentially useful tesutil candidate?

@spikecurtis spikecurtis merged commit 117e4c2 into main Mar 25, 2025
32 of 34 checks passed
Copy link
Contributor Author

Merge activity

  • Mar 25, 7:26 AM EDT: A user merged this pull request with Graphite.

@spikecurtis spikecurtis deleted the spike/coder-desktop-telemetry-header branch March 25, 2025 11:26
@github-actions github-actions bot locked and limited conversation to collaborators Mar 25, 2025
@hugodutka
Copy link
Contributor

👀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants