Skip to content

Commit

Permalink
[chore][exporter/azuredataexplore]enable exhaustive linter (#25130)
Browse files Browse the repository at this point in the history
relate
#23266
  • Loading branch information
Frapschen authored Aug 10, 2023
1 parent a8409a2 commit db67dd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exporter/azuredataexplorerexporter/metricsdata_to_adx.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func mapToAdxMetric(res pcommon.Resource, md pmetric.Metric, scopeattrs map[stri
ResourceAttributes: resourceAttrs,
}
}
//exhaustive:enforce
switch md.Type() {
case pmetric.MetricTypeGauge:
dataPoints := md.Gauge().DataPoints()
Expand Down Expand Up @@ -230,7 +231,7 @@ func mapToAdxMetric(res pcommon.Resource, md pmetric.Metric, scopeattrs map[stri
}
}
return adxMetrics
case pmetric.MetricTypeEmpty:
case pmetric.MetricTypeExponentialHistogram, pmetric.MetricTypeEmpty:
fallthrough
default:
logger.Warn(
Expand Down

0 comments on commit db67dd8

Please sign in to comment.