congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Collector.newBuilder
Code IndexAdd Tabnine to your IDE (free)

How to use
newBuilder
method
in
zipkin2.collector.Collector

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

origin: io.zipkin.zipkin2/zipkin-junit

ZipkinDispatcher(StorageComponent storage, CollectorMetrics metrics, MockWebServer server) {
 this.consumer = Collector.newBuilder(getClass()).storage(storage).metrics(metrics).build();
 this.metrics = metrics;
 this.server = server;
}
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.collectorCollectornewBuilder

Javadoc

Needed to scope this to the correct logging category

Popular methods of Collector

  • acceptSpans
  • accept
  • <init>
  • acceptSpansCallback
  • appendSpanIds
  • decodeList
  • doError
  • errorReading
  • errorStoringSpans
    When storing spans, an exception can be raised before or after the fact. This adds context of span i
  • idString
  • record
  • sample
  • record,
  • sample,
  • shouldWarn,
  • warn

Popular in Java

  • Finding current android device location
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (Timer)
  • putExtra (Intent)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Notification (javax.management)
  • JLabel (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top Sublime Text 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