Skip to content

Commit b8b8f44

Browse files
committed
fixup! Add Metric.Emit
Rename Metric.Emit to Metric.Sample
1 parent 6c0ee44 commit b8b8f44

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/executor/ramping_arrival_rate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ func (varr RampingArrivalRate) Run(
482482
// Since there aren't any free VUs available, consider this iteration
483483
// dropped - we aren't going to try to recover it, but
484484

485-
stats.PushIfNotDone(parentCtx, out, droppedIterationMetric.Emit(time.Now(), metricTags, 1))
485+
stats.PushIfNotDone(parentCtx, out, droppedIterationMetric.Sample(time.Now(), metricTags, 1))
486486

487487
// We'll try to start allocating another VU in the background,
488488
// non-blockingly, if we have remainingUnplannedVUs...

stats/stats.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,8 @@ type Metric struct {
450450
Sink Sink `json:"-"`
451451
}
452452

453-
// Emit a sample for the metric at the given time, with the provided tags and values
454-
func (m *Metric) Emit(t time.Time, tags *SampleTags, value float64) Sample {
453+
// Sample samples the metric at the given time, with the provided tags and value
454+
func (m *Metric) Sample(t time.Time, tags *SampleTags, value float64) Sample {
455455
return Sample{
456456
Time: t,
457457
Tags: tags,

0 commit comments

Comments
 (0)