perf: FileExporter JSONL fallback for local dev without collector #211
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implement
src/perf/export.py— marimo-style local file export.Tasks
FileExporter(SpanExporter)that writes spans totraces/spans.jsonlstack.toml [telemetry].fallbackBatchSpanProcessorwrapping FileExporter (like marimo)stack perf showFileExporter was built in #203. Remaining:
stack perf showto pretty-print JSONL tracesComplete.
Created:
src/cli/perf.py—stack perf showCLI command (pretty-prints JSONL trace file, last N spans, shows rows/cache/memory)Modified:
src/cli/__init__.py— registeredperfsubcommandExisting (from #203):
src/perf/export.py—FileSpanExporterJSONL writersrc/perf/_tracer.py— auto-fallback to FileExporter when OTLP unreachableTests: 7 in
test_export.py✅ 7/7 passed, lint clean.