Skip to content

Commit 6fe6606

Browse files
committed
Rename EventBlobSizeError to BlobSizeError
1 parent 76613c6 commit 6fe6606

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

common/metrics/metric_defs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,8 +648,8 @@ var (
648648
TlsCertsExpiring = NewGaugeDef("certificates_expiring")
649649
ServiceAuthorizationLatency = NewTimerDef("service_authorization_latency")
650650
EventBlobSize = NewBytesHistogramDef("event_blob_size")
651-
EventBlobSizeError = NewCounterDef(
652-
"event_blob_size_error",
651+
BlobSizeError = NewCounterDef(
652+
"blob_size_error",
653653
WithDescription("The number of requests that failed due to blob size exceeding limits configured with BlobSizeLimitError and MemoSizeLimitError."),
654654
)
655655
HeaderSize = NewBytesHistogramDef("header_size", WithDescription("The size of the header in bytes passed to the server by the client. This metric is experimental and can be removed in the future."))

common/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ func CheckEventBlobSizeLimit(
602602
}
603603

604604
if actualSize > errorLimit {
605-
metrics.EventBlobSizeError.With(metricsHandler).Record(1, metrics.OperationTag(operation))
605+
metrics.BlobSizeError.With(metricsHandler).Record(1, metrics.OperationTag(operation))
606606
return ErrBlobSizeExceedsLimit
607607
}
608608
}

0 commit comments

Comments
 (0)