Skip to content

Commit b663b21

Browse files
committed
proxy producer purge
1 parent f531996 commit b663b21

File tree

1 file changed

+3
-0
lines changed
  • instrumentation/opentelemetry-instrumentation-confluent-kafka/src/opentelemetry/instrumentation/confluent_kafka

1 file changed

+3
-0
lines changed

Diff for: instrumentation/opentelemetry-instrumentation-confluent-kafka/src/opentelemetry/instrumentation/confluent_kafka/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ def flush(self, timeout=-1):
156156
def poll(self, timeout=-1):
157157
return self._producer.poll(timeout)
158158

159+
def purge(self, in_queue=True, in_flight=True, blocking=True):
160+
self._producer.purge(in_queue, in_flight, blocking)
161+
159162
def produce(
160163
self, topic, value=None, *args, **kwargs
161164
): # pylint: disable=keyword-arg-before-vararg

0 commit comments

Comments
 (0)