Skip to content

Commit 695f069

Browse files
committed
Logfire Tracing: fix default arguments for Tracer
1 parent 329526a commit 695f069

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

python/restate/ext/tracing/_tracing.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
# All spans created by this tracer are flat children of the Restate trace.
1010
"""
1111

12-
from typing import Optional, Iterator
12+
from typing import Optional, Iterator, Sequence
1313

1414
from opentelemetry import context as context_api
15-
from opentelemetry.trace import INVALID_SPAN, Span, SpanKind, Tracer, TracerProvider, use_span, _Links
15+
from opentelemetry.trace import INVALID_SPAN, Span, SpanKind, Tracer, TracerProvider, use_span, Link
1616
from opentelemetry.trace.propagation.tracecontext import TraceContextTextMapPropagator
1717
from opentelemetry.util import types
1818
from opentelemetry.util._decorator import _agnosticcontextmanager
@@ -67,7 +67,7 @@ def start_span(
6767
context: Optional[context_api.Context] = None,
6868
kind: SpanKind = SpanKind.INTERNAL,
6969
attributes: types.Attributes = None,
70-
links: _Links = None,
70+
links: Optional[Sequence[Link]] = None,
7171
start_time: Optional[int] = None,
7272
record_exception: bool = True,
7373
set_status_on_exception: bool = True,
@@ -97,7 +97,7 @@ def start_as_current_span(
9797
context: Optional[context_api.Context] = None,
9898
kind: SpanKind = SpanKind.INTERNAL,
9999
attributes: types.Attributes = None,
100-
links: _Links = None,
100+
links: Optional[Sequence[Link]] = None,
101101
start_time: Optional[int] = None,
102102
record_exception: bool = True,
103103
set_status_on_exception: bool = True,

0 commit comments

Comments
 (0)