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 Details

  • Method Details

    • recordRecord

      void recordRecord(SchemaIdType type)
      A validated record, tagged by where its schema id was found.
    • recordRejected

      void recordRejected(SchemaIdType type)
      A record rejected by validation.
    • recordRetry

      void recordRetry(SchemaIdType type)
      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.