feat: compact trace (#384)

* feat: compact trace

* align with changes

* add deserialization

* add tests and deserializer

* fix bindings

* first draft

* mock time; update snapshots

* fix

* Node.js test fix

* fix merge

* fix utc override

* fix cross-env

* fix workflow

* fix

---------

Co-authored-by: bojancrevar <bojan.crevar@gorules.io>
This commit is contained in:
stefan-gorules
2025-08-25 12:33:07 +02:00
committed by GitHub
co-authored by bojancrevar
parent 4a59f222db
commit 80fe4021c2
76 changed files with 2929 additions and 965 deletions
+6 -4
View File
@@ -152,12 +152,14 @@ impl PyZenEngine {
)
.await
.map(serde_json::to_value)
.map_err(|e| {
anyhow!(
serde_json::to_string(e.as_ref()).unwrap_or_else(|_| e.to_string())
)
})
})
.await
.context("Failed to join threads")?
.map_err(|e| {
anyhow!(serde_json::to_string(e.as_ref()).unwrap_or_else(|_| e.to_string()))
})?
.context("Failed to join threads")??
.context("Failed to serialize result")?;
Python::with_gil(|py| PyValue(value).into_py_any(py))