Skip to content

Commit

Permalink
kvcoord: Correctly add rangefeed metrics to metric registry
Browse files Browse the repository at this point in the history
Annotate `DistSenderRangeFeedMetrics` as `metric.Struct`
in order to register those metrics with metrics registry.

Issue: None
Release note: None
  • Loading branch information
Yevgeniy Miretskiy committed Aug 3, 2023
1 parent 7d4385f commit a82a98f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/kv/kvclient/kvcoord/dist_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,9 @@ func makeDistSenderRangeFeedMetrics() DistSenderRangeFeedMetrics {
}
}

// MetricStruct implements metrics.Struct interface.
func (DistSenderRangeFeedMetrics) MetricStruct() {}

// updateCrossLocalityMetricsOnReplicaAddressedBatchRequest updates
// DistSenderMetrics for batch requests that have been divided and are currently
// forwarding to a specific replica for the corresponding range. The metrics
Expand Down

0 comments on commit a82a98f

Please sign in to comment.