Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-7522

As a client of kafka-streams library I want to provide custom error handlers programmatically

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1.0
    • None
    • streams

    Description

      According to KIP-210 and KIP-161, I can define custom error handlers via properties:

      default.deserialization.exception.handler=org.apache.kafka.streams.errors
      .LogAndContinueExceptionHandler
      
      default.production.exception.handler=org.apache.kafka.streams.errors
      .ProductionExceptionHandler
      
      or 
      
      settings.put(StreamsConfig.DEFAULT_PRODUCTION_EXCEPTION_HANDLER_CLASS_CONFIG,
                  ProductionExceptionHandler.class);
      

      Nevertheless, this solution has some limitations.

      For example, I have a spring-based application, where my custom error handler is a bean. Then I want to add micrometer monitoring to my error handler.

      The existed approach doesn't allow me to do it, because class creates outside of spring context. 

      I think it would be better to have such a possibility to do so.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Tsyba Yevhen Tsyba
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: