mirror of
https://github.com/gorules/zen.git
synced 2026-10-12 16:02:59 +00:00
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:
co-authored by
bojancrevar
parent
4a59f222db
commit
80fe4021c2
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user