From 886e2ee0c0e46f378032a7846df227113b777949 Mon Sep 17 00:00:00 2001 From: beorn7 Date: Wed, 8 May 2019 13:38:43 +0200 Subject: [PATCH] Clarify deprecation of `DefObjectives` Previously, the whole `Objectives` field was marked as deprecated by linters. Signed-off-by: beorn7 --- prometheus/summary.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/prometheus/summary.go b/prometheus/summary.go index 1bf3e19..1574b0f 100644 --- a/prometheus/summary.go +++ b/prometheus/summary.go @@ -127,9 +127,10 @@ type SummaryOpts struct { // its zero value (i.e. nil). To create a Summary without Objectives, // set it to an empty map (i.e. map[float64]float64{}). // - // Deprecated: Note that the current value of DefObjectives is - // deprecated. It will be replaced by an empty map in v0.10 of the - // library. Please explicitly set Objectives to the desired value. + // Note that the current value of DefObjectives is deprecated. It will + // be replaced by an empty map in v0.10 of the library. Please + // explicitly set Objectives to the desired value to avoid problems + // during the transition. Objectives map[float64]float64 // MaxAge defines the duration for which an observation stays relevant