Skip to content

Commit

Permalink
Add table of instrument additive property (open-telemetry#2906)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias authored Nov 1, 2022
1 parent 05f0779 commit 8d16354
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions specification/metrics/supplementary-guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,18 @@ middle. Here are some examples:
to add up the voltage values anymore.

In OpenTelemetry, each [Instrument](./api.md#instrument) implies whether it is
additive or not. For example, [Counter](./api.md#counter) and
[UpDownCounter](./api.md#updowncounter) are additive while [Asynchronous
Gauge](./api.md#asynchronous-gauge) is non-additive.
additive or not.

| Instrument | Additive |
| ----------------------------------------------------------------- | ----------------- |
| [Counter](./api.md#counter) | additive |
| [UpDownCounter](./api.md#updowncounter) | additive |
| [Histogram](./api.md#histogram) | mixed<sup>1</sup> |
| [Asynchronous Gauge](./api.md#asynchronous-gauge) | non-additive |
| [Asynchronous Counter](./api.md#asynchronous-counter) | additive |
| [Asynchronous UpDownCounter](./api.md#asynchronous-updowncounter) | additive |

1: The Histogram bucket counts are additive if the buckets are the same, the sum is additive, but the min and max are non-additive.

#### Numeric type selection

Expand Down

0 comments on commit 8d16354

Please sign in to comment.