Skip to content

Commit

Permalink
Move instrument level to trace (#658)
Browse files Browse the repository at this point in the history
This was unintentionally not set to trace level, this should save us 6.7% of the time spent based on the metrics.
  • Loading branch information
XAMPPRocky authored Dec 6, 2022
1 parent c79abdf commit 0d61c9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ impl Proxy {
}

/// Send a packet received from `recv_addr` to an endpoint.
#[tracing::instrument(skip_all, fields(source = %recv_addr, dest = %endpoint.address))]
#[tracing::instrument(level="trace", skip_all, fields(source = %recv_addr, dest = %endpoint.address))]
async fn session_send_packet(
packet: &[u8],
recv_addr: EndpointAddress,
Expand Down

0 comments on commit 0d61c9d

Please sign in to comment.