Skip to content

Google Cloud Artifact Registry: add user agent metadata

🔦 Context

In GAR Integration: Custom client class (#425147 - closed), we added a client to interact with the Google Cloud Artifact Registry as part of the Google Artifact Registry Integration for Contai... (&12365 - closed) epic.

With Use custom User-Agent for Google Artifact Regis... (#444752 - closed), we want to instrument some API calls so that we can have API usage metrics.

🔍 What does this MR do and why?

  • Add a user agent metadata for methods list_docker_images and get_docker_image.
    • The other methods are left as-is.
  • Update the related specs

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

🦄 Screenshots or screen recordings

No changes in the UI

How to set up and validate locally

Unfortunately, there is no way to check this change locally. 😿

See #444752 (comment 1834552887).

The only thing we can do is test that the artifact registry UI still works as expected.

Edited by David Fernandez

Merge request reports