public static class JaegerRemoteSampler.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
JaegerRemoteSampler |
build()
Builds the
JaegerRemoteSampler . |
JaegerRemoteSampler.Builder |
setChannel(io.grpc.ManagedChannel channel)
Sets the managed chanel to use when communicating with the backend.
|
JaegerRemoteSampler.Builder |
setServiceName(java.lang.String serviceName)
Sets the service name to be used by this exporter.
|
JaegerRemoteSampler.Builder |
withInitialSampler(io.opentelemetry.sdk.trace.Sampler initialSampler)
Sets the initial sampler that is used before sampling configuration is obtained from the
server.
|
JaegerRemoteSampler.Builder |
withPollingInterval(int pollingIntervalMs)
Sets the polling interval.
|
public JaegerRemoteSampler.Builder setServiceName(java.lang.String serviceName)
serviceName
- the service name.public JaegerRemoteSampler.Builder setChannel(io.grpc.ManagedChannel channel)
channel
- the channel to use.public JaegerRemoteSampler.Builder withPollingInterval(int pollingIntervalMs)
pollingIntervalMs
- the polling interval in Ms.public JaegerRemoteSampler.Builder withInitialSampler(io.opentelemetry.sdk.trace.Sampler initialSampler)
initialSampler
- the initial sampler to use.public JaegerRemoteSampler build()
JaegerRemoteSampler
.