feat: add tracing
This commit is contained in:
parent
ab599206c5
commit
1d1dcd622f
24 changed files with 146 additions and 68 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use std::borrow::Cow;
|
||||
use std::{borrow::Cow, fmt::Debug};
|
||||
|
||||
use serde::Serialize;
|
||||
|
||||
|
|
@ -59,7 +59,8 @@ impl RustyPipeQuery {
|
|||
/// );
|
||||
/// # });
|
||||
/// ```
|
||||
pub async fn resolve_url<S: AsRef<str>>(
|
||||
#[tracing::instrument(skip(self))]
|
||||
pub async fn resolve_url<S: AsRef<str> + Debug>(
|
||||
self,
|
||||
url: S,
|
||||
resolve_albums: bool,
|
||||
|
|
@ -236,7 +237,8 @@ impl RustyPipeQuery {
|
|||
/// );
|
||||
/// # });
|
||||
/// ```
|
||||
pub async fn resolve_string<S: AsRef<str>>(
|
||||
#[tracing::instrument(skip(self))]
|
||||
pub async fn resolve_string<S: AsRef<str> + Debug>(
|
||||
self,
|
||||
s: S,
|
||||
resolve_albums: bool,
|
||||
|
|
|
|||
Reference in a new issue