Page MenuHomeSoftware Heritage

swh.indexer.storage: Add metrics to add/del endpoints
ClosedPublic

Authored by ardumont on Mar 3 2020, 4:19 PM.

Details

Reviewers
vlorentz
Group Reviewers
Reviewers
Summary

Depends on D2759

Test Plan

tox

Diff Detail

Repository
rDCIDX Metadata indexer
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 10892
Build 16378: tox-on-jenkinsJenkins
Build 16377: arc lint + arc unit

Event Timeline

swh/indexer/storage/metrics.py
7

Find a way to move this module up (to swh.core for example).
This is taken directly from swh.storage.metrics and slightly adapted.

If each method needs to call statsd, what are the returns for?

vlorentz requested changes to this revision.Mar 3 2020, 4:30 PM
vlorentz added inline comments.
swh/indexer/storage/metrics.py
67–79

This isn't used

This revision now requires changes to proceed.Mar 3 2020, 4:30 PM

If each method needs to call statsd, what are the returns for?

D2761 ;)

  • Rebase
  • Add missing @timed @process_metric decorator
This revision is now accepted and ready to land.Mar 3 2020, 8:07 PM