Skip to content

Commit

Permalink
Merge pull request #1043 from DataDog/maxep/fix-vitals-defaults
Browse files Browse the repository at this point in the history
Fix Vitals Default Presets
  • Loading branch information
maxep authored Nov 8, 2022
2 parents a28e795 + 932fc7c commit fdd76f1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

# 1.13.0 / 07-11-2022

- [IMPROVEMENT] Add a method to add properties to user info without needing to reset other user info..
- [IMPROVEMENT] Add a method to add properties to user info without needing to reset other user info.
- [IMPROVEMENT] Send trace sample rate (`dd.rulePsr`) for APM's traffic ingestion control page. See [#1029][]
- [BUGFIX] Fix vitals default presets. See [#1043][]

# 1.12.1 / 18-10-2022

Expand Down Expand Up @@ -402,6 +403,7 @@
[#973]: https://github.com/DataDog/dd-sdk-ios/issues/973
[#997]: https://github.com/DataDog/dd-sdk-ios/issues/997
[#1029]: https://github.com/DataDog/dd-sdk-ios/issues/1029
[#1043]: https://github.com/DataDog/dd-sdk-ios/issues/1043
[@00fa9a]: https://github.com/00FA9A
[@britton-earnin]: https://github.com/Britton-Earnin
[@hengyu]: https://github.com/Hengyu
Expand Down
2 changes: 1 addition & 1 deletion Sources/Datadog/DatadogConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ extension Datadog {
rumBackgroundEventTrackingEnabled: false,
rumFrustrationSignalsTrackingEnabled: true,
rumTelemetrySamplingRate: 20,
mobileVitalsFrequency: .rare,
mobileVitalsFrequency: .average,
batchSize: .medium,
uploadFrequency: .average,
additionalConfiguration: [:],
Expand Down
2 changes: 1 addition & 1 deletion Sources/Datadog/RUM/RUMMonitor/Scopes/RUMViewScope.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Foundation

internal class RUMViewScope: RUMScope, RUMContextProvider {
struct Constants {
static let frozenFrameThresholdInNs = (0.07).toInt64Nanoseconds // 70ms
static let frozenFrameThresholdInNs = (0.7).toInt64Nanoseconds // 700ms
static let slowRenderingThresholdFPS = 55.0
/// The pre-warming detection attribute key
static let activePrewarm = "active_pre_warm"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class DatadogConfigurationBuilderTests: XCTestCase {
XCTAssertFalse(configuration.rumBackgroundEventTrackingEnabled)
XCTAssertTrue(configuration.rumFrustrationSignalsTrackingEnabled)
XCTAssertNil(configuration.rumResourceAttributesProvider)
XCTAssertEqual(configuration.mobileVitalsFrequency, .rare)
XCTAssertEqual(configuration.mobileVitalsFrequency, .average)
XCTAssertEqual(configuration.batchSize, .medium)
XCTAssertEqual(configuration.uploadFrequency, .average)
XCTAssertEqual(configuration.additionalConfiguration.count, 0)
Expand Down
2 changes: 1 addition & 1 deletion Tests/DatadogTests/DatadogObjc/DDConfigurationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class DDConfigurationTests: XCTestCase {
XCTAssertEqual(configuration.rumSessionsSamplingRate, 100.0)
XCTAssertNil(configuration.rumUIKitViewsPredicate)
XCTAssertNil(configuration.rumUIKitUserActionsPredicate)
XCTAssertEqual(configuration.mobileVitalsFrequency, .rare)
XCTAssertEqual(configuration.mobileVitalsFrequency, .average)
XCTAssertEqual(configuration.batchSize, .medium)
XCTAssertEqual(configuration.uploadFrequency, .average)
XCTAssertNil(configuration.rumViewEventMapper)
Expand Down

0 comments on commit fdd76f1

Please sign in to comment.