Skip to content

Commit

Permalink
fix(chstorage): send histogram exemplars too
Browse files Browse the repository at this point in the history
  • Loading branch information
tdakkota committed Dec 11, 2023
1 parent 229746d commit 4065b54
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions internal/chstorage/inserter_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,17 @@ func (b *metricsBatch) addHistogramPoints(name string, res pcommon.Map, slice pm

b.addName(name)
b.addLabels(attrs)
if err := b.addExemplars(
exemplarSeries{
Name: name,
Timestamp: ts,
Attributes: attrs,
Resource: res,
},
point.Exemplars(),
); err != nil {
return errors.Wrap(err, "map exemplars")
}
// Save original histogram.
c.name.Append(name)
c.timestamp.Append(ts)
Expand Down

0 comments on commit 4065b54

Please sign in to comment.