Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 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.12.0"
distribution-version = "2201.13.0-20251016-073200-0d348172"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to bump the lang version? Can't we do it as a patch on top of update 12?


[[package]]
org = "ballerina"
Expand Down Expand Up @@ -91,7 +91,7 @@ modules = [
[[package]]
org = "ballerina"
name = "observe"
version = "1.5.0"
version = "1.6.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]
Expand Down
19 changes: 19 additions & 0 deletions ballerina/root_logger.bal
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,25 @@ isolated class RootLogger {
logRecord[k] = v;
}
}
if observe:isObservabilityEnabled() {
string? runtimeId = observe:getTagValue("runtime");
if runtimeId is string {
logRecord["runtime"] = runtimeId;
}
string? componentId = observe:getTagValue("component");
if componentId is string {
logRecord["component"] = componentId;
}
string? environmentId = observe:getTagValue("environment");
if environmentId is string {
logRecord["environment"] = environmentId;
}
string? projectId = observe:getTagValue("project");
if projectId is string {
logRecord["project"] = projectId;
}
}

foreach [string, Value] [k, v] in self.keyValues.entries() {
logRecord[k] = v is Valuer ? v() :
(v is PrintableRawTemplate ? evaluateTemplate(v, self.enableSensitiveDataMasking) : v);
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
org.gradle.caching=true
group=io.ballerina.stdlib
version=2.14.1-SNAPSHOT
ballerinaLangVersion=2201.12.0
version=2.15.0-SNAPSHOT
ballerinaLangVersion=2201.13.0-20251016-073200-0d348172

checkstylePluginVersion=10.12.0
spotbugsPluginVersion=6.0.18
Expand All @@ -15,6 +15,6 @@ jacksonDatabindVersion=2.17.2

#stdlib dependencies
stdlibIoVersion=1.8.0
observeVersion=1.5.0
observeVersion=1.6.0-20251016-103500-bf7ffd2
observeInternalVersion=1.5.0
testngVersion=6.14.3