Open fleficher opened 1 year ago
Hello @fleficher! Thanks for sharing this suggestion. Indeed, we are aware that it might be the need to enable/disable features dynamically, especially in the apps which heavily rely on the remote config.
We are working on the changes which should allow to support this use case. It should be available in the SDK v2 which we are going to release soon.
I see that there are a couple betas of SDK v2! Is this feature supported in there?
Hello @ankushg! Indeed we have few betas for SDK v2, but the possibility to stop individual features won't be there for 2.0.0
release. This functionality is on our roadmap however, and we aim to deliver it later.
With SDK v2 currently you have a possibility to stop the SDK completely, by calling Datadog.stopInstance
.
Thanks -- that's not exactly what we'd like to do, but looking forward to per-feature (and specifically, RUM) disabling
Hey @0xnm ,
Just wanted to know the status of having dedicated consent for RUM on apps? Thanks!
@bill350 This is not on our roadmap, data collection rules are not specific to any feature.
Is your feature request related to a problem? Please describe.
As of today, disabling RUM on the fly is not possible as it requires the user to restart the app to take in effect. The feature can only be disabled from the
initialize
call which is only working once:The
TrackingConsent
property is used to disable RUM but also logs, etc. We would like to be able to only disable RUM, but not logs.Describe the solution you'd like
Using the same way as for updating the tracking consent:
which will take effect instantly.