Skip to content

Log X-Gitlab-* header fields

Matthias Käppler requested to merge mk-log-instance-and-user-id into main

The monolith now sends instance and user IDs as well as gitlab-realm with the HTTP request. This will be used to count unique users and distinguish self-managed from SaaS requests.

Related issues/MRs:

Example:

{
    "url": "http://ai-gateway:5000/v2/completions",
    "path": "/v2/completions",
...
    "gitlab_instance_id": "9ebada7a-f5e2-477a-8609-17797fa95cb9",
    "gitlab_global_user_id": "XTuMnZ6XTWkP3yh0ZwXualmOZvm2Gg/bk9jyfkL7Y6k=",
    "gitlab_realm": "self-managed",
}
Edited by Matthias Käppler

Merge request reports