Skip to content

Commit

Permalink
[fix] Trace formatting: properly format nil ids
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaoussanis committed Dec 22, 2024
1 parent d61f6c2 commit 68a894e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions projects/main/src/taoensso/telemere/utils.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,11 @@
(comment ((signal-preamble-fn) (tel/with-signal (tel/event! ::ev-id))))

(defn- format-parent [ns {:keys [id uid]}]
{:id (symbol (format-id ns id)) :uid uid})
(if id
{:id (symbol (format-id ns id)), :uid uid}
{:id (symbol (format-id ns id))}))

(comment (str (format-parent (str *ns*) {:id ::foo})))
(comment (str (format-parent (str *ns*) {:id ::id1 :uid "uid1"})))

(defn signal-content-fn
"Experimental, subject to change.
Expand Down

0 comments on commit 68a894e

Please sign in to comment.