1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-11-29 23:07:45 +02:00

Update the instrument agg comp table (#4330)

Use a check mark to indicate compatible instead of an "X" which can be
misinterpreted as incompatible.
This commit is contained in:
Tyler Yahn
2023-07-17 11:17:35 -07:00
committed by GitHub
parent 7467923a51
commit 63dfc4c2f1

View File

@@ -425,12 +425,12 @@ func (i *inserter[N]) aggregateFunc(b aggregate.Builder[N], agg aggregation.Aggr
//
// | Instrument Kind | Drop | LastValue | Sum | Histogram | Exponential Histogram |
// |--------------------------|------|-----------|-----|-----------|-----------------------|
// | Counter | X | | X | X | X |
// | UpDownCounter | X | | X | | |
// | Histogram | X | | X | X | X |
// | Observable Counter | X | | X | | |
// | Observable UpDownCounter | X | | X | | |
// | Observable Gauge | X | X | | | |.
// | Counter | | | | | |
// | UpDownCounter | | | | | |
// | Histogram | | | | | |
// | Observable Counter | | | | | |
// | Observable UpDownCounter | | | | | |
// | Observable Gauge | | | | | |.
func isAggregatorCompatible(kind InstrumentKind, agg aggregation.Aggregation) error {
switch agg.(type) {
case aggregation.Default: