class_docstr: Sampler that respects its parent span's sampling decision, but otherwise
  samples probabalistically based on `rate`.
code: def __init__(self, rate: float):
      root = TraceIdRatioBasedAlwaysRecording(rate=rate)
      super().__init__(
          root=root,
          remote_parent_sampled=ALWAYS_ON,
          remote_parent_not_sampled=StaticSampler(Decision.RECORD_ONLY),
          local_parent_sampled=ALWAYS_ON,
          local_parent_not_sampled=StaticSampler(Decision.RECORD_ONLY),
      )
  
file_path: BentoML/src/bentoml/_internal/utils/telemetry.py
imports: import typing
  from typing import TYPE_CHECKING
  from opentelemetry.sdk.trace.sampling import ALWAYS_ON
  from opentelemetry.sdk.trace.sampling import Decision
  from opentelemetry.sdk.trace.sampling import ParentBased
  from opentelemetry.sdk.trace.sampling import SamplingResult
  from opentelemetry.sdk.trace.sampling import StaticSampler
  from opentelemetry.sdk.trace.sampling import TraceIdRatioBased
  from opentelemetry.trace import get_current_span
label_desc: Use image node_id 1 to create a new ParentBasedTraceIdRatio object from inherited base classes: ParentBased with example: obj = ParentBasedTraceIdRatio(rate)