Skip to content

Commit

Permalink
[chore] fix exhaustive lint for dynatrace exporter (#23951)
Browse files Browse the repository at this point in the history
**Description:** 
related #23266

Signed-off-by: Ziqi Zhao <[email protected]>
  • Loading branch information
fatsheep9146 authored Jul 4, 2023
1 parent 5d1f251 commit dbcf37a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,6 @@ issues:
- path: datasetexporter
linters:
- exhaustive
- path: dynatraceexporter
linters:
- exhaustive
- path: elasticsearchexporter
linters:
- exhaustive
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ func SerializeMetric(logger *zap.Logger, prefix string, metric pmetric.Metric, d
metricLines = serializeSum(logger, prefix, metric, defaultDimensions, staticDimensions, prev, metricLines)
case pmetric.MetricTypeHistogram:
metricLines = serializeHistogram(logger, prefix, metric, defaultDimensions, staticDimensions, metricLines)
case pmetric.MetricTypeEmpty:
fallthrough
case pmetric.MetricTypeExponentialHistogram:
fallthrough
case pmetric.MetricTypeSummary:
fallthrough
default:
return nil, fmt.Errorf("metric type %s unsupported", metric.Type().String())
}
Expand Down

0 comments on commit dbcf37a

Please sign in to comment.