Skip to content

Commit

Permalink
Fix ObservableInstrument::RemoveCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
ahadnagy committed Aug 26, 2022
1 parent cecfc19 commit 136d4ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/src/metrics/async_instruments.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 136d4ac

Please sign in to comment.