feat: add internal tenant/account headers for local flow tracing#1392
Merged
feat: add internal tenant/account headers for local flow tracing#1392
Conversation
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>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
JosephMar
approved these changes
Feb 28, 2026
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.
Summary
UIPATH_TRACE_BASE_URLis set (local flow mode), theLlmOpsHttpExporternow includesX-UiPath-Internal-TenantIdandX-UiPath-Internal-AccountIdheaders in requests to the IngestSpans endpointUIPATH_TRACE_BASE_URLis absent)UIPATH_TENANT_IDand org ID fromUIPATH_ORGANIZATION_IDenvironment variablesTest plan
test_internal_headers_set_when_trace_base_url_present— verifies headers are included whenUIPATH_TRACE_BASE_URLis settest_internal_headers_not_set_without_trace_base_url— verifies headers are absent in cloud mode🤖 Generated with Claude Code