HomeSoftware Heritage

storage: Send metrics from the origin_add endpoint

Description

storage: Send metrics from the origin_add endpoint

Prior to this commit, since the loaders got migrated to use the main endpoint,
no metrics were sent for the origin any longer.

This commit fixes it.

It also drops the send_metrics call from the deprecated endpoint
origin_add_one (which, as an implementation details calls the other one).

Details

Provenance
ardumontAuthored on Jul 6 2020, 9:45 AM
ardumontPushed on Jul 6 2020, 9:54 AM
Differential Revision
D3421: storage: Send metrics from the origin_add endpoint
Parents
rDSTO95fd6608da70: pg-storage: Add missing cur parameter passing
Branches
Unknown
Tags
Unknown
References
tag: v0.9.3
Build Status
Buildable 13345
Build 20393: test-and-buildJenkins console · Jenkins