From 4d6785a9ee4b7fed7fc4a5f66324eaa34ef8fbd8 Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Thu, 28 Nov 2024 10:04:53 +0530 Subject: [PATCH] Remove checking metrics logs provider --- ballerina/commons.bal | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ballerina/commons.bal b/ballerina/commons.bal index 16ead05..5cbc5b7 100644 --- a/ballerina/commons.bal +++ b/ballerina/commons.bal @@ -28,8 +28,7 @@ configurable boolean metricsLogsEnabled = false; function init() returns error? { boolean isMissingMetricsReporter = ((enabled || metricsEnabled) && (provider == "" && metricsReporter == "")); boolean isMissingTracingProvider = ((enabled || tracingEnabled) && (provider == "" && tracingProvider == "")); - boolean isMissingMetricsLogsProvider = enabled || metricsLogsEnabled; - if (isMissingMetricsReporter || isMissingTracingProvider || isMissingMetricsLogsProvider) { + if (isMissingMetricsReporter || isMissingTracingProvider) { string[] enabledObservers = []; string[] missingProviders = []; if (isMissingMetricsReporter) {