Skip to content

Commit 26d0874

Browse files
committed
fix(telemetry): drop the unread Automation Suite properties
AutomationSuiteClusterId and AutomationSuiteClusterVersion were copied from the low-code enrichment without checking whether anything sets or reads them. Only the first is set anywhere, by the autopilot-everyone-service chart rather than a job container, and the second is never set at all. Downstream neither has a column in agents_AC_telemetry_standardized, whose macro hardcodes ActivationType to AutomationCloud, so both would have been null on every row. IMAGE_VERSION moves to the platform constants alongside the other environment variable names. That pulls uipath-platform into the change, so it bumps to 0.2.25 and uipath raises its lower bound to match.
1 parent aeeb797 commit 26d0874

6 files changed

Lines changed: 8 additions & 15 deletions

File tree

‎packages/uipath-platform/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-platform"
3-
version = "0.2.23"
3+
version = "0.2.25"
44
description = "HTTP client library for programmatic access to UiPath Platform"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

‎packages/uipath-platform/src/uipath/platform/constants/__init__.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
ENV_UIPATH_TRACE_ID = "UIPATH_TRACE_ID"
3636
ENV_UIPATH_PROCESS_VERSION = "UIPATH_PROCESS_VERSION"
3737
ENV_UIPATH_CONFIG_PATH = "UIPATH_CONFIG_PATH"
38+
ENV_IMAGE_VERSION = "IMAGE_VERSION"
3839

3940
# Headers
4041
HEADER_FOLDER_KEY = "x-uipath-folderkey"

‎packages/uipath-platform/uv.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎packages/uipath/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ requires-python = ">=3.11"
77
dependencies = [
88
"uipath-core>=0.5.30, <0.6.0",
99
"uipath-runtime>=0.13.1, <0.14.0",
10-
"uipath-platform>=0.2.21, <0.3.0",
10+
"uipath-platform>=0.2.25, <0.3.0",
1111
"click>=8.3.1",
1212
"httpx>=0.28.1",
1313
"pyjwt>=2.10.1",

‎packages/uipath/src/uipath/_cli/_run_telemetry.py‎

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from typing import Any
1414

1515
from uipath.platform.common import UiPathConfig, resolve_trace_id
16-
from uipath.platform.constants import ENV_JOB_ID
16+
from uipath.platform.constants import ENV_IMAGE_VERSION, ENV_JOB_ID
1717
from uipath.runtime.errors import UiPathBaseRuntimeError, UiPathErrorContract
1818
from uipath.runtime.result import UiPathRuntimeResult, UiPathRuntimeStatus
1919
from uipath.telemetry._track import is_telemetry_enabled, track_event
@@ -29,10 +29,6 @@
2929
_LOWCODE_AGENT_TYPE = "uipath_lowcode"
3030
_FUNCTION_FRAMEWORK = "python"
3131

32-
_ENV_IMAGE_VERSION = "IMAGE_VERSION"
33-
_ENV_AS_CLUSTER_ID = "AUTOMATION_SUITE_CLUSTER_ID"
34-
_ENV_AS_CLUSTER_VERSION = "AUTOMATION_SUITE_CLUSTER_VERSION"
35-
3632

3733
class RunKind(str, Enum):
3834
"""Event-name prefix per run kind."""
@@ -69,9 +65,7 @@ def _scope_properties() -> dict[str, Any]:
6965
"""Identity and scope, on every event so each one stands alone.
7066
7167
The cloud identity trio is required, so it reports ``N/A`` rather than being
72-
dropped; optional scope is omitted, so a local run has no folder. Note
73-
``UIPATH_PROCESS_KEY`` holds a display name, and ``TraceId`` needs
74-
:func:`resolve_trace_id` to normalize a dashed UUID into the hex spans use.
68+
dropped; optional scope is omitted, so a local run has no folder.
7569
"""
7670
properties: dict[str, Any] = {
7771
"FolderKey": UiPathConfig.folder_key,
@@ -86,9 +80,7 @@ def _scope_properties() -> dict[str, Any]:
8680
"ProcessUuid": UiPathConfig.process_uuid,
8781
"ProcessVersion": UiPathConfig.process_version,
8882
"TraceId": resolve_trace_id(),
89-
"ImageVersion": os.getenv(_ENV_IMAGE_VERSION),
90-
"AutomationSuiteClusterId": os.getenv(_ENV_AS_CLUSTER_ID),
91-
"AutomationSuiteClusterVersion": os.getenv(_ENV_AS_CLUSTER_VERSION),
83+
"ImageVersion": os.getenv(ENV_IMAGE_VERSION),
9284
}
9385
return {key: value for key, value in properties.items() if value is not None}
9486

‎packages/uipath/uv.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)