Class HttpClientSender

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public final class HttpClientSender
    extends zipkin2.reporter.Sender
    A Sender implementation that uses Micronaut's HttpClient.
    Since:
    1.0
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  HttpClientSender.Builder
      Constructs the HttpClientSender.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      zipkin2.CheckResult check()  
      void close()  
      zipkin2.codec.Encoding encoding()  
      int messageMaxBytes()  
      int messageSizeInBytes​(java.util.List<byte[]> encodedSpans)  
      zipkin2.Call<java.lang.Void> sendSpans​(java.util.List<byte[]> encodedSpans)  
      • Methods inherited from class zipkin2.reporter.Sender

        messageSizeInBytes
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • encoding

        public zipkin2.codec.Encoding encoding()
        Specified by:
        encoding in class zipkin2.reporter.Sender
      • messageMaxBytes

        public int messageMaxBytes()
        Specified by:
        messageMaxBytes in class zipkin2.reporter.Sender
      • messageSizeInBytes

        public int messageSizeInBytes​(java.util.List<byte[]> encodedSpans)
        Specified by:
        messageSizeInBytes in class zipkin2.reporter.Sender
      • sendSpans

        public zipkin2.Call<java.lang.Void> sendSpans​(java.util.List<byte[]> encodedSpans)
        Specified by:
        sendSpans in class zipkin2.reporter.Sender
      • check

        public zipkin2.CheckResult check()
        Overrides:
        check in class zipkin2.Component
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class zipkin2.Component