Log CI artifact size when downloaded via UI
What does this MR do and why?
Previously we only logged the CI artifact size when the artifact was downloaded via an API endpoint. This commit adds a meta.artifact_size
log entry for the ArtifactsController#download
case as well.
How to set up and validate locally
- Go to a job and download its artifact.
- Check
/var/log/gitlab/gitlab-rails/production_json.log
formeta.artifact_size
:
"meta.user": "root",
"meta.user_id": 1,
"meta.project": "root/simple-ci",
"meta.root_namespace": "root",
"meta.client_id": "user/1",
"meta.artifact_size": 209,
"meta.artifact_used_cdn": true,
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Stan Hu
Merge request reports
Activity
Please register or sign in to reply