Skip to content

fix: set network telemetry client version on server #14376

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

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Aug 21, 2024

Also removes the DisconnectionReason field, given that it was unused. Requires a corresponding change on the telemetry server.

Closes #14375

@ethanndickson ethanndickson marked this pull request as ready for review August 21, 2024 06:51
Copy link
Member Author

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

Join @ethanndickson and the rest of your teammates on Graphite Graphite

@ethanndickson ethanndickson force-pushed the 08-21-fix_set_network_telemetry_client_version_on_server branch 2 times, most recently from 658f6f9 to ec124ba Compare August 21, 2024 08:27
Copy link
Collaborator

@sreya sreya left a comment

Choose a reason for hiding this comment

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

There aren't any tests to prevent this from happening in the future. Is there an opportunity to introduce some?

@ethanndickson
Copy link
Member Author

ethanndickson commented Aug 22, 2024

I think it'd be beneficial to have an E2E network telemetry test. We'd just need to mock the telemetry batcher on a coderdtest instance so we can inspect it.

@sreya
Copy link
Collaborator

sreya commented Aug 22, 2024

@ethanndickson there's already a telemetry_test.go file but we haven't added any tests to it related to networking events.

@ethanndickson
Copy link
Member Author

ethanndickson commented Aug 22, 2024

Unfortunately I don't believe we expose anything like /snapshot on coderd to inspect the network events, unlike the other telemetry - so it'll likely end up being done differently.

@ethanndickson ethanndickson force-pushed the 08-21-fix_set_network_telemetry_client_version_on_server branch from ec124ba to 64b79cd Compare August 23, 2024 06:07
@ethanndickson ethanndickson enabled auto-merge (squash) August 23, 2024 06:07
@ethanndickson ethanndickson merged commit 4cc26be into main Aug 23, 2024
28 checks passed
@ethanndickson ethanndickson deleted the 08-21-fix_set_network_telemetry_client_version_on_server branch August 23, 2024 06:17
@github-actions github-actions bot locked and limited conversation to collaborators Aug 23, 2024
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.

client_version not being set for networking telemetry
3 participants