(self, limit: int = 50, *, errors_only: bool = False)
| 446 | return [_trace_payload(record) for record in records] |
| 447 | |
| 448 | def recent(self, limit: int = 50, *, errors_only: bool = False) -> list[dict[str, Any]]: |
| 449 | records = self.history() |
| 450 | if errors_only: |
| 451 | records = [record for record in records if record.error_code or record.status_code >= 400] |
| 452 | return [_trace_payload(record) for record in records[:limit]] |
| 453 | |
| 454 | def find(self, request_id: str) -> dict[str, Any] | None: |
| 455 | target = str(request_id or "").strip() |