extract_python_tracebacks
Extract Python tracebacks from log text, files, or URLs and truncate them to a chosen length for easier debugging.
Instructions
Extract Python tracebacks using specialized heuristic.
Analyzes log text and extracts unbroken Python tracebacks.
Traces are truncated to `max_traceback_len` characters.
Exactly one of log_text, log_path, or log_url must be provided.
Downloaded inputs are limited to 100 MB.
Compressed files (.gz, .bz2, .xz, .zip, .tar, .tar.gz, .tar.bz2,
.tar.xz) are decompressed transparently. Archives must contain
exactly one file. Compression ratios above 100:1 are rejected.
Args:
log_text: Raw log text to analyze.
log_path: Path to a log file on disk.
log_url: HTTP(S) URL to fetch log content from.
max_traceback_len: Maximum character length per extracted traceback.
skip_patterns: Optional list of regex patterns.
Chunks matching any pattern are excluded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log_url | No | ||
| log_path | No | ||
| log_text | No | ||
| skip_patterns | No | ||
| max_traceback_len | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |