in timestamped_metric.go [79:89]
func (m *TimestampedMetric) Collect(metrics chan<- prometheus.Metric) {
timestamp := m.ensureTimestamp(nil)
if timestamp.Add(metricsMaxAge).Before(time.Now()) {
return
}
metrics <- prometheus.NewMetricWithTimestamp(timestamp, prometheus.MustNewConstMetric(
m.desc, m.valueType, m.value, m.labelValues...,
))
}