confluent-kafka-go
confluent-kafka-go copied to clipboard
Add Stats.Bytes()
Given that Go uses []byte mostly to represent JSON data, it makes a lot of sense to add a Stats.Bytes() call returning a []byte instead of a string.
Perhaps it might even make sense to store the data as []byte internally in the Stats struct, but that's then an implementation detail which can be changed later.