-
Notifications
You must be signed in to change notification settings - Fork 104
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
Sum aggregation with CumulativeTemporality shows as delta in metric explorer #518
Comments
Hey @ktong, thanks for reporting the issue. A few questions about your setup:
Thanks! |
This may be related to open-telemetry/opentelemetry-go#3278, in which async counter values were treated as delta instead of cumulative. |
Yes, it’s more likely caused by the issue. |
The View is defined at https://github.com/census-instrumentation/opencensus-go/blob/master/plugin/ocgrpc/server_metrics.go#L68
|
The issue still exists while I upgrade go.opentelemetry.io/otel/sdk/metric to v0.33.0 which includes the fix of open-telemetry/opentelemetry-go#3278. |
reported another issue in opentelemetry-go: open-telemetry/opentelemetry-go#3388 |
Great. Looks like you found the problem |
Since the fix was merged upstream, i'm going to go ahead and close this issue. Feel free to reopen if you think there is more to be done. |
The metric data
metricdata.Sum[N]{DataPoints: points, Temporality: metricdata.CumulativeTemporality}
is generated by opencensus bridge at https://github.com/open-telemetry/opentelemetry-go/blob/main/bridge/opencensus/internal/ocmetric/metric.go#L95. But it shows as delta metric so the value is stacked.The text was updated successfully, but these errors were encountered: