Skip to content

Commit

Permalink
fix: temporarily rename prisma:engine:query back to prisma:engine (
Browse files Browse the repository at this point in the history
  • Loading branch information
aqrln authored Nov 5, 2024
1 parent 92f6d89 commit 6051973
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion query-engine/query-engine-c-abi/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ impl QueryEngine {

let query = RequestBody::try_from_str(&body, engine.engine_protocol())?;

let span = tracing::info_span!("prisma:engine:query", user_facing = true);
let span = tracing::info_span!("prisma:engine", user_facing = true);
let parent_context = telemetry::helpers::restore_remote_context_from_json_str(&trace);
let traceparent = TraceParent::from_remote_context(&parent_context);
span.set_parent(parent_context);
Expand Down
2 changes: 1 addition & 1 deletion query-engine/query-engine-node-api/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ impl QueryEngine {

let query = RequestBody::try_from_str(&body, engine.engine_protocol())?;

let span = tracing::info_span!("prisma:engine:query", user_facing = true);
let span = tracing::info_span!("prisma:engine", user_facing = true);
let parent_context = telemetry::helpers::restore_remote_context_from_json_str(&trace);
let traceparent = TraceParent::from_remote_context(&parent_context);
span.set_parent(parent_context);
Expand Down
2 changes: 1 addition & 1 deletion query-engine/query-engine-wasm/src/wasm/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ impl QueryEngine {
let query = RequestBody::try_from_str(&body, engine.engine_protocol())?;

async move {
let span = tracing::info_span!("prisma:engine:query", user_facing = true);
let span = tracing::info_span!("prisma:engine", user_facing = true);
let parent_context = telemetry::helpers::restore_remote_context_from_json_str(&trace);
let traceparent = TraceParent::from_remote_context(&parent_context);
span.set_parent(parent_context);
Expand Down
2 changes: 1 addition & 1 deletion query-engine/query-engine/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ async fn request_handler(cx: Arc<PrismaContext>, req: Request<Body>) -> Result<R
let headers = req.headers();
let tx_id = try_get_transaction_id(headers);
let (span, traceparent, ref capturer) =
setup_telemetry(info_span!("prisma:engine:query", user_facing = true), headers).await;
setup_telemetry(info_span!("prisma:engine", user_facing = true), headers).await;

let query_timeout = query_timeout(headers);

Expand Down

0 comments on commit 6051973

Please sign in to comment.