Skip to content
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

IsMonotonic is inconsistent for opencensus bridge between go and java #3388

Closed
ktong opened this issue Oct 21, 2022 · 0 comments · Fixed by #3389
Closed

IsMonotonic is inconsistent for opencensus bridge between go and java #3388

ktong opened this issue Oct 21, 2022 · 0 comments · Fixed by #3389
Assignees
Labels
area:metrics Part of OpenTelemetry Metrics pkg:bridges Related to a bridge package

Comments

@ktong
Copy link
Contributor

ktong commented Oct 21, 2022

The opencensus shim in Java set IsMonotonic to true, https://github.com/open-telemetry/opentelemetry-java/blob/main/opencensus-shim/src/main/java/io/opentelemetry/opencensusshim/internal/metrics/MetricAdapter.java#L158

But Opencensus bridge in Go set IsMonotonic to false

return metricdata.Sum[N]{DataPoints: points, Temporality: metricdata.CumulativeTemporality}, err
, which cause counter metric shows incorrect.

Screen Shot 2022-10-13 at 4 09 52 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:metrics Part of OpenTelemetry Metrics pkg:bridges Related to a bridge package
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants