Skip to content

Commit 460fc33

Browse files
Funk66xrmx
andauthored
Fix typo in sample code (#2494)
Co-authored-by: Riccardo Magliocchetti <[email protected]>
1 parent d0500c2 commit 460fc33

File tree

1 file changed

+2
-2
lines changed
  • instrumentation/opentelemetry-instrumentation-tornado/src/opentelemetry/instrumentation/tornado

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@ def client_request_hook(span, request):
8787
# will be called after a outgoing request made with
8888
# `tornado.httpclient.AsyncHTTPClient.fetch` finishes.
8989
# `response`` is an instance of ``Future[tornado.httpclient.HTTPResponse]`.
90-
def client_resposne_hook(span, future):
90+
def client_response_hook(span, future):
9191
pass
9292
9393
# apply tornado instrumentation with hooks
9494
TornadoInstrumentor().instrument(
9595
server_request_hook=server_request_hook,
9696
client_request_hook=client_request_hook,
97-
client_response_hook=client_resposne_hook
97+
client_response_hook=client_response_hook
9898
)
9999
100100
Capture HTTP request and response headers

0 commit comments

Comments
 (0)