Method
inc_transform
(&self, hit: bool, transform: &str)
Source from the content-addressed store, hash-verified
| 113 | } |
| 114 | |
| 115 | pub fn inc_transform(&self, hit: bool, transform: &str) { |
| 116 | if hit { |
| 117 | self.transform_hits.with_label_values(&[transform]).inc(); |
| 118 | } |
| 119 | self.transform_total.with_label_values(&[transform]).inc(); |
| 120 | } |
| 121 | |
| 122 | pub fn observe_transform_time(&mut self, transform: &str, duration: Duration) { |
| 123 | let transform_time_seconds = &mut self.transform_time_seconds; |
Tested by
no test coverage detected