vipyrsec / dragonfly-client-rs

Dragonfly client written in Rust
https://docs.vipyrsec.com/dragonfly-client-rs/dragonfly_client_rs/
MIT License
4 stars 2 forks source link

Use `#[tracing::instrument]` #49

Open AbooMinister25 opened 1 year ago

AbooMinister25 commented 1 year ago

Rather than manually creating spans like in the following: https://github.com/vipyrsec/dragonfly-client-rs/blob/d3aa07f6596f2fa09dc884af7db2f781d22370fd/src/main.rs#L54

you could instead use instrument your functions with tracing::instrument - I'd also propose doing this in more places where there weren't spans created before.