From a11e273daa96db5d18ac9c607bde0e7fcf92fa02 Mon Sep 17 00:00:00 2001 From: Diego Hurtado Date: Thu, 28 Oct 2021 12:59:52 +0200 Subject: [PATCH] Add FIXMEs --- opentelemetry-sdk/src/opentelemetry/sdk/metrics/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/metrics/__init__.py b/opentelemetry-sdk/src/opentelemetry/sdk/metrics/__init__.py index bcb34ba53d3..e11928f6cdc 100644 --- a/opentelemetry-sdk/src/opentelemetry/sdk/metrics/__init__.py +++ b/opentelemetry-sdk/src/opentelemetry/sdk/metrics/__init__.py @@ -162,14 +162,17 @@ def force_flush(self) -> bool: return metric_reader_result and metric_exporter_result def register_metric_reader(self, metric_reader: "MetricReader") -> None: + # FIXME protect this method against race conditions self._metric_readers.append(metric_reader) def register_metric_exporter( self, metric_exporter: "MetricExporter" ) -> None: + # FIXME protect this method against race conditions self._metric_exporters.append(metric_exporter) def register_view(self, view: "View") -> None: + # FIXME protect this method against race conditions self._views.append(view)