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

🐛 Using "excludedActivityUrls" removes resources from view event in RUM #3178

Open
konradkierus opened this issue Nov 27, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@konradkierus
Copy link

Describe the bug
I'm not sure if it's a bug or expected behaviour. I will understand if it's a feature request instead.

Our app, which is SPA, uses some "comet" techniques (that is, streaming or long polling) and we noticed such requests can affect loading time metric (view.loading_time) in RUM.
As described in the docs here loading time is calculated based on page activity.
Our plan was to use excludedActivityUrls to stop affecting views' loading time with "comet"-like requests.
The problem is that excludedActivityUrls removes also resource entries for such requests and they are no longer visible in VIEW event in RUM. It means there is no longer way to monitor these resources performance, for example, if/when request started, possible network errors, possible retries/reconnections and so on.

Expected behavior
Resources should be visible in RUM even if excludedActivityUrls is used.

@konradkierus konradkierus added the bug Something isn't working label Nov 27, 2024
@cy-moi
Copy link
Contributor

cy-moi commented Dec 3, 2024

Hi @konradkierus ,
Thank you for reaching out. As the docs described, page activities are calculated base on resource requests and excludedActivityUrls is a list of resources. Hence, resources match the url specified are expected to be excluded.

For us to better understand the case here, could you provide your specific config and the resources you want to include?

@konradkierus
Copy link
Author

konradkierus commented Dec 3, 2024

Hey @cy-moi ,
Thanks for the feedback!

We are using GraphQL over SSE (Server-Sent Events) to send some data from server to client (unidirectional communication).
Clients (Single Page Applications) subscribe for such events to get real time updates from server. The subscription can be initiated in various stages, sometimes also on view load, and can stay open as long as user is on the view. Sometimes connection can be lost and then resubscribed, even if user doesn't leave the screen.

Having ability to monitor such resources (as per https://docs.datadoghq.com/real_user_monitoring/browser/monitoring_resource_performance/ ) would be very useful as we treat SSE connections similar to other XHR or Fetch requests.
But, as I already pointed out, these resources affect view.loading_time metric which can be useful by its own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants