question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request for destroy/stop method

See original GitHub issue

There is a scenario where I’ve come across where based on user cookie preferences, it would be ideal if datadogRum could be toggled on/off in a browser session. There looks like there is no API for something like stop, destroy, or uninitialized.

This would facilitate a good user experience without an interrupting full page refresh especially in SPAs.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:11
  • Comments:18 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
gaiachikcommented, Feb 1, 2022

+1 for the stop() method

Also on the same topic (cookie preferences management) but different solution:

if the datadogRum had a privacyMode which didn’t set or read cookies, it could still be run in most cases where cookie consent is not given. Some SDK offer methods to set consent so that they can change the behaviour depending on it - it would be great to have something like this.

2reactions
jademhcommented, Nov 23, 2022

@BenoitZugmeyer the use case is for when the user withdraws consent (via consent management pop up) after previously having consented. It’s valid that data before them withdrawing consent should be sent to datadog - but we want to stop any additional data being sent while they are still on that page (particularly pertinent for SPA where you don’t get full page refreshes very often) A workaround could be to force a page refresh if a user edits their consent settings but this adds friction

Read more comments on GitHub >

github_iconTop Results From Across the Web

Thread Methods destroy() and stop(Throwable) Removed in ...
The destroy() method has never done anything except throw the NoSuchMethodError and the stop(Throwable) method hasn't done anything except ...
Read more >
IBM WebSphere Application Server Performance Cookbook
There are many ways to request a heap dump depending on your Java vendor (and further ... The java/lang/Thread methods destroy, stop, and...
Read more >
Changesets • Documentation • Transitland
A changeset is the way to create, edit, and delete data in the Transitland Datastore. ... Make sure to include an API key...
Read more >
ApplicationStatistics (Jersey 2.6 API) - javadoc.io
Monitoring statistics and configuration of an application. ... To retrieve the immutable and consistent statistics data the method snapshot() should be used ...
Read more >
Connection between activity and layout? How to change ...
xml ? Is this correct? Is there any better way to do this? How can I (by which method) destroy/stop a certain activity ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found