Skip to content

Commit 376f35a

Browse files
committed
ref: SentryClient and SentryHub in Swift
1 parent 86eb6d5 commit 376f35a

File tree

75 files changed

+758
-308
lines changed

Some content is hidden

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

75 files changed

+758
-308
lines changed

Samples/iOS-Swift/iOS-Swift/Tools/SentryExposure.h

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#import <Sentry/SentryScope.h>
33
#import <UIKit/UIKit.h>
44

5-
@class SentryHub;
5+
@class SentryOptions;
66

77
NS_ASSUME_NONNULL_BEGIN
88

@@ -13,11 +13,23 @@ NS_ASSUME_NONNULL_BEGIN
1313

1414
@end
1515

16+
@interface SentryClientInternal : NSObject
17+
18+
@property (nonatomic) SentryOptions *options;
19+
20+
@end
21+
22+
@interface SentryHubInternal : NSObject
23+
24+
- (nullable SentryClientInternal *)getClient;
25+
26+
@end
27+
1628
@interface SentrySDKInternal : NSObject
1729

1830
+ (nullable NSArray<NSString *> *)relevantViewControllersNames;
1931

20-
+ (SentryHub *)currentHub;
32+
+ (SentryHubInternal *)currentHub;
2133

2234
@end
2335

Sentry.xcodeproj/project.pbxproj

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
63AA766A1EB8CB2F00D153DE /* Sentry.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 63AA759B1EB8AEF500D153DE /* Sentry.framework */; settings = {ATTRIBUTES = (Required, ); }; };
199199
63AA76701EB8CB4B00D153DE /* SentryTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 63AA75951EB8AEDB00D153DE /* SentryTests.m */; };
200200
63AA767A1EB8D20500D153DE /* SentryLogC.m in Sources */ = {isa = PBXBuildFile; fileRef = 63AA76781EB8D20500D153DE /* SentryLogC.m */; };
201-
63AA76981EB9C1C200D153DE /* SentryClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 63AA76941EB9C1C200D153DE /* SentryClient.h */; settings = {ATTRIBUTES = (Public, ); }; };
201+
63AA76981EB9C1C200D153DE /* SentryClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 63AA76941EB9C1C200D153DE /* SentryClient.h */; };
202202
63AA76991EB9C1C200D153DE /* SentryDefines.h in Headers */ = {isa = PBXBuildFile; fileRef = 63AA76951EB9C1C200D153DE /* SentryDefines.h */; settings = {ATTRIBUTES = (Public, ); }; };
203203
63AA769D1EB9C57A00D153DE /* SentryError.h in Headers */ = {isa = PBXBuildFile; fileRef = 63AA769B1EB9C57A00D153DE /* SentryError.h */; settings = {ATTRIBUTES = (Public, ); }; };
204204
63AA769E1EB9C57A00D153DE /* SentryError.mm in Sources */ = {isa = PBXBuildFile; fileRef = 63AA769C1EB9C57A00D153DE /* SentryError.mm */; };
@@ -555,7 +555,7 @@
555555
7BFE7A0A27A1B6B000D2B66E /* SentryWatchdogTerminationTrackingIntegrationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BFE7A0927A1B6B000D2B66E /* SentryWatchdogTerminationTrackingIntegrationTests.swift */; };
556556
7D0637032382B34300B30749 /* SentryScope.h in Headers */ = {isa = PBXBuildFile; fileRef = 7D0637022382B34300B30749 /* SentryScope.h */; settings = {ATTRIBUTES = (Public, ); }; };
557557
7D082B8323C628790029866B /* SentryMeta.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D082B8023C628780029866B /* SentryMeta.m */; };
558-
7D0FCFB22379B915004DD83A /* SentryHub.h in Headers */ = {isa = PBXBuildFile; fileRef = 7D0FCFB02379B915004DD83A /* SentryHub.h */; settings = {ATTRIBUTES = (Public, ); }; };
558+
7D0FCFB22379B915004DD83A /* SentryHub.h in Headers */ = {isa = PBXBuildFile; fileRef = 7D0FCFB02379B915004DD83A /* SentryHub.h */; };
559559
7D5C441C237C2E1F00DAB0A3 /* SentryHub.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D5C4419237C2E1F00DAB0A3 /* SentryHub.m */; };
560560
7D65260E237F649E00113EA2 /* SentryScope.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D65260B237F649E00113EA2 /* SentryScope.m */; };
561561
7D9B07A023D1E89900C5FC8E /* SentryMeta.h in Headers */ = {isa = PBXBuildFile; fileRef = 7D9B079F23D1E89800C5FC8E /* SentryMeta.h */; };
@@ -1045,6 +1045,8 @@
10451045
FA458CC32E691A730061B13D /* SentryProcessInfo.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA458CBD2E691A6E0061B13D /* SentryProcessInfo.swift */; };
10461046
FA4C32972DF7513F001D7B00 /* SentryExperimentalOptions.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA4C32962DF7513F001D7B00 /* SentryExperimentalOptions.swift */; };
10471047
FA560F602E8C877200F2AF7F /* SentryAppStateManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA560F5A2E8C876A00F2AF7F /* SentryAppStateManager.swift */; };
1048+
FA6252042EB52DD900BFC967 /* SentryHub.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA6251FE2EB52DD700BFC967 /* SentryHub.swift */; };
1049+
FA6252062EB5489E00BFC967 /* SentryClient.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA6252052EB5489B00BFC967 /* SentryClient.swift */; };
10481050
FA6555142E30181B009917BC /* SentrySDKInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = FA6555132E30181B009917BC /* SentrySDKInternal.h */; };
10491051
FA6555162E30182B009917BC /* SentrySDKInternal.m in Sources */ = {isa = PBXBuildFile; fileRef = FA6555152E30182B009917BC /* SentrySDKInternal.m */; };
10501052
FA65551A2E3018A3009917BC /* SentrySDKTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA6555192E30189E009917BC /* SentrySDKTests.swift */; };
@@ -1486,7 +1488,7 @@
14861488
63AA76651EB8CB2F00D153DE /* SentryTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SentryTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
14871489
63AA76781EB8D20500D153DE /* SentryLogC.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SentryLogC.m; sourceTree = "<group>"; };
14881490
63AA76931EB9C1C200D153DE /* Sentry.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Sentry.h; path = Public/Sentry.h; sourceTree = "<group>"; };
1489-
63AA76941EB9C1C200D153DE /* SentryClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentryClient.h; path = Public/SentryClient.h; sourceTree = "<group>"; };
1491+
63AA76941EB9C1C200D153DE /* SentryClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentryClient.h; path = include/SentryClient.h; sourceTree = "<group>"; };
14901492
63AA76951EB9C1C200D153DE /* SentryDefines.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentryDefines.h; path = Public/SentryDefines.h; sourceTree = "<group>"; };
14911493
63AA769B1EB9C57A00D153DE /* SentryError.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentryError.h; path = Public/SentryError.h; sourceTree = "<group>"; };
14921494
63AA769C1EB9C57A00D153DE /* SentryError.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = SentryError.mm; sourceTree = "<group>"; };
@@ -1876,7 +1878,7 @@
18761878
7BFE7A0927A1B6B000D2B66E /* SentryWatchdogTerminationTrackingIntegrationTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryWatchdogTerminationTrackingIntegrationTests.swift; sourceTree = "<group>"; };
18771879
7D0637022382B34300B30749 /* SentryScope.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentryScope.h; path = Public/SentryScope.h; sourceTree = "<group>"; };
18781880
7D082B8023C628780029866B /* SentryMeta.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryMeta.m; sourceTree = "<group>"; };
1879-
7D0FCFB02379B915004DD83A /* SentryHub.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryHub.h; path = Public/SentryHub.h; sourceTree = "<group>"; };
1881+
7D0FCFB02379B915004DD83A /* SentryHub.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryHub.h; path = include/SentryHub.h; sourceTree = "<group>"; };
18801882
7D5C4419237C2E1F00DAB0A3 /* SentryHub.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SentryHub.m; sourceTree = "<group>"; };
18811883
7D65260B237F649E00113EA2 /* SentryScope.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryScope.m; sourceTree = "<group>"; };
18821884
7D826E3E2390840E00EED93D /* Package.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = "<group>"; };
@@ -2424,6 +2426,8 @@
24242426
FA4C32962DF7513F001D7B00 /* SentryExperimentalOptions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryExperimentalOptions.swift; sourceTree = "<group>"; };
24252427
FA4C32972DF7513F001D7B01 /* SentryAppState.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryAppState.swift; sourceTree = "<group>"; };
24262428
FA560F5A2E8C876A00F2AF7F /* SentryAppStateManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryAppStateManager.swift; sourceTree = "<group>"; };
2429+
FA6251FE2EB52DD700BFC967 /* SentryHub.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryHub.swift; sourceTree = "<group>"; };
2430+
FA6252052EB5489B00BFC967 /* SentryClient.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryClient.swift; sourceTree = "<group>"; };
24272431
FA6555132E30181B009917BC /* SentrySDKInternal.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentrySDKInternal.h; path = include/SentrySDKInternal.h; sourceTree = "<group>"; };
24282432
FA6555152E30182B009917BC /* SentrySDKInternal.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentrySDKInternal.m; sourceTree = "<group>"; };
24292433
FA6555192E30189E009917BC /* SentrySDKTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentrySDKTests.swift; sourceTree = "<group>"; };
@@ -4419,6 +4423,8 @@
44194423
D8B665BB2B95F5A100BD0E7B /* module.modulemap */,
44204424
FA4C32962DF7513F001D7B00 /* SentryExperimentalOptions.swift */,
44214425
FA4C32972DF7513F001D7B01 /* SentryAppState.swift */,
4426+
FA6251FE2EB52DD700BFC967 /* SentryHub.swift */,
4427+
FA6252052EB5489B00BFC967 /* SentryClient.swift */,
44224428
);
44234429
path = Swift;
44244430
sourceTree = "<group>";
@@ -5894,6 +5900,7 @@
58945900
FA67DD002DDBD4EA00896B02 /* SentryMaskRenderer.swift in Sources */,
58955901
FA67DD012DDBD4EA00896B02 /* SentryMXCallStackTree.swift in Sources */,
58965902
FAAB29F12E3D252300ACD577 /* SentrySession.swift in Sources */,
5903+
FA6252042EB52DD900BFC967 /* SentryHub.swift in Sources */,
58975904
FA67DD022DDBD4EA00896B02 /* SentryViewScreenshotProvider.swift in Sources */,
58985905
FA67DD032DDBD4EA00896B02 /* SentryTransactionNameSource.swift in Sources */,
58995906
FA67DD042DDBD4EA00896B02 /* SwiftDescriptor.swift in Sources */,
@@ -5967,6 +5974,7 @@
59675974
F4FE9DFE2E622CD70014FED5 /* SentryObjCRuntimeWrapper.swift in Sources */,
59685975
84A898542E163072009A551E /* SentryProfileConfiguration.m in Sources */,
59695976
849B8F9B2C6E906900148E1F /* SentryUserFeedbackIntegrationDriver.swift in Sources */,
5977+
FA6252062EB5489E00BFC967 /* SentryClient.swift in Sources */,
59705978
FA3734862E0F09320091EF24 /* SentryDependencyContainerSwiftHelper.m in Sources */,
59715979
63FE70DF20DA4C1000CDBAE8 /* SentryCrashMonitorType.c in Sources */,
59725980
D468C0622D3669A200964230 /* SentryFileIOTracker+SwiftHelpers.swift in Sources */,

