I noticed that when you enable sampling, in order to send a request and get a metric for sure, you need to write your own CustomSampler class.
I suggest adding the ability to transmit the x_request_id, for example, in HTTP requests, to ensure that the trace is sent when sampling is enabled.