code: func (s *Server) isAuditedAtProxy() bool {
  	// always be safe, better to double record than not record at all
  	clusterConfig, err := s.GetAccessPoint().GetClusterConfig()
  	if err != nil {
  		return false
  	}
  
  	isRecordAtProxy := clusterConfig.GetSessionRecording() == services.RecordAtProxy
  	isTeleportNode := s.Component() == teleport.ComponentNode
  
  	if isRecordAtProxy && isTeleportNode {
  		return true
  	}
  	return false
  }
docs: // isAuditedAtProxy returns true if sessions are being recorded at the proxy
  // and this is a Teleport node.