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

Output zero values at reset points #190

Merged
merged 6 commits into from
Apr 14, 2021
Merged

Output zero values at reset points #190

merged 6 commits into from
Apr 14, 2021

Conversation

jmacd
Copy link
Contributor

@jmacd jmacd commented Apr 14, 2021

In cases where the former code skips a point because the reset timestamp is not known, the sidecar will now output a zero value. This lets us avoid skipping these points, meaning a metric name will be seen earlier by the backend.

Removes a metric counting these events. Removes a number of error conditions that were already unlikely.

Note: This creates a zero-width cumulative value, which is not strongly specified in OTLP. Stackdriver does not allow this condition. Speaking for Lightstep, this seems like a fine outcome.

Metric systems that dislike 0-width 0-value points may simply drop these points. @jmacd will track this work with the OTel metrics data model SIG, see open-telemetry/opentelemetry-proto#292.
(LS-23350)

@jmacd jmacd merged commit 0b96283 into main Apr 14, 2021
@jmacd jmacd deleted the jmacd/count_resets branch April 24, 2021 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants