From c070fd92773caf2d3d759a69be1462a7e5965451 Mon Sep 17 00:00:00 2001 From: Ziqi Zhao Date: Mon, 14 Aug 2023 03:25:25 +0800 Subject: [PATCH] [chore] [receiver/file] enable exhaustive lint (#25180) **Description:** related #23266 Signed-off-by: Ziqi Zhao --- receiver/filereceiver/file_reader.go | 1 + 1 file changed, 1 insertion(+) diff --git a/receiver/filereceiver/file_reader.go b/receiver/filereceiver/file_reader.go index 44976f1e0aa2..99c4449a9887 100644 --- a/receiver/filereceiver/file_reader.go +++ b/receiver/filereceiver/file_reader.go @@ -93,6 +93,7 @@ func getFirstTimestamp(metrics pmetric.Metrics) pcommon.Timestamp { } func getFirstTimestampFromMetric(metric pmetric.Metric) pcommon.Timestamp { + //exhaustive:enforce switch metric.Type() { case pmetric.MetricTypeGauge: dps := metric.Gauge().DataPoints()