From ab83f4f74745ffcf1e87a7411321ca51809091c8 Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Mon, 25 Sep 2023 15:57:16 -0700 Subject: [PATCH] Fix minor inconsistent log message in Meter::RegisterSyncMetricStorage (#2325) --- sdk/src/metrics/meter.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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;