Skip to content

Commit

Permalink
Merge pull request #116 from NipunaMadhushan/java21
Browse files Browse the repository at this point in the history
Add metrics logs provider configuration
  • Loading branch information
NipunaMadhushan authored Dec 20, 2024
2 parents 4d29d40 + ccd5f92 commit 6b4cf7a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[ballerina]
dependencies-toml-version = "2"
distribution-version = "2201.10.0"
distribution-version = "2201.11.0-SNAPSHOT"

[[package]]
org = "ballerina"
Expand Down
7 changes: 7 additions & 0 deletions ballerina/commons.bal
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ public isolated function isMetricsEnabled() returns boolean = @java:Method {
'class: "io.ballerina.runtime.observability.ObserveUtils"
} external;

# Check whether metrics logs is enabled.
# + return - metrics enabled/disabled.
public isolated function isMetricsLogsEnabled() returns boolean = @java:Method {
name: "isMetricsLogsEnabled",
'class: "io.ballerina.runtime.observability.ObserveUtils"
} external;

# Retrieve metrics provider.
# + return - metrics provider.
public isolated function getMetricsProvider() returns string = @java:Method {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
org.gradle.caching=true
group=io.ballerina.stdlib
version=1.4.0-SNAPSHOT
ballerinaLangVersion=2201.11.0-20241218-101200-109f6cc7
ballerinaLangVersion=2201.11.0-20241219-143200-53f6d83e
githubSpotbugsVersion=6.0.18
githubJohnrengelmanShadowVersion=8.1.1
underCouchDownloadVersion=5.4.0
Expand Down

0 comments on commit 6b4cf7a

Please sign in to comment.