Skip to content

Commit

Permalink
Add missing doc comments for Observer interfaces (open-telemetry#3928)
Browse files Browse the repository at this point in the history
  • Loading branch information
pellared authored Mar 23, 2023
1 parent 795ad97 commit 68d66f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions metric/instrument/asyncfloat64.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
1 change: 1 addition & 0 deletions metric/instrument/asyncint64.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 68d66f2

Please sign in to comment.