From 136d4acd3d8346454b3450c191e28c01d18e602d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81kos=20Hadnagy?= Date: Fri, 26 Aug 2022 15:42:10 +0200 Subject: [PATCH] Fix ObservableInstrument::RemoveCallback --- sdk/src/metrics/async_instruments.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/src/metrics/async_instruments.cc b/sdk/src/metrics/async_instruments.cc index ee38a3536b..916ca765af 100644 --- a/sdk/src/metrics/async_instruments.cc +++ b/sdk/src/metrics/async_instruments.cc @@ -32,7 +32,7 @@ void ObservableInstrument::AddCallback(opentelemetry::metrics::ObservableCallbac void ObservableInstrument::RemoveCallback(opentelemetry::metrics::ObservableCallbackPtr callback, void *state) noexcept { - observable_registry_->AddCallback(callback, state, this); + observable_registry_->RemoveCallback(callback, state, this); } const InstrumentDescriptor &ObservableInstrument::GetInstrumentDescriptor()