- Notifications
You must be signed in to change notification settings - Fork1k
chore: add DRPC tailnet & cli network telemetry#13687
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
19 commits Select commitHold shift + click to select a range
974c570
chore: add DRPC tailnet & cli implementation
ethanndickson0718987
fixup
ethanndickson80181ad
fixup
ethanndickson3b7f5b2
wip log sink
ethanndickson66313d1
derpmap telemetry clean
ethanndickson09d9249
netcheck stub
ethanndickson5c0f30c
add netcheck
ethanndickson45b5234
fixup
ethanndicksonf83df79
tests
ethanndicksonb9cd8fb
ping and speedtest telemetry
ethanndicksonce0df7b
fixup
ethanndickson598cad5
bump tailscale, change api
ethanndickson6a3480c
remove logs
ethanndicksonf33ab36
populate latency, node ids, home derp
ethanndickson3918369
update flake
ethanndicksonb9cfa52
fixup
ethanndicksonc0684bb
application field
ethanndickson67898fd
review
ethanndicksonffd62ca
telemetry on disconnect
ethanndicksonFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
3 changes: 3 additions & 0 deletionscli/ping.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletionscli/portforward.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
39 changes: 24 additions & 15 deletionscli/root.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -52,19 +52,20 @@ var ( | ||
) | ||
const ( | ||
varURL = "url" | ||
varToken = "token" | ||
varAgentToken = "agent-token" | ||
varAgentTokenFile = "agent-token-file" | ||
varAgentURL = "agent-url" | ||
varHeader = "header" | ||
varHeaderCommand = "header-command" | ||
varNoOpen = "no-open" | ||
varNoVersionCheck = "no-version-warning" | ||
varNoFeatureWarning = "no-feature-warning" | ||
varForceTty = "force-tty" | ||
varVerbose = "verbose" | ||
varDisableDirect = "disable-direct-connections" | ||
varDisableNetworkTelemetry = "disable-network-telemetry" | ||
notLoggedInMessage = "You are not logged in. Try logging in using 'coder login <url>'." | ||
@@ -435,6 +436,13 @@ func (r *RootCmd) Command(subcommands []*serpent.Command) (*serpent.Command, err | ||
Value: serpent.BoolOf(&r.disableDirect), | ||
Group: globalGroup, | ||
}, | ||
{ | ||
Flag: varDisableNetworkTelemetry, | ||
Env: "CODER_DISABLE_NETWORK_TELEMETRY", | ||
Description: "Disable network telemetry. Network telemetry is collected when connecting to workspaces using the CLI, and is forwarded to the server. If telemetry is also enabled on the server, it may be sent to Coder. Network telemetry is used to measure network quality and detect regressions.", | ||
Value: serpent.BoolOf(&r.disableNetworkTelemetry), | ||
Group: globalGroup, | ||
ethanndickson marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
}, | ||
{ | ||
Flag: "debug-http", | ||
Description: "Debug codersdk HTTP requests.", | ||
@@ -481,8 +489,9 @@ type RootCmd struct { | ||
disableDirect bool | ||
debugHTTP bool | ||
disableNetworkTelemetry bool | ||
noVersionCheck bool | ||
noFeatureWarning bool | ||
} | ||
// InitClient authenticates the client with files from disk | ||
4 changes: 4 additions & 0 deletionscli/speedtest.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletionscli/ssh.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletionscli/testdata/coder_--help.golden
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
40 changes: 14 additions & 26 deletionscoderd/telemetry/telemetry.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletionscodersdk/workspacesdk/agentconn.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.