Commit 094f031
committed
metric: clarify sync vs observable Gauge in package godoc
The Measurements description in the metric package godoc stated that a
Gauge is used when "the most recent measurement needs to be conveyed
about an asynchronous measurement" and only referenced Int64ObservableGauge
and Float64ObservableGauge. Synchronous Gauge types (Int64Gauge,
Float64Gauge) were added to the API but not reflected here.
Update the sentence to list all four Gauge types and briefly note when
to use a synchronous variant vs an observable one.
Fixes #4801
Signed-off-by: Ali <alliasgher123@gmail.com>1 parent 2fe7910 commit 094f031
2 files changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
0 commit comments