Skip to content

Commit fd6b8f1

Browse files
ethervoidlzchenshalevr
authored
Fix response hook (#2038)
Response hook receives a third parameter, Response, and that should be reflected in the _ResponseHook type Co-authored-by: Leighton Chen <[email protected]> Co-authored-by: Shalev Roda <[email protected]>
1 parent e923938 commit fd6b8f1

File tree

1 file changed

+1
-1
lines changed
  • instrumentation/opentelemetry-instrumentation-requests/src/opentelemetry/instrumentation/requests

1 file changed

+1
-1
lines changed

instrumentation/opentelemetry-instrumentation-requests/src/opentelemetry/instrumentation/requests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
_excluded_urls_from_env = get_excluded_urls("REQUESTS")
106106

107107
_RequestHookT = Optional[Callable[[Span, PreparedRequest], None]]
108-
_ResponseHookT = Optional[Callable[[Span, PreparedRequest], None]]
108+
_ResponseHookT = Optional[Callable[[Span, PreparedRequest, Response], None]]
109109

110110

111111
# pylint: disable=unused-argument

0 commit comments

Comments
 (0)