[opentracing] Add missing stubs (#14274)

This commit is contained in:
Semyon Moroz
2025-06-21 17:56:08 +00:00
committed by GitHub
parent 0f89c82b62
commit 83a6844847
4 changed files with 13 additions and 12 deletions
@@ -1,3 +1,4 @@
# They raise ModuleNotFoundError so they are not present at stubtest runtime:
opentracing.harness.api_check
opentracing.harness.scope_check
opentracing.scope_managers.gevent
-4
View File
@@ -1,6 +1,2 @@
version = "2.4.*"
upstream_repository = "https://github.com/opentracing/opentracing-python"
partial_stub = true
[tool.stubtest]
ignore_missing_stub = true
+7 -5
View File
@@ -1,5 +1,7 @@
ERROR_KIND: str
ERROR_OBJECT: str
EVENT: str
MESSAGE: str
STACK: str
from typing import Final
ERROR_KIND: Final = "error.kind"
ERROR_OBJECT: Final = "error.object"
EVENT: Final = "event"
MESSAGE: Final = "message"
STACK: Final = "stack"
@@ -1,8 +1,10 @@
from typing import Final
class UnsupportedFormatException(Exception): ...
class InvalidCarrierException(Exception): ...
class SpanContextCorruptedException(Exception): ...
class Format:
BINARY: str
TEXT_MAP: str
HTTP_HEADERS: str
BINARY: Final = "binary"
TEXT_MAP: Final = "text_map"
HTTP_HEADERS: Final = "http_headers"