Record response time for operation.
(self, operation: str, latency: float)
| 87 | return self.get_summary() |
| 88 | |
| 89 | def record_response_time(self, operation: str, latency: float): |
| 90 | """Record response time for operation.""" |
| 91 | self.metrics["response_times"].append({ |
| 92 | "operation": operation, |
| 93 | "latency": latency, |
| 94 | "timestamp": time.perf_counter() |
| 95 | }) |
| 96 | |
| 97 | def record_error(self, error_type: str): |
| 98 | """Record error occurrence.""" |
no outgoing calls
no test coverage detected