8000 feat: add user_tailnet_connections to telemetry by spikecurtis · Pull Request #17018 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: add user_tailnet_connections to telemetry #17018

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 1 commit into from
Mar 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
8000
Diff view
11 changes: 11 additions & 0 deletions coderd/telemetry/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,7 @@ type Snapshot struct {
NetworkEvents []NetworkEvent `json:"network_events"`
Organizations []Organization `json:"organizations"`
TelemetryItems []TelemetryItem `json:"telemetry_items"`
UserTailnetConnections []UserTailnetConnection `json:"user_tailnet_connections"`
}

// Deployment contains information about the host running Coder.
Expand Down Expand Up @@ -1711,6 +1712,16 @@ type TelemetryItem struct {
UpdatedAt time.Time `json:"updated_at"`
}

type UserTailnetConnection struct {
ConnectedAt time.Time `json:"connected_at"`
DisconnectedAt *time.Time `json:"disconnected_at"`
UserID string `json:"user_id"`
PeerID string `json:"peer_id"`
DeviceID *string `json:"device_id"`
DeviceOS *string `json:"device_os"`
CoderDesktopVersion *string `json:"coder_desktop_version"`
}

type noopReporter struct{}

func (*noopReporter) Report(_ *Snapshot) {}
Expand Down
Loading
0