diff --git a/ballerina/root_logger.bal b/ballerina/root_logger.bal index 16e18e5a..9324ee12 100644 --- a/ballerina/root_logger.bal +++ b/ballerina/root_logger.bal @@ -149,11 +149,9 @@ isolated class RootLogger { logRecord[k] = v; } } - if observe:isObservabilityEnabled() { - string? runtimeId = observe:getTagValue(ICP_RUNTIME_ID_KEY); - if runtimeId is string { - logRecord[ICP_RUNTIME_ID_KEY] = runtimeId; - } + string? runtimeId = observe:getTagValue(ICP_RUNTIME_ID_KEY); + if runtimeId is string { + logRecord[ICP_RUNTIME_ID_KEY] = runtimeId; } foreach [string, Value] [k, v] in self.keyValues.entries() {