(root: &Path)
| 71 | } |
| 72 | |
| 73 | pub 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 | |
| 81 | pub fn find_trace(state: &AppState, trace_id: &str) -> ApiResult<TraceRef> { |
| 82 | list_traces(state) |
no outgoing calls
no test coverage detected
searching dependent graphs…