Skip to content

Commit

Permalink
Update MeterAdapter.cs (#453)
Browse files Browse the repository at this point in the history
fix: add labelValues to UpDownCounter handle
  • Loading branch information
Mee7891 committed Nov 28, 2023
1 parent d99863b commit 9e0fdb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Prometheus/MeterAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private void OnMeasurementRecorded<T>(Instrument instrument, T measurement, Read
var handle = _factory.CreateGauge(_instrumentPrometheusNames[instrument], _instrumentPrometheusHelp[instrument], labelNames);

// A measurement is the increment.
handle.WithLease(x => x.Inc(value));
handle.WithLease(x => x.Inc(value), labelValues);
}
#endif
else if (instrument is ObservableGauge<T>
Expand Down Expand Up @@ -289,4 +289,4 @@ private static string TranslateInstrumentDescriptionToPrometheusHelp(Instrument
return sb.ToString();
}
}
#endif
#endif

0 comments on commit 9e0fdb5

Please sign in to comment.