-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow disabling app hang monitoring in ObjC API #1908
Allow disabling app hang monitoring in ObjC API #1908
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 3104 Passed, 0 Skipped, 3m 36.65s Total Time 🔻 Code Coverage Decreases vs Default Branch (9)
|
2b328f7
to
07c69f7
Compare
Datadog ReportBranch report: ✅ 0 Failed, 3072 Passed, 0 Skipped, 3m 30.58s Total Time 🔻 Code Coverage Decreases vs Default Branch (8)
|
07c69f7
to
7f66da3
Compare
@@ -378,7 +378,7 @@ public class DDRUMConfiguration: NSObject { | |||
} | |||
|
|||
@objc public var appHangThreshold: TimeInterval { | |||
set { swiftConfig.appHangThreshold = newValue } | |||
set { swiftConfig.appHangThreshold = newValue == 0 ? nil : newValue } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is part of codegen and must be not be modified manually.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you point me to the command which generates it? I was adding methods to this class before manually.
What and why?
Unlike long tasks tracking, app hang monitoring can be disabled. This PR treats 0 passed as an argument in ObjC API as a special value to disable app hang monitoring (to avoid changing property type to the optional).
Review checklist
Custom CI job configuration (optional)
tools/