Skip to content

Commit 3481ba1

Browse files
authored
feat: add ssh session tracking environment variable for monitoring (#63)
1 parent f418931 commit 3481ba1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/remote.ts

+3
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,9 @@ export class Remote {
451451
StrictHostKeyChecking: "no",
452452
UserKnownHostsFile: "/dev/null",
453453
LogLevel: "ERROR",
454+
// This allows for tracking the number of extension
455+
// users connected to workspaces!
456+
SetEnv: "CODER_SSH_SESSION_TYPE=vscode",
454457
}
455458

456459
await sshConfig.update(sshValues)

0 commit comments

Comments
 (0)