Interface ValidationMetricsRecorder
- All Known Implementing Classes:
SensorValidationMetricsRecorder
public interface ValidationMetricsRecorder
Sink for schema-validation metrics.
Decouples the validation logic from how metrics are published. The broker interceptor records
into Kafka Sensors scoped to a topic-partition; Kora Edge will record per LKC, with no
per-partition object to hang them off. Implementations must be safe to call from multiple
threads and must not throw, since these calls sit on the append path.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidA 4xx from Schema Registry.voidA failure reaching Schema Registry at all (connection level).voidrecordRecord(SchemaIdType type) A validated record, tagged by where its schema id was found.voidrecordRejected(SchemaIdType type) A record rejected by validation.voidrecordRetry(SchemaIdType type) A record whose validation could not complete from cache and will be retried.voidA 5xx from Schema Registry.
-
Field Details
-
NOOP
Discards everything. For callers that have no metrics wired up.
-
-
Method Details
-
recordRecord
A validated record, tagged by where its schema id was found. -
recordRejected
A record rejected by validation. -
recordRetry
A record whose validation could not complete from cache and will be retried. -
recordConnectionError
void recordConnectionError()A failure reaching Schema Registry at all (connection level). -
recordClientError
void recordClientError()A 4xx from Schema Registry. -
recordServerError
void recordServerError()A 5xx from Schema Registry.
-