Interface ConfigurableSamplerProvider
-
public interface ConfigurableSamplerProviderA service provider interface (SPI) for providing additional samplers that can be used with the autoconfigured SDK. If theotel.traces.samplerproperty contains a value equal to what is returned bygetName(), the sampler returned bycreateSampler(ConfigProperties)will be enabled and added to the SDK.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.opentelemetry.sdk.trace.samplers.SamplercreateSampler(ConfigProperties config)Returns aSamplerthat can be registered to OpenTelemetry by providing the property value specified bygetName().StringgetName()Returns the name of this sampler, which can be specified with theotel.traces.samplerproperty to enable it.
-
-
-
Method Detail
-
createSampler
io.opentelemetry.sdk.trace.samplers.Sampler createSampler(ConfigProperties config)
Returns aSamplerthat can be registered to OpenTelemetry by providing the property value specified bygetName().
-
getName
String getName()
Returns the name of this sampler, which can be specified with theotel.traces.samplerproperty 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.
-
-