Skip to content

Commit 5004aae

Browse files
update docstring
1 parent b029bc0 commit 5004aae

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

sentry_sdk/integrations/starlette.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,8 @@ def _is_async_callable(obj: "Any") -> bool:
498498
def _patch_json_request_body_accessor() -> None:
499499
"""
500500
Caches request body data on the ASGI scope, so that the body can be attached to telemetry after the request handler runs.
501-
Without the cache, consuming the stream can cause the application to hang.
501+
Without the cache, consuming the stream causes applications to hang when middleware or handlers consume the raw
502+
`receive()` callable exposed by Starlette.
502503
"""
503504
_original_json = Request.json
504505

@@ -516,7 +517,8 @@ async def wrapped_json(self: "Request", *args: "Any", **kwargs: "Any") -> "Any":
516517
def _patch_formdata_request_body_accessor() -> None:
517518
"""
518519
Caches request body data on the ASGI scope, so that the body can be attached to telemetry after the request handler runs.
519-
Without the cache, consuming the stream can cause the application to hang.
520+
Without the cache, consuming the stream causes applications to hang when middleware or handlers consume the raw
521+
`receive()` callable exposed by Starlette.
520522
"""
521523
if not hasattr(Request, "_get_form"):
522524
return

0 commit comments

Comments
 (0)