Uses of Interface
io.opentelemetry.sdk.trace.samplers.Sampler
Packages that use Sampler
Package
Description
Java SPI (Service Provider Interface) for implementing extensions to SDK autoconfiguration.
Java SPI (Service Provider Interface) for implementing extensions to SDK autoconfiguration of
traces.
The OpenTelemetry SDK implementation of tracing.
This package contains
Samplers for selecting traces
that are recorded and exported.-
Uses of Sampler in io.opentelemetry.sdk.autoconfigure
Method parameters in io.opentelemetry.sdk.autoconfigure with type arguments of type SamplerModifier and TypeMethodDescriptionAutoConfiguredOpenTelemetrySdkBuilder.addSamplerCustomizer(BiFunction<? super Sampler, ConfigProperties, ? extends Sampler> samplerCustomizer) Adds aBiFunctionto invoke with the default autoconfiguredSamplerto allow customization.AutoConfiguredOpenTelemetrySdkBuilder.addSamplerCustomizer(BiFunction<? super Sampler, ConfigProperties, ? extends Sampler> samplerCustomizer) Adds aBiFunctionto invoke with the default autoconfiguredSamplerto allow customization. -
Uses of Sampler in io.opentelemetry.sdk.autoconfigure.spi
Method parameters in io.opentelemetry.sdk.autoconfigure.spi with type arguments of type SamplerModifier and TypeMethodDescriptionAutoConfigurationCustomizer.addSamplerCustomizer(BiFunction<? super Sampler, ConfigProperties, ? extends Sampler> samplerCustomizer) Adds aBiFunctionto invoke with the default autoconfiguredSamplerto allow customization.AutoConfigurationCustomizer.addSamplerCustomizer(BiFunction<? super Sampler, ConfigProperties, ? extends Sampler> samplerCustomizer) Adds aBiFunctionto invoke with the default autoconfiguredSamplerto allow customization. -
Uses of Sampler in io.opentelemetry.sdk.autoconfigure.spi.traces
Methods in io.opentelemetry.sdk.autoconfigure.spi.traces that return SamplerModifier and TypeMethodDescriptionConfigurableSamplerProvider.createSampler(ConfigProperties config) Returns aSamplerthat can be registered to OpenTelemetry by providing the property value specified byConfigurableSamplerProvider.getName(). -
Uses of Sampler in io.opentelemetry.sdk.trace
Methods in io.opentelemetry.sdk.trace that return SamplerMethods in io.opentelemetry.sdk.trace with parameters of type SamplerModifier and TypeMethodDescriptionSdkTracerProviderBuilder.setSampler(Sampler sampler) Assign aSamplerto use for sampling traces. -
Uses of Sampler in io.opentelemetry.sdk.trace.samplers
Methods in io.opentelemetry.sdk.trace.samplers that return SamplerModifier and TypeMethodDescriptionstatic SamplerSampler.alwaysOff()static SamplerSampler.alwaysOn()ParentBasedSamplerBuilder.build()Builds theParentBasedSampler.static SamplerSampler.parentBased(Sampler root) static SamplerSampler.traceIdRatioBased(double ratio) Returns a new TraceIdRatioBasedSampler.Methods in io.opentelemetry.sdk.trace.samplers with parameters of type SamplerModifier and TypeMethodDescriptionstatic SamplerSampler.parentBased(Sampler root) static ParentBasedSamplerBuilderSampler.parentBasedBuilder(Sampler root) Returns aParentBasedSamplerBuilderthat enables configuration of the parent-based sampling strategy.ParentBasedSamplerBuilder.setLocalParentNotSampled(Sampler localParentNotSampled) Sets theSamplerto use when there is a local parent that was not sampled.ParentBasedSamplerBuilder.setLocalParentSampled(Sampler localParentSampled) Sets theSamplerto use when there is a local parent that was sampled.ParentBasedSamplerBuilder.setRemoteParentNotSampled(Sampler remoteParentNotSampled) Sets theSamplerto use when there is a remote parent that was not sampled.ParentBasedSamplerBuilder.setRemoteParentSampled(Sampler remoteParentSampled) Sets theSamplerto use when there is a remote parent that was sampled.