Description
These issues all mention how to control the proportion of traces. Therefore, I suggest adding an initialization function with a sampling rate parameter. This way, users can customize the sampling ratio, preventing a large number of traces in production environments.
#3171 #3201
Additional
Here is an approach for improvement
