From 17f85d6e3a6936fa2953894e00acfcd886249d36 Mon Sep 17 00:00:00 2001 From: Edoardo Tenani Date: Mon, 25 Mar 2024 12:05:54 +0100 Subject: [PATCH] complete documentation --- plugin/kotel/meter.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/plugin/kotel/meter.go b/plugin/kotel/meter.go index 5cfb4efb..8c56a8c7 100644 --- a/plugin/kotel/meter.go +++ b/plugin/kotel/meter.go @@ -55,9 +55,12 @@ func MeterProvider(provider metric.MeterProvider) MeterOpt { } // WithMergedConnectsMeter merges the `messaging.kafka.connect_errors.count` -// meter into the `messaging.kafka.connects.count` meter, adding an attribute -// "outcome" with the values "success" or "failure". This option may be used because -// ... +// counter into the `messaging.kafka.connects.count` counter, adding an +// attribute "outcome" with the values "success" or "failure". This option +// shall be used when a single metric with different dimensions is preferred +// over two separate metrics that produce data at alternating intervals. +// For example, it becomes possible to alert on the metric no longer +// producing data. func WithMergedConnectsMeter() MeterOpt { return meterOptFunc(func(m *Meter) { m.mergeConnectsMeter = true