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

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

                Author: ASF GitHub Bot
            Created on: 30/Aug/24 02:50
            Start Date: 30/Aug/24 02:50
    Worklog Time Spent: 10m 
      Work Description: arjun4084346 commented on code in PR #4031:
URL: https://github.com/apache/gobblin/pull/4031#discussion_r1737684420


##########
gobblin-service/src/main/java/org/apache/gobblin/service/monitoring/SpecStoreChangeMonitor.java:
##########
@@ -204,7 +204,9 @@ protected void createMetrics() {
     this.messageProcessedMeter = 
this.getMetricContext().contextAwareMeter(RuntimeMetrics.GOBBLIN_SPEC_STORE_MESSAGE_PROCESSED);
     this.duplicateMessagesMeter = 
this.getMetricContext().contextAwareMeter(RuntimeMetrics.GOBBLIN_SPEC_STORE_DUPLICATE_MESSAGES);
     this.heartbeatMessagesMeter = 
this.getMetricContext().contextAwareMeter(RuntimeMetrics.GOBBLIN_SPEC_STORE_HEARTBEAT_MESSAGES);
-    this.produceToConsumeDelayMillis = 
this.getMetricContext().newContextAwareGauge(RuntimeMetrics.GOBBLIN_SPEC_STORE_PRODUCE_TO_CONSUME_DELAY_MILLIS,
 () -> produceToConsumeDelayValue);
-    this.getMetricContext().register(this.produceToConsumeDelayMillis);
+   // Reports delay from all partitions in one gauge
+   ContextAwareGauge<Long> produceToConsumeDelayMillis = 
this.getMetricContext().newContextAwareGauge(

Review Comment:
   others are meters, this one is guage, the guage value is 
produceToConsumeDelayValue and that is instance variable, it is this that needs 
to be changed by outside code. the guage name `produceToConsumeDelayMillis` is 
little important, could also have been added inline





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

    Worklog Id:     (was: 932548)
    Time Spent: 2h 20m  (was: 2h 10m)

> remove obsolete code related to DagManager
> ------------------------------------------
>
>                 Key: GOBBLIN-2136
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-2136
>             Project: Apache Gobblin
>          Issue Type: Task
>            Reporter: Arjun Singh Bora
>            Priority: Major
>          Time Spent: 2h 20m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to