feat: include user-agent header in all API requets
This MR introduces the
User-Agent header to all API requests. We already introduced this header for the new GraphQL GitLab service in #129 (closed). But this MR extracts the logic for building the header and uses it for all remaining API requests.
The format is following the syntax specification https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent#Syntax
User-Agent: <product> / <product-version> <comment>
User-Agent: Mozilla/5.0 (<system-information>) <platform> (<platform-details>) <extensions>
vs-code-gitlab-workflow/3.5.0 VSCode/1.50.1 Node.js/12.14.1 (darwin; x64)
In our production Kibana (the GraphQL service is now live):
Kibana Link that works only for GitLab team members.
In my local environment (using mitmproxy)
Part of #238 (closed)