From b1b80f1273a397a8f800b8726fe26fdfa39d84d7 Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Wed, 11 Feb 2026 23:10:51 +0530 Subject: [PATCH] Remove observabilityEnabled check to include icp.runtimeId --- ballerina/root_logger.bal | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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() {