Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opentelemetry-instrumentation-confluent-kafka: TypeError on consumer close #2890

Open
allistergg opened this issue Sep 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@allistergg
Copy link

Describe your environment

OS: Fedora
Python version: 3.12.4
Package version:
confluent-kafka==2.4.0
opentelemetry-distro==0.48b0
opentelemetry-instrumentation-confluent-kafka==0.48b0

What happened?

on consumer.close()
TypeError: ConfluentKafkaInstrumentor._instrument.<locals>._inner_wrap_close() takes 2 positional arguments but 4 were given

Steps to Reproduce

consumer.py:

from confluent_kafka import Consumer

topic = "topic"

consumer = Consumer({'bootstrap.servers': 'localhost:9092', 'group.id': 'test-group'})
consumer.subscribe([topic])
message = consumer.poll(timeout=5)
consumer.close()

$ opentelemetry-instrument python consumer.py

Expected Result

No TypeError

Actual Result

TypeError: ConfluentKafkaInstrumentor._instrument.<locals>._inner_wrap_close() takes 2 positional arguments but 4 were given

Additional context

No response

Would you like to implement a fix?

None

@allistergg allistergg added the bug Something isn't working label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant