Package io.opentelemetry.contrib.awsxray
Class AwsXrayRemoteSamplerBuilder
java.lang.Object
io.opentelemetry.contrib.awsxray.AwsXrayRemoteSamplerBuilder
A builder for
AwsXrayRemoteSampler.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns aAwsXrayRemoteSamplerwith the configuration of this builder.setClock(io.opentelemetry.sdk.common.Clock clock) Sets theClockused for time measurements for sampling, such as rate limiting or quota expiry.setEndpoint(String endpoint) Sets the endpoint for the TCP proxy to connect to.setInitialSampler(io.opentelemetry.sdk.trace.samplers.Sampler initialSampler) Sets the initial sampler that is used before sampling configuration is obtained.setPollingInterval(long delay, TimeUnit unit) Sets the polling interval for configuration updates.setPollingInterval(Duration delay) Sets the polling interval for configuration updates.
-
Method Details
-
setEndpoint
Sets the endpoint for the TCP proxy to connect to. This is the address to the port on the OpenTelemetry Collector configured for proxying X-Ray sampling requests. If unset, defaults to "http://localhost:2000". -
setPollingInterval
Sets the polling interval for configuration updates. If unset, defaults to 300Ls. Must be positive. -
setPollingInterval
Sets the polling interval for configuration updates. If unset, defaults to 300Ls. Must be positive. -
setInitialSampler
public AwsXrayRemoteSamplerBuilder setInitialSampler(io.opentelemetry.sdk.trace.samplers.Sampler initialSampler) Sets the initial sampler that is used before sampling configuration is obtained. If unset, defaults to a parent-based always-on sampler. -
setClock
Sets theClockused for time measurements for sampling, such as rate limiting or quota expiry. -
build
Returns aAwsXrayRemoteSamplerwith the configuration of this builder.
-