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

Add Task ID and Connector Name to Connect Task Context

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • connect
    • None

    Description

      Developers who are implementing a Kafka Connector do not have a convenient way to access the Task ID and Connector Name within their task implementation. The Task ID and Connector Name are important pieces of information that can be used for custom metrics, debugging, and logging. 

      KIP-449 added the Task ID and Connector Name to the SLF4J MDC. It was accepted, and released as part of AK 2.3.0. That added the task context to the logs. It would be nice to take it a step further and make the Task ID and Connector Name available for developers to use within their task implementation however they see fit.

      Attachments

        Issue Links

          Activity

            People

              sarah-story Sarah Story
              sarah-story Sarah Story
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: