Package io.vertx.tracing.zipkin
Class VertxSender
- java.lang.Object
-
- zipkin2.Component
-
- zipkin2.reporter.Sender
-
- io.vertx.tracing.zipkin.VertxSender
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class VertxSender extends zipkin2.reporter.SenderAn HTTP sender using Vert.x HttpClient, only JSON encoding is supported.- Author:
- Julien Viet
-
-
Constructor Summary
Constructors Constructor Description VertxSender(HttpSenderOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()zipkin2.codec.Encodingencoding()intmessageMaxBytes()intmessageSizeInBytes(List<byte[]> encodedSpans)HttpSenderOptionsoptions()zipkin2.Call<Void>sendSpans(List<byte[]> encodedSpans)
-
-
-
Constructor Detail
-
VertxSender
public VertxSender(HttpSenderOptions options)
-
-
Method Detail
-
options
public HttpSenderOptions options()
-
encoding
public zipkin2.codec.Encoding encoding()
- Specified by:
encodingin classzipkin2.reporter.Sender
-
messageMaxBytes
public int messageMaxBytes()
- Specified by:
messageMaxBytesin classzipkin2.reporter.Sender
-
messageSizeInBytes
public int messageSizeInBytes(List<byte[]> encodedSpans)
- Specified by:
messageSizeInBytesin classzipkin2.reporter.Sender
-
sendSpans
public zipkin2.Call<Void> sendSpans(List<byte[]> encodedSpans)
- Specified by:
sendSpansin classzipkin2.reporter.Sender
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classzipkin2.Component- Throws:
IOException
-
-