mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 05:51:02 +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
@@ -15,7 +15,7 @@ pin-project = "1.0.9"
|
||||
rand = "0.8.5"
|
||||
thiserror = "1.0.30"
|
||||
fatality = "0.0.6"
|
||||
tracing = "0.1.32"
|
||||
gum = { package = "tracing-gum", path = "../gum" }
|
||||
derive_more = "0.99.17"
|
||||
lru = "0.7.3"
|
||||
|
||||
|
||||
@@ -586,7 +586,7 @@ where
|
||||
)
|
||||
.await
|
||||
{
|
||||
tracing::error!(
|
||||
gum::error!(
|
||||
job = Job::NAME,
|
||||
parent_hash = %hash,
|
||||
err = ?e,
|
||||
@@ -732,7 +732,7 @@ impl<Job: JobTrait, Spawner> JobSubsystem<Job, Spawner> {
|
||||
}
|
||||
}
|
||||
Err(err) => {
|
||||
tracing::error!(
|
||||
gum::error!(
|
||||
job = Job::NAME,
|
||||
err = ?err,
|
||||
"error receiving message from subsystem context for job",
|
||||
@@ -751,7 +751,7 @@ impl<Job: JobTrait, Spawner> JobSubsystem<Job, Spawner> {
|
||||
};
|
||||
|
||||
if let Err(e) = res {
|
||||
tracing::warn!(err = ?e, "failed to handle command from job");
|
||||
gum::warn!(err = ?e, "failed to handle command from job");
|
||||
}
|
||||
}
|
||||
complete => break,
|
||||
|
||||
Reference in New Issue
Block a user