Skip to content

Commit aba83d1

Browse files
committed
change order to be extra cautious
1 parent 95ec5c9 commit aba83d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/uipath_llamaindex/_cli/cli_run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ async def execute():
6868
UiPathLlamaIndexRuntime, UiPathLlamaIndexRuntimeContext
6969
)
7070

71-
if context.job_id:
72-
runtime_factory.add_span_exporter(LlamaIndexExporter())
7371
runtime_factory.tracer_provider.add_span_processor(
7472
AttributeNormalizingSpanProcessor()
7573
)
74+
if context.job_id:
75+
runtime_factory.add_span_exporter(LlamaIndexExporter())
7676

7777
runtime_factory.add_instrumentor(LlamaIndexInstrumentor, get_current_span)
7878

0 commit comments

Comments
 (0)