Skip to content

Commit

Permalink
Use a context with a different scope for diagnostic trace upload (#32558
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Tener authored Oct 2, 2023
1 parent b90107f commit 10453b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/srv/db/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ func (s *Server) handleConnection(ctx context.Context, clientConn net.Conn) erro
if err != nil {
connectionDiagnosticID := sessionCtx.Identity.ConnectionDiagnosticID
if connectionDiagnosticID != "" && trace.IsAccessDenied(err) {
_, diagErr := s.cfg.AuthClient.AppendDiagnosticTrace(ctx,
_, diagErr := s.cfg.AuthClient.AppendDiagnosticTrace(cancelCtx,
connectionDiagnosticID,
&types.ConnectionDiagnosticTrace{
Type: types.ConnectionDiagnosticTrace_RBAC_DATABASE_LOGIN,
Expand Down

0 comments on commit 10453b9

Please sign in to comment.