Skip to content

Commit

Permalink
complete documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
endorama committed Jun 5, 2024
1 parent 7e7b669 commit 17f85d6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions plugin/kotel/meter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 17f85d6

Please sign in to comment.