Skip to content

Commit 2b328f7

Browse files
committed
Allow disabling app hang monitoring in ObjC API
1 parent 1563925 commit 2b328f7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Unreleased
22

3+
- [IMPROVEMENT] Allow disabling app hang monitoring in ObjC API. See [#1908][]
4+
35
# 2.13.0 / 13-06-2024
46

57
- [IMPROVEMENT] Bump `IPHONEOS_DEPLOYMENT_TARGET` and `TVOS_DEPLOYMENT_TARGET` from 11 to 12. See [#1891][]
@@ -684,6 +686,7 @@ Release `2.0` introduces breaking changes. Follow the [Migration Guide](MIGRATIO
684686
[#1835]: https://github.com/DataDog/dd-sdk-ios/pull/1835
685687
[#1886]: https://github.com/DataDog/dd-sdk-ios/pull/1886
686688
[#1898]: https://github.com/DataDog/dd-sdk-ios/pull/1898
689+
[#1908]: https://github.com/DataDog/dd-sdk-ios/pull/1908
687690
[@00fa9a]: https://github.com/00FA9A
688691
[@britton-earnin]: https://github.com/Britton-Earnin
689692
[@hengyu]: https://github.com/Hengyu

DatadogObjc/Sources/RUM/RUM+objc.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ public class DDRUMConfiguration: NSObject {
378378
}
379379

380380
@objc public var appHangThreshold: TimeInterval {
381-
set { swiftConfig.appHangThreshold = newValue }
381+
set { swiftConfig.appHangThreshold = newValue == 0 ? nil : newValue }
382382
get { swiftConfig.appHangThreshold ?? 0 }
383383
}
384384

0 commit comments

Comments
 (0)