diff --git a/aws-opentelemetry-distro/src/amazon/opentelemetry/distro/sampler/aws_xray_remote_sampler.py b/aws-opentelemetry-distro/src/amazon/opentelemetry/distro/sampler/aws_xray_remote_sampler.py index da1ce9655..9edf1164b 100644 --- a/aws-opentelemetry-distro/src/amazon/opentelemetry/distro/sampler/aws_xray_remote_sampler.py +++ b/aws-opentelemetry-distro/src/amazon/opentelemetry/distro/sampler/aws_xray_remote_sampler.py @@ -66,7 +66,9 @@ def should_sample( trace_state: "TraceState" = None, ) -> "SamplingResult": # TODO: add sampling functionality - return ALWAYS_OFF + return ALWAYS_OFF.should_sample( + self, parent_context, trace_id, name, kind=kind, attributes=attributes, links=links, trace_state=trace_state + ) # pylint: disable=no-self-use def get_description(self) -> str: