Skip to content
Open
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.89"
version = "0.1.90"
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 @@ -44,6 +44,8 @@ def build_trace_context_headers(
baggage_parts.append(f"agentId={agent_id}")
if process_uuid := UiPathConfig.process_uuid:
baggage_parts.append(f"processKey={process_uuid}")
if job_key := UiPathConfig.job_key:
baggage_parts.append(f"jobKey={job_key}")
Comment on lines +47 to +48

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this as part of baggage. I saw that on other flows this is pass as a independent header #1739 (how is also licensingRefId)

if baggage_parts:
headers["x-uipath-tracebaggage"] = ",".join(baggage_parts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ def test_all_env_vars_present(self) -> None:
"UIPATH_FOLDER_KEY": "folder-abc",
ENV_PROJECT_KEY: "agent-123",
"UIPATH_PROCESS_UUID": "process-789",
"UIPATH_JOB_KEY": "job-456",
}
with patch.dict(os.environ, env, clear=True):
headers = build_trace_context_headers()
Expand All @@ -130,6 +131,7 @@ def test_all_env_vars_present(self) -> None:
assert "folderKey=folder-abc" in baggage
assert "agentId=agent-123" in baggage
assert "processKey=process-789" in baggage
assert "jobKey=job-456" in baggage

def test_partial_env_vars(self) -> None:
env = {"UIPATH_FOLDER_KEY": "folder-only"}
Expand Down
4 changes: 2 additions & 2 deletions packages/uipath-platform/uv.lock

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

4 changes: 2 additions & 2 deletions packages/uipath/uv.lock

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

Loading