Open
Description
Hello Flamingo team,
due to an issue in https://github.com/census-instrumentation/opencensus-go, the memory stats do not seem to be updated for opencensus.
In line
flamingo/framework/opencensus/module.go
Lines 155 to 158 in fa5bd34
RunMetricOptions
are instantiated without setting UseDerivedCumulative
.Consequently, in line https://github.com/census-instrumentation/opencensus-go/blob/052120675fac2ace91dc2c01e5f63c3e6ec62f04/plugin/runmetrics/producer.go#L133 only
producer.deprecatedMemStats
is instantiated and not producer.memStats
.But, the latter seems to be required to read current memory metrics => see https://github.com/census-instrumentation/opencensus-go/blob/052120675fac2ace91dc2c01e5f63c3e6ec62f04/plugin/runmetrics/producer.go#L169
A possible workaround might be, to set
UseDerivedCumulative
in framework/opencensus/module.go
Activity