Skip to content

Commit 3a05425

Browse files
authored
Merge branch 'main' into add-aiokafka-batch
2 parents 08b698a + 7562ff0 commit 3a05425

File tree

1 file changed

+3
-1
lines changed
  • instrumentation/opentelemetry-instrumentation-tornado/src/opentelemetry/instrumentation/tornado

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ def get(self):
7272
7373
.. code-block:: python
7474
75+
from opentelemetry.instrumentation.tornado import TornadoInstrumentor
76+
7577
# will be called for each incoming request to Tornado
7678
# web server. `handler` is an instance of
7779
# `tornado.web.RequestHandler`.
@@ -94,7 +96,7 @@ def client_response_hook(span, future):
9496
TornadoInstrumentor().instrument(
9597
server_request_hook=server_request_hook,
9698
client_request_hook=client_request_hook,
97-
client_response_hook=client_response_hook
99+
client_response_hook=client_response_hook,
98100
)
99101
100102
Capture HTTP request and response headers

0 commit comments

Comments
 (0)