Skip to content

Commit

Permalink
Merge branch 'main' into fix/asyncio-wait-for-with-timeout-returning-…
Browse files Browse the repository at this point in the history
…none
  • Loading branch information
ocelotl authored Jun 27, 2024
2 parents 0ec96d1 + 58a6d3a commit 636fb3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
([#2573](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2573))
- `opentelemetry-instrumentation-confluent-kafka` Add support for version 2.4.0 of confluent_kafka
([#2616](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2616))
- `opentelemetry-instrumentation-confluent-kafka` Add support for produce purge
([#2638](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2638))

### Breaking changes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ def flush(self, timeout=-1):
def poll(self, timeout=-1):
return self._producer.poll(timeout)

def purge(self, in_queue=True, in_flight=True, blocking=True):
self._producer.purge(in_queue, in_flight, blocking)

def produce(
self, topic, value=None, *args, **kwargs
): # pylint: disable=keyword-arg-before-vararg
Expand Down

0 comments on commit 636fb3b

Please sign in to comment.