Class OTelSamplerFactory
java.lang.Object
org.opensearch.telemetry.tracing.sampler.OTelSamplerFactory
Factory class to create the instance of OTelSampler
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.opentelemetry.sdk.trace.samplers.Samplercreate(TelemetrySettings telemetrySettings, Settings settings) Creates theSamplerinstances based on the TRACER_SPAN_SAMPLER_CLASSES value.
-
Method Details
-
create
public static io.opentelemetry.sdk.trace.samplers.Sampler create(TelemetrySettings telemetrySettings, Settings settings) Creates theSamplerinstances based on the TRACER_SPAN_SAMPLER_CLASSES value.- Parameters:
telemetrySettings- TelemetrySettings.settings- the settings- Returns:
- list of samplers.
-