-
Notifications
You must be signed in to change notification settings - Fork 142
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
🐛 Resource tracking cannot be turned off #2143
Comments
Thank you for your report. Could you tell me whether resources are showing up in the Datadog App? I understand your concerns about resources sent to Datadog even if resources tracking is disabled. It works as designed: the resources should be droped when being processed by the backend. We'll see if we can improve this. |
Thank you @BenoitZugmeyer. These resources are no longer showing up in the DataDog App. As you pointed out, my concern is about the noisiness. On a single page load for my application, there are 69 network requests sent to DataDog reporting on resources. Very noisy. Plus, we have other instrumentation implementations too, and each time they send a request to report to their event hub DataDog then tries to report on those as well. So, very, very noisy. The longer history is that we used to have resource tracking just working for us automatically. Then, it stopped a few months ago for no reason. Then, we passed along Well, now we're trying to unwind that and NOT track resources. Way too noisy. For now, I have implemented this in our beforeSend:
But, it would be nice if the flag was honored instead of having to do this. Plus, as mentioned, it would be nice if DataDog just didn't instrument things if we're asking it not to, because of the useless time it spends tracking timings and all of that jazz. Thanks again for taking a look. We're heavy DataDog users. |
@cgood92 thank you again for your feedback. This issue has been fixed and being released in v5.2.0. |
Describe the bug
This is a problem with DataDog RUM.
While using
@datadog/browser-rum-slim
, v4.30.0 and v4.38.0 (latest), I have this configuration:But, even with that, resources are still being tracked.
The expectation is that resources (ajax, css, js, etc) would not be tracked and sent to DataDog when the
trackResources: false
is set in the configuration.I cloned your repo, and began looking into the problem, and here are some of my notes:
trackResources
, you will see that it is not used directly in any logic or conditions, but it is mapped toresourceAllowed
.resourceAllowed
, I can see that it is only used incomputeIndexingInfo
to setdiscarded
as true. But, that doesn't stop the request from going through.So, it looks to me as though the setting
trackResources
is not actually doing anything.In addition to that, I think if someone sets
trackResources
to befalse
, that you should never runstartResourceCollection
orstartRequestCollection
, because:The text was updated successfully, but these errors were encountered: