[ 
https://issues.apache.org/jira/browse/GOBBLIN-1423?focusedWorklogId=583639&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-583639
 ]

ASF GitHub Bot logged work on GOBBLIN-1423:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 15/Apr/21 17:56
            Start Date: 15/Apr/21 17:56
    Worklog Time Spent: 10m 
      Work Description: vikrambohra commented on a change in pull request #3259:
URL: https://github.com/apache/gobblin/pull/3259#discussion_r614242250



##########
File path: 
gobblin-metrics-libs/gobblin-metrics-base/src/main/java/org/apache/gobblin/metrics/reporter/EventReporter.java
##########
@@ -189,13 +212,20 @@ public void run() {
     protected MetricFilter filter;
     protected TimeUnit rateUnit;
     protected TimeUnit durationUnit;
+    protected Config config;
 
     protected Builder(MetricContext context) {
       this.context = context;
       this.name = "MetricReportReporter";
       this.rateUnit = TimeUnit.SECONDS;
       this.durationUnit = TimeUnit.MILLISECONDS;
       this.filter = MetricFilter.ALL;
+      this.config = ConfigFactory.empty();
+    }
+
+    public T withConfig(Config config) {

Review comment:
       That's an option, however we call builder.withConfig at 4 places in 
KafkaReportingFormats.java that means we will have to parse and set queue 
capacity and timeout at 4 places (and more for future requests).
   The config keys and fallback logic to queue capacity and timeout should be 
contained in EventReporter IMO




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 583639)
    Time Spent: 0.5h  (was: 20m)

> Make reporting queue capacity and timeout configurable in EventReporter
> -----------------------------------------------------------------------
>
>                 Key: GOBBLIN-1423
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-1423
>             Project: Apache Gobblin
>          Issue Type: Improvement
>            Reporter: Vikram Bohra
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to