Skip to content

Commit e67af5e

Browse files
authored
Merge pull request #2061 from DataDog/release/2.18.0
Release 2.18.0
2 parents e9d153d + 00aee79 commit e67af5e

File tree

173 files changed

+1485
-395
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+1485
-395
lines changed

.gitlab-ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ stages:
99
- dogfood
1010
- release-build
1111
- release-publish
12+
- post
1213

1314
variables:
1415
MAIN_BRANCH: "master"
@@ -401,3 +402,14 @@ Publish CP podspecs (legacy):
401402
- make env-check
402403
- make clean
403404
- make release-publish-legacy-podspecs
405+
406+
# ┌────────────────┐
407+
# │ Notifications: │
408+
# └────────────────┘
409+
410+
# This job runs at the end of every successful pipeline.
411+
# It syncs the GitLab pipeline status with GitHub status checks.
412+
Sync GH Checks:
413+
stage: post
414+
script:
415+
- echo "All good"

BenchmarkTests/BenchmarkTests.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<EnvironmentVariable
5555
key = "BENCHMARK_RUN"
5656
value = "instrumented"
57-
isEnabled = "YES">
57+
isEnabled = "NO">
5858
</EnvironmentVariable>
5959
<EnvironmentVariable
6060
key = "BENCHMARK_SCENARIO"

BenchmarkTests/Runner/AppDelegate.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1313
var window: UIWindow?
1414

1515
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
16-
guard
17-
let scenario = SyntheticScenario(),
18-
let run = SyntheticRun()
19-
else {
16+
guard let scenario = SyntheticScenario() else {
2017
return false
2118
}
2219

20+
let run = SyntheticRun()
2321
let applicationInfo = try! AppInfo() // crash if info are missing or malformed
2422

2523
switch run {
@@ -43,6 +41,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
4341
)
4442

4543
DatadogInternal.profiler = Profiler()
44+
case .none:
4645
break
4746
}
4847

