Skip to content

Commit 9c18bd4

Browse files
authored
Merge pull request #40 from UiPath/feature/add_traced_integration
feat(trace): fix tracing integration with sdk
2 parents 70578b3 + 4db92cf commit 9c18bd4

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[project]
22
name = "uipath-langchain"
3-
version = "0.0.91"
3+
version = "0.0.92"
44
description = "UiPath Langchain"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.10"
77
dependencies = [
8-
"uipath>=2.0.13, <2.1.0",
8+
"uipath>=2.0.14, <2.1.0",
99
"langgraph>=0.2.70",
1010
"langchain-core>=0.3.34",
1111
"langgraph-checkpoint-sqlite>=2.0.3",

src/uipath_langchain/tracers/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@
22
from .AsyncUiPathTracer import AsyncUiPathTracer
33
from .UiPathTracer import UiPathTracer
44

5-
__all__ = ["AsyncUiPathTracer", "UiPathTracer", "_instrument_traceable_attributes"]
5+
__all__ = [
6+
"AsyncUiPathTracer",
7+
"UiPathTracer",
8+
"_instrument_traceable_attributes",
9+
]

src/uipath_langchain/tracers/_instrument_traceable.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from typing import Any, Callable, Dict, List, Literal, Optional
88

99
from langchain_core.callbacks import dispatch_custom_event
10-
from uipath.tracing import TracedDecoratorRegistry
10+
from uipath.tracing import TracingManager
1111

1212
from ._events import CustomTraceEvents, FunctionCallEventData
1313

@@ -373,7 +373,8 @@ def uipath_trace_decorator(func):
373373
# Register the UIPath traced decorator
374374
def register_uipath_tracing():
375375
"""Register the UIPath tracing decorator with TracedDecoratorRegistry."""
376-
TracedDecoratorRegistry.register_decorator("uipath", _uipath_traced)
376+
# Reapply to all previously decorated functions
377+
TracingManager.reapply_traced_decorator(_uipath_traced)
377378

378379

379380
# Apply the patch

uv.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)