From f7c60bf97ef3c305157751eafd3531e8f66ff755 Mon Sep 17 00:00:00 2001 From: Bartlomiej Plotka Date: Tue, 10 Mar 2026 15:55:40 +0000 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Bartlomiej Plotka --- compliance/remote_write_sender_test.go | 2 +- tsdb/agent/db.go | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/compliance/remote_write_sender_test.go b/compliance/remote_write_sender_test.go index f6ddea1b9a..9822e2d3e6 100644 --- a/compliance/remote_write_sender_test.go +++ b/compliance/remote_write_sender_test.go @@ -95,7 +95,7 @@ var _ sender.Sender = internalPrometheus{} // TestRemoteWriteSender runs remote write sender compliance tests defined in // https://github.com/prometheus/compliance/tree/main/remotewrite/sender against -// both agent and sever modes. +// both agent and server modes. func TestRemoteWriteSender(t *testing.T) { t.Run("mode=server", func(t *testing.T) { t.Parallel() diff --git a/tsdb/agent/db.go b/tsdb/agent/db.go index f1d0aff18f..a5d0879ed9 100644 --- a/tsdb/agent/db.go +++ b/tsdb/agent/db.go @@ -95,7 +95,9 @@ type Options struct { // EnableSTStorage determines whether agent DB should write a Start Timestamp (ST) // per sample to WAL. - // Represents 'st-storage' feature flag. + // Controlled by the `--enable-feature=st-storage` CLI flag; when enabled, ST is + // persisted to the WAL for samples that include a non-zero start timestamp in + // supported record types. EnableSTStorage bool }