Problem with the sliding-window decay algorithm... The Merge method of perk/quantile is actually not working as advertised - and it might be unfixable, as the underlying algorithm is apparently not capable of merging summaries in the first place. To avoid using Merge, we are currently adding observa
(opts SummaryOpts)
| 180 | |
| 181 | // NewSummary creates a new Summary based on the provided SummaryOpts. |
| 182 | func NewSummary(opts SummaryOpts) Summary { |
| 183 | return newSummary( |
| 184 | NewDesc( |
| 185 | BuildFQName(opts.Namespace, opts.Subsystem, opts.Name), |
| 186 | opts.Help, |
| 187 | nil, |
| 188 | opts.ConstLabels, |
| 189 | ), |
| 190 | opts, |
| 191 | ) |
| 192 | } |
| 193 | |
| 194 | func newSummary(desc *Desc, opts SummaryOpts, labelValues ...string) Summary { |
| 195 | if len(desc.variableLabels.names) != len(labelValues) { |