diff --git a/crates/librqbit/src/session.rs b/crates/librqbit/src/session.rs index bc9d940..253ef02 100644 --- a/crates/librqbit/src/session.rs +++ b/crates/librqbit/src/session.rs @@ -940,9 +940,6 @@ impl Session { ) -> BoxFuture<'a, anyhow::Result> { async move { // Magnet links are different in that we first need to discover the metadata. - let span = error_span!("add_torrent"); - let _ = span.enter(); - let opts = opts.unwrap_or_default(); let paused = opts.list_only || opts.paused; @@ -1076,6 +1073,7 @@ impl Session { self.main_torrent_info(add_res, opts).await } + .instrument(error_span!("add_torrent")) .boxed() }