Skip to content

Commit

Permalink
instrument connect
Browse files Browse the repository at this point in the history
  • Loading branch information
rkusa committed Dec 3, 2023
1 parent 925932c commit 573fef2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions postgres/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ pub use types::SqlType;

static POOL: OnceCell<Pool> = OnceCell::new();

#[tracing::instrument]
pub async fn connect() -> Result<Object, Error> {
// Don't trace connect, as this would create an endless loop of connecting again and
// again when persisting the connect trace!
Expand Down

0 comments on commit 573fef2

Please sign in to comment.