Tabnine Logo
HermesMetrics.consumerErrorsOtherMeter
Code IndexAdd Tabnine to your IDE (free)

How to use
consumerErrorsOtherMeter
method
in
pl.allegro.tech.hermes.common.metric.HermesMetrics

Best Java code snippets using pl.allegro.tech.hermes.common.metric.HermesMetrics.consumerErrorsOtherMeter (Showing top 5 results out of 315)

origin: allegro/hermes

  private void registerFailureMetrics(Subscription subscription, MessageSendingResult result) {
    if (result.hasHttpAnswer()) {
      hermesMetrics.registerConsumerHttpAnswer(subscription, result.getStatusCode());
    }
    else if (result.isTimeout()) {
      hermesMetrics.consumerErrorsTimeoutMeter(subscription).mark();
    }
    else {
      hermesMetrics.consumerErrorsOtherMeter(subscription).mark();
    }
  }
}
origin: pl.allegro.tech.hermes/hermes-consumers

  private void registerFailureMetrics(Subscription subscription, MessageSendingResult result) {
    if (result.hasHttpAnswer()) {
      hermesMetrics.registerConsumerHttpAnswer(subscription, result.getStatusCode());
    }
    else if (result.isTimeout()) {
      hermesMetrics.consumerErrorsTimeoutMeter(subscription).mark();
    }
    else {
      hermesMetrics.consumerErrorsOtherMeter(subscription).mark();
    }
  }
}
origin: allegro/hermes

private void setUpMetrics(Subscription subscription) {
  when(hermesMetrics.latencyTimer(subscription)).thenReturn(consumerLatencyTimer);
  when(hermesMetrics.consumerErrorsOtherMeter(subscription)).thenReturn(errors);
  when(consumerLatencyTimer.time()).thenReturn(consumerLatencyTimerContext);
  when(hermesMetrics.meter(Meters.FAILED_METER_SUBSCRIPTION, subscription.getTopicName(), subscription.getName())).thenReturn(failedMeter);
}
origin: allegro/hermes

private void markFailed(MessageBatch batch, Subscription subscription, MessageSendingResult result) {
  metrics.meter(Meters.FAILED_METER_SUBSCRIPTION, subscription.getTopicName(), subscription.getName()).mark();
  if (result.hasHttpAnswer()) {
    metrics.registerConsumerHttpAnswer(subscription, result.getStatusCode());
  } else if (result.isTimeout()) {
    metrics.consumerErrorsTimeoutMeter(subscription).mark();
  } else {
    metrics.consumerErrorsOtherMeter(subscription).mark();
  }
  batch.getMessagesMetadata().forEach(m -> trackers.get(subscription).logFailed(m, result.getRootCause(), result.getHostname()));
}
origin: pl.allegro.tech.hermes/hermes-consumers

private void markFailed(MessageBatch batch, Subscription subscription, MessageSendingResult result) {
  metrics.meter(Meters.FAILED_METER_SUBSCRIPTION, subscription.getTopicName(), subscription.getName()).mark();
  if (result.hasHttpAnswer()) {
    metrics.registerConsumerHttpAnswer(subscription, result.getStatusCode());
  } else if (result.isTimeout()) {
    metrics.consumerErrorsTimeoutMeter(subscription).mark();
  } else {
    metrics.consumerErrorsOtherMeter(subscription).mark();
  }
  batch.getMessagesMetadata().forEach(m -> trackers.get(subscription).logFailed(m, result.getRootCause(), result.getHostname()));
}
pl.allegro.tech.hermes.common.metricHermesMetricsconsumerErrorsOtherMeter

Popular methods of HermesMetrics

  • counter
  • meter
  • timer
  • escapeDots
  • latencyTimer
  • registerGauge
  • consumerErrorsTimeoutMeter
  • consumersWorkloadRebalanceDurationTimer
  • decrementInflightCounter
  • incrementInflightCounter
  • inflightTimeHistogram
  • maxRateFetchFailuresCounter
  • inflightTimeHistogram,
  • maxRateFetchFailuresCounter,
  • oAuthProviderLatencyTimer,
  • oAuthSubscriptionTokenRequestMeter,
  • rateHistoryFailuresCounter,
  • registerConsumerHttpAnswer,
  • registerConsumersThreadGauge,
  • registerDyingConsumerProcessesCountGauge,
  • registerMaxRateGauge

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • compareTo (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JOptionPane (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now