Skip to content

Commit 1ddca4b

Browse files
committed
ref: SentryPerformanceTracker in Swift
1 parent 119ab1c commit 1ddca4b

File tree

18 files changed

+135
-93
lines changed

18 files changed

+135
-93
lines changed

Samples/iOS-SwiftUI/iOS-SwiftUI.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ targets:
2929
- ../Shared/SampleAssets.xcassets
3030
- ../../Sources/Sentry/Public/SentrySerializable.h
3131
- ../../Sources/Sentry/include/SentryTracer.h
32-
- ../../Sources/Sentry/include/SentryPerformanceTracker.h
3332
- ../../Sources/Sentry/Public/SentryProfilingConditionals.h
3433
dependencies:
3534
- target: Sentry/Sentry

Samples/iOS-SwiftUI/iOS-SwiftUI/ContentView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Sentry
1+
@_spi(Private) import Sentry
22
import SentrySwiftUI
33
import SwiftUI
44

Samples/iOS-SwiftUI/iOS-SwiftUI/FormScreen.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Foundation
2+
@_spi(Private) import Sentry
23
import SentrySwiftUI
34
import SwiftUI
45

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
#import "SentryPerformanceTracker.h"
21
#import "SentryTracer.h"

Sentry.xcodeproj/project.pbxproj

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -725,9 +725,9 @@
725725
8EAC7FF8265C8910005B44E5 /* SentryTracerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8EAC7FF7265C8910005B44E5 /* SentryTracerTests.swift */; };
726726
8EAE8E5E2681768000D6958B /* URLSessionTaskMock.m in Sources */ = {isa = PBXBuildFile; fileRef = 8EAE8E5D2681768000D6958B /* URLSessionTaskMock.m */; };
727727
8EAE9806261E87120073B6B3 /* SentryUIViewControllerPerformanceTracker.m in Sources */ = {isa = PBXBuildFile; fileRef = 8EAE9804261E87120073B6B3 /* SentryUIViewControllerPerformanceTracker.m */; };
728-
8EAE980B261E9F530073B6B3 /* SentryPerformanceTracker.h in Headers */ = {isa = PBXBuildFile; fileRef = 8EAE9809261E9F530073B6B3 /* SentryPerformanceTracker.h */; };
728+
8EAE980B261E9F530073B6B3 /* SentryPerformanceTrackerHelper.h in Headers */ = {isa = PBXBuildFile; fileRef = 8EAE9809261E9F530073B6B3 /* SentryPerformanceTrackerHelper.h */; };
729729
8EAE980C261E9F530073B6B3 /* SentryUIViewControllerPerformanceTracker.h in Headers */ = {isa = PBXBuildFile; fileRef = 8EAE980A261E9F530073B6B3 /* SentryUIViewControllerPerformanceTracker.h */; };
730-
8EBF870926140D37001A6853 /* SentryPerformanceTracker.m in Sources */ = {isa = PBXBuildFile; fileRef = 8EBF870726140D37001A6853 /* SentryPerformanceTracker.m */; };
730+
8EBF870926140D37001A6853 /* SentryPerformanceTrackerHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 8EBF870726140D37001A6853 /* SentryPerformanceTrackerHelper.m */; };
731731
8EC3AE7A25CA23B600E7591A /* SentrySpan.m in Sources */ = {isa = PBXBuildFile; fileRef = 8EC3AE7925CA23B600E7591A /* SentrySpan.m */; };
732732
8EC4CF4A25C38DAA0093DEE9 /* SentrySpanStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 8EC4CF4725C38CAF0093DEE9 /* SentrySpanStatus.h */; settings = {ATTRIBUTES = (Public, ); }; };
733733
8EC4CF5025C3A0070093DEE9 /* SentrySpanContextTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8EC4CF4F25C3A0070093DEE9 /* SentrySpanContextTests.swift */; };
@@ -988,8 +988,8 @@
988988
F41362112E1C55AF00B84443 /* SentryScopePersistentStore+Tags.swift in Sources */ = {isa = PBXBuildFile; fileRef = F41362102E1C55AF00B84443 /* SentryScopePersistentStore+Tags.swift */; };
989989
F41362132E1C566100B84443 /* SentryScopePersistentStore+User.swift in Sources */ = {isa = PBXBuildFile; fileRef = F41362122E1C566100B84443 /* SentryScopePersistentStore+User.swift */; };
990990
F41362152E1C568400B84443 /* SentryScopePersistentStore+Context.swift in Sources */ = {isa = PBXBuildFile; fileRef = F41362142E1C568400B84443 /* SentryScopePersistentStore+Context.swift */; };
991-
F429D3AA2E8562EF00DBF387 /* RateLimitParser.swift in Sources */ = {isa = PBXBuildFile; fileRef = F429D3A82E8562EF00DBF387 /* RateLimitParser.swift */; };
992991
F429D37F2E8532A300DBF387 /* HttpDateParser.swift in Sources */ = {isa = PBXBuildFile; fileRef = F429D37D2E8532A300DBF387 /* HttpDateParser.swift */; };
992+
F429D3AA2E8562EF00DBF387 /* RateLimitParser.swift in Sources */ = {isa = PBXBuildFile; fileRef = F429D3A82E8562EF00DBF387 /* RateLimitParser.swift */; };
993993
F443DB272E09BE8C009A9045 /* LoadValidatorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F443DB262E09BE8C009A9045 /* LoadValidatorTests.swift */; };
994994
F44858132E03579D0013E63B /* SentryCrashDynamicLinker+Test.h in Headers */ = {isa = PBXBuildFile; fileRef = F44858122E0357940013E63B /* SentryCrashDynamicLinker+Test.h */; };
995995
F451FAA62E0B304E0050ACF2 /* LoadValidator.swift in Sources */ = {isa = PBXBuildFile; fileRef = F451FAA52E0B304E0050ACF2 /* LoadValidator.swift */; };
@@ -1085,6 +1085,7 @@
10851085
FA7206DF2E0B37850072FDD4 /* SentryProfileCollector.h in Headers */ = {isa = PBXBuildFile; fileRef = FA7206DE2E0B37780072FDD4 /* SentryProfileCollector.h */; };
10861086
FA7206E12E0B37C80072FDD4 /* SentryProfileCollector.mm in Sources */ = {isa = PBXBuildFile; fileRef = FA7206E02E0B37C60072FDD4 /* SentryProfileCollector.mm */; };
10871087
FA8A36182DEAA1EB0058D883 /* SentryThread+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = FA8A36172DEAA1EB0058D883 /* SentryThread+Private.h */; };
1088+
FA8AFCDD2E842932007A0E18 /* SentryPerformanceTracker.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA8AFCDC2E84292E007A0E18 /* SentryPerformanceTracker.swift */; };
10881089
FA8AFCFA2E844AB6007A0E18 /* SentryThreadsafeApplicationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA8AFCF42E844AB1007A0E18 /* SentryThreadsafeApplicationTests.swift */; };
10891090
FA8AFDAC2E84FAEE007A0E18 /* TestSentryUIApplication.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA6614FB2E4B8E1500657755 /* TestSentryUIApplication.swift */; };
10901091
FA8E58F12E0AD4270049F69D /* SentryDispatchQueueWrapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA8E58F02E0AD4220049F69D /* SentryDispatchQueueWrapper.swift */; };
@@ -2049,9 +2050,9 @@
20492050
8EAE8E5C2681768000D6958B /* URLSessionTaskMock.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = URLSessionTaskMock.h; sourceTree = "<group>"; };
20502051
8EAE8E5D2681768000D6958B /* URLSessionTaskMock.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = URLSessionTaskMock.m; sourceTree = "<group>"; };
20512052
8EAE9804261E87120073B6B3 /* SentryUIViewControllerPerformanceTracker.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryUIViewControllerPerformanceTracker.m; sourceTree = "<group>"; };
2052-
8EAE9809261E9F530073B6B3 /* SentryPerformanceTracker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentryPerformanceTracker.h; path = include/SentryPerformanceTracker.h; sourceTree = "<group>"; };
2053+
8EAE9809261E9F530073B6B3 /* SentryPerformanceTrackerHelper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentryPerformanceTrackerHelper.h; path = include/SentryPerformanceTrackerHelper.h; sourceTree = "<group>"; };
20532054
8EAE980A261E9F530073B6B3 /* SentryUIViewControllerPerformanceTracker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentryUIViewControllerPerformanceTracker.h; path = include/SentryUIViewControllerPerformanceTracker.h; sourceTree = "<group>"; };
2054-
8EBF870726140D37001A6853 /* SentryPerformanceTracker.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryPerformanceTracker.m; sourceTree = "<group>"; };
2055+
8EBF870726140D37001A6853 /* SentryPerformanceTrackerHelper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryPerformanceTrackerHelper.m; sourceTree = "<group>"; };
20552056
8EC3AE7925CA23B600E7591A /* SentrySpan.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentrySpan.m; sourceTree = "<group>"; };
20562057
8EC4CF4725C38CAF0093DEE9 /* SentrySpanStatus.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentrySpanStatus.h; path = Public/SentrySpanStatus.h; sourceTree = "<group>"; };
20572058
8EC4CF4F25C3A0070093DEE9 /* SentrySpanContextTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentrySpanContextTests.swift; sourceTree = "<group>"; };
@@ -2185,7 +2186,6 @@
21852186
D808FB89281BCE46009A2A33 /* TestSentrySwizzleWrapper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestSentrySwizzleWrapper.swift; sourceTree = "<group>"; };
21862187
D808FB90281BF6E9009A2A33 /* SentryUIEventTrackingIntegrationTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryUIEventTrackingIntegrationTests.swift; sourceTree = "<group>"; };
21872188
D80C990A2B0DFE410052F311 /* ExternalUIViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExternalUIViewController.swift; sourceTree = "<group>"; };
2188-
D8105B8D297FD16800299F03 /* SentryPerformanceTracker+Testing.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SentryPerformanceTracker+Testing.h"; sourceTree = "<group>"; };
21892189
D8137D52272B53070082656C /* TestSentrySpan.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TestSentrySpan.h; sourceTree = "<group>"; };
21902190
D8137D53272B53070082656C /* TestSentrySpan.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TestSentrySpan.m; sourceTree = "<group>"; };
21912191
D81988BF2BEBFFF70020E36C /* SentryReplayRecording.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryReplayRecording.swift; sourceTree = "<group>"; };
@@ -2332,8 +2332,8 @@
23322332
F41362102E1C55AF00B84443 /* SentryScopePersistentStore+Tags.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SentryScopePersistentStore+Tags.swift"; sourceTree = "<group>"; };
23332333
F41362122E1C566100B84443 /* SentryScopePersistentStore+User.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SentryScopePersistentStore+User.swift"; sourceTree = "<group>"; };
23342334
F41362142E1C568400B84443 /* SentryScopePersistentStore+Context.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SentryScopePersistentStore+Context.swift"; sourceTree = "<group>"; };
2335-
F429D3A82E8562EF00DBF387 /* RateLimitParser.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RateLimitParser.swift; sourceTree = "<group>"; };
23362335
F429D37D2E8532A300DBF387 /* HttpDateParser.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HttpDateParser.swift; sourceTree = "<group>"; };
2336+
F429D3A82E8562EF00DBF387 /* RateLimitParser.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RateLimitParser.swift; sourceTree = "<group>"; };
23372337
F443DB262E09BE8C009A9045 /* LoadValidatorTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoadValidatorTests.swift; sourceTree = "<group>"; };
23382338
F44858122E0357940013E63B /* SentryCrashDynamicLinker+Test.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SentryCrashDynamicLinker+Test.h"; sourceTree = "<group>"; };
23392339
F451FAA52E0B304E0050ACF2 /* LoadValidator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoadValidator.swift; sourceTree = "<group>"; };
@@ -2431,6 +2431,7 @@
24312431
FA7206DE2E0B37780072FDD4 /* SentryProfileCollector.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SentryProfileCollector.h; sourceTree = "<group>"; };
24322432
FA7206E02E0B37C60072FDD4 /* SentryProfileCollector.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = SentryProfileCollector.mm; sourceTree = "<group>"; };
24332433
FA8A36172DEAA1EB0058D883 /* SentryThread+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SentryThread+Private.h"; path = "include/SentryThread+Private.h"; sourceTree = "<group>"; };
2434+
FA8AFCDC2E84292E007A0E18 /* SentryPerformanceTracker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryPerformanceTracker.swift; sourceTree = "<group>"; };
24342435
FA8AFCF42E844AB1007A0E18 /* SentryThreadsafeApplicationTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryThreadsafeApplicationTests.swift; sourceTree = "<group>"; };
24352436
FA8E58F02E0AD4220049F69D /* SentryDispatchQueueWrapper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryDispatchQueueWrapper.swift; sourceTree = "<group>"; };
24362437
FA90FAA72E06614B008CAAE8 /* SentryExtraPackages.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryExtraPackages.swift; sourceTree = "<group>"; };
@@ -3719,8 +3720,8 @@
37193720
8EA1ED092668F8C400E62B98 /* SentryUIViewControllerSwizzling.m */,
37203721
8EAE980A261E9F530073B6B3 /* SentryUIViewControllerPerformanceTracker.h */,
37213722
8EAE9804261E87120073B6B3 /* SentryUIViewControllerPerformanceTracker.m */,
3722-
8EAE9809261E9F530073B6B3 /* SentryPerformanceTracker.h */,
3723-
8EBF870726140D37001A6853 /* SentryPerformanceTracker.m */,
3723+
8EAE9809261E9F530073B6B3 /* SentryPerformanceTrackerHelper.h */,
3724+
8EBF870726140D37001A6853 /* SentryPerformanceTrackerHelper.m */,
37243725
D8BFE37029A3782F002E73F3 /* SentryTimeToDisplayTracker.h */,
37253726
D8BFE37129A3782F002E73F3 /* SentryTimeToDisplayTracker.m */,
37263727
);
@@ -3809,7 +3810,6 @@
38093810
7BF9EF8A2722D58700B5BBEF /* SentryInitializeForGettingSubclassesNotCalled.m */,
38103811
D8FFE50B2703DAAE00607131 /* SwizzlingCallTests.swift */,
38113812
7BE912B02721C76000E49E62 /* SentryPerformanceTrackingIntegrationTests.swift */,
3812-
D8105B8D297FD16800299F03 /* SentryPerformanceTracker+Testing.h */,
38133813
);
38143814
path = Performance;
38153815
sourceTree = "<group>";
@@ -4519,6 +4519,7 @@
45194519
isa = PBXGroup;
45204520
children = (
45214521
FAE57BF12E83049900B710F9 /* SentryDisplayLinkWrapper.swift */,
4522+
FA8AFCD62E84291F007A0E18 /* UIViewController */,
45224523
D468C0602D36699700964230 /* IO */,
45234524
);
45244525
path = Performance;
@@ -4898,6 +4899,14 @@
48984899
path = Core;
48994900
sourceTree = "<group>";
49004901
};
4902+
FA8AFCD62E84291F007A0E18 /* UIViewController */ = {
4903+
isa = PBXGroup;
4904+
children = (
4905+
FA8AFCDC2E84292E007A0E18 /* SentryPerformanceTracker.swift */,
4906+
);
4907+
path = UIViewController;
4908+
sourceTree = "<group>";
4909+
};
49014910
FABB48B22E59310D0071397E /* Transaction */ = {
49024911
isa = PBXGroup;
49034912
children = (
@@ -5005,7 +5014,7 @@
50055014
63AA76991EB9C1C200D153DE /* SentryDefines.h in Headers */,
50065015
D86B6835294348A400B8B1FC /* SentryAttachment+Private.h in Headers */,
50075016
84AF45A629A7FFA500FBB177 /* SentryProfiledTracerConcurrency.h in Headers */,
5008-
8EAE980B261E9F530073B6B3 /* SentryPerformanceTracker.h in Headers */,
5017+
8EAE980B261E9F530073B6B3 /* SentryPerformanceTrackerHelper.h in Headers */,
50095018
F48F75732E5FA649009D4E7D /* SentryBinaryImageCacheCallbacks.h in Headers */,
50105019
63FE718520DA4C1100CDBAE8 /* SentryCrashC.h in Headers */,
50115020
8EA1ED0D2669028C00E62B98 /* SentryUIViewControllerSwizzling.h in Headers */,
@@ -5893,6 +5902,7 @@
58935902
63FE713120DA4C1100CDBAE8 /* SentryCrashDynamicLinker.c in Sources */,
58945903
03F84D3527DD4191008FE43F /* SentryThreadHandle.cpp in Sources */,
58955904
0A2D8DA9289BC905008720F6 /* SentryViewHierarchyProviderHelper.m in Sources */,
5905+
FA8AFCDD2E842932007A0E18 /* SentryPerformanceTracker.swift in Sources */,
58965906
D84D2CDD2C2BF7370011AF8A /* SentryReplayEvent.swift in Sources */,
58975907
D8BC28CC2BFF78220054DA4D /* SentryRRWebTouchEvent.swift in Sources */,
58985908
D452FC592DDB4B1700AFF56F /* SentryWatchdogTerminationBreadcrumbProcessor.m in Sources */,
@@ -5928,7 +5938,7 @@
59285938
621F61F12BEA073A005E654F /* SentryEnabledFeaturesBuilder.swift in Sources */,
59295939
D88817D826D7149100BF2251 /* SentryTraceContext.m in Sources */,
59305940
D8F67B1B2BE9728600C9197B /* SentrySRDefaultBreadcrumbConverter.swift in Sources */,
5931-
8EBF870926140D37001A6853 /* SentryPerformanceTracker.m in Sources */,
5941+
8EBF870926140D37001A6853 /* SentryPerformanceTrackerHelper.m in Sources */,
59325942
D865893029D6ECA7000BE151 /* SentryCrashBinaryImageCache.c in Sources */,
59335943
D859696B27BECD8F0036A46E /* SentryCoreDataTrackingIntegration.m in Sources */,
59345944
7BD86EC7264A641D005439DB /* SentrySysctlObjC.m in Sources */,

SentryTestUtils/SentryTestUtils-ObjC-BridgingHeader.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
#import "SentryHub+Test.h"
4040
#import "SentryLogC.h"
4141
#import "SentryNetworkTracker.h"
42-
#import "SentryPerformanceTracker+Testing.h"
4342
#import "SentryReachability.h"
4443
#import "SentrySDK+Private.h"
4544
#import "SentrySDKInternal+Tests.h"

Sources/Sentry/SentryDependencyContainer.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#import <SentryDebugImageProvider+HybridSDKs.h>
1818
#import <SentryDefaultRateLimits.h>
1919
#import <SentryDependencyContainer.h>
20-
#import <SentryPerformanceTracker.h>
2120
#import <SentryRetryAfterHeaderParser.h>
2221
#import <SentrySDK+Private.h>
2322
#import <SentrySwift.h>

Sources/Sentry/SentryHub.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#import "SentryLevelMapper.h"
1010
#import "SentryLogC.h"
1111
#import "SentryOptions+Private.h"
12-
#import "SentryPerformanceTracker.h"
1312
#import "SentryProfilingConditionals.h"
1413
#import "SentrySDK+Private.h"
1514
#import "SentrySamplerDecision.h"

Sources/Sentry/SentryPerformanceTracker.m renamed to Sources/Sentry/SentryPerformanceTrackerHelper.m

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import "SentryPerformanceTracker.h"
1+
#import "SentryPerformanceTrackerHelper.h"
22
#import "SentryHub+Private.h"
33
#import "SentryLogC.h"
44
#import "SentrySDK+Private.h"
@@ -20,18 +20,18 @@
2020

2121
NS_ASSUME_NONNULL_BEGIN
2222

23-
@interface SentryPerformanceTracker () <SentryTracerDelegate>
23+
@interface SentryPerformanceTrackerHelper () <SentryTracerDelegate>
2424

2525
@property (nonatomic, strong) NSMutableDictionary<SentrySpanId *, id<SentrySpan>> *spans;
2626
@property (nonatomic, strong) NSMutableArray<id<SentrySpan>> *activeSpanStack;
2727

2828
@end
2929

30-
@implementation SentryPerformanceTracker
30+
@implementation SentryPerformanceTrackerHelper
3131

32-
+ (SentryPerformanceTracker *)shared
32+
+ (SentryPerformanceTrackerHelper *)shared
3333
{
34-
static SentryPerformanceTracker *instance = nil;
34+
static SentryPerformanceTrackerHelper *instance = nil;
3535
static dispatch_once_t onceToken;
3636
dispatch_once(&onceToken, ^{ instance = [[self alloc] init]; });
3737
return instance;
@@ -47,7 +47,7 @@ - (instancetype)init
4747
}
4848

4949
- (SentrySpanId *)startSpanWithName:(NSString *)name
50-
nameSource:(SentryTransactionNameSource)source
50+
nameSource:(NSInteger)source
5151
operation:(NSString *)operation
5252
origin:(NSString *)origin
5353
{
@@ -120,7 +120,7 @@ - (SentrySpanId *)startSpanWithName:(NSString *)name
120120
}
121121

122122
- (void)measureSpanWithDescription:(NSString *)description
123-
nameSource:(SentryTransactionNameSource)source
123+
nameSource:(NSInteger)source
124124
operation:(NSString *)operation
125125
origin:(NSString *)origin
126126
inBlock:(void (^)(void))block
@@ -138,7 +138,7 @@ - (void)measureSpanWithDescription:(NSString *)description
138138
}
139139

140140
- (void)measureSpanWithDescription:(NSString *)description
141-
nameSource:(SentryTransactionNameSource)source
141+
nameSource:(NSInteger)source
142142
operation:(NSString *)operation
143143
origin:(NSString *)origin
144144
parentSpanId:(SentrySpanId *)parentSpanId

Sources/Sentry/SentryUIViewControllerPerformanceTracker.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
# import "SentryHub.h"
88
# import "SentryLogC.h"
99
# import "SentryOptions.h"
10-
# import "SentryPerformanceTracker.h"
1110
# import "SentrySDK+Private.h"
1211
# import "SentrySpanId.h"
1312
# import "SentrySpanOperation.h"

0 commit comments

Comments
 (0)