File tree Expand file tree Collapse file tree
src/uipath_llamaindex/_cli Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[project ]
22name = " uipath-llamaindex"
3- version = " 0.0.7 "
3+ version = " 0.0.8 "
44description = " UiPath LlamaIndex SDK"
55readme = { file = " README.md" , content-type = " text/markdown" }
66requires-python = " >=3.10"
Original file line number Diff line number Diff line change 88from opentelemetry .instrumentation .llamaindex import LlamaIndexInstrumentor
99from uipath ._cli ._runtime ._contracts import UiPathTraceContext
1010from uipath ._cli .middlewares import MiddlewareResult
11- from uipath .tracing import get_trace_provider
11+ from uipath .tracing import get_trace_provider , wait_for_tracers
1212
1313from ._runtime ._context import UiPathLlamaIndexRuntimeContext
1414from ._runtime ._exception import UiPathLlamaIndexRuntimeError
@@ -66,7 +66,10 @@ async def execute():
6666 async with UiPathLlamaIndexRuntime .from_context (context ) as runtime :
6767 await runtime .execute ()
6868
69- asyncio .run (execute ())
69+ try :
70+ asyncio .run (execute ())
71+ finally :
72+ wait_for_tracers ()
7073
7174 return MiddlewareResult (should_continue = False , error_message = None )
7275
You can’t perform that action at this time.
0 commit comments