Confluent kafka Producer doesn't return expected values from poll() and flush() methods when instrumented by ConfluentKafkaInstrumentor().instrument_producer() #2525
Labels
bug
Something isn't working
Describe your environment
Steps to reproduce
Spin up a kafka broker:
Run this code:
What is the expected behavior?
Should be printed:
Producer poll() and flush() methods should return integers.
What is the actual behavior?
Producer poll() and flush() methods are returning
None
Additional context
flush and poll methods doesn't have a return statement:
opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-confluent-kafka/src/opentelemetry/instrumentation/confluent_kafka/__init__.py
Line 154 in 460fc33
opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-confluent-kafka/src/opentelemetry/instrumentation/confluent_kafka/__init__.py
Line 157 in 460fc33
The text was updated successfully, but these errors were encountered: