You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// metricWithExemplar is an interface that knows how to attach an exemplar to certain supported metric types.
216
+
typemetricWithExemplarinterface {
217
+
withExemplar(vfloat64)
218
+
}
219
+
220
+
// exemplarMetric is a holds a context to extract exemplar labels from, and a metric to attach them to. It implements the metricWithExemplar interface.
221
+
typeexemplarMetricstruct {
222
+
*Counter
223
+
}
224
+
225
+
// withExemplar attaches an exemplar to the metric.
226
+
func (e*exemplarMetric) withExemplar(vfloat64) {
227
+
ifm, ok:=e.CounterMetric.(prometheus.ExemplarAdder); ok {
0 commit comments