mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 09:21:05 +00:00
observability: tracing gum, automatically cross ref traceID (#5079)
* add some gum * bump expander * gum * fix all remaining issues * last fixup * Update node/gum/proc-macro/src/lib.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * change * netowrk * fixins * chore * allow optional fmt str + args, prep for expr as kv field * tracing -> gum rename fallout * restrict further * allow multiple levels of field accesses * another round of docs and a slip of the pen * update ADR * fixup lock fiel * use target: instead of target= * minors * fix * chore * Update node/gum/README.md Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
fa359fd1f7
commit
d631f1dea8
@@ -59,13 +59,13 @@ impl Subsystem1 {
|
||||
match ctx.try_recv().await {
|
||||
Ok(Some(msg)) => {
|
||||
if let FromOverseer::Communication { msg } = msg {
|
||||
tracing::info!("msg {:?}", msg);
|
||||
gum::info!("msg {:?}", msg);
|
||||
}
|
||||
continue 'louy
|
||||
},
|
||||
Ok(None) => (),
|
||||
Err(_) => {
|
||||
tracing::info!("exiting");
|
||||
gum::info!("exiting");
|
||||
break 'louy
|
||||
},
|
||||
}
|
||||
@@ -121,7 +121,7 @@ impl Subsystem2 {
|
||||
"subsystem-2-job",
|
||||
Box::pin(async {
|
||||
loop {
|
||||
tracing::info!("Job tick");
|
||||
gum::info!("Job tick");
|
||||
Delay::new(Duration::from_secs(1)).await;
|
||||
}
|
||||
}),
|
||||
@@ -131,14 +131,14 @@ impl Subsystem2 {
|
||||
loop {
|
||||
match ctx.try_recv().await {
|
||||
Ok(Some(msg)) => {
|
||||
tracing::info!("Subsystem2 received message {:?}", msg);
|
||||
gum::info!("Subsystem2 received message {:?}", msg);
|
||||
continue
|
||||
},
|
||||
Ok(None) => {
|
||||
pending!();
|
||||
},
|
||||
Err(_) => {
|
||||
tracing::info!("exiting");
|
||||
gum::info!("exiting");
|
||||
return
|
||||
},
|
||||
}
|
||||
@@ -189,7 +189,7 @@ fn main() {
|
||||
select! {
|
||||
_ = overseer_fut => break,
|
||||
_ = timer_stream.next() => {
|
||||
tracing::info!("tick");
|
||||
gum::info!("tick");
|
||||
}
|
||||
complete => break,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user