Skip to content

ConfluentKafkaInstrumentor's ProxiedConsumer does not support commit #1506

@jeehun-pas

Description

@jeehun-pas

Describe your environment
Python 3.8
confluent-kafka[avro]==1.9.2
opentelemetry-instrumentation-confluent-kafka==0.35b0

Steps to reproduce
Call ProxiedConsumer.commit

What is the expected behavior?
Message is committed in Kafka cluster

What is the actual behavior?
Get an exception with message "Consumer closed"

Additional context
ProxiedConsumer is not an actual Consumer but using a private internal Consumer instance to do poll, consume, etc. It is missing an over-ridden version of ProxiedConsumer.commit which calls the private Consumer's commit.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions