Skip to content

Commit

Permalink
Remove metricsLogsProvider config
Browse files Browse the repository at this point in the history
  • Loading branch information
NipunaMadhushan committed Nov 22, 2024
1 parent 4b31746 commit 3b9b929
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ballerina/init.bal
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function init() {
}

if (observe:isMetricsLogsEnabled()) {
var err = externEnableMetricsLogging(observe:getMetricsLogsProvider());
var err = externEnableMetricsLogging();
if (err is error) {
externPrintError("failed to enable tracing");
}
Expand All @@ -50,7 +50,7 @@ function externEnableTracing(string provider) returns error? = @java:Method {
name: "enableTracing"
} external;

function externEnableMetricsLogging(string provider) returns error? = @java:Method {
function externEnableMetricsLogging() returns error? = @java:Method {
'class: "io.ballerina.stdlib.observe.internal.NativeFunctions",
name: "enableMetricsLogging"
} external;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public static BError enableTracing(BString providerName) {
}
}

public static BError enableMetricsLogging(Environment env, BString providerName) {
public static BError enableMetricsLogging(Environment env) {
try {
ObserveUtils.addObserver(new BallerinaMetricsLogsObserver(env));
return null;
Expand Down

0 comments on commit 3b9b929

Please sign in to comment.