Skip to content

Commit

Permalink
Use TopicPartition.topic for metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
tadashiya authored and tadashiya committed May 16, 2024
1 parent d792a13 commit dcfc56f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected AbstractSubPartitions(PartitionScope scope, Processors<?> processors)
rateLimiter = new DynamicRateLimiter(rateProperty(scope));
Metrics metrics = Metrics.withTags(
"subscription", scope.subscriptionId(),
"topic", scope.topic(),
"topic", scope.topicPartition().topic(),
"partition", String.valueOf(scope.topicPartition().partition()));
taskMetrics = metrics.new TaskMetrics();
schedulerMetrics = metrics.new SchedulerMetrics();
Expand Down

0 comments on commit dcfc56f

Please sign in to comment.