Skip to content

Commit

Permalink
Remove isolated from public functions
Browse files Browse the repository at this point in the history
  • Loading branch information
NipunaMadhushan committed Jul 23, 2024
1 parent b0ec6d6 commit 55dd3d0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ballerina/natives.bal
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ isolated final map<string> defaultTags = {};
# + spanName - Name of the span
# + tags - Tags to be associated to the span
# + return - SpanId of the started span
public isolated function startRootSpan(string spanName, map<string>? tags = ()) returns int = @java:Method {
public function startRootSpan(string spanName, map<string>? tags = ()) returns int = @java:Method {
'class: "io.ballerina.stdlib.observe.nativeimpl.StartRootSpan",
name: "startRootSpan"
} external;
Expand All @@ -37,7 +37,7 @@ public isolated function startRootSpan(string spanName, map<string>? tags = ())
# + tags - Tags to be associated to the span
# + parentSpanId - Id of the parent span or -1 if parent span should be taken from system trace
# + return - SpanId of the started span
public isolated function startSpan(string spanName, map<string>? tags = (), int parentSpanId = -1) returns int|error = @java:Method {
public function startSpan(string spanName, map<string>? tags = (), int parentSpanId = -1) returns int|error = @java:Method {
'class: "io.ballerina.stdlib.observe.nativeimpl.StartSpan",
name: "startSpan"
} external;
Expand All @@ -58,7 +58,7 @@ public isolated function addTagToSpan(string tagKey, string tagValue, int spanId
# + tagKey - Key of the tag
# + tagValue - Value of the tag
# + return - An error if an error occurred while attaching tag to System Metrics
public isolated function addTagToMetrics(string tagKey, string tagValue) returns error? = @java:Method {
public function addTagToMetrics(string tagKey, string tagValue) returns error? = @java:Method {
'class: "io.ballerina.stdlib.observe.nativeimpl.AddTagToMetrics",
name: "addTagToMetrics"
} external;
Expand All @@ -67,23 +67,23 @@ public isolated function addTagToMetrics(string tagKey, string tagValue) returns
#
# + spanId - Id of span to finish
# + return - An error if an error occurred while finishing the span
public isolated function finishSpan(int spanId) returns error? = @java:Method {
public function finishSpan(int spanId) returns error? = @java:Method {
'class: "io.ballerina.stdlib.observe.nativeimpl.FinishSpan",
name: "finishSpan"
} external;

# Retrieve a map of span context data.
#
# + return - Map of span context data (traceId and spanId).
public isolated function getSpanContext() returns map<string> = @java:Method {
public function getSpanContext() returns map<string> = @java:Method {
'class: "io.ballerina.stdlib.observe.nativeimpl.GetSpanContext",
name: "getSpanContext"
} external;

# Retrieve all registered metrics including default metrics from the ballerina runtime, and user defined metrics.
#
# + return - Array of all registered metrics
public isolated function getAllMetrics() returns Metric[] = @java:Method {
public function getAllMetrics() returns Metric[] = @java:Method {
'class: "io.ballerina.stdlib.observe.nativeimpl.GetAllMetrics",
name: "getAllMetrics"
} external;
Expand All @@ -93,7 +93,7 @@ public isolated function getAllMetrics() returns Metric[] = @java:Method {
# + name - Name of the metric to lookup
# + tags - The key/value pair tags associated with the metric that should be looked up
# + return - The metric instance
public isolated function lookupMetric(string name, map<string>? tags = ()) returns Counter|Gauge? = @java:Method {
public function lookupMetric(string name, map<string>? tags = ()) returns Counter|Gauge? = @java:Method {
'class: "io.ballerina.stdlib.observe.nativeimpl.LookupMetric",
name: "lookupMetric"
} external;
Expand Down

0 comments on commit 55dd3d0

Please sign in to comment.