congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • JComboBox (javax.swing)
  • JLabel (javax.swing)
  • JList (javax.swing)
  • 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