use reqwest_middleware::{ClientBuilder, ClientWithMiddleware};
use reqwest_tracing::{SpanBackendWithUrl, TracingMiddleware};
pub struct TracedHttpClient;
impl TracedHttpClient {
#[allow(clippy::new_ret_no_self)]
pub fn new() -> ClientWithMiddleware {
ClientBuilder::new(reqwest::Client::new())
.with(TracingMiddleware::<SpanBackendWithUrl>::new())
.build()
}
}