You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: instrumentation/opentelemetry-instrumentation-aiokafka/src/opentelemetry/instrumentation/aiokafka/__init__.py
+32-8Lines changed: 32 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -20,20 +20,35 @@
20
20
21
21
.. code:: python
22
22
23
+
import asyncio
23
24
from opentelemetry.instrumentation.aiokafka import AIOKafkaInstrumentor
24
25
from aiokafka import AIOKafkaProducer, AIOKafkaConsumer
25
26
26
27
# Instrument kafka
27
28
AIOKafkaInstrumentor().instrument()
28
29
29
30
# report a span of type producer with the default settings
0 commit comments