Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalFloat ¶ added in v0.44.0
MarshalFloat marshals a float value using the passed jsoniter stream.
func MarshalHistogram ¶ added in v0.44.0
func MarshalHistogram(h *histogram.FloatHistogram, stream *jsoniter.Stream)
MarshalHistogram marshals a histogram value using the passed jsoniter stream. It writes something like:
{ "count": "42", "sum": "34593.34", "buckets": [ [ 3, "-0.25", "0.25", "3"], [ 0, "0.25", "0.5", "12"], [ 0, "0.5", "1", "21"], [ 0, "2", "4", "6"] ] }
The 1st element in each bucket array determines if the boundaries are inclusive (AKA closed) or exclusive (AKA open):
0: lower exclusive, upper inclusive 1: lower inclusive, upper exclusive 2: both exclusive 3: both inclusive
The 2nd and 3rd elements are the lower and upper boundary. The 4th element is the bucket count.
func MarshalTimestamp ¶
MarshalTimestamp marshals a point timestamp using the passed jsoniter stream.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.