Skip to content

Commit

Permalink
add debug log with parameterized generated sql, remove from execution…
Browse files Browse the repository at this point in the history
… span
  • Loading branch information
BenoitRanque committed Apr 23, 2024
1 parent c169321 commit 81509cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ndc-clickhouse/src/connector/handler/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ pub async fn query(
.await
.map_err(|err| QueryError::Other(err.to_string().into()))?;

let execution_span = tracing::info_span!("Execute SQL query", "query.SQL" = statement_string);
tracing::event!(Level::DEBUG, "Generated SQL" = statement_string);

let rowsets = execute_query(
&client,
&configuration.connection,
&statement_string,
&parameters,
)
.instrument(execution_span)
.instrument(tracing::info_span!("Execute SQL query"))
.await
.map_err(|err| QueryError::Other(err.to_string().into()))?;

Expand Down

0 comments on commit 81509cf

Please sign in to comment.