diff --git a/sdk/src/metrics/meter.cc b/sdk/src/metrics/meter.cc index 1abb570b43..4f7c4c1207 100644 --- a/sdk/src/metrics/meter.cc +++ b/sdk/src/metrics/meter.cc @@ -304,8 +304,9 @@ std::unique_ptr Meter::RegisterSyncMetricStorage( auto ctx = meter_context_.lock(); if (!ctx) { - OTEL_INTERNAL_LOG_ERROR("[Meter::RegisterMetricStorage] - Error during finding matching views." - << "The metric context is invalid"); + OTEL_INTERNAL_LOG_ERROR( + "[Meter::RegisterSyncMetricStorage] - Error during finding matching views." + << "The metric context is invalid"); return nullptr; } auto view_registry = ctx->GetViewRegistry(); @@ -335,7 +336,7 @@ std::unique_ptr Meter::RegisterSyncMetricStorage( if (!success) { OTEL_INTERNAL_LOG_ERROR( - "[Meter::RegisterMetricStorage] - Error during finding matching views." + "[Meter::RegisterSyncMetricStorage] - Error during finding matching views." << "Some of the matching view configurations mayn't be used for metric collection"); } return storages;