Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/uipath-platform/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "uipath-platform"
version = "0.1.21"
version = "0.1.22"
description = "HTTP client library for programmatic access to UiPath Platform"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.11"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,15 @@ def _get_caller_component() -> str:


def _inject_trace_context(headers: dict[str, str]) -> None:
"""Inject UiPath trace context header from the active OTEL span."""
span = trace.get_current_span()
"""Inject UiPath trace context header from the active OTEL span.

Prefers the LLMOps tool span (from ContextVar) over the raw OTEL span,
so the header carries the span ID visible in the LLMOps trace.
"""
from uipath.core.tracing.span_utils import UiPathSpanUtils

llmops_span = UiPathSpanUtils.get_external_current_span()
span = llmops_span or trace.get_current_span()
ctx = span.get_span_context()
if ctx.trace_id and ctx.span_id:
headers[_TRACE_PARENT_HEADER] = (
Expand Down
2 changes: 1 addition & 1 deletion packages/uipath-platform/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/uipath/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading