Skip to content
Snippets Groups Projects
Commit aaae867e authored by vlorentz's avatar vlorentz
Browse files

Split batch_duration_seconds metric in two

It will probably be useful to know what part of the check
takes the most time.
parent 0cc86b0e
No related branches found
No related tags found
No related merge requests found
......@@ -113,8 +113,13 @@ class StorageChecker:
)
objects = list(objects)
with self.statsd().timed("batch_duration_seconds"):
with self.statsd().timed(
"batch_duration_seconds", tags={"operation": "check_hashes"}
):
self.check_object_hashes(objects)
with self.statsd().timed(
"batch_duration_seconds", tags={"operation": "check_references"}
):
self.check_object_references(objects)
def check_object_hashes(self, objects: Iterable[ScrubbableObject]):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment