From 68d66f209665895d62b88ec5449939506ba8d6df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Paj=C4=85k?= Date: Thu, 23 Mar 2023 15:38:12 +0100 Subject: [PATCH] Add missing doc comments for Observer interfaces (#3928) --- metric/instrument/asyncfloat64.go | 1 + metric/instrument/asyncint64.go | 1 + 2 files changed, 2 insertions(+) diff --git a/metric/instrument/asyncfloat64.go b/metric/instrument/asyncfloat64.go index e9ef2be262c..cf0008e61f3 100644 --- a/metric/instrument/asyncfloat64.go +++ b/metric/instrument/asyncfloat64.go @@ -180,6 +180,7 @@ type Float64ObservableGaugeOption interface { // // Warning: methods may be added to this interface in minor releases. type Float64Observer interface { + // Observe records the float64 value with attributes. Observe(value float64, attributes ...attribute.KeyValue) } diff --git a/metric/instrument/asyncint64.go b/metric/instrument/asyncint64.go index e1f843ee367..752dcea0a1e 100644 --- a/metric/instrument/asyncint64.go +++ b/metric/instrument/asyncint64.go @@ -179,6 +179,7 @@ type Int64ObservableGaugeOption interface { // // Warning: methods may be added to this interface in minor releases. type Int64Observer interface { + // Observe records the int64 value with attributes. Observe(value int64, attributes ...attribute.KeyValue) }