Skip to content

feat: add internal tenant/account headers for local flow tracing#1392

Merged
mjnovice merged 2 commits intomainfrom
feat/llmops-internal-headers
Feb 28, 2026
Merged

feat: add internal tenant/account headers for local flow tracing#1392
mjnovice merged 2 commits intomainfrom
feat/llmops-internal-headers

Conversation

@mjnovice
Copy link
Contributor

Summary

  • When UIPATH_TRACE_BASE_URL is set (local flow mode), the LlmOpsHttpExporter now includes X-UiPath-Internal-TenantId and X-UiPath-Internal-AccountId headers in requests to the IngestSpans endpoint
  • Headers are not added in cloud mode (when UIPATH_TRACE_BASE_URL is absent)
  • Reads tenant ID from UIPATH_TENANT_ID and org ID from UIPATH_ORGANIZATION_ID environment variables

Test plan

  • Added test_internal_headers_set_when_trace_base_url_present — verifies headers are included when UIPATH_TRACE_BASE_URL is set
  • Added test_internal_headers_not_set_without_trace_base_url — verifies headers are absent in cloud mode
  • All 1578 existing tests pass

🤖 Generated with Claude Code

When UIPATH_TRACE_BASE_URL is set (local flow mode), include
X-UiPath-Internal-TenantId and X-UiPath-Internal-AccountId headers
in LlmOpsHttpExporter requests so the IngestSpans endpoint can
identify the tenant and organization.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository labels Feb 28, 2026
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mjnovice mjnovice merged commit 95e55d3 into main Feb 28, 2026
98 checks passed
@mjnovice mjnovice deleted the feat/llmops-internal-headers branch February 28, 2026 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants