Skip to content

Commit

Permalink
[pkg/resourcetotelemetry] enable exhaustive lint (#26075)
Browse files Browse the repository at this point in the history
**Description:** 
related #23266

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
  • Loading branch information
fatsheep9146 authored Aug 23, 2023
1 parent ad2a076 commit eba9ae2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/resourcetotelemetry/resource_to_telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func convertToMetricsAttributes(md pmetric.Metrics) pmetric.Metrics {

// addAttributesToMetric adds additional labels to the given metric
func addAttributesToMetric(metric pmetric.Metric, labelMap pcommon.Map) {
//exhaustive:enforce
switch metric.Type() {
case pmetric.MetricTypeGauge:
addAttributesToNumberDataPoints(metric.Gauge().DataPoints(), labelMap)
Expand Down

0 comments on commit eba9ae2

Please sign in to comment.