mirror of
https://github.com/prometheus/prometheus.git
synced 2025-09-21 22:01:01 +02:00
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>