Skip to content

Commit

Permalink
fix(query-engine-wasm): add response_json_serialization span (#5089)
Browse files Browse the repository at this point in the history
Add missing `prisma:engine:response_json_serialization` span in the WASM
query engine. After this we can enable running the tracing tests with
WASM in the client repo.
  • Loading branch information
aqrln authored Dec 16, 2024
1 parent 79c7f7d commit a5ab6a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion query-engine/query-engine-wasm/src/wasm/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ impl QueryEngine {
.instrument(span)
.await;

Ok(serde_json::to_string(&response)?)
let serde_span = tracing::info_span!("prisma:engine:response_json_serialization", user_facing = true);
Ok(serde_span.in_scope(|| serde_json::to_string(&response))?)
}
.await
}
Expand Down

0 comments on commit a5ab6a9

Please sign in to comment.