Hi and welcome to the forum 
Usually this happens when the sampling rate is set to 0 so that there are no samples to look at.
Do you have multiple instances of your service that may be configured with different sampling rates? Could you send me as snippet of the code where you configure the agent?