Skip to content

fix(tracing): prevent agent span attribute corruption in LlmOps exporter WIP#1275

Open
mjnovice wants to merge 1 commit intomainfrom
fix/agent-trace-export-corruption
Open

fix(tracing): prevent agent span attribute corruption in LlmOps exporter WIP#1275
mjnovice wants to merge 1 commit intomainfrom
fix/agent-trace-export-corruption

Conversation

@mjnovice
Copy link
Contributor

@mjnovice mjnovice commented Feb 6, 2026

OpenInference-specific attribute mappings (_map_llm_call_attributes, _map_tool_call_attributes) were unconditionally applied to all spans, destroying correctly formatted attributes on agent manual spans from UiPathTracer. Guard these mappings behind an openinference.span.kind check. Also fix Source field fallback to check "source" key (not just "uipath.source"), and fix truthiness bug where SpanStatus.UNSET (0) was treated as falsy in LiveTrackingSpanProcessor.

OpenInference-specific attribute mappings (_map_llm_call_attributes,
_map_tool_call_attributes) were unconditionally applied to all spans,
destroying correctly formatted attributes on agent manual spans from
UiPathTracer. Guard these mappings behind an openinference.span.kind
check. Also fix Source field fallback to check "source" key (not just
"uipath.source"), and fix truthiness bug where SpanStatus.UNSET (0)
was treated as falsy in LiveTrackingSpanProcessor.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mjnovice mjnovice changed the title fix(tracing): prevent agent span attribute corruption in LlmOps exporter fix(tracing): prevent agent span attribute corruption in LlmOps exporter WIP Feb 6, 2026
@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 6, 2026
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.

1 participant