We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 859efe2 commit b1d3de3Copy full SHA for b1d3de3
1 file changed
sentry_sdk/_types.py
@@ -285,16 +285,17 @@ class SDKInfo(TypedDict):
285
"type": str,
286
"asgi": _ASGIInfo,
287
"http_version": str,
288
- "server": tuple[str, int],
289
- "client": tuple[str, int],
290
- "scheme": str,
291
"method": str,
292
- "root_path": str,
293
"path": str,
294
- "raw_path": bytes,
295
"query_string": bytes,
296
"headers": list[tuple[bytes, bytes]],
297
- "state": dict[str, Any],
+ # Optional fields per ASGI spec
+ "scheme": NotRequired[str],
+ "raw_path": NotRequired[bytes],
+ "root_path": NotRequired[str],
+ "client": NotRequired[tuple[str, int]],
+ "server": NotRequired[tuple[str, int]],
298
+ "state": NotRequired[dict[str, Any]],
299
},
300
)
301
_TransactionContext = TypedDict(
0 commit comments