About Dependencies and Package NamesFlashduty iOS SDK is fully compatible with the Datadog open-source protocol. When adding dependencies via Swift Package Manager or CocoaPods, use names like
FlashcatCore and FlashcatRUM, but in code, import modules like DatadogCore and DatadogRUM. You can seamlessly leverage Datadog ecosystem documentation, examples, and best practices while enjoying Flashduty platform services.Supported Configuration Scenarios:
- Enrich user sessions - Add custom views, actions, resources, and error information
- Protect sensitive data - Mask personally identifiable information and sensitive data
- Associate user sessions - Link user sessions with internal user identifiers
- Control data volume - Optimize data collection through sampling and event filtering
- Enhance context - Add custom attributes to data
Enrich User Sessions
Custom Views
In addition to auto-tracked views, you can manually track custom views:- Swift
- Objective-C
Parameter Description:
key(String) - Unique identifier for the view, same key used forstartViewandstopViewname(String) - Name of the viewattributes(Dictionary) - Attributes attached to the view (optional)
Custom Actions
Track specific custom user actions:- Swift
- Objective-C
Custom Resources
Manually track specific custom resources:- Swift
Custom Errors
Record specific errors:- Swift
- Objective-C
Add User Attributes
Set user information for the current session:- Swift
- Objective-C
Event and Data Management
Clear All Data
Clear all unsent data currently stored in the SDK:- Swift
- Objective-C
Sampling
Control the percentage of sessions that collect RUM data:User Tracking Consent
To comply with privacy regulations like GDPR and CCPA, you can set user tracking consent state:| State | Behavior |
|---|---|
.granted | Start collecting data and send to Flashduty |
.notGranted | Do not collect any data |
.pending | Collect but do not send, wait for user decision |
Global Context
Add global context attributes that will be attached to all RUM events:- Swift
- Objective-C
Event Mappers
Use Event Mappers to modify or filter events before they are sent:Related Documentation
SDK Integration
Learn how to quickly integrate the RUM SDK
Data Collection
Learn about data types and attributes collected by the SDK
Compatibility
Learn about SDK compatibility requirements