What's Changed
Features
- Add the anonymous user ID to Trace spans as
meta.usr.anonymous_id. See #3480 - Flags: Add subject authorization for protected flag environments. When authorization fails, prevent a subject from using flag assignments retained for another subject. Adds
FlagsError.assignmentAuthorizationFailedandFlagEvaluationError.general; exhaustive switches need the new cases. See #3445
Improvements
- Add stack trace support to RUM monitor
stopResourceWithErrorAPI. See #3422 - Add
stopResourceWithErrorWithResourceKey:message:type:stack:response:attributes:toDDRUMMonitorto report a resource error's type and stack trace from Objective-C. See #3457 - Flags: Protect evaluation telemetry by default. Targeting keys are hashed and the evaluation context is omitted unless the flags configuration enables full evaluation data. Only stable error codes are reported. See #3340
- Add
DDProfilingandDDProfilingConfigurationto configure and enable native profiling from Objective-C integrations. See #3465 - Add
addErrorWithMessage:type:stack:source:attributes:toDDRUMMonitorto report an error type from Objective-C. See #3458 - RUM: Allow cross-platform SDKs to report the first frame used for Time to Initial Display (TTID). See #3462
- Flags: Send the SDK's
servicein thedd-serviceheader on flag requests, the same service RUM reports, so Usage Attribution can split Feature Flags usage by service. See #3469 - Send full RUM view events less often when view updates are enabled: every 10th view update instead of every 6th. This reduces view payload size. See #3491
Fixes
- Flags:
getIntegerValue,getDoubleValueand their details variants now return the flag value when it converts betweenIntandDoublewithout loss. Before, some of these reads returned the default value with.typeMismatch. See #3399 - Fix rounded corners in Session Replay composition tree recordings. See #3464
- Preserve rounded borders on transparent layers in composition tree recordings. See #3466
- Fix a crash when the app launch vitals (TTID/TTFD) were written after the RUM session that received them was deallocated. See #3479
- Fix Liquid Glass slider and switch thumb rendering during interactions in Session Replay. See #3482
- Fix an
unrecognized selectorcrash fortypeDescriptionwhen tapping SwiftUI views with RUM action tracking, in Debug builds that linkDatadogRUMstatically. See #3489 - Fix Liquid Glass tab bar rendering in Session Replay, including tab selections, tab accessory backgrounds, and missing tab icons. See #3492
- Fix possible crashes and lost updates when user info, account info or tracking consent APIs are called concurrently from multiple threads. See #3463