Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into armcknight/feat(user-…
Browse files Browse the repository at this point in the history
…feedback)/widget
  • Loading branch information
armcknight committed Oct 16, 2024
2 parents e43f64d + 149877e commit 283b775
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- feat: API to manually start/stop Session Replay (#4414)
- Custom redact modifier for SwiftUI (#4362, #4392)
- Track usage of appHangTrackingV2 (#4445)

### Removal of Experimental API

Expand All @@ -27,6 +28,7 @@ via the option `swizzleClassNameExclude`.
- Serializing profile on a BG Thread (#4377) to avoid potentially slightly blocking the main thread.
- Session Replay performance for SwiftUI (#4419)
- Speed up getBinaryImages (#4435) for finishing transactions and capturing events
- Align SDK dispatch queue names (#4442) to start with `io.sentry`
- Use UInts in envelope deserialization (#4441)

## 8.38.0
Expand Down
2 changes: 1 addition & 1 deletion Sources/Sentry/SentryDispatchQueueWrapper.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ - (instancetype)init
// iOS 9 we need to manually add the autoreleasepool.
dispatch_queue_attr_t attributes = dispatch_queue_attr_make_with_qos_class(
DISPATCH_QUEUE_SERIAL, DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
self = [self initWithName:"sentry-default" attributes:attributes];
self = [self initWithName:"io.sentry.default" attributes:attributes];
return self;
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/Sentry/SentryPerformanceTrackingIntegration.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ - (BOOL)installWithOptions:(SentryOptions *)options
dispatch_queue_attr_t attributes = dispatch_queue_attr_make_with_qos_class(
DISPATCH_QUEUE_SERIAL, DISPATCH_QUEUE_PRIORITY_HIGH, 0);
SentryDispatchQueueWrapper *dispatchQueue =
[[SentryDispatchQueueWrapper alloc] initWithName:"sentry-ui-view-controller-swizzling"
[[SentryDispatchQueueWrapper alloc] initWithName:"io.sentry.ui-view-controller-swizzling"
attributes:attributes];

SentrySubClassFinder *subClassFinder = [[SentrySubClassFinder alloc]
Expand Down
2 changes: 1 addition & 1 deletion Sources/Sentry/SentryTransportFactory.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ @implementation SentryTransportFactory
dispatch_queue_attr_t attributes = dispatch_queue_attr_make_with_qos_class(
DISPATCH_QUEUE_SERIAL, DISPATCH_QUEUE_PRIORITY_LOW, 0);
SentryDispatchQueueWrapper *dispatchQueueWrapper =
[[SentryDispatchQueueWrapper alloc] initWithName:"sentry-http-transport"
[[SentryDispatchQueueWrapper alloc] initWithName:"io.sentry.http-transport"
attributes:attributes];

SentryNSURLRequestBuilder *requestBuilder = [[SentryNSURLRequestBuilder alloc] init];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ - (BOOL)installWithOptions:(SentryOptions *)options
dispatch_queue_attr_t attributes = dispatch_queue_attr_make_with_qos_class(
DISPATCH_QUEUE_SERIAL, DISPATCH_QUEUE_PRIORITY_HIGH, 0);
SentryDispatchQueueWrapper *dispatchQueueWrapper =
[[SentryDispatchQueueWrapper alloc] initWithName:"sentry-out-of-memory-tracker"
[[SentryDispatchQueueWrapper alloc] initWithName:"io.sentry.watchdog-termination-tracker"
attributes:attributes];

SentryFileManager *fileManager = [[[SentrySDK currentHub] getClient] fileManager];
Expand Down
6 changes: 6 additions & 0 deletions Sources/Swift/Helper/SentryEnabledFeaturesBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ import Foundation
if options.swiftAsyncStacktraces {
features.append("swiftAsyncStacktraces")
}

#if os(iOS) || os(tvOS) || targetEnvironment(macCatalyst)
if options.enableAppHangTrackingV2 {
features.append("appHangTrackingV2")
}
#endif //os(iOS) || os(tvOS) || targetEnvironment(macCatalyst)

return features
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ final class SentryEnabledFeaturesBuilderTests: XCTestCase {
options.enablePreWarmedAppStartTracing = true
#endif // canImport(UIKit)
#endif // os(iOS) || os(tvOS)

#if os(iOS) || os(tvOS) || targetEnvironment(macCatalyst)
options.enableAppHangTrackingV2 = true
#endif //os(iOS) || os(tvOS) || targetEnvironment(macCatalyst)

let features = SentryEnabledFeaturesBuilder.getEnabledFeatures(options: options)

Expand All @@ -42,5 +46,9 @@ final class SentryEnabledFeaturesBuilderTests: XCTestCase {
XCTAssert(features.contains("preWarmedAppStartTracing"))
#endif // canImport(UIKit)
#endif // os(iOS) || os(tvOS)

#if os(iOS) || os(tvOS) || targetEnvironment(macCatalyst)
XCTAssert(features.contains("appHangTrackingV2"))
#endif //os(iOS) || os(tvOS) || targetEnvironment(macCatalyst)
}
}

0 comments on commit 283b775

Please sign in to comment.