Generate and log correlation IDs
This will make it easier to tie an SSH access request to Rails API and Gitaly requests.
Example JSON
{
"command": "git-upload-pack",
"correlation_id": "mr4KoIjKU26",
"git_protocol": "",
"gl_key_id": 11,
"gl_key_type": "key",
"gl_project_path": "root/test",
"gl_repository": "project-261",
"level": "info",
"msg": "executing git command",
"remote_ip": "18.245.1.50",
"time": "2020-07-24T03:04:22-05:00",
"user_id": "user-1",
"username": "root"
}
Edited by Stan Hu