feat: add CTFS trace format support#74
Open
zah wants to merge 2 commits into
Open
Conversation
Add TraceEventsFileFormat::Ctfs handling: - events.rs: CTFS is streaming (same as Binary, no partial flush) - output_paths.rs: CTFS uses trace.ct filename extension - filesystem.rs: accept "ctfs" format string from config/env - Cargo.toml: switch to path deps for trace-format crates Recorders can now produce .ct CTFS container traces by setting CODETRACER_TRACE_FORMAT=ctfs or passing format in config. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
CTFS is now the default trace format for the Python recorder. Streaming writes flush events incrementally, enabling live replay. - formats.py: DEFAULT_FORMAT = TRACE_CTFS - session.py: updated docstring - Other formats (binary, json, binaryv0) remain available via config Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
TraceEventsFileFormat::Ctfsin all match statements (streaming, like Binary)trace.ctfilename extension for CTFS output"ctfs"format string accepted in config/envSet
CODETRACER_TRACE_FORMAT=ctfsto produce .ct CTFS container traces.Test plan
cargo checkpassesjust testwith CTFS format (needs Linux CI)🤖 Generated with Claude Code