Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "uipath-core"
version = "0.1.9"
version = "0.1.10"
description = "UiPath Core abstractions"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.11"
Expand Down
13 changes: 12 additions & 1 deletion src/uipath/core/tracing/trace_manager.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""Tracing manager for handling tracer implementations and function registry."""

from __future__ import annotations

import contextlib
from typing import Any, Generator, Optional

Expand Down Expand Up @@ -38,7 +40,7 @@ def add_span_exporter(
self,
span_exporter: SpanExporter,
batch: bool = True,
) -> "UiPathTraceManager":
) -> UiPathTraceManager:
"""Add a span processor to the tracer provider."""
span_processor: SpanProcessor
if batch:
Expand All @@ -49,6 +51,15 @@ def add_span_exporter(
self.tracer_provider.add_span_processor(span_processor)
return self

def add_span_processor(
self,
span_processor: SpanProcessor,
) -> UiPathTraceManager:
"""Add a span processor to the tracer provider."""
self.tracer_span_processors.append(span_processor)
self.tracer_provider.add_span_processor(span_processor)
return self

def get_execution_spans(
self,
execution_id: str,
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading