Skip to content

Commit 08e43ed

Browse files
fix: resolve mypy error and update uipath uv.lock
- Use opentelemetry.context.attach/detach instead of trace.context_api - Update uipath package uv.lock for uipath-platform 0.1.44 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 23b806c commit 08e43ed

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/uipath-platform/tests/services/test_llm_trace_context.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,20 @@ def test_traceparent_from_active_span(self) -> None:
5656

5757
def test_no_traceparent_without_active_span(self) -> None:
5858
# INVALID_SPAN has trace_id=0 and span_id=0
59+
from opentelemetry.context import attach, detach
60+
5961
ctx = SpanContext(
6062
trace_id=0,
6163
span_id=0,
6264
is_remote=False,
6365
trace_flags=TraceFlags(0),
6466
)
6567
non_recording = NonRecordingSpan(ctx)
66-
token = trace.context_api.attach(
67-
trace.set_span_in_context(non_recording)
68-
)
68+
token = attach(trace.set_span_in_context(non_recording))
6969
try:
7070
headers = build_trace_context_headers()
7171
finally:
72-
trace.context_api.detach(token)
72+
detach(token)
7373

7474
assert "x-uipath-traceparent-id" not in headers
7575

packages/uipath/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)