-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Verify compliant metric SDK specification implementation: MeterProvider/Aggregation #3646
Comments
There is no exported object or package with the name |
Not sure how much value this statement has, but for what its worth we do chose as best as possible idiomatic solutions here 😆 |
opentelemetry-go/sdk/metric/aggregation/aggregation.go Lines 40 to 41 in b907996
opentelemetry-go/sdk/metric/aggregation/aggregation.go Lines 54 to 61 in b907996
opentelemetry-go/sdk/metric/aggregation/aggregation.go Lines 74 to 76 in b907996
opentelemetry-go/sdk/metric/aggregation/aggregation.go Lines 89 to 91 in b907996
opentelemetry-go/sdk/metric/aggregation/aggregation.go Lines 105 to 131 in b907996
|
We do not support this. It is tracked here: #2966 Given this is a recommendation, It should be completed before the stable release of the metric SDK. |
Our instrument aggregation selection would be the place this is done: opentelemetry-go/sdk/metric/pipeline.go Lines 423 to 428 in b907996
It does not look to be be conforming to this recommendation. An issue is needed to track this non-compliance. |
|
Exponential histograms are not yet supported so these statements do not currently apply. |
Exponential histograms are not yet supported so this statement does not currently apply. |
Exponential histograms are not yet supported so this statement does not currently apply. |
Exponential histograms are not yet supported so these statements do not currently apply. |
Base2 exponential histogram support has been added. That part of the specification needs to be re-evaluated. |
We support all normal and subnormal values. Where the subnormal values are coerced to a normal value which is covered by:
|
This is not compliant. Modifying the
Results in the following: $ go test ./...
--- FAIL: TestExpoHistogramDataPointRecord (0.00s)
--- FAIL: TestExpoHistogramDataPointRecord/float64_MinMaxSum (0.00s)
--- FAIL: TestExpoHistogramDataPointRecord/float64_MinMaxSum/[2_4_1_+Inf] (0.00s)
exponential_histogram_test.go:208:
Error Trace: /home/tyler/go/src/go.opentelemetry.io/otel/sdk/metric/internal/aggregate/exponential_histogram_test.go:208
Error: Not equal:
expected: 4
actual : +Inf
Test: TestExpoHistogramDataPointRecord/float64_MinMaxSum/[2_4_1_+Inf]
exponential_histogram_test.go:210:
Error Trace: /home/tyler/go/src/go.opentelemetry.io/otel/sdk/metric/internal/aggregate/exponential_histogram_test.go:210
Error: Not equal:
expected: 7
actual : +Inf
Test: TestExpoHistogramDataPointRecord/float64_MinMaxSum/[2_4_1_+Inf]
--- FAIL: TestExpoHistogramDataPointRecord/float64_MinMaxSum/[2_4_1_-Inf] (0.00s)
exponential_histogram_test.go:209:
Error Trace: /home/tyler/go/src/go.opentelemetry.io/otel/sdk/metric/internal/aggregate/exponential_histogram_test.go:209
Error: Not equal:
expected: 1
actual : -Inf
Test: TestExpoHistogramDataPointRecord/float64_MinMaxSum/[2_4_1_-Inf]
exponential_histogram_test.go:210:
Error Trace: /home/tyler/go/src/go.opentelemetry.io/otel/sdk/metric/internal/aggregate/exponential_histogram_test.go:210
Error: Not equal:
expected: 7
actual : -Inf
Test: TestExpoHistogramDataPointRecord/float64_MinMaxSum/[2_4_1_-Inf]
--- FAIL: TestExpoHistogramDataPointRecord/float64_MinMaxSum/[2_4_1_NaN] (0.00s)
exponential_histogram_test.go:210:
Error Trace: /home/tyler/go/src/go.opentelemetry.io/otel/sdk/metric/internal/aggregate/exponential_histogram_test.go:210
Error: Not equal:
expected: 7
actual : NaN
Test: TestExpoHistogramDataPointRecord/float64_MinMaxSum/[2_4_1_NaN]
--- FAIL: TestExpoHistogramDataPointRecord/int64_MinMaxSum (0.00s)
--- FAIL: TestExpoHistogramDataPointRecord/int64_MinMaxSum/[2_4_1_-9223372036854775808] (0.00s)
exponential_histogram_test.go:209:
Error Trace: /home/tyler/go/src/go.opentelemetry.io/otel/sdk/metric/internal/aggregate/exponential_histogram_test.go:209
Error: Not equal:
expected: 1
actual : -9223372036854775808
Test: TestExpoHistogramDataPointRecord/int64_MinMaxSum/[2_4_1_-9223372036854775808]
exponential_histogram_test.go:210:
Error Trace: /home/tyler/go/src/go.opentelemetry.io/otel/sdk/metric/internal/aggregate/exponential_histogram_test.go:210
Error: Not equal:
expected: 7
actual : -9223372036854775801
Test: TestExpoHistogramDataPointRecord/int64_MinMaxSum/[2_4_1_-9223372036854775808]
--- FAIL: TestExpoHistogramDataPointRecord/int64_MinMaxSum/[2_4_1_-9223372036854775808]#01 (0.00s)
exponential_histogram_test.go:209:
Error Trace: /home/tyler/go/src/go.opentelemetry.io/otel/sdk/metric/internal/aggregate/exponential_histogram_test.go:209
Error: Not equal:
expected: 1
actual : -9223372036854775808
Test: TestExpoHistogramDataPointRecord/int64_MinMaxSum/[2_4_1_-9223372036854775808]#01
exponential_histogram_test.go:210:
Error Trace: /home/tyler/go/src/go.opentelemetry.io/otel/sdk/metric/internal/aggregate/exponential_histogram_test.go:210
Error: Not equal:
expected: 7
actual : -9223372036854775801
Test: TestExpoHistogramDataPointRecord/int64_MinMaxSum/[2_4_1_-9223372036854775808]#01
--- FAIL: TestExpoHistogramDataPointRecord/int64_MinMaxSum/[2_4_1_-9223372036854775808]#02 (0.00s)
exponential_histogram_test.go:209:
Error Trace: /home/tyler/go/src/go.opentelemetry.io/otel/sdk/metric/internal/aggregate/exponential_histogram_test.go:209
Error: Not equal:
expected: 1
actual : -9223372036854775808
Test: TestExpoHistogramDataPointRecord/int64_MinMaxSum/[2_4_1_-9223372036854775808]#02
exponential_histogram_test.go:210:
Error Trace: /home/tyler/go/src/go.opentelemetry.io/otel/sdk/metric/internal/aggregate/exponential_histogram_test.go:210
Error: Not equal:
expected: 7
actual : -9223372036854775801
Test: TestExpoHistogramDataPointRecord/int64_MinMaxSum/[2_4_1_-9223372036854775808]#02
FAIL
FAIL go.opentelemetry.io/otel/sdk/metric/internal/aggregate 0.008s
FAIL |
We rescale using this delta calculation: opentelemetry-go/sdk/metric/internal/aggregate/exponential_histogram.go Lines 207 to 231 in 3904523
That results in a scale less than
Therefore, the maximum scale is the reasonable configuration |
The opentelemetry-go/sdk/metric/internal/aggregate/exponential_histogram.go Lines 209 to 212 in 3904523
|
That is what our implementation does prior to recording a measurement: opentelemetry-go/sdk/metric/internal/aggregate/exponential_histogram.go Lines 207 to 231 in 3904523
opentelemetry-go/sdk/metric/internal/aggregate/exponential_histogram.go Lines 144 to 159 in 3904523
|
Done |
The text was updated successfully, but these errors were encountered: