Skip to content

Provide a way to track and measure API calls

Jaime Martinez requested to merge 267-track-api-calls into master

Added Domain Source API call metrics for the client using a http.RoundTripper

Updated the httptransport package to support a Transport with a RoundTripper to report metrics in a centralized way. This method is extensible and easy to add more metrics. It can eventually be attached to other clients like the one used for auth and artifact packages

Inspired by prometheus/client_golang/prometheus/promhttp package implementation https://github.com/prometheus/client_golang/pull/295/files#

Closes #267 (closed)

Edited by Jaime Martinez

Merge request reports