Skip to content

Commit 13614ec

Browse files
authored
[chore][exporter/googlecloudpubsub] enable exhaustive linter (#25156)
relate #23266
1 parent 07ae612 commit 13614ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

exporter/googlecloudpubsubexporter/watermark.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ func traverseMetrics(metrics pmetric.Metrics, collect collectFunc) {
6767
l := r.ScopeMetrics().At(lix)
6868
for dix := 0; dix < l.Metrics().Len(); dix++ {
6969
d := l.Metrics().At(dix)
70+
//exhaustive:enforce
7071
switch d.Type() {
7172
case pmetric.MetricTypeHistogram:
7273
for pix := 0; pix < d.Histogram().DataPoints().Len(); pix++ {

0 commit comments

Comments
 (0)