Interface ConfigurableSamplerProvider
public interface ConfigurableSamplerProvider
A service provider interface (SPI) for providing additional samplers that can be used with the
autoconfigured SDK. If the
otel.traces.sampler
property contains a value equal to what is
returned by getName()
, the sampler returned by createSampler(ConfigProperties)
will be enabled and added to the SDK.-
Method Summary
Modifier and TypeMethodDescriptioncreateSampler
(ConfigProperties config) getName()
Returns the name of this sampler, which can be specified with theotel.traces.sampler
property to enable it.
-
Method Details
-
createSampler
-
getName
String getName()Returns the name of this sampler, which can be specified with theotel.traces.sampler
property to enable it. The name returned should NOT be the same as any other exporter name. If the name does conflict with another exporter name, the resulting behavior is undefined and it is explicitly unspecified which exporter will actually be used.
-