Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable RUM at runtime #1367

Open
fleficher opened this issue Apr 4, 2023 · 6 comments
Open

Disable RUM at runtime #1367

fleficher opened this issue Apr 4, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@fleficher
Copy link

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:

 Datadog.initialize(
            context = context,
            trackingConsent = TrackingConsent.GRANTED,
            configuration = Configuration.Builder(
                rumEnabled = false,
            )
        )

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:

        Datadog.setRUMtrackingConsent(TrackingConsent.GRANTED)

which will take effect instantly.

@fleficher fleficher added the enhancement New feature or request label Apr 4, 2023
@0xnm
Copy link
Contributor

0xnm commented Apr 4, 2023

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.

@fleficher fleficher changed the title Disasble RUM at runtime Disable RUM at runtime May 23, 2023
@ankushg
Copy link

ankushg commented Jul 19, 2023

I see that there are a couple betas of SDK v2! Is this feature supported in there?

@0xnm
Copy link
Contributor

0xnm commented Jul 20, 2023

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.

@ankushg
Copy link

ankushg commented Jul 20, 2023

Thanks -- that's not exactly what we'd like to do, but looking forward to per-feature (and specifically, RUM) disabling

@bill350
Copy link

bill350 commented Dec 1, 2023

Hey @0xnm ,

Just wanted to know the status of having dedicated consent for RUM on apps?
Thanks!

@0xnm
Copy link
Contributor

0xnm commented Dec 4, 2023

@bill350 This is not on our roadmap, data collection rules are not specific to any feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants