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.8 "
3+ version = " 0.0.9 "
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 55from typing import Optional
66
77from dotenv import load_dotenv
8+ from opentelemetry import trace
89from opentelemetry .instrumentation .llamaindex import LlamaIndexInstrumentor
910from uipath ._cli ._runtime ._contracts import UiPathTraceContext
1011from uipath ._cli .middlewares import MiddlewareResult
11- from uipath .tracing import get_trace_provider , wait_for_tracers
12+ from uipath .tracing import wait_for_tracers
1213
1314from ._runtime ._context import UiPathLlamaIndexRuntimeContext
1415from ._runtime ._exception import UiPathLlamaIndexRuntimeError
@@ -35,7 +36,7 @@ def llamaindex_run_middleware(
3536 async def execute ():
3637
3738 with suppress (Exception ):
38- LlamaIndexInstrumentor ().instrument (tracer_provider = get_trace_provider ())
39+ LlamaIndexInstrumentor ().instrument (tracer_provider = trace . get_tracer_provider ())
3940
4041 context = UiPathLlamaIndexRuntimeContext .from_config (
4142 env .get ("UIPATH_CONFIG_PATH" , "uipath.json" )
You can’t perform that action at this time.
0 commit comments