mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-28 07:13:16 +08:00
[opentracing] Add missing stubs (#14274)
This commit is contained in:
1 parent
0f89c82b62
commit
83a6844847
4 files changed
+13
-12
No files matched your search
@@ -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"
|
||||
Reference in new issue
Block a user