(limit: int)
| 167 | |
| 168 | |
| 169 | def _recent_traces_payload(limit: int) -> list[dict[str, Any]]: |
| 170 | traces = _trace_store() |
| 171 | recent = traces.export_records(limit=limit) |
| 172 | if recent or traces.count > 0: |
| 173 | return recent |
| 174 | return _legacy_recent_traces(limit) |
| 175 | |
| 176 | |
| 177 | def _recent_errors_payload(limit: int) -> list[dict[str, Any]]: |
no test coverage detected