DataDog / dd-sdk-ios

Datadog SDK for iOS - Swift and Objective-C.
Apache License 2.0
219 stars 127 forks source link

RUM-6224 [Session Replay FGM] Create privacy overrides #2058

Closed mariedm closed 1 month ago

mariedm commented 1 month ago

What and why?

This PR introduces the ability to override Session Replay's fine-grained privacy settings (text and input, images, touches) at the view level. This allows customers to apply specific privacy levels to specific views, overriding the global privacy configuration, enabling customers to control masking at a more granular level.

A new HiddenPrivacyLevel is also introduced, which, when applied to a view, will replace the view with an opaque wireframe and prevent any interactions or subviews from being recorded. This privacy level is only available as an override and takes precedence over other privacy settings.

How?

Note: This PR only creates the new properties; the logic to apply the overrides will follow in another PR.

Review checklist

datadog-datadog-prod-us1[bot] commented 1 month ago

Datadog Report

Branch report: RUM-6224-create-overrides Commit report: b8c9942 Test service: dd-sdk-ios

:white_check_mark: 0 Failed, 3478 Passed, 0 Skipped, 2m 17.87s Total Time :small_red_triangle_down: Test Sessions change in coverage: 3 decreased, 5 increased, 6 no change

:small_red_triangle_down: Code Coverage Decreases vs Default Branch (3)