class_docstr: A trace Sampler that:
  * always recording (so that we can get the trace_id)
  * respect the parent's trace_state
  * ratio sampling
code: def should_sample(
      self,
      parent_context: t.Optional["Context"],
      trace_id: int,
      name: str,
      kind: t.Optional["SpanKind"] = None,
      attributes: t.Optional["Attributes"] = None,
      links: t.Optional[t.Sequence["Link"]] = None,
      trace_state: t.Optional["TraceState"] = None,
  ) -> "SamplingResult":
      decision = Decision.RECORD_ONLY
      if trace_id & self.TRACE_ID_LIMIT < self.bound:
          decision = Decision.RECORD_AND_SAMPLE
      if decision is Decision.RECORD_ONLY:
          pass
          # attributes = None
      return SamplingResult(
          decision,
          attributes,
          _get_parent_trace_state(parent_context),  # type: ignore[reportGeneralTypeIssues]
      )
  
file_path: BentoML/grpc-client/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 for calling the TraceIdRatioBasedAlwaysRecording obj's underlying member method code with example usage: obj.should_sample(parent_context, trace_id, name, kind, attributes, links, trace_state) and returns: SamplingResult