DataDog / dd-sdk-ios

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

Expose Start/Stop API to Objc #2066

Closed mariedm closed 1 month ago

mariedm commented 1 month ago

What and why?

The startRecording and stopRecording public APIs were introduced in #1986 to allow manual control over session recording. However, these APIs were not exposed to Objective-C, limiting access for ObjC users. This PR addresses that gap.

How?

This PR adds startRecording and stopRecording methods to the DDSessionReplay class, making them accessible from Objective-C.

Review checklist

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

Datadog Report

Branch report: mariedm/add-start-stop-objc-apis Commit report: 154505a Test service: dd-sdk-ios

:white_check_mark: 0 Failed, 3471 Passed, 0 Skipped, 2m 21.86s Total Time :small_red_triangle_down: Test Sessions change in coverage: 3 decreased, 4 increased, 7 no change

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