| 226 | } |
| 227 | |
| 228 | func IncrementBytes(country string, direction Direction, count uint64, retransmit bool) { |
| 229 | var transmission TransmissionType |
| 230 | if retransmit { |
| 231 | transmission = TransmissionRetransmit |
| 232 | } else { |
| 233 | transmission = TransmissionInitial |
| 234 | } |
| 235 | promPacketBytes.WithLabelValues(string(direction), string(transmission), country).Add(float64(count)) |
| 236 | |
| 237 | if direction == Incoming { |
| 238 | bytesIn.Add(count) |
| 239 | } else { |
| 240 | bytesOut.Add(count) |
| 241 | if retransmit { |
| 242 | retransmitBytes.Add(count) |
| 243 | } |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | func IncrementRTCP(country string, direction Direction, nack, pli, fir uint32) { |
| 248 | if nack > 0 { |