File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 14
14
(.setLabel span-or-tx (name k) (str v)))
15
15
16
16
(defn set-label [^Span span-or-tx k v]
17
- (.setLabel span-or-tx (name k) (str v)))
17
+ (cond
18
+ (number? v) (.setLabel span-or-tx (name k) ^Number v)
19
+ (boolean? v) (.setLabel span-or-tx (name k) ^boolean v)
20
+ :else (.setLabel span-or-tx (name k) (str v))))
18
21
19
22
(defn set-name [^Span span-or-tx name]
20
23
(.setName span-or-tx name))
Original file line number Diff line number Diff line change 31
31
(let [tx-details (es-find-first-document (str " (processor.event:transaction%20AND%20transaction.id:" @transaction-id " )" ))]
32
32
(is (= " TestTransaction" (get-in tx-details [:transaction :name ])))
33
33
(is (= " 1" (get-in tx-details [:labels :t1 ])))
34
- (is (= " 2 " (get-in tx-details [:labels :t2 ])))
34
+ (is (= 2 (get-in tx-details [:numeric_labels :t2 ])))
35
35
(is (= " true" (get-in tx-details [:labels :t3 ])))
36
36
(is (= " Label 4" (get-in tx-details [:labels :t4 ])))
37
37
(is (= " test-result" (get-in tx-details [:transaction :result ])))
You can’t perform that action at this time.
0 commit comments