Skip to content

Commit

Permalink
Use helper trace_span
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed Sep 21, 2023
1 parent f7b45c1 commit 8028140
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/optimiser/taso.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ where
recv(rx_result) -> msg => {
match msg {
Ok(hashed_circs) => {
let send_result = tracing::span!(tracing::Level::TRACE, "recv_result").in_scope(|| {
let send_result = tracing::trace_span!(target: "taso::metrics", "recv_result").in_scope(|| {
jobs_completed += 1;
for (circ_hash, circ) in &hashed_circs {
circ_cnt += 1;
Expand Down
2 changes: 1 addition & 1 deletion src/optimiser/taso/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ where
) {
while let Ok((_hash, circ)) = rx_work.recv() {
let hashed_circs = Self::process_circ(circ, &rewriter, &strategy);
let send = tracing::span!(tracing::Level::TRACE, "TasoWorker::send_result")
let send = tracing::trace_span!(target: "taso::metrics", "TasoWorker::send_result")
.in_scope(|| tx_result.send(hashed_circs));
if send.is_err() {
// The main thread closed the send channel, we can stop.
Expand Down

0 comments on commit 8028140

Please sign in to comment.