mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-08 13:05:14 +08:00
Add missing context proptery to MockSpan (#6549)
The property context should return a mocked context and not a regular one
This commit is contained in:
1 parent
c96892f3b9
commit
65f69a1c87
1 file changed
+2
@@ -25,6 +25,8 @@ class MockSpan(Span):
|
||||
) -> None: ...
|
||||
@property
|
||||
def tracer(self) -> MockTracer: ...
|
||||
@property
|
||||
def context(self) -> SpanContext: ...
|
||||
def set_operation_name(self: Self, operation_name: str) -> Self: ...
|
||||
def set_tag(self: Self, key: str, value: str | bool | int | float) -> Self: ...
|
||||
def log_kv(self: Self, key_values: dict[str, Any], timestamp: float | None = ...) -> Self: ...
|
||||
|
||||
Reference in new issue
Block a user