Add adds the given WriteResponseStats to this WriteResponseStats. If this WriteResponseStats is empty, it will be replaced by the given WriteResponseStats.
(rs WriteResponseStats)
| 183 | // Add adds the given WriteResponseStats to this WriteResponseStats. |
| 184 | // If this WriteResponseStats is empty, it will be replaced by the given WriteResponseStats. |
| 185 | func (s *WriteResponseStats) Add(rs WriteResponseStats) { |
| 186 | s.confirmed = rs.confirmed |
| 187 | s.Samples += rs.Samples |
| 188 | s.Histograms += rs.Histograms |
| 189 | s.Exemplars += rs.Exemplars |
| 190 | } |
| 191 | |
| 192 | // parseWriteResponseStats returns WriteResponseStats parsed from the response headers. |
| 193 | // |