György Krajcsovits 1cdc956d27 test(rw2): add nhcb testcases to remote write 2.0
Ref: https://github.com/prometheus/prometheus/issues/15021

Also modified spansToSpansProto to not allocate empty bucket spans array
when converting internal model to remote write model.
Otherwise the test TestDecodeWriteV2Request fails since empty array
is marshaled/unmarshaled as nil so we don't get back the exact same
thing.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2025-04-08 15:45:56 +02:00
..
2024-10-29 17:58:44 +08:00