Skip to content

Commit 4692bb9

Browse files
fix: corrected attribute-intValue to json number
1 parent 74ddc86 commit 4692bb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/otel/otel_utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub fn collect_json_from_value(key: &String, value: OtelValue) -> BTreeMap<Strin
3131
value_json.insert(key.to_string(), Value::Bool(bool_val));
3232
}
3333
OtelValue::IntValue(int_val) => {
34-
value_json.insert(key.to_string(), Value::String(int_val.to_string()));
34+
value_json.insert(key.to_string(), Value::Number(int_val.into()));
3535
}
3636
OtelValue::DoubleValue(double_val) => {
3737
if let Some(number) = serde_json::Number::from_f64(double_val) {

0 commit comments

Comments
 (0)