Skip to content

Commit 5d82d9f

Browse files
author
Igor Drozdov
committed
Fix the established session metric
This metric shouldn't include delays that may happen due to the user's behaviour. It should include only app-related delays.
1 parent 67f5742 commit 5d82d9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/sshd/sshd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func (s *Server) handleConn(ctx context.Context, nconn net.Conn) {
203203
gitlabKeyId: sconn.Permissions.Extensions["key-id"],
204204
gitlabKrb5Principal: sconn.Permissions.Extensions["krb5principal"],
205205
remoteAddr: remoteAddr,
206-
started: started,
206+
started: time.Now(),
207207
}
208208

209209
var err error

0 commit comments

Comments
 (0)