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

Expose option to enable error_on_callbacks in KafkaProducer.send #2366

Open
aiven-anton opened this issue Jun 14, 2023 · 0 comments
Open

Expose option to enable error_on_callbacks in KafkaProducer.send #2366

aiven-anton opened this issue Jun 14, 2023 · 0 comments
Labels

Comments

@aiven-anton
Copy link

With Future.error_on_callbacks == False, the default, errors raised in callbacks are suppressed (even critical ones like MemoryError). The only feasible way to change this behavior is currently to override the class attribute, but this has global effects and might not be possible in a large application with multiple usages and different needs. I'm proposing to change this class attribute to an instance attribute, and expose a way to change its value, either through instantiation of KafkaProducer, or by passing a parameter to .send().

@dpkp dpkp added the producer label Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants