mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-08-02 19:47:17 +08:00
Fix doc formatting issues (#3062)
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
This commit is contained in:
@ -18,7 +18,7 @@ Instrument kafka-python to report instrumentation-kafka produced and consumed me
|
||||
Usage
|
||||
-----
|
||||
|
||||
..code:: python
|
||||
.. code:: python
|
||||
|
||||
from opentelemetry.instrumentation.kafka import KafkaInstrumentor
|
||||
from kafka import KafkaProducer, KafkaConsumer
|
||||
@ -45,7 +45,8 @@ this function signature is:
|
||||
def consume_hook(span: Span, record: kafka.record.ABCRecord, args, kwargs)
|
||||
for example:
|
||||
|
||||
.. code: python
|
||||
.. code:: python
|
||||
|
||||
from opentelemetry.instrumentation.kafka import KafkaInstrumentor
|
||||
from kafka import KafkaProducer, KafkaConsumer
|
||||
|
||||
|
Reference in New Issue
Block a user