Skip to main content
This page describes the advanced configuration options of the Flutter SDK. All configuration is passed through DatadogConfiguration and DatadogRumConfiguration.

Sampling rate

TrackingConsent controls whether data is collected and reported, to meet compliance requirements such as GDPR:

Event filtering and masking

Event mappers run before events are reported; return null to drop the event, or return it after modification. You can use them to mask sensitive fields, remove noise, or rename views.

Distributed tracing

For hosts that match firstPartyHosts, the SDK injects the W3C traceparent to correlate frontend RUM with backend APM. Tracing requires network collection (enableHttpTracking()).

Custom reporting endpoint

For on-premises deployments, override the default reporting endpoint through customEndpoint:

Symbol file upload

To resolve crash and error stacks back to source locations, you need to upload symbol files. A Flutter application may contain both Dart and native frames: Use the FlashCat CLI to upload symbol files:
The version and service used at upload time must exactly match the values in the SDK initialization. Otherwise the console can receive crash events but cannot resolve stack frames back to source locations. Make symbol upload part of your release build process.

Other configuration