chore: enable tracing span for extractors
This commit is contained in:
parent
33565fdc27
commit
b7eb4d6048
1 changed files with 3 additions and 1 deletions
|
@ -4,7 +4,7 @@ use crate::{
|
|||
util::jobs::JobContainer,
|
||||
};
|
||||
use anyhow::Result;
|
||||
use log::{info, trace};
|
||||
use tracing::{error, info, trace};
|
||||
use rayon::iter::{IntoParallelRefIterator, ParallelIterator};
|
||||
use std::{
|
||||
borrow::Borrow,
|
||||
|
@ -59,6 +59,7 @@ pub trait Extractor {
|
|||
}
|
||||
}
|
||||
|
||||
#[tracing::instrument(skip_all)]
|
||||
pub fn extract_all<D: Borrow<UpEndDatabase>>(
|
||||
db: D,
|
||||
store: Arc<Box<dyn UpStore + Send + Sync>>,
|
||||
|
@ -102,6 +103,7 @@ pub fn extract_all<D: Borrow<UpEndDatabase>>(
|
|||
Ok(result)
|
||||
}
|
||||
|
||||
#[tracing::instrument(skip(connection, store, job_container))]
|
||||
pub fn extract(
|
||||
address: &Address,
|
||||
connection: &UpEndConnection,
|
||||
|
|
Loading…
Reference in a new issue