-
Notifications
You must be signed in to change notification settings - Fork 859
Closed
Labels
bugSomething isn't workingSomething isn't workingmetricsMetrics signal relatedMetrics signal related
Description
Unlike Traces, the Batch provided to the exporter is re-used by SDK to keep metrics in memory. This means that, after the Export(Batch), returns, the memory must not be read by the exporters. If they do so, they might be reading incorrect values.
InMemoryExporter is buggy in this way - the fix would be for the InMemoryExporter to "deep copy" the Metric, MetricPoints, before Export() call returns, so that it has own copy, unaffected by further aggregations.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingmetricsMetrics signal relatedMetrics signal related