Skip to content

Commit

Permalink
Support writing more types as binary
Browse files Browse the repository at this point in the history
  • Loading branch information
djaglowski committed Feb 25, 2022
1 parent a2e77c2 commit b4182f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/stanza/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ func HashResource(resource map[string]interface{}) uint64 {
fnvHash.Write([]byte(t))
case []byte:
fnvHash.Write(t)
case int, int64:
case bool, int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, float32, float64:
binary.Write(fnvHash, binary.BigEndian, t)
default:
b, _ := json.Marshal(t)
Expand Down

0 comments on commit b4182f7

Please sign in to comment.