Skip to content

Commit

Permalink
Normalize tracing instrument macro syntax (#1261)
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-jplatte authored Mar 6, 2024
1 parent 2ee69c8 commit 8f328f0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bridge/svix-bridge-plugin-queue/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ async fn run_inner(consumer: &(impl Consumer + Send + Sync)) -> std::io::Result<
}
}

#[tracing::instrument(skip_all, level="error", fields(
app_id = app_id,
#[tracing::instrument(skip_all, level = "error", fields(
app_id,
event_type = message.event_type
))]
async fn create_svix_message(
Expand Down
4 changes: 2 additions & 2 deletions bridge/svix-bridge/src/webhook_receiver/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ pub async fn run(

#[instrument(
skip_all,
level="error",
level = "error",
fields(
integration_id=integration_id.as_ref(),
integration_id = integration_id.as_ref(),
)
)]
async fn route(
Expand Down
4 changes: 2 additions & 2 deletions server/svix-server/src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ async fn make_http_call(
}
}

#[tracing::instrument(skip_all, fields(response_code, msg_dest_id=msg_dest.id.0))]
#[tracing::instrument(skip_all, fields(response_code, msg_dest_id = msg_dest.id.0))]
async fn handle_successful_dispatch(
WorkerContext { cache, db, .. }: &WorkerContext<'_>,
DispatchContext {
Expand Down Expand Up @@ -445,7 +445,7 @@ fn calculate_retry_delay(duration: Duration, err: Error) -> Duration {
.gen_range(duration.mul_f32(1.0 - JITTER_DELTA)..=duration.mul_f32(1.0 + JITTER_DELTA))
}

#[tracing::instrument(skip_all, fields(response_code, msg_dest_id=msg_dest.id.0))]
#[tracing::instrument(skip_all, fields(response_code, msg_dest_id = msg_dest.id.0))]
async fn handle_failed_dispatch(
WorkerContext {
db,
Expand Down

0 comments on commit 8f328f0

Please sign in to comment.