Skip to content

Commit

Permalink
#000: Review comment fix - Generation of metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Manjunath authored and Manjunath committed Jan 3, 2025
1 parent 180cbb7 commit e322419
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class RowDataConverterFunction(config: HudiConnectorConfig, datasetId: String) e
// Logger for logging
private val logger = LoggerFactory.getLogger(classOf[RowDataConverterFunction])

protected val metricsList: MetricsList = getMetricsList()
protected val metrics: Metrics = registerMetrics(metricsList.datasets, metricsList.metrics)
private val metricsList: MetricsList = getMetricsList()
private val metrics: Metrics = registerMetrics(metricsList.datasets, metricsList.metrics)



Expand All @@ -51,6 +51,7 @@ class RowDataConverterFunction(config: HudiConnectorConfig, datasetId: String) e

override def map(event: MMap[String, AnyRef]): RowData = {
startTime = System.currentTimeMillis()
metrics.incCounter(datasetId, config.inputEventCountMetric)
try {
metrics.incCounter(datasetId, config.inputEventCountMetric, event.size)
val rowData = convertToRowData(event)
Expand Down

0 comments on commit e322419

Please sign in to comment.