[#1388] metrics: Mark nolint:unused metrics

Although these fields could be deleted, I annotated them so that all the
metrics used would be defined in one place.

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2024-09-23 09:02:00 +03:00 committed by Dmitrii Stepanov
parent 2bd560e528
commit b69e07da7a
2 changed files with 4 additions and 2 deletions

View file

@ -17,7 +17,8 @@ type InnerRingServiceMetrics struct {
eventDuration *prometheus.HistogramVec
morphCacheMetrics *morphCacheMetrics
logMetrics logger.LogMetrics
appInfo *ApplicationInfo
// nolint: unused
appInfo *ApplicationInfo
}
// NewInnerRingMetrics returns new instance of metrics collectors for inner ring.

View file

@ -25,7 +25,8 @@ type NodeMetrics struct {
morphClient *morphClientMetrics
morphCache *morphCacheMetrics
log logger.LogMetrics
appInfo *ApplicationInfo
// nolint: unused
appInfo *ApplicationInfo
}
func NewNodeMetrics() *NodeMetrics {