BenchmarkTests/Runner/Scenarios/SyntheticScenario.swift

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,17 @@ internal enum SyntheticRun: String {
6464
case baseline
6565
case instrumented
6666
case profiling
67+
case none
6768

6869
/// Creates the scenario by reading the `BENCHMARK_RUN` value from the
6970
/// environment variables.
7071
///
7172
/// - Parameter processInfo: The `ProcessInfo` with environment variables
7273
/// configured
73-
init?(processInfo: ProcessInfo = .processInfo) {
74-
guard
75-
let rawValue = processInfo.environment["BENCHMARK_RUN"],
76-
let run = Self(rawValue: rawValue)
77-
else {
78-
return nil
79-
}
80-
81-
self = run
74+
init(processInfo: ProcessInfo = .processInfo) {
75+
self = processInfo
76+
.environment["BENCHMARK_RUN"]
77+
.flatMap(Self.init(rawValue:))
78+
?? .none
8279
}
8380
}

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
# Unreleased
2+
3+
# 2.18.0 / 25-09-2024
4+
- [IMPROVEMENT] Add overwrite required (breaking) param to addViewLoadingTime & usage telemetry. See [#2040][]
5+
- [FEATURE] Prevent "show password" features from revealing sensitive texts in Session Replay. See [#2050][]
6+
- [FEATURE] Add Fine-Grained Masking configuration options to Session Replay. See [#2043][]
7+
18
# 2.17.0 / 11-09-2024
29

3-
- [FEATURE] Add support for view loading API (addViewLoadingTime). See [#2026][]
10+
- [FEATURE] Add support for view loading experimental API (addViewLoadingTime). See [#2026][]
411
- [IMPROVEMENT] Drop support for deprecated cocoapod specs. See [#1998][]
512
- [FIX] Propagate global Tracer tags to OpenTelemetry span attributes. See [#2000][]
613
- [FEATURE] Add Logs event mapper to ObjC API. See [#2008][]
@@ -764,6 +771,9 @@ Release `2.0` introduces breaking changes. Follow the [Migration Guide](MIGRATIO
764771
[#1998]: https://github.com/DataDog/dd-sdk-ios/pull/1998
765772
[#1966]: https://github.com/DataDog/dd-sdk-ios/pull/1966
766773
[#2026]: https://github.com/DataDog/dd-sdk-ios/pull/2026
774+
[#2043]: https://github.com/DataDog/dd-sdk-ios/pull/2043
775+
[#2040]: https://github.com/DataDog/dd-sdk-ios/pull/2040
776+
[#2050]: https://github.com/DataDog/dd-sdk-ios/pull/2050
767777
[@00fa9a]: https://github.com/00FA9A
768778
[@britton-earnin]: https://github.com/Britton-Earnin
769779
[@hengyu]: https://github.com/Hengyu

Datadog/Datadog.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@
250250
61054FC02A6EE1BA00AAA894 /* UITextViewRecorderTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 61054F782A6EE1BA00AAA894 /* UITextViewRecorderTests.swift */; };
251251
61054FC12A6EE1BA00AAA894 /* ViewTreeRecorderTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 61054F792A6EE1BA00AAA894 /* ViewTreeRecorderTests.swift */; };
252252
61054FC22A6EE1BA00AAA894 /* ViewTreeSnapshotTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 61054F7A2A6EE1BA00AAA894 /* ViewTreeSnapshotTests.swift */; };
253-
61054FC32A6EE1BA00AAA894 /* PrivacyLevelTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 61054F7B2A6EE1BA00AAA894 /* PrivacyLevelTests.swift */; };
253+
61054FC32A6EE1BA00AAA894 /* TextAndInputPrivacyLevelTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 61054F7B2A6EE1BA00AAA894 /* TextAndInputPrivacyLevelTests.swift */; };
254254
61054FC42A6EE1BA00AAA894 /* RecorderTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 61054F7C2A6EE1BA00AAA894 /* RecorderTests.swift */; };
255255
61054FC52A6EE1BA00AAA894 /* UIKitMocks.swift in Sources */ = {isa = PBXBuildFile; fileRef = 61054F7E2A6EE1BA00AAA894 /* UIKitMocks.swift */; };
256256
61054FC62A6EE1BA00AAA894 /* CoreGraphicsMocks.swift in Sources */ = {isa = PBXBuildFile; fileRef = 61054F7F2A6EE1BA00AAA894 /* CoreGraphicsMocks.swift */; };
@@ -2284,7 +2284,7 @@
22842284
61054F782A6EE1BA00AAA894 /* UITextViewRecorderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UITextViewRecorderTests.swift; sourceTree = "<group>"; };
22852285
61054F792A6EE1BA00AAA894 /* ViewTreeRecorderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewTreeRecorderTests.swift; sourceTree = "<group>"; };
22862286
61054F7A2A6EE1BA00AAA894 /* ViewTreeSnapshotTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewTreeSnapshotTests.swift; sourceTree = "<group>"; };
2287-
61054F7B2A6EE1BA00AAA894 /* PrivacyLevelTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PrivacyLevelTests.swift; sourceTree = "<group>"; };
2287+
61054F7B2A6EE1BA00AAA894 /* TextAndInputPrivacyLevelTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TextAndInputPrivacyLevelTests.swift; sourceTree = "<group>"; };
22882288
61054F7C2A6EE1BA00AAA894 /* RecorderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecorderTests.swift; sourceTree = "<group>"; };
22892289
61054F7E2A6EE1BA00AAA894 /* UIKitMocks.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UIKitMocks.swift; sourceTree = "<group>"; };
22902290
61054F7F2A6EE1BA00AAA894 /* CoreGraphicsMocks.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CoreGraphicsMocks.swift; sourceTree = "<group>"; };
@@ -3890,7 +3890,7 @@
38903890
61054F5B2A6EE1BA00AAA894 /* Utilties */,
38913891
61054F602A6EE1BA00AAA894 /* TouchSnapshotProducer */,
38923892
61054F642A6EE1BA00AAA894 /* ViewTreeSnapshotProducer */,
3893-
61054F7B2A6EE1BA00AAA894 /* PrivacyLevelTests.swift */,
3893+
61054F7B2A6EE1BA00AAA894 /* TextAndInputPrivacyLevelTests.swift */,
38943894
61054F7C2A6EE1BA00AAA894 /* RecorderTests.swift */,
38953895
);
38963896
path = Recorder;
@@ -8416,7 +8416,7 @@
84168416
96E414162C2AF5C1005A6119 /* UIProgressViewRecorderTests.swift in Sources */,
84178417
61054FB32A6EE1BA00AAA894 /* UITextFieldRecorderTests.swift in Sources */,
84188418
61054FCD2A6EE1BA00AAA894 /* SnapshotProducerMocks.swift in Sources */,
8419-
61054FC32A6EE1BA00AAA894 /* PrivacyLevelTests.swift in Sources */,
8419+
61054FC32A6EE1BA00AAA894 /* TextAndInputPrivacyLevelTests.swift in Sources */,
84208420
61054FA82A6EE1BA00AAA894 /* RecordingCoordinatorTests.swift in Sources */,
84218421
61054FAD2A6EE1BA00AAA894 /* WindowTouchSnapshotProducerTests.swift in Sources */,
84228422
61054FD52A6EE1BA00AAA894 /* XCTAssertRectsEqual.swift in Sources */,

Datadog/Example/Debugging/DebugRUMViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class DebugRUMViewController: UIViewController {
219219
)
220220
case "usage":
221221
telemetry.send(
222-
telemetry: .usage(.setTrackingConsent(.granted))
222+
telemetry: .usage(.init(event: .setTrackingConsent(.granted), sampleRate: 100))
223223
)
224224
default:
225225
break

DatadogAlamofireExtension.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "DatadogAlamofireExtension"
3-
s.version = "2.17.0"
3+
s.version = "2.18.0"
44
s.summary = "An Official Extensions of Datadog Swift SDK for Alamofire."
55
s.description = <<-DESC
66
The DatadogAlamofireExtension pod is deprecated and will no longer be maintained.

DatadogCore.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "DatadogCore"
3-
s.version = "2.17.0"
3+
s.version = "2.18.0"
44
s.summary = "Official Datadog Swift SDK for iOS."
55

66
s.homepage = "https://www.datadoghq.com"

DatadogCore/Sources/Versioning.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// GENERATED FILE: Do not edit directly
22

3-
internal let __sdkVersion = "2.17.0"
3+
internal let __sdkVersion = "2.18.0"

0 commit comments

Comments
 (0)