mirror of https://github.com/prometheus/prometheus
Browse Source
While empty buckets can make sense in the internal representation (by joining spans that would otherwise need more overhead for separate representation), there are no spans in the JSON rendering. Therefore, the JSON should not contain any empty buckets, since any buckets not included in the output counts as empty anyway. This changes both the inefficient MarshalJSON implementation as well as the jsoniter implementation. Signed-off-by: beorn7 <beorn@grafana.com>pull/10666/head
beorn7
3 years ago
2 changed files with 7 additions and 1 deletions
Loading…
Reference in new issue