dd-sdk-reactnative
dd-sdk-reactnative copied to clipboard
Enforce resource sampling rate on a per resource level
Is your feature request related to a problem? Please describe.
I have a mobile application intrumented with the DD RN SDK and a backend instrumented with the DD SDKs for .NET and Node.JS. Because I've enabled the integration between the RUM and APM, I can no longer control the retention of traces for a specific resource server side (https://github.com/DataDog/dd-trace-dotnet/issues/3743). However, the only obvious way I see to control resource sampling is by setting resourceSamplingRate which is global to the application.
Describe the solution you'd like Some method, either via an annotation or via configuration, to specify a sampling rate (or a flag to always keep) on a per method basis.
Describe alternatives you've considered It's not clear to me that even doing manual resource tracking would allow me to set this.
Additional context N/A
Hi @turacma, thanks for reaching out!
Indeed there is currently no way to achieve this with our SDK today. We've added it to our backlog and will let you know once this is released :)