prometheus/tsdb/docs
Victor Herrero Otal 0cbbc9b7d3 docs: Fix chunk format documentation for `varint` encoding
While preparing PR #16701, we identified an inconsistency in the chunk
format documentation. The `varint` encoding can require up to 10 bytes
for a 64-bit integer, such as when timestamps are encoded. However, the
chunk length field is a 32-bit integer, which requires at most 5 bytes
in `varint` encoding.

This is reflected in the code, where a maximum of 5 bytes are read when
parsing the chunk length.

    50ba25f273/tsdb/chunks/chunks.go (L709-L711)

    50ba25f273/tsdb/chunks/chunks.go (L47-L48)

Co-authored-by: Istvan Zoltan Ballok <istvan.zoltan.ballok@sap.com>
Signed-off-by: Victor Herrero Otal <victor.herrero.otal@sap.com>
2025-08-15 10:56:21 +02:00
..
format docs: Fix chunk format documentation for `varint` encoding 2025-08-15 10:56:21 +02:00
bstream.md improve bstream comments and doc (#9560) 2021-10-25 18:44:15 +05:30
refs.md Update godoc links and remove note about TSDB versioning (#10754) 2022-05-26 18:34:43 +10:00
usage.md Fix language in docs and comments (#14041) 2024-05-08 17:57:09 +02:00