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