mirror of
https://github.com/taoensso/telemere.git
synced 2025-12-17 09:51:12 +00:00
[fix] Trace formatting: always include root info
This commit is contained in:
parent
68a894edab
commit
f522307ee0
1 changed files with 4 additions and 8 deletions
|
|
@ -600,12 +600,8 @@
|
||||||
(let [{:keys [ns uid parent root data kvs ctx #?@(:clj [host thread]) sample-rate]} signal]
|
(let [{:keys [ns uid parent root data kvs ctx #?@(:clj [host thread]) sample-rate]} signal]
|
||||||
(when sample-rate (af " sample: " (vf sample-rate)))
|
(when sample-rate (af " sample: " (vf sample-rate)))
|
||||||
(when uid (af " uid: " (vf uid)))
|
(when uid (af " uid: " (vf uid)))
|
||||||
(when parent
|
(when (and parent (not= parent root)) (af " parent: " (vf (format-parent ns parent)))) ; {:keys [id uid]}
|
||||||
(if (= parent root)
|
(when root (af " root: " (vf (format-parent ns root)))) ; {:keys [id uid]}
|
||||||
(do (af " parent: " (vf (format-parent ns parent)) " (also root)")) ; {:keys [id uid]}
|
|
||||||
(do
|
|
||||||
(do (af " parent: " (vf (format-parent ns parent)))) ; {:keys [id uid]}
|
|
||||||
(when root (af " root: " (vf (format-parent ns root))))))) ; {:keys [id uid]}
|
|
||||||
|
|
||||||
#?(:clj (when (enc/and* host incl-host?) (af " host: " (vf host)))) ; {:keys [ name ip]}
|
#?(:clj (when (enc/and* host incl-host?) (af " host: " (vf host)))) ; {:keys [ name ip]}
|
||||||
#?(:clj (when (enc/and* thread incl-thread?) (af " thread: " (vf thread)))) ; {:keys [group name id]}
|
#?(:clj (when (enc/and* thread incl-thread?) (af " thread: " (vf thread)))) ; {:keys [group name id]}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue