Joshua Hesketh f2064c7987
NH: Do not re-use spans between histograms (#14771)
promql, tsdb (histograms): Do not re-use spans between histograms

When multiple points exist with the same native histogram schemas they
share their spans.
This causes a problem when a native histogram (NH) schema is modified (for example, during
a Sum) then the other NH's with the same spans are also modified. As such,
we should create a new Span for each NH. This will ensure NH's interfaces
are safe to use without considering the effect on other histograms.

At the moment this doesn't present itself as a problem because in all
aggregations and functions operating on native histograms they are copied
by the promql query engine first.

Signed-off-by: Joshua Hesketh <josh@nitrotech.org>

---------

Signed-off-by: Joshua Hesketh <josh@nitrotech.org>
2024-09-04 12:07:16 +02:00
..
2024-08-21 11:09:37 +08:00
2024-01-17 22:26:32 +08:00
2024-07-05 15:25:42 +02:00
2023-11-11 19:22:06 +01:00
2024-08-14 13:41:44 +01:00
2021-02-22 20:28:02 +01:00
2024-08-28 11:26:57 +08:00
2023-12-11 12:18:54 +00:00
2024-08-14 13:41:44 +01:00
2024-08-23 08:20:20 +02:00
2022-10-07 16:20:20 +00:00
2023-12-11 12:18:54 +00:00
2024-07-03 09:28:38 -07:00

TSDB

GoPkg

This directory contains the Prometheus TSDB (Time Series DataBase) library, which handles storage and querying of all Prometheus v2 data.

Documentation

External resources

A series of blog posts explaining different components of TSDB: