uipath 2.0.58__py3-none-any.whl → 2.0.59__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of uipath might be problematic. Click here for more details.
- uipath/_cli/_runtime/_runtime.py +13 -0
- uipath/tracing/__init__.py +2 -1
- uipath/tracing/_traced.py +0 -5
- {uipath-2.0.58.dist-info → uipath-2.0.59.dist-info}/METADATA +1 -1
- {uipath-2.0.58.dist-info → uipath-2.0.59.dist-info}/RECORD +8 -8
- {uipath-2.0.58.dist-info → uipath-2.0.59.dist-info}/WHEEL +0 -0
- {uipath-2.0.58.dist-info → uipath-2.0.59.dist-info}/entry_points.txt +0 -0
- {uipath-2.0.58.dist-info → uipath-2.0.59.dist-info}/licenses/LICENSE +0 -0
uipath/_cli/_runtime/_runtime.py
CHANGED
|
@@ -8,6 +8,12 @@ import os
|
|
|
8
8
|
from dataclasses import asdict, is_dataclass
|
|
9
9
|
from typing import Any, Dict, Optional, Type, TypeVar, cast, get_type_hints
|
|
10
10
|
|
|
11
|
+
from opentelemetry import trace
|
|
12
|
+
from opentelemetry.sdk.trace import TracerProvider
|
|
13
|
+
from opentelemetry.sdk.trace.export import BatchSpanProcessor
|
|
14
|
+
|
|
15
|
+
from uipath.tracing import LlmOpsHttpExporter
|
|
16
|
+
|
|
11
17
|
from ._contracts import (
|
|
12
18
|
UiPathBaseRuntime,
|
|
13
19
|
UiPathErrorCategory,
|
|
@@ -36,6 +42,11 @@ class UiPathRuntime(UiPathBaseRuntime):
|
|
|
36
42
|
await self.validate()
|
|
37
43
|
|
|
38
44
|
try:
|
|
45
|
+
trace.set_tracer_provider(TracerProvider())
|
|
46
|
+
trace.get_tracer_provider().add_span_processor( # type: ignore
|
|
47
|
+
BatchSpanProcessor(LlmOpsHttpExporter())
|
|
48
|
+
)
|
|
49
|
+
|
|
39
50
|
if self.context.entrypoint is None:
|
|
40
51
|
return None
|
|
41
52
|
|
|
@@ -62,6 +73,8 @@ class UiPathRuntime(UiPathBaseRuntime):
|
|
|
62
73
|
f"Error: {str(e)}",
|
|
63
74
|
UiPathErrorCategory.SYSTEM,
|
|
64
75
|
) from e
|
|
76
|
+
finally:
|
|
77
|
+
trace.get_tracer_provider().shutdown() # type: ignore
|
|
65
78
|
|
|
66
79
|
async def validate(self) -> None:
|
|
67
80
|
"""Validate runtime inputs."""
|
uipath/tracing/__init__.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from ._otel_exporters import LlmOpsHttpExporter # noqa: D104
|
|
1
2
|
from ._traced import TracingManager, traced, wait_for_tracers # noqa: D104
|
|
2
3
|
|
|
3
|
-
__all__ = ["TracingManager", "traced", "wait_for_tracers"]
|
|
4
|
+
__all__ = ["TracingManager", "traced", "wait_for_tracers", "LlmOpsHttpExporter"]
|
uipath/tracing/_traced.py
CHANGED
|
@@ -6,16 +6,11 @@ from functools import wraps
|
|
|
6
6
|
from typing import Any, Callable, List, Optional, Tuple
|
|
7
7
|
|
|
8
8
|
from opentelemetry import trace
|
|
9
|
-
from opentelemetry.sdk.trace import TracerProvider
|
|
10
|
-
from opentelemetry.sdk.trace.export import BatchSpanProcessor
|
|
11
9
|
|
|
12
|
-
from ._otel_exporters import LlmOpsHttpExporter
|
|
13
10
|
from ._utils import _SpanUtils
|
|
14
11
|
|
|
15
12
|
logger = logging.getLogger(__name__)
|
|
16
13
|
|
|
17
|
-
trace.set_tracer_provider(TracerProvider())
|
|
18
|
-
trace.get_tracer_provider().add_span_processor(BatchSpanProcessor(LlmOpsHttpExporter())) # type: ignore
|
|
19
14
|
tracer = trace.get_tracer(__name__)
|
|
20
15
|
|
|
21
16
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: uipath
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.59
|
|
4
4
|
Summary: Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools.
|
|
5
5
|
Project-URL: Homepage, https://uipath.com
|
|
6
6
|
Project-URL: Repository, https://github.com/UiPath/uipath-python
|
|
@@ -27,7 +27,7 @@ uipath/_cli/_auth/localhost.crt,sha256=oGl9oLLOiouHubAt39B4zEfylFvKEtbtr_43SIliX
|
|
|
27
27
|
uipath/_cli/_auth/localhost.key,sha256=X31VYXD8scZtmGA837dGX5l6G-LXHLo5ItWJhZXaz3c,1679
|
|
28
28
|
uipath/_cli/_runtime/_contracts.py,sha256=Rxs-uEOA490fLPNimB8LqZW7KI-72O0BLY4Jm7Fa1ms,14316
|
|
29
29
|
uipath/_cli/_runtime/_logging.py,sha256=lA2LsakOrcSLnJWgo80-BYzIQBUWfqzzJGI1M61Gu0s,7874
|
|
30
|
-
uipath/_cli/_runtime/_runtime.py,sha256
|
|
30
|
+
uipath/_cli/_runtime/_runtime.py,sha256=-ZA7MZctX3e_YX_SN9XFjtsQKaCZCdBL3YRYFmsacN4,10162
|
|
31
31
|
uipath/_cli/_templates/.psmdcp.template,sha256=C7pBJPt98ovEljcBvGtEUGoWjjQhu9jls1bpYjeLOKA,611
|
|
32
32
|
uipath/_cli/_templates/.rels.template,sha256=-fTcw7OA1AcymHr0LzBqbMAAtzZTRXLTNa_ljq087Jk,406
|
|
33
33
|
uipath/_cli/_templates/[Content_Types].xml.template,sha256=bYsKDz31PkIF9QksjgAY_bqm57YC8U_owsZeNZAiBxQ,584
|
|
@@ -82,12 +82,12 @@ uipath/models/queues.py,sha256=N_s0GKucbyjh0RnO8SxPk6wlRgvq8KIIYsfaoIY46tM,6446
|
|
|
82
82
|
uipath/telemetry/__init__.py,sha256=Wna32UFzZR66D-RzTKlPWlvji9i2HJb82NhHjCCXRjY,61
|
|
83
83
|
uipath/telemetry/_constants.py,sha256=RVymOX07CRzcGMn1OWzh-TR6bZMvLG3vdCA6fvRrrCk,678
|
|
84
84
|
uipath/telemetry/_track.py,sha256=v0e3hgwtetMsUco4yosBzNU00Ek5SI9RxUTumrTTNyo,3872
|
|
85
|
-
uipath/tracing/__init__.py,sha256=
|
|
85
|
+
uipath/tracing/__init__.py,sha256=GKRINyWdHVrDsI-8mrZDLdf0oey6GHGlNZTOADK-kgc,224
|
|
86
86
|
uipath/tracing/_otel_exporters.py,sha256=x0PDPmDKJcxashsuehVsSsqBCzRr6WsNFaq_3_HS5F0,3014
|
|
87
|
-
uipath/tracing/_traced.py,sha256=
|
|
87
|
+
uipath/tracing/_traced.py,sha256=UL0TBqUexYb2PuUIY_am9l0TEeRGXFdxKEcDq5J-NXQ,16319
|
|
88
88
|
uipath/tracing/_utils.py,sha256=s0fQPlkrnd484_pcHuNvW6-ElHiZH8mkfMkYFBfwnCQ,10234
|
|
89
|
-
uipath-2.0.
|
|
90
|
-
uipath-2.0.
|
|
91
|
-
uipath-2.0.
|
|
92
|
-
uipath-2.0.
|
|
93
|
-
uipath-2.0.
|
|
89
|
+
uipath-2.0.59.dist-info/METADATA,sha256=2DPfoZsPXv_DITanUu8KeSVUIqDdtbSGqK1pPtNWlAc,6304
|
|
90
|
+
uipath-2.0.59.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
91
|
+
uipath-2.0.59.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
|
|
92
|
+
uipath-2.0.59.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
|
|
93
|
+
uipath-2.0.59.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|