Repository navigation
refactor(platform): remove the EnableTraceContextHeaders feature flag - #1979
daniel-joica wants to merge 3 commits into
Conversation
The flag is on in every important environment, so trace context headers are now always sent to the LLM Gateway. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the trace-context header change.
No open issues 🎉
What changed in this PR
Removes the EnableTraceContextHeaders feature-flag check from uipath-platform, allowing LLM Gateway and guardrail requests to include available trace context regardless of the flag. Releases version 0.3.1 to support downstream adoption.
Changes:
- Removes the flag check and updates the helper’s documentation.
- Removes flag-disabled tests and flag setup from the remaining tests.
- Bumps the package version to 0.3.1 and updates the lockfile.
| File | Description |
|---|---|
packages/uipath-platform/uv.lock |
Updates the package version and lockfile revision. |
packages/uipath-platform/tests/services/test_llm_trace_context.py |
Removes flag-specific tests and setup. |
packages/uipath-platform/src/uipath/platform/chat/llm_trace_context.py |
Removes the feature-flag check and clarifies header behavior. |
packages/uipath-platform/pyproject.toml |
Bumps uipath-platform to 0.3.1. |
Review effort: Balanced
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
QA: low-code agent with the flag removedRan a low-code agent from Studio Web (alpha) on the local robot, with these local branches:
The flag is not set locally, so before this change the trace-context headers wouldn't have been sent. Result: passed. Trace
|



What changed?
build_trace_context_headers()no longer checks theEnableTraceContextHeadersfeature flag, so thex-uipath-traceparent-idandx-uipath-tracebaggageheaders are always sent on LLM Gateway and guardrail requests.The flag is on in alpha, staging, com, prod, agov, pgov, dedicated/dev and dedicated/stg. It is on in gxp except for the
SapSolexOrganizationssegment, and off only in nst (gitops).uipath-platformis bumped to 0.3.1. Follow-up PRs drop their use of the flag and need this release first: UiPath/uipath-agents-python#870 and UiPath/uipath-langchain-python#1198.How has this been tested?
test_llm_trace_context.pyand the flag setup in the remaining tests.uv run pytestinpackages/uipath-platform: 2054 passed, 7 skipped (they need credentials).Are there any breaking changes?
SapSolexOrganizations) now send trace context headers.🤖 Generated with Claude Code