Class OTelSamplerFactory

java.lang.Object
org.opensearch.telemetry.tracing.sampler.OTelSamplerFactory

public class OTelSamplerFactory extends Object
Factory class to create the instance of OTelSampler
  • Method Details

    • create

      public static io.opentelemetry.sdk.trace.samplers.Sampler create(TelemetrySettings telemetrySettings, Settings settings)
      Creates the Sampler instances based on the TRACER_SPAN_SAMPLER_CLASSES value.
      Parameters:
      telemetrySettings - TelemetrySettings.
      settings - the settings
      Returns:
      list of samplers.