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)