public static final class UdpReporter.Builder
extends java.lang.Object
UdpReporter
.Constructor and Description |
---|
Builder(java.net.SocketAddress collectorAddress)
Create a new
UdpReporter.Builder for a given collectorAddress. |
Modifier and Type | Method and Description |
---|---|
UdpReporter |
build()
Builds a new
UdpReporter instance with this builder's options. |
UdpReporter.Builder |
codec(Codec codec)
Sets the
Codec to encode the Spans with. |
UdpReporter.Builder |
enableWireLogging(java.lang.String loggerName)
Enables wire-logging for udp packets sent.
|
UdpReporter.Builder |
executor(Executor executor)
Sets an
Executor to use when required. |
UdpReporter.Builder |
ioExecutor(IoExecutor ioExecutor)
Sets an
IoExecutor to use for writing to the datagram channel. |
public Builder(java.net.SocketAddress collectorAddress)
UdpReporter.Builder
for a given collectorAddress.collectorAddress
- the collector SocketAddresspublic UdpReporter.Builder codec(Codec codec)
Codec
to encode the Spans with.codec
- the codec to use for this span.this
public UdpReporter.Builder ioExecutor(IoExecutor ioExecutor)
IoExecutor
to use for writing to the datagram channel.ioExecutor
- IoExecutor to use to write with.this
public UdpReporter.Builder executor(Executor executor)
Executor
to use when required.executor
- Executor
to usethis
public UdpReporter.Builder enableWireLogging(java.lang.String loggerName)
All wire events will be logged at TRACE
level.
loggerName
- The name of the logger to log wire events.this
public UdpReporter build()
UdpReporter
instance with this builder's options.
This method may block while the underlying UDP channel is being bound.
UdpReporter