Skip to content

Commit

Permalink
[chore] [exporter/alibabacloudlogservice] enable exhaustive lint (ope…
Browse files Browse the repository at this point in the history
…n-telemetry#25877)

**Description:** 
related open-telemetry#23266

Signed-off-by: Ziqi Zhao <[email protected]>
  • Loading branch information
fatsheep9146 authored and Samiur Arif committed Aug 18, 2023
1 parent 57f5f58 commit 562a78d
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 562a78d

Please sign in to comment.