mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-29 13:12:39 +08:00
Fix typo in sample code (#2494)
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
This commit is contained in:
@ -87,14 +87,14 @@ created span and some other contextual information. Example:
|
|||||||
# will be called after a outgoing request made with
|
# will be called after a outgoing request made with
|
||||||
# `tornado.httpclient.AsyncHTTPClient.fetch` finishes.
|
# `tornado.httpclient.AsyncHTTPClient.fetch` finishes.
|
||||||
# `response`` is an instance of ``Future[tornado.httpclient.HTTPResponse]`.
|
# `response`` is an instance of ``Future[tornado.httpclient.HTTPResponse]`.
|
||||||
def client_resposne_hook(span, future):
|
def client_response_hook(span, future):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# apply tornado instrumentation with hooks
|
# apply tornado instrumentation with hooks
|
||||||
TornadoInstrumentor().instrument(
|
TornadoInstrumentor().instrument(
|
||||||
server_request_hook=server_request_hook,
|
server_request_hook=server_request_hook,
|
||||||
client_request_hook=client_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
|
Capture HTTP request and response headers
|
||||||
|
Reference in New Issue
Block a user