Skip to content

Commit 5f1bad3

Browse files
committed
Fixing panic with float32 and formats
1 parent 74d7aea commit 5f1bad3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pkg/formats/util/util.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ func SetAttr(attr map[string]interface{}, in *kt.JCHF, metrics map[string]kt.Met
7070
if vt > 0 {
7171
attr[k] = int(vt)
7272
}
73+
case float32:
74+
if vt > 0 {
75+
attr[k] = vt
76+
}
7377
default:
7478
panic(fmt.Sprintf("Unknown type: %v", v.(int32)))
7579
}

0 commit comments

Comments
 (0)