From 13d16d937818fb6057405ffd86650e65e838c592 Mon Sep 17 00:00:00 2001 From: Peter Taoussanis Date: Wed, 5 Nov 2025 07:00:17 +0100 Subject: [PATCH] [fix] OpenTelemetry handler: add missing line info to output Previous code was a vestigial leftover from when signals had {:line :column ...} rather than {:coords [ ] ...} --- main/src/taoensso/telemere/open_telemetry.clj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main/src/taoensso/telemere/open_telemetry.clj b/main/src/taoensso/telemere/open_telemetry.clj index ec5602a..2ff42f3 100644 --- a/main/src/taoensso/telemere/open_telemetry.clj +++ b/main/src/taoensso/telemere/open_telemetry.clj @@ -219,15 +219,15 @@ (if (or common-attrs trace-attrs) (let [ab (Attributes/builder)] - (when-let [ns (get signal :ns)] (.put ab "ns" (str ns))) - (when-let [line (get signal :line)] (.put ab "line" (long line))) + (when-let [ns (get signal :ns)] (.put ab "ns" (str ns))) + (when-let [line (enc/get-in* signal [:coords 0])] (.put ab "line" (long line))) (when-let [attrs common-attrs] (put-attrs! ab attrs)) (when-let [attrs trace-attrs] (put-attrs! ab attrs)) (.build ab)) ;; Common case - (when-let [ns (get signal :ns)] - (if-let [line (get signal :line)] + (when-let [ns (get signal :ns)] + (if-let [line (enc/get-in* signal [:coords 0])] (Attributes/of ak-ns ns, ak-line (long line)) (Attributes/of ak-ns ns)))))))