Skip to content

Log 'access: finish' line with additional metadata

This MR needs !795 (merged) merged first.

This MR extends !782 (merged) by also including the following metadata:

  • username: The username of the authenticated user
  • project: The project name, including namespace, e.g. flightjs/Flight
  • root_namespace: The namespace the project sits under, e.g. flightjs

e.g.

{
    "correlation_id": "01H39XWC5RBSVAG0R8NYXM7GNG",
    "duration_s": 0.393773083,
    "level": "info",
    "meta": {
        "username": "root",
        "project": "flightjs/Flight",
        "root_namespace": "flightjs"
    },
    "msg": "access: finish",
    "remote_addr": "172.16.123.1:50352",
    "time": "2023-06-19T13:35:34Z"
}

Related #648 (closed)

Edited by Ash McKenzie

Merge request reports