From 6224787516fab82bd9121507c0cfa0b30932d454 Mon Sep 17 00:00:00 2001 From: Ion Mincu Date: Wed, 13 May 2026 18:21:55 +0300 Subject: [PATCH] fix(tracing): use agentId as span reference_id Co-Authored-By: Claude Opus 4.7 (1M context) --- .../uipath-platform/src/uipath/platform/common/_span_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/uipath-platform/src/uipath/platform/common/_span_utils.py b/packages/uipath-platform/src/uipath/platform/common/_span_utils.py index 00329ecc8..054bb3c9c 100644 --- a/packages/uipath-platform/src/uipath/platform/common/_span_utils.py +++ b/packages/uipath-platform/src/uipath/platform/common/_span_utils.py @@ -283,7 +283,7 @@ def otel_span_to_uipath_span( # Top-level fields for internal tracing schema execution_type = attributes_dict.get("executionType") agent_version = attributes_dict.get("agentVersion") - reference_id = attributes_dict.get("referenceId") + reference_id = attributes_dict.get("agentId") # Source: override via uipath.source attribute, else DEFAULT_SOURCE uipath_source = attributes_dict.get("uipath.source")