Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Commit 3128beb

Browse files
authored
Merge pull request #25 from UiPath/fix/add_span_processor
fix: add add_span_processor method to trace manager
2 parents a040663 + 23aa883 commit 3128beb

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-core"
3-
version = "0.1.9"
3+
version = "0.1.10"
44
description = "UiPath Core abstractions"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

src/uipath/core/tracing/trace_manager.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Tracing manager for handling tracer implementations and function registry."""
22

3+
from __future__ import annotations
4+
35
import contextlib
46
from typing import Any, Generator, Optional
57

@@ -38,7 +40,7 @@ def add_span_exporter(
3840
self,
3941
span_exporter: SpanExporter,
4042
batch: bool = True,
41-
) -> "UiPathTraceManager":
43+
) -> UiPathTraceManager:
4244
"""Add a span processor to the tracer provider."""
4345
span_processor: SpanProcessor
4446
if batch:
@@ -49,6 +51,15 @@ def add_span_exporter(
4951
self.tracer_provider.add_span_processor(span_processor)
5052
return self
5153

54+
def add_span_processor(
55+
self,
56+
span_processor: SpanProcessor,
57+
) -> UiPathTraceManager:
58+
"""Add a span processor to the tracer provider."""
59+
self.tracer_span_processors.append(span_processor)
60+
self.tracer_provider.add_span_processor(span_processor)
61+
return self
62+
5263
def get_execution_spans(
5364
self,
5465
execution_id: str,

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)