(self, f: "F")
| 73 | self._metric = self._metric.labels(*args, **kw) |
| 74 | |
| 75 | def __call__(self, f: "F") -> "F": |
| 76 | def wrapped(func, *args, **kwargs): |
| 77 | # Obtaining new instance of timer every time |
| 78 | # ensures thread safety and reentrancy. |
| 79 | with self._new_timer(): |
| 80 | return func(*args, **kwargs) |
| 81 | |
| 82 | return decorate(f, wrapped) |
nothing calls this directly
no test coverage detected