Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-agenta committed Sep 10, 2024
1 parent 6316562 commit 9685269
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agenta-cli/agenta/sdk/tracing/opentelemetry.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import httpx

from typing import Optional, Any, Dict
from typing import Optional, Union, Any, Dict
from contextlib import contextmanager

from opentelemetry.trace import set_tracer_provider
Expand Down Expand Up @@ -157,7 +157,7 @@ def set_attributes(
def get_attributes(
self,
namespace: Namespace,
span: Optional[ReadableSpan | Span] = None,
span: Optional[Union[ReadableSpan, Span]] = None,
) -> Dict[str, Any]:
if span is None:
span = get_current_span()
Expand Down

0 comments on commit 9685269

Please sign in to comment.