diff --git a/ballerina/init.bal b/ballerina/init.bal index acfc22d..937640a 100644 --- a/ballerina/init.bal +++ b/ballerina/init.bal @@ -33,7 +33,7 @@ function init() { } if (observe:isMetricsLogsEnabled()) { - var err = externEnableMetricsLogging(observe:getTracingProvider()); + var err = externEnableMetricsLogging(observe:getMetricsLogsProvider()); if (err is error) { externPrintError("failed to enable tracing"); }