Replies: 1 comment
-
|
It is not really "leak". Cumulative is intended for systems like Prometheus, which expects them only.
It is one-line to change from Cumulative to Delta https://github.com/open-telemetry/opentelemetry-rust/blob/main/examples/metrics-basic/src/main.rs#L9-L10 See the below doc which has a lot more detail on the topic: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
From the
opentelemetry_sdk::metrics:Reading those docs it seems like with
Cumulativedata are just always appended and onlyDeltaandLowMemoryevery remove data points. Do I understand it correctly? WithCumulativethis memory won't be freed? Or is there a bound?If it is indeed a leak... I read those docs by a coincidence, thus there must be similar design decisions. Could you please point me where I should change which defaults (
Cumulativeis the default) to make sureopentelemetry-rustwon't leak anything? My service can't tolerate leaks and downtimes needed to reset the heap.Beta Was this translation helpful? Give feedback.
All reactions