Per-row size cap for captured content. 0 disables truncation entirely.
()
| 696 | |
| 697 | |
| 698 | def _content_cap_bytes() -> int: |
| 699 | """Per-row size cap for captured content. 0 disables truncation entirely.""" |
| 700 | raw = os.environ.get("UNCOMMON_ROUTE_CONTENT_CAP_BYTES", "").strip() |
| 701 | if not raw: |
| 702 | return 256 * 1024 |
| 703 | try: |
| 704 | return int(raw) |
| 705 | except ValueError: |
| 706 | return 256 * 1024 |
| 707 | |
| 708 | |
| 709 | def _capture_non_streaming( |
no test coverage detected