SentryTestUtils/SentryHub+Test.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
@class SentryClient;
44
@class SentryCrashWrapper;
55
@class SentryDispatchQueueWrapper;
6+
@class SentryClientInternal;
67
@protocol SentryIntegrationProtocol;
78
NS_ASSUME_NONNULL_BEGIN
89

910
/** Expose the internal test init for testing. */
10-
@interface SentryHub ()
11+
@interface SentryHubInternal ()
1112

12-
- (instancetype)initWithClient:(SentryClient *_Nullable)client
13+
- (instancetype)initWithClient:(SentryClientInternal *_Nullable)client
1314
andScope:(SentryScope *_Nullable)scope
1415
andCrashWrapper:(SentryCrashWrapper *)crashAdapter
1516
andDispatchQueue:(SentryDispatchQueueWrapper *)dispatchQueue;

SentryTestUtils/TestClient.swift

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import _SentryPrivate
22
import Foundation
33
@_spi(Private) import Sentry
44

5-
public class TestClient: SentryClient {
5+
public class TestClient: SentryClientInternal {
66
public override init?(options: Options) {
77
super.init(
88
options: options,
@@ -48,9 +48,9 @@ public class TestClient: SentryClient {
4848
}
4949

5050
public var captureEventInvocations = Invocations<Event>()
51-
public override func capture(event: Event) -> SentryId {
51+
public override func capture(event: Event) -> SentryIdWrapper {
5252
captureEventInvocations.record(event)
53-
return event.eventId
53+
return SentryIdWrapper(id: event.eventId.sentryIdString)
5454
}
5555

5656
@_spi(Private) public var captureEventWithScopeInvocations = Invocations<(event: Event, scope: Scope, additionalEnvelopeItems: [SentryEnvelopeItem])>()
@@ -60,39 +60,39 @@ public class TestClient: SentryClient {
6060
}
6161

6262
var captureMessageInvocations = Invocations<String>()
63-
public override func capture(message: String) -> SentryId {
63+
public override func capture(message: String) -> SentryIdWrapper {
6464
self.captureMessageInvocations.record(message)
65-
return SentryId()
65+
return SentryIdWrapper()
6666
}
6767

6868
public var captureMessageWithScopeInvocations = Invocations<(message: String, scope: Scope)>()
69-
public override func capture(message: String, scope: Scope) -> SentryId {
69+
public override func capture(message: String, scope: Scope) -> SentryIdWrapper {
7070
captureMessageWithScopeInvocations.record((message, scope))
71-
return SentryId()
71+
return SentryIdWrapper()
7272
}
7373

7474
var captureErrorInvocations = Invocations<Error>()
75-
public override func capture(error: Error) -> SentryId {
75+
public override func capture(error: Error) -> SentryIdWrapper {
7676
captureErrorInvocations.record(error)
77-
return SentryId()
77+
return SentryIdWrapper()
7878
}
7979

8080
public var captureErrorWithScopeInvocations = Invocations<(error: Error, scope: Scope)>()
81-
public override func capture(error: Error, scope: Scope) -> SentryId {
81+
public override func capture(error: Error, scope: Scope) -> SentryIdWrapper {
8282
captureErrorWithScopeInvocations.record((error, scope))
83-
return SentryId()
83+
return SentryIdWrapper()
8484
}
8585

8686
var captureExceptionInvocations = Invocations<NSException>()
87-
public override func capture(exception: NSException) -> SentryId {
87+
public override func capture(exception: NSException) -> SentryIdWrapper {
8888
captureExceptionInvocations.record(exception)
89-
return SentryId()
89+
return SentryIdWrapper()
9090
}
9191

9292
public var captureExceptionWithScopeInvocations = Invocations<(exception: NSException, scope: Scope)>()
93-
public override func capture(exception: NSException, scope: Scope) -> SentryId {
93+
public override func capture(exception: NSException, scope: Scope) -> SentryIdWrapper {
9494
captureExceptionWithScopeInvocations.record((exception, scope))
95-
return SentryId()
95+
return SentryIdWrapper()
9696
}
9797

9898
public var callSessionBlockWithIncrementSessionErrors = true

SentryTestUtils/TestHub.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import _SentryPrivate
22
import Foundation
33
@_spi(Private) @testable import Sentry
44

5-
public class TestHub: SentryHub {
5+
public class TestHub: SentryHubInternal {
66

77
public var startSessionInvocations: Int = 0
88
public var closeCachedSessionInvocations: Int = 0

Sources/Sentry/Profiling/SentryLaunchProfiling.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@
349349
}
350350

351351
void
352-
sentry_stopAndDiscardLaunchProfileTracer(SentryHub *_Nullable hub)
352+
sentry_stopAndDiscardLaunchProfileTracer(SentryHubInternal *_Nullable hub)
353353
{
354354
SENTRY_LOG_DEBUG(@"Finishing launch tracer.");
355355
sentry_launchTracer.hub = hub;

Sources/Sentry/Profiling/SentryProfiledTracerConcurrency.mm

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
}
168168

169169
void
170-
sentry_discardProfilerCorrelatedToTrace(SentryId *internalTraceId, SentryHub *hub)
170+
sentry_discardProfilerCorrelatedToTrace(SentryId *internalTraceId, SentryHubInternal *hub)
171171
{
172172
std::lock_guard<std::mutex> l(_gStateLock);
173173

@@ -238,9 +238,9 @@
238238
}
239239

240240
void
241-
sentry_stopProfilerDueToFinishedTransaction(
242-
SentryHub *hub, SentryDispatchQueueWrapper *dispatchQueue, SentryTransaction *transaction,
243-
BOOL isProfiling, NSDate *_Nullable traceStartTimestamp, uint64_t startSystemTime
241+
sentry_stopProfilerDueToFinishedTransaction(SentryHubInternal *hub,
242+
SentryDispatchQueueWrapper *dispatchQueue, SentryTransaction *transaction, BOOL isProfiling,
243+
NSDate *_Nullable traceStartTimestamp, uint64_t startSystemTime
244244
# if SENTRY_HAS_UIKIT
245245
,
246246
SentryAppStartMeasurement *appStartMeasurement
@@ -256,10 +256,11 @@
256256
return;
257257
}
258258

259-
SentryClient *_Nullable client = hub.getClient;
259+
SentryClientInternal *_Nullable client = hub.getClient;
260260
if (isProfiling && client != nil
261-
&& sentry_isContinuousProfilingEnabled(SENTRY_UNWRAP_NULLABLE(SentryClient, client))
262-
&& sentry_isProfilingCorrelatedToTraces(SENTRY_UNWRAP_NULLABLE(SentryClient, client))) {
261+
&& sentry_isContinuousProfilingEnabled(SENTRY_UNWRAP_NULLABLE(SentryClientInternal, client))
262+
&& sentry_isProfilingCorrelatedToTraces(
263+
SENTRY_UNWRAP_NULLABLE(SentryClientInternal, client))) {
263264
SENTRY_LOG_DEBUG(@"Stopping tracking root span tracer with profilerReferenceId %@",
264265
sentry_stringFromSentryID(transaction.trace.profilerReferenceID));
265266
sentry_stopTrackingRootSpanForContinuousProfilerV2();
@@ -334,24 +335,25 @@
334335
}
335336

336337
SentryId *_Nullable sentry_startProfilerForTrace(SentryTracerConfiguration *configuration,
337-
SentryHub *_Nullable hub, SentryTransactionContext *transactionContext)
338+
SentryHubInternal *_Nullable hub, SentryTransactionContext *transactionContext)
338339
{
339340
if (sentry_profileConfiguration.profileOptions != nil) {
340341
// launch profile; there's no hub to get options from, so they're read from the launch
341342
// profile config file
342343
return _sentry_startContinuousProfilerV2ForTrace(
343344
sentry_profileConfiguration.profileOptions, transactionContext);
344345
}
345-
SentryClient *_Nullable client = hub.getClient;
346+
SentryClientInternal *_Nullable client = hub.getClient;
346347
if (client != nil
347-
&& sentry_isContinuousProfilingEnabled(SENTRY_UNWRAP_NULLABLE(SentryClient, client))) {
348+
&& sentry_isContinuousProfilingEnabled(
349+
SENTRY_UNWRAP_NULLABLE(SentryClientInternal, client))) {
348350
// non launch profile
349351
if (sentry_getParentSpanID(transactionContext) != nil) {
350352
SENTRY_LOG_DEBUG(@"Not a root span, will not start automatically for trace lifecycle.");
351353
return nil;
352354
}
353355
SentryProfileOptions *_Nullable profilingOptions
354-
= sentry_getProfiling(SENTRY_UNWRAP_NULLABLE(SentryClient, client));
356+
= sentry_getProfiling(SENTRY_UNWRAP_NULLABLE(SentryClientInternal, client));
355357
if (profilingOptions == nil) {
356358
SENTRY_LOG_DEBUG(@"No profiling options found, will not start profiler.");
357359
return nil;

Sources/Sentry/Profiling/SentryProfilerSerialization+Test.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# import "SentryProfiler+Private.h"
99

1010
@class SentryDebugMeta;
11-
@class SentryHub;
11+
@class SentryHubInternal;
1212

1313
NS_ASSUME_NONNULL_BEGIN
1414

@@ -26,7 +26,7 @@ SENTRY_EXTERN NSString *sentry_profilerTruncationReasonName(SentryProfilerTrunca
2626
SENTRY_EXTERN NSMutableDictionary<NSString *, id> *sentry_serializedTraceProfileData(
2727
NSDictionary<NSString *, id> *profileData, uint64_t startSystemTime, uint64_t endSystemTime,
2828
NSString *truncationReason, NSDictionary<NSString *, id> *serializedMetrics,
29-
NSArray<SentryDebugMeta *> *debugMeta, SentryHub *hub
29+
NSArray<SentryDebugMeta *> *debugMeta, SentryHubInternal *hub
3030
# if SENTRY_HAS_UIKIT
3131
,
3232
SentryScreenFrames *gpuData

0 commit comments

Comments
 (0)