dd-sdk-flutter icon indicating copy to clipboard operation
dd-sdk-flutter copied to clipboard

Multiple instances of the Datadog RUM Flutter SDK

Open dustinschultz opened this issue 1 year ago • 1 comments

Question

Is it possible to have multiple instances of the Datadog RUM Flutter SDK?

We're finding that by only having one, we have to sample at a rate that represents the smallest population for a given path and over capture for the others.

I'd like to be able to set up multiple "applications" for different parts of the mobile app and sample the RUM sessions at a different rate depending on their usage.

dustinschultz avatar Aug 28 '24 19:08 dustinschultz

Not in the Flutter SDK at the moment no. The native SDKs support multiple instances, but that's meant more for SDK monitoring.

If you have enough pre-sampled sessions, you may want to look into tail-based sampling, which was announced at Dash and currently in beta: https://www.datadoghq.com/blog/dash-2024-new-feature-roundup-applications/#dynamically-sample-rum-sessions-with-the-tail-based-sampler

This would allow you to opt in or out of retaining sessions based on the criteria you mentioned.

fuzzybinary avatar Aug 28 '24 19:08 fuzzybinary