Skip to content

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

Merged
spikecurtis merged 2 commits into
mainfrom
spike/coder-desktop-telemetry-header
Mar 25, 2025
Merged

feat: adds device_id, device_os, and coder_desktop_version to telemetry#17086
spikecurtis merged 2 commits into
mainfrom
spike/coder-desktop-telemetry-header

Conversation

@spikecurtis

@spikecurtis spikecurtis commented Mar 25, 2025

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

@johnstcn johnstcn left a comment

Copy link
Copy Markdown
Member

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 thread coderd/workspaceagents.go Outdated
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
Copy Markdown
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

Copy link
Copy Markdown
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
Copy Markdown
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