Commit cbf2d370 authored by João Pereira's avatar João Pereira 🔴
Browse files

feat(metrics): support dynamic labels using labels from context

We forgot to add `:` in the MR title of 
!188 (diffs)
and as a result, semantic-release did not find any change 
to trigger a new release.

To avoid amending the commit on master (which would break 
repository mirroring), we're fixing a small comment typo 
in this MR and reusing the former MR title to trigger a new
release.
parent 8277b8b4
Loading
Loading
Loading
Loading
+1 −1
Changes for metrics/handler_options.go: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ func (c *handlerConfig) applyOptionsToCounterVec(cv *prometheus.CounterVec) *pro
	return cv.MustCurryWith(c.labelValues)
}

// applyOptionsToCounterVec will apply the options to an ObserverVec instance
// applyOptionsToObserverVec will apply the options to an ObserverVec instance
func (c *handlerConfig) applyOptionsToObserverVec(cv prometheus.ObserverVec) prometheus.ObserverVec {
	if len(c.labelValues) == 0 {
		return cv