Codota Logo
CollectorMetrics.forTransport
Code IndexAdd Codota to your IDE (free)

How to use
forTransport
method
in
zipkin2.collector.CollectorMetrics

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

  • Common ways to obtain CollectorMetrics
private void myMethod () {
CollectorMetrics c =
  • Codota IconCollectorMetrics collectorMetrics;String str;collectorMetrics.forTransport(str)
  • Smart code suggestions by Codota
}
origin: io.zipkin.zipkin2/zipkin-collector-kafka08

@Override
public Builder metrics(CollectorMetrics metrics) {
 if (metrics == null) throw new NullPointerException("metrics == null");
 this.metrics = metrics.forTransport("kafka");
 delegate.metrics(this.metrics);
 return this;
}
origin: io.zipkin.zipkin2/zipkin-collector-scribe

@Override
public Builder metrics(CollectorMetrics metrics) {
 if (metrics == null) throw new NullPointerException("metrics == null");
 this.metrics = metrics.forTransport("scribe");
 delegate.metrics(this.metrics);
 return this;
}
origin: io.zipkin.aws/zipkin-collector-kinesis

@Override
public Builder metrics(CollectorMetrics metrics) {
 if (metrics == null) throw new NullPointerException("metrics == null");
 delegate.metrics(metrics.forTransport("kinesis"));
 return this;
}
origin: io.zipkin.zipkin2/zipkin-collector-kafka

@Override
public Builder metrics(CollectorMetrics metrics) {
 if (metrics == null) throw new NullPointerException("metrics == null");
 this.metrics = metrics.forTransport("kafka");
 delegate.metrics(this.metrics);
 return this;
}
origin: io.zipkin.zipkin2/zipkin-collector-rabbitmq

@Override
public Builder metrics(CollectorMetrics metrics) {
 if (metrics == null) throw new NullPointerException("metrics == null");
 this.metrics = metrics.forTransport("rabbitmq");
 this.delegate.metrics(this.metrics);
 return this;
}
origin: io.zipkin.java/zipkin-server

/** Configuration for how to buffer spans into messages for Zipkin */
@Bean
Reporter<Span> reporter(
  Sender sender,
  @Value("${zipkin.self-tracing.message-timeout:1}") int messageTimeout,
  CollectorMetrics metrics) {
 return AsyncReporter.builder(sender)
   .messageTimeout(messageTimeout, TimeUnit.SECONDS)
   .metrics(new ReporterMetricsAdapter(metrics.forTransport("local")))
   .build();
}
origin: io.zipkin.java/zipkin-server

@Autowired
ZipkinHttpCollector(
  StorageComponent storage, CollectorSampler sampler, CollectorMetrics metrics) {
 this.metrics = metrics.forTransport("http");
 this.collector =
   Collector.newBuilder(getClass())
     .storage(storage)
     .sampler(sampler)
     .metrics(this.metrics)
     .build();
 this.JSON_V2 = new HttpCollector(SpanBytesDecoder.JSON_V2);
 this.PROTO3 = new HttpCollector(SpanBytesDecoder.PROTO3);
 this.JSON_V1 = new HttpCollector(SpanBytesDecoder.JSON_V1);
 this.THRIFT = new HttpCollector(SpanBytesDecoder.THRIFT);
 this.errorCallback =
   new Receiver.ErrorCallback() {
    @Override
    public void error(HttpServerExchange exchange, IOException e) {
     ZipkinHttpCollector.this.metrics.incrementMessagesDropped();
     ZipkinHttpCollector.error(exchange, e);
    }
   };
}
zipkin2.collectorCollectorMetricsforTransport

Javadoc

Those who wish to partition metrics by transport can call this method to include the transport type in the backend metric key.

For example, an implementation may by default report #incrementSpans(int) to the key "zipkin.collector.span.accepted". When metrics.forTransport("kafka"is called, the counter would report to "zipkin.collector.kafka.span.accepted"

Popular methods of CollectorMetrics

  • 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
  • incrementSpans
    Increments the count of spans read from a successful message. When bundling is used, accepted spans
  • 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
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • onRequestPermissionsResult (Fragment)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • BoxLayout (javax.swing)
  • JButton (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now