Skip to content

Commit

Permalink
receiver/prometheus: Update transaction with new appendable interface…
Browse files Browse the repository at this point in the history
…'s functions

Signed-off-by: Arthur Silva Sens <[email protected]>
  • Loading branch information
ArthurSens committed Dec 17, 2024
1 parent 22e31ec commit f9b819c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions receiver/prometheusreceiver/internal/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,15 @@ func (t *transaction) AppendCTZeroSample(_ storage.SeriesRef, _ labels.Labels, _
return 0, nil
}

func (t *transaction) AppendHistogramCTZeroSample(_ storage.SeriesRef, _ labels.Labels, _, _ int64, _ *histogram.Histogram, _ *histogram.FloatHistogram) (storage.SeriesRef, error) {
// TODO: implement this func
return 0, nil
}

func (t *transaction) SetOptions(opts *storage.AppendOptions) {
// TODO: implement this func
}

func (t *transaction) getSeriesRef(ls labels.Labels, mtype pmetric.MetricType) uint64 {
var hash uint64
hash, t.bufBytes = getSeriesRef(t.bufBytes, ls, mtype)
Expand Down

0 comments on commit f9b819c

Please sign in to comment.