Skip to content

Commit

Permalink
[chore] [exporter/alibabacloudlogservice] enable exhaustive lint (#25877
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 committed Aug 18, 2023
1 parent 8353202 commit 06f1f57
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,9 @@ func doubleSummaryMetricsToLogs(name string, data pmetric.SummaryDataPointSlice,
}

func metricDataToLogServiceData(md pmetric.Metric, defaultLabels KeyValues) (logs []*sls.Log) {
//exhaustive:enforce
switch md.Type() {
case pmetric.MetricTypeEmpty:
case pmetric.MetricTypeEmpty, pmetric.MetricTypeExponentialHistogram:
break
case pmetric.MetricTypeGauge:
return numberMetricsToLogs(md.Name(), md.Gauge().DataPoints(), defaultLabels)
Expand Down

0 comments on commit 06f1f57

Please sign in to comment.