Class MicrometerOutboxMetrics

java.lang.Object
ch.admin.bit.jeap.messaging.transactionaloutbox.metrics.MicrometerOutboxMetrics
All Implemented Interfaces:
OutboxMetrics

public class MicrometerOutboxMetrics extends Object implements OutboxMetrics
  • Constructor Details

    • MicrometerOutboxMetrics

      public MicrometerOutboxMetrics(io.micrometer.core.instrument.MeterRegistry meterRegistry, DeferredMessageRepository deferredMessageRepository, FailedMessageRepository failedMessageRepository, ch.admin.bit.jeap.messaging.kafka.metrics.KafkaMessagingMetrics kafkaMessagingMetrics, ch.admin.bit.jeap.messaging.kafka.signature.publisher.SignaturePublisherProperties signaturePublisherProperties, String applicationName)
  • Method Details

    • countTransactionalSend

      public void countTransactionalSend(boolean sendImmediately)
      Description copied from interface: OutboxMetrics
      Count a send operation on the transactional outbox and tag it with dimensions 'delivery_type' and 'tx_status'.
      Specified by:
      countTransactionalSend in interface OutboxMetrics
      Parameters:
      sendImmediately - true if the send operation requested sending immediately after the transaction commit, false otherwise.
    • updateGauges

      public void updateGauges()
      Description copied from interface: OutboxMetrics
      Update the gauges that reflect outbox metrics derived from persistent storage e.g. the current message relay lag or the current number of failed messages.
      Specified by:
      updateGauges in interface OutboxMetrics
    • countMessagingSend

      public void countMessagingSend(String bootstrapServers, String topic, String messageType, String messageTypeVersion)
      Description copied from interface: OutboxMetrics
      Count the actual sending of messages on the messaging system.
      Specified by:
      countMessagingSend in interface OutboxMetrics
      Parameters:
      bootstrapServers - cluster bootstrap server address
      topic - the topic where the message will be sent
      messageType - the type of the message
      messageTypeVersion - the version of the type of the message