Tabnine Logo
CollectorMetrics.incrementSpans
Code IndexAdd Tabnine to your IDE (free)

How to use
incrementSpans
method
in
zipkin2.collector.CollectorMetrics

Best Java code snippets using zipkin2.collector.CollectorMetrics.incrementSpans (Showing top 2 results out of 315)

origin: io.zipkin.java/zipkin-server

@Override
public void incrementSpans(int i) {
 delegate.incrementSpans(i);
}
origin: io.zipkin.zipkin2/zipkin-collector

public void accept(List<Span> spans, Callback<Void> callback) {
 if (spans.isEmpty()) {
  callback.onSuccess(null);
  return;
 }
 metrics.incrementSpans(spans.size());
 List<Span> sampled = sample(spans);
 if (sampled.isEmpty()) {
  callback.onSuccess(null);
  return;
 }
 try {
  record(sampled, acceptSpansCallback(sampled));
  callback.onSuccess(null);
 } catch (RuntimeException e) {
  callback.onError(errorStoringSpans(sampled, e));
  return;
 }
}
zipkin2.collectorCollectorMetricsincrementSpans

Javadoc

Increments the count of spans read from a successful message. When bundling is used, accepted spans will be a larger number than successful messages.

Popular methods of CollectorMetrics

  • forTransport
    Those who wish to partition metrics by transport can call this method to include the transport type
  • incrementMessages
    Increments count of messages received, which contain 0 or more spans. Ex POST requests or Kafka mess
  • incrementMessagesDropped
    Increments count of messages that could not be read. Ex malformed content, or peer disconnect.
  • incrementBytes
    Increments the number of bytes containing serialized spans in a message.Note: this count should rela
  • incrementSpansDropped
    Increments the count of spans dropped for any reason. For example, failure queueing to storage or sa

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top plugins for WebStorm
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