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:
kasium
2021-12-10 11:51:18 +01:00
committed by GitHub
parent c96892f3b9
commit 65f69a1c87

View File

@@ -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: ...