Fix typo in sample code (#2494)

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
This commit is contained in:
Guillermo
2024-05-15 03:52:59 -06:00
committed by GitHub
parent d0500c2f8a
commit 460fc33583

View File

@ -87,14 +87,14 @@ created span and some other contextual information. Example:
# will be called after a outgoing request made with
# `tornado.httpclient.AsyncHTTPClient.fetch` finishes.
# `response`` is an instance of ``Future[tornado.httpclient.HTTPResponse]`.
def client_resposne_hook(span, future):
def client_response_hook(span, future):
pass
# apply tornado instrumentation with hooks
TornadoInstrumentor().instrument(
server_request_hook=server_request_hook,
client_request_hook=client_request_hook,
client_response_hook=client_resposne_hook
client_response_hook=client_response_hook
)
Capture HTTP request and response headers