Skip to content

Commit

Permalink
[chore][exporter/googlecloudpubsub] enable exhaustive linter (#25156)
Browse files Browse the repository at this point in the history
relate
#23266
  • Loading branch information
Frapschen committed Aug 11, 2023
1 parent 07ae612 commit 13614ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions exporter/googlecloudpubsubexporter/watermark.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func traverseMetrics(metrics pmetric.Metrics, collect collectFunc) {
l := r.ScopeMetrics().At(lix)
for dix := 0; dix < l.Metrics().Len(); dix++ {
d := l.Metrics().At(dix)
//exhaustive:enforce
switch d.Type() {
case pmetric.MetricTypeHistogram:
for pix := 0; pix < d.Histogram().DataPoints().Len(); pix++ {
Expand Down

0 comments on commit 13614ec

Please sign in to comment.