diff options
Diffstat (limited to 'internal/sshd/connection.go')
-rw-r--r-- | internal/sshd/connection.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/internal/sshd/connection.go b/internal/sshd/connection.go index 25b082a..1312833 100644 --- a/internal/sshd/connection.go +++ b/internal/sshd/connection.go @@ -2,7 +2,6 @@ package sshd import ( "context" - "time" "golang.org/x/crypto/ssh" "golang.org/x/sync/semaphore" @@ -29,13 +28,6 @@ func newConnection(maxSessions int64, remoteAddr string) *connection { func (c *connection) handle(ctx context.Context, chans <-chan ssh.NewChannel, handler channelHandler) { ctxlog := log.WithContextFields(ctx, log.Fields{"remote_addr": c.remoteAddr}) - metrics.SshdConnectionsInFlight.Inc() - - defer func(started time.Time) { - metrics.SshdConnectionsInFlight.Dec() - metrics.SshdConnectionDuration.Observe(time.Since(started).Seconds()) - }(time.Now()) - for newChannel := range chans { ctxlog.WithField("channel_type", newChannel.ChannelType()).Info("connection: handle: new channel requested") if newChannel.ChannelType() != "session" { |