diff --git a/CHANGELOG.md b/CHANGELOG.md index 91539b2e739..6318d6a1d21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Change default attributes of Logs to only include user attributes when `options.sendDefaultPii = true` (#7055) - Rename log attribute `sentry.trace.parent_span_id` to `span_id` (#7055) - Fixes stacktraces for MetricKit events (#6908) +- Fix `raw_description` in `runtime` context on Mac Catalyst (#7082) ## 9.1.0 diff --git a/Sources/Swift/SentryCrash/SentryCrashWrapper.swift b/Sources/Swift/SentryCrash/SentryCrashWrapper.swift index 3f02c126d67..8c07195307a 100644 --- a/Sources/Swift/SentryCrash/SentryCrashWrapper.swift +++ b/Sources/Swift/SentryCrash/SentryCrashWrapper.swift @@ -210,7 +210,7 @@ public final class SentryCrashWrapper: NSObject { if self.processInfoWrapper.isMacCatalystApp { runtimeContext["name"] = "Mac Catalyst App" - runtimeContext["raw_description"] = "raw_description" + runtimeContext["raw_description"] = "mac-catalyst-app" } } diff --git a/Tests/SentryTests/SentryCrash/SentryCrashWrapperTests.swift b/Tests/SentryTests/SentryCrash/SentryCrashWrapperTests.swift index a272e046918..d1f34aaf6e2 100644 --- a/Tests/SentryTests/SentryCrash/SentryCrashWrapperTests.swift +++ b/Tests/SentryTests/SentryCrash/SentryCrashWrapperTests.swift @@ -129,7 +129,7 @@ final class SentryCrashWrapperTests: XCTestCase { let runtimeContext = try XCTUnwrap(scope.contextDictionary["runtime"] as? [String: Any]) XCTAssertEqual(runtimeContext["name"] as? String, "Mac Catalyst App") - XCTAssertEqual(runtimeContext["raw_description"] as? String, "raw_description") + XCTAssertEqual(runtimeContext["raw_description"] as? String, "mac-catalyst-app") #endif } } diff --git a/Tests/SentryTests/SentryHubTests.swift b/Tests/SentryTests/SentryHubTests.swift index 235c3e294f4..d9c3f8c8c83 100644 --- a/Tests/SentryTests/SentryHubTests.swift +++ b/Tests/SentryTests/SentryHubTests.swift @@ -238,7 +238,7 @@ class SentryHubTests: XCTestCase { // Assert let runtimeContext = try XCTUnwrap (hub.scope.contextDictionary["runtime"] as? [String: String]) XCTAssertEqual(runtimeContext["name"], "Mac Catalyst App") - XCTAssertEqual(runtimeContext["raw_description"], "raw_description") + XCTAssertEqual(runtimeContext["raw_description"], "mac-catalyst-app") } func testScopeNotEnriched_WhenScopeIsNil() {