Repository navigation
fix(telemetry): turn telemetry off when UIPATH_TELEMETRY_DISABLED is true [PC-5668] - #2008
Merged
Merged
Conversation
…true [PC-5668] The serverless platform tells a robot its telemetry is off with UIPATH_TELEMETRY_DISABLED=true, which it always sets on Automation Suite. The SDK only read UIPATH_TELEMETRY_ENABLED (default true), so it kept sending events to the baked Application Insights instance. On an air-gapped install every send waits for a connection timeout. UIPATH_TELEMETRY_DISABLED=true now disables telemetry and wins over UIPATH_TELEMETRY_ENABLED. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0136ibA73WLWFVYGwNLx18P7
…host product Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0136ibA73WLWFVYGwNLx18P7
|
dianagrecu-uipath
approved these changes
Nov 20, 2026
al3xanndru
approved these changes
Nov 20, 2026
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the telemetry opt-out update.
No open issues 🎉
What changed in this PR
Updates the SDK’s usage-telemetry gate to honor host-provided opt-out settings, preventing telemetry sends and associated connection delays when disabled.
Changes:
- Gives
UIPATH_TELEMETRY_DISABLED=trueor1precedence overUIPATH_TELEMETRY_ENABLED. - Adds tests for opt-out behavior, flag precedence, and event suppression, plus documentation.
- Bumps
uipathto version2.15.5.
| File | Description |
|---|---|
packages/uipath/uv.lock |
Updates the locked package version to 2.15.5. |
packages/uipath/tests/telemetry/test_track.py |
Adds four tests covering the new opt-out behavior. |
packages/uipath/src/uipath/telemetry/_track.py |
Checks the disable flag before the existing enable flag. |
packages/uipath/src/uipath/telemetry/_constants.py |
Defines the disable environment-variable name. |
packages/uipath/pyproject.toml |
Bumps the package version to 2.15.5. |
packages/uipath/docs/core/environment_variables.md |
Documents the opt-out flag and its precedence. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Problem
A host environment that turns telemetry off for the processes it starts sets
UIPATH_TELEMETRY_DISABLED=true. The SDK never read that variable: it only readUIPATH_TELEMETRY_ENABLED, which defaults totrue. So telemetry stayed on in those environments.Jira: PC-5668
Change
_TelemetryClient._is_enabled()returns false whenUIPATH_TELEMETRY_DISABLEDistrue(or1). It wins overUIPATH_TELEMETRY_ENABLED. Nothing changes when the variable is unset or has any other value.Version bumped to
2.15.5.Verification
tests/telemetry/test_track.py; the telemetry suite passes.UIPATH_TELEMETRY_DISABLED=trueset:flush_events()took 20.0 s before the change and 0.0 s after it.🤖 Generated with Claude Code
https://claude.ai/code/session_0136ibA73WLWFVYGwNLx18P7