mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-09 04:47:59 +00:00
restructure polkadot-node-jaeger (#2642)
This commit is contained in:
committed by
GitHub
parent
59640a38bc
commit
ea6294fa79
@@ -116,7 +116,7 @@ struct RunningTask {
|
||||
|
||||
/// Sender for communicating with other subsystems and reporting results.
|
||||
sender: mpsc::Sender<FromFetchTask>,
|
||||
|
||||
|
||||
/// Prometheues metrics for reporting results.
|
||||
metrics: Metrics,
|
||||
|
||||
@@ -145,8 +145,8 @@ impl FetchTaskConfig {
|
||||
};
|
||||
}
|
||||
|
||||
let mut span = jaeger::candidate_hash_span(&core.candidate_hash, "availability-distribution");
|
||||
span.add_stage(jaeger::Stage::AvailabilityDistribution);
|
||||
let span = jaeger::Span::new(core.candidate_hash, "availability-distribution")
|
||||
.with_stage(jaeger::Stage::AvailabilityDistribution);
|
||||
|
||||
let prepared_running = RunningTask {
|
||||
session_index: session_info.session_index,
|
||||
@@ -263,10 +263,9 @@ impl RunningTask {
|
||||
let mut bad_validators = Vec::new();
|
||||
let mut label = FAILED;
|
||||
let mut count: u32 = 0;
|
||||
let mut _span = self.span.child_builder("fetch-task")
|
||||
let mut _span = self.span.child("fetch-task")
|
||||
.with_chunk_index(self.request.index.0)
|
||||
.with_relay_parent(&self.relay_parent)
|
||||
.build();
|
||||
.with_relay_parent(self.relay_parent);
|
||||
// Try validators in reverse order:
|
||||
while let Some(validator) = self.group.pop() {
|
||||
let _try_span = _span.child("try");
|
||||
|
||||
Reference in New Issue
Block a user