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,
|
util::jobs::JobContainer,
|
||||||
};
|
};
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use log::{info, trace};
|
use tracing::{error, info, trace};
|
||||||
use rayon::iter::{IntoParallelRefIterator, ParallelIterator};
|
use rayon::iter::{IntoParallelRefIterator, ParallelIterator};
|
||||||
use std::{
|
use std::{
|
||||||
borrow::Borrow,
|
borrow::Borrow,
|
||||||
|
@ -59,6 +59,7 @@ pub trait Extractor {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[tracing::instrument(skip_all)]
|
||||||
pub fn extract_all<D: Borrow<UpEndDatabase>>(
|
pub fn extract_all<D: Borrow<UpEndDatabase>>(
|
||||||
db: D,
|
db: D,
|
||||||
store: Arc<Box<dyn UpStore + Send + Sync>>,
|
store: Arc<Box<dyn UpStore + Send + Sync>>,
|
||||||
|
@ -102,6 +103,7 @@ pub fn extract_all<D: Borrow<UpEndDatabase>>(
|
||||||
Ok(result)
|
Ok(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[tracing::instrument(skip(connection, store, job_container))]
|
||||||
pub fn extract(
|
pub fn extract(
|
||||||
address: &Address,
|
address: &Address,
|
||||||
connection: &UpEndConnection,
|
connection: &UpEndConnection,
|
||||||
|
|
Loading…
Reference in a new issue