This repository has been archived by the owner on Oct 3, 2023. It is now read-only.
MetricDescriptor should be created as soon as the view is registered #281
Labels
bug
Something isn't working
Please answer these questions before submitting a bug report.
What version of the Exporter are you using?
0.13.4
What version of OpenCensus are you using?
0.22.5
What version of Go are you using?
1.15.7
What did you do?
We have a metric that are only recorded rarely. (i.e. the call to
stat.Record()
is in an if-statement and rarely reached). The metric may not get recorded for days.What did you expect to see?
Regardless of how frequently the data point is produced, the MetricDescriptor is created ~instantly after the views are generated.
What did you see instead?
The MetricDescriptor is not created long after the new metric is added.
Additional context
I created #277 to try to manage the MetricDescriptor by ourselves, but I think the root issue is the delayed MetricDescriptor.
The text was updated successfully, but these errors were encountered: