| 134 | } |
| 135 | |
| 136 | type SampleHistogramPair struct { |
| 137 | Timestamp Time |
| 138 | // Histogram should never be nil, it's only stored as pointer for efficiency. |
| 139 | Histogram *SampleHistogram |
| 140 | } |
| 141 | |
| 142 | func (s SampleHistogramPair) MarshalJSON() ([]byte, error) { |
| 143 | if s.Histogram == nil { |
nothing calls this directly
no outgoing calls
no test coverage detected