mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-30 05:32:30 +08:00
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 <lechen@microsoft.com> Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
This commit is contained in:

committed by
GitHub

parent
e923938646
commit
fd6b8f1647
@ -105,7 +105,7 @@ from opentelemetry.util.http.httplib import set_ip_on_next_http_connection
|
||||
_excluded_urls_from_env = get_excluded_urls("REQUESTS")
|
||||
|
||||
_RequestHookT = Optional[Callable[[Span, PreparedRequest], None]]
|
||||
_ResponseHookT = Optional[Callable[[Span, PreparedRequest], None]]
|
||||
_ResponseHookT = Optional[Callable[[Span, PreparedRequest, Response], None]]
|
||||
|
||||
|
||||
# pylint: disable=unused-argument
|
||||
|
Reference in New Issue
Block a user