We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40b8062 commit 499a0b6Copy full SHA for 499a0b6
internal/metrics/metrics.go
@@ -2,6 +2,7 @@ package metrics
2
3
import (
4
"context"
5
+ "errors"
6
"fmt"
7
"os"
8
@@ -239,7 +240,7 @@ func (m *MetricsEmitter) EmitSaturationMetrics(
239
240
) error {
241
if saturationUtilization == nil || spareCapacity == nil || requiredCapacity == nil ||
242
kvCacheTokensUsed == nil || kvCacheTokensTotal == nil {
- return fmt.Errorf("saturation metrics not initialized")
243
+ return errors.New("saturation metrics not initialized")
244
}
245
246
accelLabels := prometheus.Labels{
0 commit comments