MCPcopy Create free account
hub / github.com/AIScientists-Dev/Flowtrace / parse_trace

Function parse_trace

crates/flowtrace-cli/src/serve/scope.rs:73–79  ·  view source on GitHub ↗
(root: &Path)

Source from the content-addressed store, hash-verified

71}
72
73pub fn parse_trace(root: &Path) -> anyhow::Result<Trace> {
74 let path = root.join("trace.json");
75 let bytes = std::fs::read(&path).with_context(|| format!("read {}", path.display()))?;
76 let r: Trace =
77 serde_json::from_slice(&bytes).with_context(|| format!("parse {}", path.display()))?;
78 Ok(r)
79}
80
81pub fn find_trace(state: &AppState, trace_id: &str) -> ApiResult<TraceRef> {
82 list_traces(state)

Callers 1

scan_tracesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…