Skip to content

Commit

Permalink
Remove checking metrics logs provider
Browse files Browse the repository at this point in the history
  • Loading branch information
NipunaMadhushan committed Nov 28, 2024
1 parent fb65a03 commit 4d6785a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ballerina/commons.bal
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4d6785a

Please sign in to comment.