Skip to content

Commit

Permalink
exporter/prometheus: use zap.String for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
odeke-em committed Apr 12, 2021
1 parent 356cfeb commit 1a89d7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exporter/prometheusexporter/accumulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ func (a *lastValueAccumulator) addMetric(metric pdata.Metric, il pdata.Instrumen
return a.accumulateSummary(metric, il, now)
default:
a.logger.With(
zap.Any("data_type", metric.DataType()),
zap.Any("metric_name", metric.Name()),
zap.String("data_type", string(metric.DataType())),
zap.String("metric_name", metric.Name()),
).Error("failed to translate metric")
}

Expand Down

0 comments on commit 1a89d7f

Please sign in to comment.