Package io.vertx.tracing.zipkin
Class VertxSender
- java.lang.Object
-
- zipkin2.reporter.BytesMessageSender.Base
-
- zipkin2.reporter.BaseHttpSender<RequestOptions,Buffer>
-
- io.vertx.tracing.zipkin.VertxSender
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,zipkin2.reporter.BytesMessageSender
public class VertxSender extends zipkin2.reporter.BaseHttpSender<RequestOptions,Buffer>
An 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 void
doClose()
zipkin2.reporter.Encoding
encoding()
int
messageMaxBytes()
int
messageSizeInBytes(List<byte[]> encodedSpans)
protected Buffer
newBody(List<byte[]> encodedSpans)
protected RequestOptions
newEndpoint(String endpoint)
HttpSenderOptions
options()
protected void
postSpans(RequestOptions requestOptions, Buffer body)
-
-
-
Constructor Detail
-
VertxSender
public VertxSender(HttpSenderOptions options)
-
-
Method Detail
-
options
public HttpSenderOptions options()
-
encoding
public zipkin2.reporter.Encoding encoding()
- Specified by:
encoding
in interfacezipkin2.reporter.BytesMessageSender
- Overrides:
encoding
in classzipkin2.reporter.BytesMessageSender.Base
-
messageMaxBytes
public int messageMaxBytes()
- Specified by:
messageMaxBytes
in interfacezipkin2.reporter.BytesMessageSender
- Overrides:
messageMaxBytes
in classzipkin2.reporter.BaseHttpSender<RequestOptions,Buffer>
-
messageSizeInBytes
public int messageSizeInBytes(List<byte[]> encodedSpans)
- Specified by:
messageSizeInBytes
in interfacezipkin2.reporter.BytesMessageSender
- Overrides:
messageSizeInBytes
in classzipkin2.reporter.BytesMessageSender.Base
-
newEndpoint
protected RequestOptions newEndpoint(String endpoint)
- Specified by:
newEndpoint
in classzipkin2.reporter.BaseHttpSender<RequestOptions,Buffer>
-
newBody
protected Buffer newBody(List<byte[]> encodedSpans)
- Specified by:
newBody
in classzipkin2.reporter.BaseHttpSender<RequestOptions,Buffer>
-
postSpans
protected void postSpans(RequestOptions requestOptions, Buffer body) throws IOException
- Specified by:
postSpans
in classzipkin2.reporter.BaseHttpSender<RequestOptions,Buffer>
- Throws:
IOException
-
doClose
public void doClose()
- Overrides:
doClose
in classzipkin2.reporter.BaseHttpSender<RequestOptions,Buffer>
-
-