public class HttpSender extends ThriftSender
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpSender.Builder |
| Constructor and Description |
|---|
HttpSender(java.lang.String endpoint) |
HttpSender(java.lang.String endpoint,
int maxPacketSize)
Deprecated.
use
HttpSender.Builder with fluent API |
HttpSender(java.lang.String endpoint,
int maxPacketSize,
okhttp3.OkHttpClient client)
Deprecated.
use
HttpSender.Builder with fluent API |
HttpSender(java.lang.String endpoint,
okhttp3.OkHttpClient client)
Deprecated.
use
HttpSender.Builder with fluent API |
| Modifier and Type | Method and Description |
|---|---|
void |
send(io.jaegertracing.thriftjava.Process process,
java.util.List<io.jaegertracing.thriftjava.Span> spans) |
append, calculateProcessSize, calculateSpanSize, close, flushpublic HttpSender(java.lang.String endpoint)
endpoint - Jaeger REST endpoint consuming jaeger.thrift, e.g
http://localhost:14268/api/traces
Uses the default OkHttpClient which uses ConnectionPool.ConnectionPool().
Use HttpSender(java.lang.String, int, okhttp3.OkHttpClient) to adjust parameters.@Deprecated
public HttpSender(java.lang.String endpoint,
int maxPacketSize)
HttpSender.Builder with fluent APIendpoint - Jaeger REST endpoint consuming jaeger.thrift, e.g
http://localhost:14268/api/tracesmaxPacketSize - max bytes to serialize as payload, if 0 it will use
65000@Deprecated
public HttpSender(java.lang.String endpoint,
okhttp3.OkHttpClient client)
HttpSender.Builder with fluent API@Deprecated
public HttpSender(java.lang.String endpoint,
int maxPacketSize,
okhttp3.OkHttpClient client)
HttpSender.Builder with fluent APIendpoint - Jaeger REST endpoint consuming jaeger.thrift, e.g
http://localhost:14268/api/tracesmaxPacketSize - max bytes to serialize as payload, if 0 it will use
65000client - a client used to make http requestspublic void send(io.jaegertracing.thriftjava.Process process,
java.util.List<io.jaegertracing.thriftjava.Span> spans)
throws SenderException
send in class ThriftSenderSenderException