diff --git a/crates/ndc-clickhouse/src/connector/handler/query.rs b/crates/ndc-clickhouse/src/connector/handler/query.rs index 5020aa8..f7abfc2 100644 --- a/crates/ndc-clickhouse/src/connector/handler/query.rs +++ b/crates/ndc-clickhouse/src/connector/handler/query.rs @@ -27,7 +27,7 @@ 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, @@ -35,7 +35,7 @@ pub async fn query( &statement_string, ¶meters, ) - .instrument(execution_span) + .instrument(tracing::info_span!("Execute SQL query")) .await .map_err(|err| QueryError::Other(err.to_string().into()))?;