From 5362f2155551c01685eb8e55a1b8aab02d426ef3 Mon Sep 17 00:00:00 2001 From: Noah Martin Date: Mon, 3 Nov 2025 14:25:05 -0500 Subject: [PATCH 1/4] ref: SentryOptions in Swift --- .../iOS-Swift/Tools/SentryExposure.h | 4 +- .../Tools/iOS-Swift-Bridging-Header.h | 2 +- Sentry.xcodeproj/project.pbxproj | 44 +- .../Headers/SentryLaunchProfiling+Tests.h | 4 +- SentryTestUtils/Sources/TestClient.swift | 8 +- Sources/Resources/Sentry.modulemap | 1 - Sources/Sentry/PrivateSentrySDKOnly.m | 8 +- .../Sentry/Profiling/SentryLaunchProfiling.m | 10 +- .../SentryProfiledTracerConcurrency.mm | 4 +- .../Profiling/SentryProfilerSerialization.m | 1 + .../Profiling/SentryProfilingSwiftHelpers.m | 2 +- Sources/Sentry/Public/Sentry.h | 2 +- Sources/Sentry/Public/SentryDefines.h | 2 - Sources/Sentry/Public/SentryTraceContext.h | 3 +- Sources/Sentry/Public/SentryWithoutUIKit.h | 2 +- Sources/Sentry/SentryANRTrackingIntegration.m | 8 +- .../SentryAppStartTrackingIntegration.m | 4 +- .../SentryAutoBreadcrumbTrackingIntegration.m | 6 +- .../SentryAutoSessionTrackingIntegration.m | 8 +- Sources/Sentry/SentryBaggage.m | 2 +- Sources/Sentry/SentryBaseIntegration.m | 12 +- Sources/Sentry/SentryClient.m | 12 +- .../SentryCoreDataTrackingIntegration.m | 4 +- Sources/Sentry/SentryCrashIntegration.m | 10 +- Sources/Sentry/SentryDefaultAppStateManager.m | 2 +- Sources/Sentry/SentryDefaultThreadInspector.m | 4 +- ...efaultUIViewControllerPerformanceTracker.m | 4 +- .../SentryDependencyContainerSwiftHelper.m | 8 +- Sources/Sentry/SentryFileIOTrackerHelper.m | 2 +- .../Sentry/SentryFileIOTrackingIntegration.m | 2 +- Sources/Sentry/SentryFileManagerHelper.m | 7 +- .../Sentry/SentryFramesTrackingIntegration.m | 2 +- Sources/Sentry/SentryHttpTransport.m | 1 - Sources/Sentry/SentryHub.m | 6 +- Sources/Sentry/SentryMetricKitIntegration.m | 4 +- Sources/Sentry/SentryNSDataSwizzling.m | 3 +- Sources/Sentry/SentryNSFileManagerSwizzling.m | 3 +- Sources/Sentry/SentryNetworkTracker.m | 4 +- .../Sentry/SentryNetworkTrackingIntegration.m | 4 +- Sources/Sentry/SentryOptions.m | 337 - Sources/Sentry/SentryOptionsConverter.m | 14 + Sources/Sentry/SentryOptionsInternal.m | 544 +- .../SentryPerformanceTrackingIntegration.m | 4 +- Sources/Sentry/SentryProfiler.mm | 6 +- Sources/Sentry/SentryReplayApi.m | 6 +- Sources/Sentry/SentryRequestOperation.m | 2 +- Sources/Sentry/SentrySDKInternal.m | 24 +- Sources/Sentry/SentrySampling.m | 6 +- Sources/Sentry/SentryScreenshotIntegration.m | 6 +- .../Sentry/SentrySessionReplayIntegration.m | 49 +- Sources/Sentry/SentrySpan.m | 2 +- Sources/Sentry/SentrySpotlightTransport.m | 6 +- Sources/Sentry/SentrySwiftAsyncIntegration.m | 4 +- Sources/Sentry/SentryTimeToDisplayTracker.m | 2 +- Sources/Sentry/SentryTraceContext.m | 8 +- Sources/Sentry/SentryTracer.m | 1 - Sources/Sentry/SentryTransportAdapter.m | 6 +- Sources/Sentry/SentryTransportFactory.m | 6 +- .../Sentry/SentryUIEventTrackingIntegration.m | 6 +- .../Sentry/SentryUIViewControllerSwizzling.m | 6 +- .../SentryUseNSExceptionCallstackWrapper.m | 4 +- .../Sentry/SentryUserFeedbackIntegration.m | 10 +- .../Sentry/SentryViewHierarchyIntegration.m | 6 +- .../Sentry/SentryWatchdogTerminationLogic.m | 6 +- .../Sentry/SentryWatchdogTerminationTracker.m | 6 +- ...ryWatchdogTerminationTrackingIntegration.m | 8 +- .../HybridPublic/PrivateSentrySDKOnly.h | 4 +- .../HybridPublic/SentryBaseIntegration.h | 6 +- .../HybridPublic/SentryIntegrationProtocol.h | 4 +- .../HybridPublic/SentryOptionsInternal.h | 14 - .../SentrySessionReplayIntegration.h | 4 +- Sources/Sentry/include/SentryANRTrackerV1.h | 2 +- Sources/Sentry/include/SentryClient.h | 8 +- .../include/SentryDefaultAppStateManager.h | 2 +- .../include/SentryDefaultThreadInspector.h | 4 +- .../SentryDependencyContainerSwiftHelper.h | 11 +- .../Sentry/include/SentryFileManagerHelper.h | 4 +- .../Sentry/include/SentryLaunchProfiling.h | 4 +- .../Sentry/include/SentryNSDataSwizzling.h | 4 +- .../include/SentryNSFileManagerSwizzling.h | 4 +- .../Sentry/include/SentryOptionsConverter.h | 14 + ...vate.h => SentryOptionsInternal+Private.h} | 18 +- .../SentryOptionsInternal.h} | 56 +- Sources/Sentry/include/SentryPrivate.h | 3 +- .../Sentry/include/SentryProfiler+Private.h | 7 +- Sources/Sentry/include/SentrySDK+Private.h | 4 +- Sources/Sentry/include/SentrySDKInternal.h | 14 +- Sources/Sentry/include/SentrySampling.h | 4 +- .../Sentry/include/SentrySpotlightTransport.h | 4 +- .../include/SentryTraceContext+Private.h | 9 +- .../Sentry/include/SentryTransportAdapter.h | 4 +- .../Sentry/include/SentryTransportFactory.h | 4 +- .../include/SentryUIViewControllerSwizzling.h | 4 +- .../include/SentryWatchdogTerminationLogic.h | 4 +- .../SentryWatchdogTerminationTracker.h | 4 +- .../SentryInternal/SentryInternal.h | 13 +- .../Helper/SentryEnabledFeaturesBuilder.swift | 4 +- Sources/Swift/Helper/SentryFileManager.swift | 2 +- Sources/Swift/Helper/SentrySDK.swift | 6 +- Sources/Swift/Helper/SentrySdkInfo.swift | 2 +- .../SessionReplay/SentryReplayOptions.swift | 18 + .../SentryUserFeedbackConfiguration.swift | 12 + Sources/Swift/Options+Internal.swift | 153 + Sources/Swift/Options.swift | 525 + Sources/Swift/SentryAppStateManager.swift | 4 +- Sources/Swift/SentryClient.swift | 6 +- .../SentryCrash/SentryThreadInspector.swift | 2 +- Sources/Swift/SentryDependencyContainer.swift | 2 +- Sources/Swift/SentryExperimentalOptions.swift | 21 +- Sources/Swift/Tools/SentryLogBatcher.swift | 1 + .../SentryAppLaunchProfilingTests.swift | 21 +- ...artProfilingConfigurationChangeTests.swift | 17 +- ...yAppStartProfilingConfigurationTests.swift | 6 +- .../SentryProfileTestFixture.swift | 2 +- .../SentryProfilingPublicAPITests.swift | 38 +- .../SentryProfilingSwiftHelpersTests.m | 10 +- .../Helper/SentryAppStateManagerTests.swift | 2 +- .../SentryDependencyContainerTests.swift | 14 +- .../SentryANRTrackingIntegrationTests.swift | 10 +- ...ryAutoBreadcrumbTrackingIntegration+Test.h | 4 +- ...toBreadcrumbTrackingIntegrationTests.swift | 8 +- .../SentryBreadcrumbTrackerTests.swift | 12 +- .../Feedback/SentryFeedbackTests.swift | 12 +- .../SentryMetricKitIntegrationTests.swift | 6 +- .../SentryAppStartTrackerTests.swift | 2 +- ...ntryAppStartTrackingIntegrationTests.swift | 14 +- ...entryCoreDataTrackingIntegrationTest.swift | 5 +- ...SentryFramesTrackingIntegrationTests.swift | 16 +- .../IO/FileIOTrackerTestHelpers.swift | 2 +- ...SentryFileIOTrackingIntegrationObjCTests.m | 2 +- .../IO/SentryFileIoTrackingUnitTests.swift | 4 +- .../IO/SentryNSFileManagerSwizzlingTests.m | 5 +- ...SentryNetworkTrackerIntegrationTests.swift | 2 +- .../Network/SentryNetworkTrackerTests.swift | 8 +- .../SentryPerformanceTrackerTests.swift | 4 +- ...yPerformanceTrackingIntegrationTests.swift | 14 +- ...SentryUIViewControllerSwizzlingTests.swift | 6 +- .../SentryScreenshotIntegrationTests.swift | 2 +- .../SentryBaseIntegrationTests.swift | 2 +- .../SentryCrashIntegrationTests.swift | 66 +- .../SentryCrash/SentryTestIntegration.h | 4 +- .../SentryCrash/SentryTestIntegration.m | 2 +- ...yAutoSessionTrackingIntegrationTests.swift | 5 +- .../Session/SentrySessionGeneratorTests.swift | 14 +- .../Session/SentrySessionTrackerTests.swift | 2 +- .../SessionReplay/SentryReplayApiTests.swift | 6 +- .../SentryReplayOptionsObjcTests.m | 2 +- .../SentrySessionReplayIntegrationTests.swift | 10 +- .../UIEvents/SentryUIEventTrackerTests.swift | 4 +- ...entryUIEventTrackingIntegrationTests.swift | 4 +- .../SentryViewHierarchyIntegrationTests.swift | 4 +- ...entryWatchdogTerminationTrackerTests.swift | 7 +- ...gTerminationTrackingIntegrationTests.swift | 20 +- .../SentrySpotlightTransportTests.swift | 2 +- .../SentryTransportAdapterTests.swift | 2 +- .../SentryTransportFactoryTests.swift | 10 +- .../SentryTransportInitializerTests.swift | 2 +- .../PrivateSentrySDKOnlyTests.swift | 28 +- Tests/SentryTests/SentryClient+TestInit.h | 2 +- Tests/SentryTests/SentryClientTests.swift | 18 +- ...SentryCrashInstallationReporterTests.swift | 2 +- ...SentryCrashExceptionApplicationTests.swift | 2 +- Tests/SentryTests/SentryHubTests.swift | 10 +- Tests/SentryTests/SentryOptionsTest.m | 36 +- .../SentrySDKIntegrationTestsBase.swift | 4 +- Tests/SentryTests/SentrySDKInternal+Tests.h | 2 +- .../SentryTests/SentrySDKInternalTests.swift | 14 +- Tests/SentryTests/SentrySDKTests.swift | 6 +- Tests/SentryTests/SentrySDKThreadTests.swift | 4 +- Tests/SentryTests/SentryScopeTests.m | 2 +- .../SentryTests/SentryTests-Bridging-Header.h | 3 +- Tests/SentryTests/SentryTests.m | 4 +- .../TestUtils/EmptyIntegration.swift | 2 +- .../SentryTests/TestUtils/OptionsUtils.swift | 8 + .../Transaction/SentrySpanTests.swift | 28 +- .../Transaction/SentryTraceContextTests.swift | 13 +- .../Transaction/SentryTracerTests.swift | 2 +- .../Transaction/SentryTransactionTests.swift | 6 +- sdk_api.json | 50627 ++++++++-------- 179 files changed, 26758 insertions(+), 26784 deletions(-) delete mode 100644 Sources/Sentry/SentryOptions.m create mode 100644 Sources/Sentry/SentryOptionsConverter.m delete mode 100644 Sources/Sentry/include/HybridPublic/SentryOptionsInternal.h create mode 100644 Sources/Sentry/include/SentryOptionsConverter.h rename Sources/Sentry/include/{SentryOptions+Private.h => SentryOptionsInternal+Private.h} (73%) rename Sources/Sentry/{Public/SentryOptions.h => include/SentryOptionsInternal.h} (93%) create mode 100644 Sources/Swift/Options+Internal.swift create mode 100644 Sources/Swift/Options.swift create mode 100644 Tests/SentryTests/TestUtils/OptionsUtils.swift diff --git a/Samples/iOS-Swift/iOS-Swift/Tools/SentryExposure.h b/Samples/iOS-Swift/iOS-Swift/Tools/SentryExposure.h index 7712f4be68e..db1aa2ee139 100644 --- a/Samples/iOS-Swift/iOS-Swift/Tools/SentryExposure.h +++ b/Samples/iOS-Swift/iOS-Swift/Tools/SentryExposure.h @@ -2,7 +2,7 @@ #import #import -@class SentryOptions; +@class SentryOptionsInternal; NS_ASSUME_NONNULL_BEGIN @@ -15,7 +15,7 @@ NS_ASSUME_NONNULL_BEGIN @interface SentryClientInternal : NSObject -@property (nonatomic) SentryOptions *options; +@property (nonatomic) SentryOptionsInternal *options; @end diff --git a/Samples/iOS-Swift/iOS-Swift/Tools/iOS-Swift-Bridging-Header.h b/Samples/iOS-Swift/iOS-Swift/Tools/iOS-Swift-Bridging-Header.h index 700190ba115..14c39b66e92 100644 --- a/Samples/iOS-Swift/iOS-Swift/Tools/iOS-Swift-Bridging-Header.h +++ b/Samples/iOS-Swift/iOS-Swift/Tools/iOS-Swift-Bridging-Header.h @@ -3,4 +3,4 @@ #import "SentryExposure.h" #import #import -#import +#import diff --git a/Sentry.xcodeproj/project.pbxproj b/Sentry.xcodeproj/project.pbxproj index 672bff3f202..1474c1ad0ba 100644 --- a/Sentry.xcodeproj/project.pbxproj +++ b/Sentry.xcodeproj/project.pbxproj @@ -210,8 +210,6 @@ 63B819141EC352A7002FDF4C /* SentryInterfacesTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 63B819131EC352A7002FDF4C /* SentryInterfacesTests.m */; }; 63BE85701ECEC6DE00DC44F5 /* SentryDateUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = 63BE856E1ECEC6DE00DC44F5 /* SentryDateUtils.h */; settings = {ATTRIBUTES = (Private, ); }; }; 63BE85711ECEC6DE00DC44F5 /* SentryDateUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 63BE856F1ECEC6DE00DC44F5 /* SentryDateUtils.m */; }; - 63EED6BE2237923600E02400 /* SentryOptions.h in Headers */ = {isa = PBXBuildFile; fileRef = 63EED6BC2237923600E02400 /* SentryOptions.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 63EED6C02237923600E02400 /* SentryOptions.m in Sources */ = {isa = PBXBuildFile; fileRef = 63EED6BD2237923600E02400 /* SentryOptions.m */; }; 63EED6C32237989300E02400 /* SentryOptionsTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 63EED6C22237989300E02400 /* SentryOptionsTest.m */; }; 63FE707720DA4C1000CDBAE8 /* SentryDictionaryDeepSearch.m in Sources */ = {isa = PBXBuildFile; fileRef = 63FE6FBD20DA4C1000CDBAE8 /* SentryDictionaryDeepSearch.m */; }; 63FE707B20DA4C1000CDBAE8 /* SentryDictionaryDeepSearch.h in Headers */ = {isa = PBXBuildFile; fileRef = 63FE6FBF20DA4C1000CDBAE8 /* SentryDictionaryDeepSearch.h */; }; @@ -358,7 +356,6 @@ 7B26BBFB24C0A66D00A79CCC /* SentrySdkInfoNilTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B26BBFA24C0A66D00A79CCC /* SentrySdkInfoNilTests.m */; }; 7B2A70D827D5F080008B0D15 /* SentryANRTrackerV1Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B2A70D727D5F07F008B0D15 /* SentryANRTrackerV1Tests.swift */; }; 7B2A70DF27D60904008B0D15 /* SentryTestThreadWrapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B2A70DE27D60904008B0D15 /* SentryTestThreadWrapper.swift */; }; - 7B2BB0032966F55900A1E102 /* SentryOptionsInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = 7B2BB0012966F55900A1E102 /* SentryOptionsInternal.h */; settings = {ATTRIBUTES = (Private, ); }; }; 7B30B68026527C3C006B2752 /* SentryFramesTrackerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B30B67F26527C3C006B2752 /* SentryFramesTrackerTests.swift */; }; 7B31C291277B04A000337126 /* SentryCrashPlatformSpecificDefines.h in Headers */ = {isa = PBXBuildFile; fileRef = 7B31C290277B04A000337126 /* SentryCrashPlatformSpecificDefines.h */; }; 7B3398632459C14000BD9C96 /* SentryEnvelopeRateLimit.h in Headers */ = {isa = PBXBuildFile; fileRef = 7B3398622459C14000BD9C96 /* SentryEnvelopeRateLimit.h */; }; @@ -518,7 +515,6 @@ 7BDB03B7251364F800BAE198 /* _SentryDispatchQueueWrapperInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = 7BDB03B6251364F800BAE198 /* _SentryDispatchQueueWrapperInternal.h */; }; 7BDB03BB2513652900BAE198 /* _SentryDispatchQueueWrapperInternal.m in Sources */ = {isa = PBXBuildFile; fileRef = 7BDB03BA2513652900BAE198 /* _SentryDispatchQueueWrapperInternal.m */; }; 7BDDE3CC2966BD4700EB9177 /* SentryMXManagerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BDDE3CB2966BD4700EB9177 /* SentryMXManagerTests.swift */; }; - 7BDEAA022632A4580001EA25 /* SentryOptions+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 7BDEAA002632A4580001EA25 /* SentryOptions+Private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 7BE0DC29272A9E1C004FA8B7 /* SentryBreadcrumbTrackerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BE0DC28272A9E1C004FA8B7 /* SentryBreadcrumbTrackerTests.swift */; }; 7BE0DC2F272ABAF6004FA8B7 /* SentryAutoBreadcrumbTrackingIntegrationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BE0DC2E272ABAF6004FA8B7 /* SentryAutoBreadcrumbTrackingIntegrationTests.swift */; }; 7BE2C7F8257000A4003B66C7 /* SentryTestIntegration.m in Sources */ = {isa = PBXBuildFile; fileRef = 7BE2C7F72570009F003B66C7 /* SentryTestIntegration.m */; }; @@ -1050,6 +1046,13 @@ FA27EBDE2EB639D900F2ECF7 /* SentryId.m in Sources */ = {isa = PBXBuildFile; fileRef = FA27EBDD2EB639D700F2ECF7 /* SentryId.m */; }; FA27EBF52EB82FAD00F2ECF7 /* FileIOTrackerTestHelpers.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA27EBEF2EB82FA800F2ECF7 /* FileIOTrackerTestHelpers.swift */; }; FA27ECA12EBA325A00F2ECF7 /* SentryTraceContext+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = FA27EC9B2EBA325400F2ECF7 /* SentryTraceContext+Private.h */; }; + FA27EC0E2EB922F200F2ECF7 /* SentryOptionsInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = FA27EC0D2EB922F200F2ECF7 /* SentryOptionsInternal.h */; settings = {ATTRIBUTES = (Private, ); }; }; + FA27EC102EB922F900F2ECF7 /* SentryOptionsInternal+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = FA27EC0F2EB922F900F2ECF7 /* SentryOptionsInternal+Private.h */; settings = {ATTRIBUTES = (Private, ); }; }; + FA27EC122EB9231D00F2ECF7 /* SentryOptionsConverter.h in Headers */ = {isa = PBXBuildFile; fileRef = FA27EC112EB9231D00F2ECF7 /* SentryOptionsConverter.h */; }; + FA27EC142EB9232600F2ECF7 /* SentryOptionsConverter.m in Sources */ = {isa = PBXBuildFile; fileRef = FA27EC132EB9232600F2ECF7 /* SentryOptionsConverter.m */; }; + FA27EC162EB9236000F2ECF7 /* Options.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA27EC152EB9236000F2ECF7 /* Options.swift */; }; + FA27EC182EB9236400F2ECF7 /* Options+Internal.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA27EC172EB9236400F2ECF7 /* Options+Internal.swift */; }; + FA27EC222EB9466D00F2ECF7 /* OptionsUtils.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA27EC1C2EB9466900F2ECF7 /* OptionsUtils.swift */; }; FA34C1A32E692A5000BC52AA /* SentryEnvelopeItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA34C1A22E692A5000BC52AA /* SentryEnvelopeItem.swift */; }; FA3734842E0F086C0091EF24 /* SentryDependencyContainerSwiftHelper.h in Headers */ = {isa = PBXBuildFile; fileRef = FA3734832E0F07A20091EF24 /* SentryDependencyContainerSwiftHelper.h */; }; FA3734862E0F09320091EF24 /* SentryDependencyContainerSwiftHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = FA3734852E0F092F0091EF24 /* SentryDependencyContainerSwiftHelper.m */; }; @@ -1549,8 +1552,6 @@ 63B819131EC352A7002FDF4C /* SentryInterfacesTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SentryInterfacesTests.m; sourceTree = ""; }; 63BE856E1ECEC6DE00DC44F5 /* SentryDateUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentryDateUtils.h; path = include/SentryDateUtils.h; sourceTree = ""; }; 63BE856F1ECEC6DE00DC44F5 /* SentryDateUtils.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SentryDateUtils.m; sourceTree = ""; }; - 63EED6BC2237923600E02400 /* SentryOptions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryOptions.h; path = Public/SentryOptions.h; sourceTree = ""; }; - 63EED6BD2237923600E02400 /* SentryOptions.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryOptions.m; sourceTree = ""; }; 63EED6C22237989300E02400 /* SentryOptionsTest.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryOptionsTest.m; sourceTree = ""; }; 63FE6FBD20DA4C1000CDBAE8 /* SentryDictionaryDeepSearch.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SentryDictionaryDeepSearch.m; sourceTree = ""; }; 63FE6FBF20DA4C1000CDBAE8 /* SentryDictionaryDeepSearch.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SentryDictionaryDeepSearch.h; sourceTree = ""; }; @@ -1701,7 +1702,6 @@ 7B26BBFA24C0A66D00A79CCC /* SentrySdkInfoNilTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentrySdkInfoNilTests.m; sourceTree = ""; }; 7B2A70D727D5F07F008B0D15 /* SentryANRTrackerV1Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryANRTrackerV1Tests.swift; sourceTree = ""; }; 7B2A70DE27D60904008B0D15 /* SentryTestThreadWrapper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryTestThreadWrapper.swift; sourceTree = ""; }; - 7B2BB0012966F55900A1E102 /* SentryOptionsInternal.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryOptionsInternal.h; path = include/HybridPublic/SentryOptionsInternal.h; sourceTree = ""; }; 7B30B67F26527C3C006B2752 /* SentryFramesTrackerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryFramesTrackerTests.swift; sourceTree = ""; }; 7B30B68126527C55006B2752 /* TestDisplayLinkWrapper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestDisplayLinkWrapper.swift; sourceTree = ""; }; 7B31C290277B04A000337126 /* SentryCrashPlatformSpecificDefines.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SentryCrashPlatformSpecificDefines.h; sourceTree = ""; }; @@ -1883,7 +1883,6 @@ 7BDB03BA2513652900BAE198 /* _SentryDispatchQueueWrapperInternal.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = _SentryDispatchQueueWrapperInternal.m; sourceTree = ""; }; 7BDB03BE25136A7D00BAE198 /* TestSentryDispatchQueueWrapper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestSentryDispatchQueueWrapper.swift; sourceTree = ""; }; 7BDDE3CB2966BD4700EB9177 /* SentryMXManagerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryMXManagerTests.swift; sourceTree = ""; }; - 7BDEAA002632A4580001EA25 /* SentryOptions+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SentryOptions+Private.h"; path = "include/SentryOptions+Private.h"; sourceTree = ""; }; 7BE0DC28272A9E1C004FA8B7 /* SentryBreadcrumbTrackerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryBreadcrumbTrackerTests.swift; sourceTree = ""; }; 7BE0DC2E272ABAF6004FA8B7 /* SentryAutoBreadcrumbTrackingIntegrationTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryAutoBreadcrumbTrackingIntegrationTests.swift; sourceTree = ""; }; 7BE0DC30272ABCEC004FA8B7 /* SentryAutoBreadcrumbTrackingIntegration+Test.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SentryAutoBreadcrumbTrackingIntegration+Test.h"; sourceTree = ""; }; @@ -2478,6 +2477,13 @@ FA27EBDD2EB639D700F2ECF7 /* SentryId.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryId.m; sourceTree = ""; }; FA27EBEF2EB82FA800F2ECF7 /* FileIOTrackerTestHelpers.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FileIOTrackerTestHelpers.swift; sourceTree = ""; }; FA27EC9B2EBA325400F2ECF7 /* SentryTraceContext+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SentryTraceContext+Private.h"; path = "include/SentryTraceContext+Private.h"; sourceTree = ""; }; + FA27EC0D2EB922F200F2ECF7 /* SentryOptionsInternal.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryOptionsInternal.h; path = include/SentryOptionsInternal.h; sourceTree = ""; }; + FA27EC0F2EB922F900F2ECF7 /* SentryOptionsInternal+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SentryOptionsInternal+Private.h"; path = "include/SentryOptionsInternal+Private.h"; sourceTree = ""; }; + FA27EC112EB9231D00F2ECF7 /* SentryOptionsConverter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryOptionsConverter.h; path = include/SentryOptionsConverter.h; sourceTree = ""; }; + FA27EC132EB9232600F2ECF7 /* SentryOptionsConverter.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryOptionsConverter.m; sourceTree = ""; }; + FA27EC152EB9236000F2ECF7 /* Options.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Options.swift; sourceTree = ""; }; + FA27EC172EB9236400F2ECF7 /* Options+Internal.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Options+Internal.swift"; sourceTree = ""; }; + FA27EC1C2EB9466900F2ECF7 /* OptionsUtils.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OptionsUtils.swift; sourceTree = ""; }; FA34C1A22E692A5000BC52AA /* SentryEnvelopeItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryEnvelopeItem.swift; sourceTree = ""; }; FA3734832E0F07A20091EF24 /* SentryDependencyContainerSwiftHelper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryDependencyContainerSwiftHelper.h; path = include/SentryDependencyContainerSwiftHelper.h; sourceTree = ""; }; FA3734852E0F092F0091EF24 /* SentryDependencyContainerSwiftHelper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryDependencyContainerSwiftHelper.m; sourceTree = ""; }; @@ -3201,11 +3207,11 @@ 7B610D5E2512390E00B0B5D9 /* SentrySDK+Private.h */, FA6555132E30181B009917BC /* SentrySDKInternal.h */, FA6555152E30182B009917BC /* SentrySDKInternal.m */, + FA27EC132EB9232600F2ECF7 /* SentryOptionsConverter.m */, + FA27EC112EB9231D00F2ECF7 /* SentryOptionsConverter.h */, + FA27EC0D2EB922F200F2ECF7 /* SentryOptionsInternal.h */, + FA27EC0F2EB922F900F2ECF7 /* SentryOptionsInternal+Private.h */, FACEED122E3179A10007B4AC /* SentryOptionsInternal.m */, - 63EED6BC2237923600E02400 /* SentryOptions.h */, - 63EED6BD2237923600E02400 /* SentryOptions.m */, - 7BDEAA002632A4580001EA25 /* SentryOptions+Private.h */, - 7B2BB0012966F55900A1E102 /* SentryOptionsInternal.h */, 7D9B079F23D1E89800C5FC8E /* SentryMeta.h */, 7D082B8023C628780029866B /* SentryMeta.m */, D4ECA3FF2E3CBEDE00C757EA /* SentryDummyPrivateEmptyClass.m */, @@ -3986,6 +3992,7 @@ 7BF536D224BEF240004FA6A2 /* TestUtils */ = { isa = PBXGroup; children = ( + FA27EC1C2EB9466900F2ECF7 /* OptionsUtils.swift */, 62885DA629E946B100554F38 /* TestConncurrentModifications.swift */, 7BF536D324BEF255004FA6A2 /* SentryAssertions.swift */, 7B6D98EC24C703F8005502FA /* Async.swift */, @@ -4583,6 +4590,8 @@ FA4C32972DF7513F001D7B01 /* SentryAppState.swift */, FA6251FE2EB52DD700BFC967 /* SentryHub.swift */, FA6252052EB5489B00BFC967 /* SentryClient.swift */, + FA27EC152EB9236000F2ECF7 /* Options.swift */, + FA27EC172EB9236400F2ECF7 /* Options+Internal.swift */, ); path = Swift; sourceTree = ""; @@ -5228,6 +5237,7 @@ 0A2D8DA8289BC905008720F6 /* SentryViewHierarchyProviderHelper.h in Headers */, 8EAE980C261E9F530073B6B3 /* SentryDefaultUIViewControllerPerformanceTracker.h in Headers */, 63FE717D20DA4C1100CDBAE8 /* SentryCrashCachedData.h in Headers */, + FA27EC122EB9231D00F2ECF7 /* SentryOptionsConverter.h in Headers */, 03BCC38A27E1BF49003232C7 /* SentryTime.h in Headers */, 925824C22CB5897700C9B20B /* SentrySessionReplayIntegration-Hybrid.h in Headers */, 63FE70CD20DA4C1000CDBAE8 /* SentryCrashDoctor.h in Headers */, @@ -5287,7 +5297,6 @@ 8EA1ED0D2669028C00E62B98 /* SentryUIViewControllerSwizzling.h in Headers */, D820CDB82BB1895F00BA339D /* SentrySessionReplayIntegration.h in Headers */, F49D419C2DEA30C300D9244E /* SentryCrashExceptionApplicationHelper.h in Headers */, - 7BDEAA022632A4580001EA25 /* SentryOptions+Private.h in Headers */, A8AFFCCD29069C3E00967CD7 /* SentryHttpStatusCodeRange.h in Headers */, FAAB95DE2EA1EB470030A2DB /* SentryDeviceContextKeys.h in Headers */, D83D079B2B7F9D1C00CC9674 /* SentryMsgPackSerializer.h in Headers */, @@ -5299,6 +5308,7 @@ 7B3B473025D6CBFC00D01640 /* SentryNSError.h in Headers */, 630436101EC0600A00C4D3FA /* SentrySerializable.h in Headers */, 63FE70DD20DA4C1000CDBAE8 /* SentryCrashMonitor_Signal.h in Headers */, + FA27EC0E2EB922F200F2ECF7 /* SentryOptionsInternal.h in Headers */, 63FE710320DA4C1000CDBAE8 /* SentryCrashMachineContext_Apple.h in Headers */, D8479328278873A100BE8E99 /* SentryByteCountFormatter.h in Headers */, 928207C42E251B8F009285A4 /* SentryScope+PrivateSwift.h in Headers */, @@ -5363,7 +5373,6 @@ A8AFFCCF2906C03700967CD7 /* SentryRequest.h in Headers */, D82859442C3E753C009A28AA /* SentrySessionReplaySyncC.h in Headers */, 8459FCBE2BD73E820038E9C9 /* SentryProfilerSerialization.h in Headers */, - 7B2BB0032966F55900A1E102 /* SentryOptionsInternal.h in Headers */, 7BF9EF762722B34700B5BBEF /* SentrySubClassFinder.h in Headers */, 7BC852332458802C005A70F0 /* SentryDataCategoryMapper.h in Headers */, 7BDB03B7251364F800BAE198 /* _SentryDispatchQueueWrapperInternal.h in Headers */, @@ -5395,10 +5404,10 @@ 6344DDB41EC309E000D9160D /* SentryCrashReportSink.h in Headers */, D8C66A362A77B1F70015696A /* SentryPropagationContext.h in Headers */, D867063F27C3BC2400048851 /* SentryCoreDataTracker.h in Headers */, + FA27EC102EB922F900F2ECF7 /* SentryOptionsInternal+Private.h in Headers */, 7B6C5EDA264E8D860010D138 /* SentryFramesTrackingIntegration.h in Headers */, 7B0DC72F288698F70039995F /* NSMutableDictionary+Sentry.h in Headers */, 63FE713920DA4C1100CDBAE8 /* SentryCrashMach.h in Headers */, - 63EED6BE2237923600E02400 /* SentryOptions.h in Headers */, 7BD86EC5264A63F6005439DB /* SentrySysctlObjC.h in Headers */, 63BE85701ECEC6DE00DC44F5 /* SentryDateUtils.h in Headers */, 63FE709520DA4C1000CDBAE8 /* SentryCrashReportFilterBasic.h in Headers */, @@ -6003,7 +6012,6 @@ 84CFA4CD2C9E0CA3008DA5F4 /* SentryUserFeedbackIntegration.m in Sources */, 7BCFA71627D0BB50008C662C /* SentryANRTrackerV1.m in Sources */, 8459FCC02BD73EB20038E9C9 /* SentryProfilerSerialization.m in Sources */, - 63EED6C02237923600E02400 /* SentryOptions.m in Sources */, 620078722D38F00D0022CB67 /* SentryGeoCodable.swift in Sources */, D8CB741B2947286500A5F964 /* SentryEnvelopeItemHeader.m in Sources */, 92ECD73C2E05ACE00063EC10 /* SentryLog.swift in Sources */, @@ -6130,6 +6138,7 @@ FA67DD012DDBD4EA00896B02 /* SentryMXCallStackTree.swift in Sources */, FAAB29F12E3D252300ACD577 /* SentrySession.swift in Sources */, FA6252042EB52DD900BFC967 /* SentryHub.swift in Sources */, + FA27EC142EB9232600F2ECF7 /* SentryOptionsConverter.m in Sources */, FA67DD022DDBD4EA00896B02 /* SentryViewScreenshotProvider.swift in Sources */, FA67DD032DDBD4EA00896B02 /* SentryTransactionNameSource.swift in Sources */, FA67DD042DDBD4EA00896B02 /* SwiftDescriptor.swift in Sources */, @@ -6171,6 +6180,7 @@ 63FE70FD20DA4C1000CDBAE8 /* SentryCrashCachedData.c in Sources */, A8F17B2E2901765900990B25 /* SentryRequest.m in Sources */, FABE8E172E307A7F0040809A /* Dependencies.swift in Sources */, + FA27EC162EB9236000F2ECF7 /* Options.swift in Sources */, D4ECA4012E3CBEDE00C757EA /* SentryDummyPublicEmptyClass.m in Sources */, F40E423C2EA18E8000E53876 /* SentryDelayedFramesTrackerWrapper.swift in Sources */, F44D2B592E6B779E00FF31FA /* SentryScreenFrames.swift in Sources */, @@ -6271,6 +6281,7 @@ 63FE711B20DA4C1000CDBAE8 /* SentryCrashString.c in Sources */, 7B14089824878F950035403D /* SentryCrashStackEntryMapper.m in Sources */, D8BC28C82BFF5EBB0054DA4D /* SentryTouchTracker.swift in Sources */, + FA27EC182EB9236400F2ECF7 /* Options+Internal.swift in Sources */, 63FE711720DA4C1000CDBAE8 /* SentryCrashStackCursor_Backtrace.c in Sources */, 92622E142EABBDA900ABE7FF /* SentryLog+SPM.swift in Sources */, FA3A42722E1C5F9B00A08C39 /* SentryNSNotificationCenterWrapper.swift in Sources */, @@ -6627,6 +6638,7 @@ FA8AFCFA2E844AB6007A0E18 /* SentryThreadsafeApplicationTests.swift in Sources */, D884A20527C80F6300074664 /* SentryCoreDataTrackerTest.swift in Sources */, 8E70B10125CB8695002B3155 /* SentrySpanIdTests.swift in Sources */, + FA27EC222EB9466D00F2ECF7 /* OptionsUtils.swift in Sources */, 62E2119A2DAE99FC007D7262 /* SentryAsyncSafeLog.m in Sources */, F44D2B602E6B829F00FF31FA /* SentryScreenFramesTests.swift in Sources */, 84EB21962BF01CEA00EDDA28 /* SentryCrashInstallationTests.swift in Sources */, diff --git a/SentryTestUtils/Headers/SentryLaunchProfiling+Tests.h b/SentryTestUtils/Headers/SentryLaunchProfiling+Tests.h index 278aa22967b..22e57093b58 100644 --- a/SentryTestUtils/Headers/SentryLaunchProfiling+Tests.h +++ b/SentryTestUtils/Headers/SentryLaunchProfiling+Tests.h @@ -5,7 +5,7 @@ # import "SentryDefines.h" # import "SentryProfiler+Private.h" -@class SentryOptions; +@class SentryOptionsInternal; @class SentrySamplerDecision; NS_ASSUME_NONNULL_BEGIN @@ -15,7 +15,7 @@ NS_ASSUME_NONNULL_BEGIN * expressible in Swift. This wraps it and only returns the `BOOL shouldProfile` value in the * struct. */ -BOOL sentry_willProfileNextLaunch(SentryOptions *options); +BOOL sentry_willProfileNextLaunch(SentryOptionsInternal *options); /** * Contains the logic to start a launch profile. Exposed separately from @c diff --git a/SentryTestUtils/Sources/TestClient.swift b/SentryTestUtils/Sources/TestClient.swift index 8a91e6cee8c..339545dec08 100644 --- a/SentryTestUtils/Sources/TestClient.swift +++ b/SentryTestUtils/Sources/TestClient.swift @@ -1,14 +1,14 @@ import _SentryPrivate import Foundation -@_spi(Private) import Sentry +@_spi(Private) @testable import Sentry public class TestClient: SentryClientInternal { - public override init?(options: Options) { + public override init?(options: SentryOptionsInternal) { super.init( options: options, transportAdapter: TestTransportAdapter(transports: [TestTransport()], options: options), fileManager: try! TestFileManager( - options: options, + options: options.toOptions(), dateProvider: TestCurrentDateProvider(), dispatchQueueWrapper: TestSentryDispatchQueueWrapper() ), @@ -22,7 +22,7 @@ public class TestClient: SentryClientInternal { // Without this override we get a fatal error: use of unimplemented initializer // see https://stackoverflow.com/questions/28187261/ios-swift-fatal-error-use-of-unimplemented-initializer-init - @_spi(Private) public override init(options: Options, transportAdapter: SentryTransportAdapter, fileManager: SentryFileManager, threadInspector: SentryDefaultThreadInspector, debugImageProvider: SentryDebugImageProvider, random: SentryRandomProtocol, locale: Locale, timezone: TimeZone) { + @_spi(Private) public override init(options: SentryOptionsInternal, transportAdapter: SentryTransportAdapter, fileManager: SentryFileManager, threadInspector: SentryDefaultThreadInspector, debugImageProvider: SentryDebugImageProvider, random: SentryRandomProtocol, locale: Locale, timezone: TimeZone) { super.init( options: options, transportAdapter: transportAdapter, diff --git a/Sources/Resources/Sentry.modulemap b/Sources/Resources/Sentry.modulemap index efa5571df5b..4e5fbaff750 100644 --- a/Sources/Resources/Sentry.modulemap +++ b/Sources/Resources/Sentry.modulemap @@ -11,7 +11,6 @@ framework module Sentry { header "SentryAppStartMeasurement.h" header "SentryBreadcrumb+Private.h" header "SentryFormatter.h" - header "SentryOptionsInternal.h" header "SentrySwizzle.h" header "SentryUser+Private.h" diff --git a/Sources/Sentry/PrivateSentrySDKOnly.m b/Sources/Sentry/PrivateSentrySDKOnly.m index 5bd864b5293..2fc7ac5684e 100644 --- a/Sources/Sentry/PrivateSentrySDKOnly.m +++ b/Sources/Sentry/PrivateSentrySDKOnly.m @@ -6,7 +6,7 @@ #import "SentryInstallation.h" #import "SentryInternalDefines.h" #import "SentryMeta.h" -#import "SentryOptions+Private.h" +#import "SentryOptionsInternal+Private.h" #import "SentryProfileCollector.h" #import "SentryPropagationContext.h" #import "SentrySDK+Private.h" @@ -117,13 +117,13 @@ + (NSString *)installationID return [SentryInstallation idWithCacheDirectoryPath:self.options.cacheDirectoryPath]; } -+ (SentryOptions *)options ++ (SentryOptionsInternal *)options { - SentryOptions *options = [[SentrySDKInternal currentHub] client].options; + SentryOptionsInternal *options = [[SentrySDKInternal currentHub] client].options; if (options != nil) { return options; } - return [[SentryOptions alloc] init]; + return [[SentryOptionsInternal alloc] init]; } + (SentryOnAppStartMeasurementAvailable)onAppStartMeasurementAvailable diff --git a/Sources/Sentry/Profiling/SentryLaunchProfiling.m b/Sources/Sentry/Profiling/SentryLaunchProfiling.m index d038209f5a5..829ee2cc590 100644 --- a/Sources/Sentry/Profiling/SentryLaunchProfiling.m +++ b/Sources/Sentry/Profiling/SentryLaunchProfiling.m @@ -7,7 +7,7 @@ # import "SentryInternalDefines.h" # import "SentryLaunchProfiling.h" # import "SentryLogC.h" -# import "SentryOptions+Private.h" +# import "SentryOptionsInternal+Private.h" # import "SentryProfileConfiguration.h" # import "SentryProfiler+Private.h" # import "SentrySamplerDecision.h" @@ -148,7 +148,7 @@ } SentryLaunchProfileDecision -sentry_launchShouldHaveContinuousProfiling(SentryOptions *options) +sentry_launchShouldHaveContinuousProfiling(SentryOptionsInternal *options) { if (!options.profiling.profileAppStarts) { SENTRY_LOG_DEBUG(@"Continuous profiling v2 enabled but disabled app start profiling, " @@ -203,7 +203,7 @@ } SentryLaunchProfileDecision -sentry_shouldProfileNextLaunch(SentryOptions *options) +sentry_shouldProfileNextLaunch(SentryOptionsInternal *options) { if ([options isContinuousProfilingEnabled]) { return sentry_launchShouldHaveContinuousProfiling(options); @@ -228,7 +228,7 @@ # if defined(SENTRY_TEST) || defined(SENTRY_TEST_CI) || defined(DEBUG) BOOL -sentry_willProfileNextLaunch(SentryOptions *options) +sentry_willProfileNextLaunch(SentryOptionsInternal *options) { return sentry_shouldProfileNextLaunch(options).shouldProfile; } @@ -307,7 +307,7 @@ BOOL sentry_isTracingAppLaunch; void -sentry_configureLaunchProfilingForNextLaunch(SentryOptions *options) +sentry_configureLaunchProfilingForNextLaunch(SentryOptionsInternal *options) { [SentryDependencyContainer.sharedInstance.dispatchQueueWrapper dispatchAsyncWithBlock:^{ SentryLaunchProfileDecision config = sentry_shouldProfileNextLaunch(options); diff --git a/Sources/Sentry/Profiling/SentryProfiledTracerConcurrency.mm b/Sources/Sentry/Profiling/SentryProfiledTracerConcurrency.mm index dc47b983cfb..5743b264751 100644 --- a/Sources/Sentry/Profiling/SentryProfiledTracerConcurrency.mm +++ b/Sources/Sentry/Profiling/SentryProfiledTracerConcurrency.mm @@ -5,7 +5,7 @@ # import "SentryContinuousProfiler.h" # import "SentryInternalDefines.h" # import "SentryLogC.h" -# import "SentryOptions+Private.h" +# import "SentryOptionsInternal+Private.h" # import "SentryProfiler+Private.h" # include @@ -13,7 +13,7 @@ # import "SentryHub+Private.h" # import "SentryInternalDefines.h" # import "SentryLaunchProfiling.h" -# import "SentryOptions+Private.h" +# import "SentryOptionsInternal+Private.h" # import "SentryProfileConfiguration.h" # import "SentryProfiledTracerConcurrency.h" # import "SentryProfiler+Private.h" diff --git a/Sources/Sentry/Profiling/SentryProfilerSerialization.m b/Sources/Sentry/Profiling/SentryProfilerSerialization.m index f7d561fed5d..b95f9672ec1 100644 --- a/Sources/Sentry/Profiling/SentryProfilerSerialization.m +++ b/Sources/Sentry/Profiling/SentryProfilerSerialization.m @@ -13,6 +13,7 @@ # import "SentryLogC.h" # import "SentryMeta.h" # import "SentryMetricProfiler.h" +# import "SentryOptionsInternal.h" # import "SentryProfileTimeseries.h" # import "SentryProfiledTracerConcurrency.h" # import "SentryProfiler+Private.h" diff --git a/Sources/Sentry/Profiling/SentryProfilingSwiftHelpers.m b/Sources/Sentry/Profiling/SentryProfilingSwiftHelpers.m index ed498f13834..494c216f4d2 100644 --- a/Sources/Sentry/Profiling/SentryProfilingSwiftHelpers.m +++ b/Sources/Sentry/Profiling/SentryProfilingSwiftHelpers.m @@ -3,7 +3,7 @@ # import "SentryClient.h" # import "SentryLogC.h" -# import "SentryOptions+Private.h" +# import "SentryOptionsInternal+Private.h" # import "SentryProfiler+Private.h" # import "SentrySamplerDecision.h" # import "SentrySwift.h" diff --git a/Sources/Sentry/Public/Sentry.h b/Sources/Sentry/Public/Sentry.h index 2b7b6440c1f..4a0093215f6 100644 --- a/Sources/Sentry/Public/Sentry.h +++ b/Sources/Sentry/Public/Sentry.h @@ -28,7 +28,7 @@ FOUNDATION_EXPORT const unsigned char SentryVersionString[]; # import # import # import -# import +# import # import # import # import diff --git a/Sources/Sentry/Public/SentryDefines.h b/Sources/Sentry/Public/SentryDefines.h index 8a3e37287b6..23c21469824 100644 --- a/Sources/Sentry/Public/SentryDefines.h +++ b/Sources/Sentry/Public/SentryDefines.h @@ -102,13 +102,11 @@ typedef SentryEvent *_Nullable (^SentryBeforeSendEventCallback)(SentryEvent *_No */ typedef id _Nullable (^SentryBeforeSendSpanCallback)(id _Nonnull span); -#if !SWIFT_PACKAGE /** * Use this block to drop or modify a log before the SDK sends it to Sentry. Return @c nil to drop * the log. */ typedef SentryLog *_Nullable (^SentryBeforeSendLogCallback)(SentryLog *_Nonnull log); -#endif // !SWIFT_PACKAGE /** * Block can be used to decide if the SDK should capture a screenshot or not. Return @c true if the diff --git a/Sources/Sentry/Public/SentryTraceContext.h b/Sources/Sentry/Public/SentryTraceContext.h index 3a04e3d0190..8663fa02d8b 100644 --- a/Sources/Sentry/Public/SentryTraceContext.h +++ b/Sources/Sentry/Public/SentryTraceContext.h @@ -11,7 +11,7 @@ NS_ASSUME_NONNULL_BEGIN @class SentryBaggage; @class SentryId; -@class SentryOptions; +@class SentryOptionsInternal; @class SentryScope; @class SentryTracer; @class SentryUser; @@ -66,6 +66,7 @@ NS_SWIFT_NAME(TraceContext) @property (nullable, nonatomic, readonly) NSString *replayId; /** + options:(SentryOptionsInternal *)options; * Create a SentryBaggage with the information of this SentryTraceContext. */ - (SentryBaggage *)toBaggage; diff --git a/Sources/Sentry/Public/SentryWithoutUIKit.h b/Sources/Sentry/Public/SentryWithoutUIKit.h index 8c26725ebb3..b6fd9545801 100644 --- a/Sources/Sentry/Public/SentryWithoutUIKit.h +++ b/Sources/Sentry/Public/SentryWithoutUIKit.h @@ -29,7 +29,7 @@ FOUNDATION_EXPORT const unsigned char SentryVersionString[]; # import # import # import -# import +# import # import # import # import diff --git a/Sources/Sentry/SentryANRTrackingIntegration.m b/Sources/Sentry/SentryANRTrackingIntegration.m index 40addd709b4..db5b5ee78e5 100644 --- a/Sources/Sentry/SentryANRTrackingIntegration.m +++ b/Sources/Sentry/SentryANRTrackingIntegration.m @@ -11,7 +11,7 @@ #import "SentryStacktrace.h" #import "SentrySwift.h" #import "SentryThread.h" -#import +#import #if SENTRY_HAS_UIKIT # import @@ -24,7 +24,7 @@ @interface SentryANRTrackingIntegration () @property (nonatomic, strong) SentryANRTracker *tracker; -@property (nonatomic, strong) SentryOptions *options; +@property (nonatomic, strong) SentryOptionsInternal *options; @property (nonatomic, strong) SentryFileManager *fileManager; @property (nonatomic, strong) SentryDispatchQueueWrapper *dispatchQueueWrapper; @property (nonatomic, strong) SentryCrashWrapper *crashWrapper; @@ -37,7 +37,7 @@ @interface SentryANRTrackingIntegration () @implementation SentryANRTrackingIntegration -- (BOOL)installWithOptions:(SentryOptions *)options +- (BOOL)installWithOptions:(SentryOptionsInternal *)options { if (![super installWithOptions:options]) { return NO; @@ -164,7 +164,7 @@ - (void)anrDetectedWithType:(enum SentryANRType)type // we would lose the scope. Furthermore, we want to know in which state the app was when the // app hang started. SentryScope *scope = [SentrySDKInternal currentHub].scope; - SentryOptions *options = SentrySDKInternal.options; + SentryOptionsInternal *options = SentrySDKInternal.options; if (scope != nil && options != nil) { [scope applyToEvent:event maxBreadcrumb:options.maxBreadcrumbs]; } diff --git a/Sources/Sentry/SentryAppStartTrackingIntegration.m b/Sources/Sentry/SentryAppStartTrackingIntegration.m index 876827c0a12..6e815e2bd30 100644 --- a/Sources/Sentry/SentryAppStartTrackingIntegration.m +++ b/Sources/Sentry/SentryAppStartTrackingIntegration.m @@ -4,7 +4,7 @@ # import "SentryAppStartTracker.h" # import "SentryLogC.h" -# import "SentryOptions.h" +# import "SentryOptionsInternal.h" # import "SentrySwift.h" # import @@ -16,7 +16,7 @@ @interface SentryAppStartTrackingIntegration () @implementation SentryAppStartTrackingIntegration -- (BOOL)installWithOptions:(SentryOptions *)options +- (BOOL)installWithOptions:(SentryOptionsInternal *)options { if (!PrivateSentrySDKOnly.appStartMeasurementHybridSDKMode && ![super installWithOptions:options]) { diff --git a/Sources/Sentry/SentryAutoBreadcrumbTrackingIntegration.m b/Sources/Sentry/SentryAutoBreadcrumbTrackingIntegration.m index e75a304ddb6..84189908011 100644 --- a/Sources/Sentry/SentryAutoBreadcrumbTrackingIntegration.m +++ b/Sources/Sentry/SentryAutoBreadcrumbTrackingIntegration.m @@ -1,7 +1,7 @@ #import "SentryAutoBreadcrumbTrackingIntegration.h" #import "SentryBreadcrumbTracker.h" #import "SentryLogC.h" -#import "SentryOptions.h" +#import "SentryOptionsInternal.h" #import "SentrySDKInternal.h" #import "SentrySwift.h" #import "SentrySystemEventBreadcrumbs.h" @@ -20,7 +20,7 @@ @interface SentryAutoBreadcrumbTrackingIntegration () @implementation SentryAutoBreadcrumbTrackingIntegration -- (BOOL)installWithOptions:(SentryOptions *)options +- (BOOL)installWithOptions:(SentryOptionsInternal *)options { if (![super installWithOptions:options]) { return NO; @@ -59,7 +59,7 @@ - (SentryIntegrationOption)integrationOptions /** * For testing. */ -- (void)installWithOptions:(nonnull SentryOptions *)options +- (void)installWithOptions:(nonnull SentryOptionsInternal *)options breadcrumbTracker:(SentryBreadcrumbTracker *)breadcrumbTracker #if TARGET_OS_IOS && SENTRY_HAS_UIKIT systemEventBreadcrumbs:(SentrySystemEventBreadcrumbs *)systemEventBreadcrumbs diff --git a/Sources/Sentry/SentryAutoSessionTrackingIntegration.m b/Sources/Sentry/SentryAutoSessionTrackingIntegration.m index 2fd2faf448c..447d6a2ed63 100644 --- a/Sources/Sentry/SentryAutoSessionTrackingIntegration.m +++ b/Sources/Sentry/SentryAutoSessionTrackingIntegration.m @@ -1,6 +1,7 @@ #import "SentryAutoSessionTrackingIntegration.h" #import "SentryLogC.h" -#import "SentryOptions.h" +#import "SentryOptionsConverter.h" +#import "SentryOptionsInternal.h" #import "SentrySDKInternal.h" #import "SentrySwift.h" @@ -14,13 +15,14 @@ @interface SentryAutoSessionTrackingIntegration () @implementation SentryAutoSessionTrackingIntegration -- (BOOL)installWithOptions:(SentryOptions *)options +- (BOOL)installWithOptions:(SentryOptionsInternal *)options { if (![super installWithOptions:options]) { return NO; } - self.tracker = [SentryDependencyContainer.sharedInstance getSessionTrackerWithOptions:options]; + self.tracker = [SentryDependencyContainer.sharedInstance + getSessionTrackerWithOptions:[SentryOptionsConverter fromInternal:options]]; [self.tracker start]; return YES; diff --git a/Sources/Sentry/SentryBaggage.m b/Sources/Sentry/SentryBaggage.m index 20d9e7058e2..49725541b09 100644 --- a/Sources/Sentry/SentryBaggage.m +++ b/Sources/Sentry/SentryBaggage.m @@ -1,7 +1,7 @@ #import "SentryBaggage.h" #import "SentryDsn.h" #import "SentryLogC.h" -#import "SentryOptions+Private.h" +#import "SentryOptionsInternal+Private.h" #import "SentryScope+Private.h" #import "SentrySwift.h" #import "SentryTraceContext.h" diff --git a/Sources/Sentry/SentryBaseIntegration.m b/Sources/Sentry/SentryBaseIntegration.m index e9e0f99f636..b2c498cec03 100644 --- a/Sources/Sentry/SentryBaseIntegration.m +++ b/Sources/Sentry/SentryBaseIntegration.m @@ -1,7 +1,8 @@ #import "SentryBaseIntegration.h" #import "SentryLogC.h" +#import "SentryOptionsConverter.h" #import "SentrySwift.h" -#import +#import NS_ASSUME_NONNULL_BEGIN @@ -12,7 +13,7 @@ - (NSString *)integrationName return NSStringFromClass([self classForCoder]); } -- (BOOL)installWithOptions:(SentryOptions *)options +- (BOOL)installWithOptions:(SentryOptionsInternal *)options { return [self shouldBeEnabledWithOptions:options]; } @@ -27,7 +28,7 @@ - (void)logWithReason:(NSString *)reason SENTRY_LOG_DEBUG(@"Not going to enable %@ %@.", self.integrationName, reason); } -- (BOOL)shouldBeEnabledWithOptions:(SentryOptions *)options +- (BOOL)shouldBeEnabledWithOptions:(SentryOptionsInternal *)options { SentryIntegrationOption integrationOptions = [self integrationOptions]; @@ -148,8 +149,9 @@ - (BOOL)shouldBeEnabledWithOptions:(SentryOptions *)options #endif #if SENTRY_TARGET_REPLAY_SUPPORTED if (integrationOptions & kIntegrationOptionEnableReplay) { - if (options.sessionReplay.onErrorSampleRate == 0 - && options.sessionReplay.sessionSampleRate == 0) { + SentryReplayOptions *replayOptions = + [SentryOptionsConverter fromInternal:options].sessionReplay; + if (replayOptions.onErrorSampleRate == 0 && replayOptions.sessionSampleRate == 0) { [self logWithOptionName:@"sessionReplaySettings"]; return NO; } diff --git a/Sources/Sentry/SentryClient.m b/Sources/Sentry/SentryClient.m index 7f4df1c86a4..2ca0290d54a 100644 --- a/Sources/Sentry/SentryClient.m +++ b/Sources/Sentry/SentryClient.m @@ -20,7 +20,8 @@ #import "SentryMsgPackSerializer.h" #import "SentryNSDictionarySanitize.h" #import "SentryNSError.h" -#import "SentryOptions+Private.h" +#import "SentryOptionsConverter.h" +#import "SentryOptionsInternal+Private.h" #import "SentryPropagationContext.h" #import "SentrySDK+Private.h" #import "SentryScope+Private.h" @@ -60,11 +61,11 @@ @interface SentryClientInternal () @implementation SentryClientInternal -- (_Nullable instancetype)initWithOptions:(SentryOptions *)options +- (_Nullable instancetype)initWithOptions:(SentryOptionsInternal *)options { NSError *error; SentryFileManager *fileManager = [[SentryFileManager alloc] - initWithOptions:options + initWithOptions:[SentryOptionsConverter fromInternal:options] dateProvider:SentryDependencyContainer.sharedInstance.dateProvider dispatchQueueWrapper:SentryDependencyContainer.sharedInstance.dispatchQueueWrapper error:&error]; @@ -95,7 +96,7 @@ - (_Nullable instancetype)initWithOptions:(SentryOptions *)options timezone:[NSCalendar autoupdatingCurrentCalendar].timeZone]; } -- (instancetype)initWithOptions:(SentryOptions *)options +- (instancetype)initWithOptions:(SentryOptionsInternal *)options transportAdapter:(SentryTransportAdapter *)transportAdapter fileManager:(SentryFileManager *)fileManager threadInspector:(SentryDefaultThreadInspector *)threadInspector @@ -901,7 +902,8 @@ - (void)setSdk:(SentryEvent *)event return; } - event.sdk = [[[SentrySdkInfo alloc] initWithOptions:self.options] serialize]; + event.sdk = [[[SentrySdkInfo alloc] + initWithOptions:[SentryOptionsConverter fromInternal:self.options]] serialize]; } - (void)setUserInfo:(NSDictionary *_Nullable)userInfo withEvent:(SentryEvent *_Nullable)event diff --git a/Sources/Sentry/SentryCoreDataTrackingIntegration.m b/Sources/Sentry/SentryCoreDataTrackingIntegration.m index bb5ae603cab..fe2f1a3d266 100644 --- a/Sources/Sentry/SentryCoreDataTrackingIntegration.m +++ b/Sources/Sentry/SentryCoreDataTrackingIntegration.m @@ -4,7 +4,7 @@ #import "SentryDefaultThreadInspector.h" #import "SentryLogC.h" #import "SentryNSDataSwizzling.h" -#import "SentryOptions.h" +#import "SentryOptionsInternal.h" #import "SentrySwift.h" @interface SentryCoreDataTrackingIntegration () @@ -15,7 +15,7 @@ @interface SentryCoreDataTrackingIntegration () @implementation SentryCoreDataTrackingIntegration -- (BOOL)installWithOptions:(SentryOptions *)options +- (BOOL)installWithOptions:(SentryOptionsInternal *)options { if (![super installWithOptions:options]) { return NO; diff --git a/Sources/Sentry/SentryCrashIntegration.m b/Sources/Sentry/SentryCrashIntegration.m index 57c0d1d99ce..66ac2efcbf1 100644 --- a/Sources/Sentry/SentryCrashIntegration.m +++ b/Sources/Sentry/SentryCrashIntegration.m @@ -7,7 +7,8 @@ #import "SentryEvent.h" #import "SentryHub.h" #import "SentryInternalDefines.h" -#import "SentryOptions.h" +#import "SentryOptionsConverter.h" +#import "SentryOptionsInternal.h" #import "SentrySDK+Private.h" #import "SentryScope+Private.h" #import "SentryScope+PrivateSwift.h" @@ -49,7 +50,7 @@ @interface SentryCrashScopeObserver () @interface SentryCrashIntegration () -@property (nonatomic, weak) SentryOptions *options; +@property (nonatomic, weak) SentryOptionsInternal *options; @property (nonatomic, strong) SentryDispatchQueueWrapper *dispatchQueueWrapper; @property (nonatomic, strong) SentryCrashWrapper *crashAdapter; @property (nonatomic, strong) SentryCrashIntegrationSessionHandler *sessionHandler; @@ -79,7 +80,7 @@ - (instancetype)initWithCrashAdapter:(SentryCrashWrapper *)crashAdapter return self; } -- (BOOL)installWithOptions:(nonnull SentryOptions *)options +- (BOOL)installWithOptions:(nonnull SentryOptionsInternal *)options { if (![super installWithOptions:options]) { return NO; @@ -120,7 +121,8 @@ - (BOOL)installWithOptions:(nonnull SentryOptions *)options [self startCrashHandler:options.cacheDirectoryPath enableSigtermReporting:enableSigtermReporting enableReportingUncaughtExceptions:enableUncaughtNSExceptionReporting - enableCppExceptionsV2:options.experimental.enableUnhandledCPPExceptionsV2]; + enableCppExceptionsV2:[SentryOptionsConverter fromInternal:options] + .experimental.enableUnhandledCPPExceptionsV2]; [self configureScope]; diff --git a/Sources/Sentry/SentryDefaultAppStateManager.m b/Sources/Sentry/SentryDefaultAppStateManager.m index 49672386d0e..55275eb7fb5 100644 --- a/Sources/Sentry/SentryDefaultAppStateManager.m +++ b/Sources/Sentry/SentryDefaultAppStateManager.m @@ -1,7 +1,7 @@ #import "SentryCrashSysCtl.h" #import "SentryNotificationNames.h" #import -#import +#import #import #if SENTRY_HAS_UIKIT diff --git a/Sources/Sentry/SentryDefaultThreadInspector.m b/Sources/Sentry/SentryDefaultThreadInspector.m index d6abeb394db..acd0fc977ad 100644 --- a/Sources/Sentry/SentryDefaultThreadInspector.m +++ b/Sources/Sentry/SentryDefaultThreadInspector.m @@ -5,7 +5,7 @@ #import "SentryCrashStackEntryMapper.h" #include "SentryCrashSymbolicator.h" #import "SentryFrame.h" -#import "SentryOptions.h" +#import "SentryOptionsInternal.h" #import "SentryStacktrace.h" #import "SentryStacktraceBuilder.h" #import "SentrySwift.h" @@ -66,7 +66,7 @@ - (id)initWithStacktraceBuilder:(SentryStacktraceBuilder *)stacktraceBuilder return self; } -- (instancetype)initWithOptions:(SentryOptions *_Nullable)options +- (instancetype)initWithOptions:(SentryOptionsInternal *_Nullable)options { SentryInAppLogic *inAppLogic = [[SentryInAppLogic alloc] initWithInAppIncludes:options.inAppIncludes ?: @[]]; diff --git a/Sources/Sentry/SentryDefaultUIViewControllerPerformanceTracker.m b/Sources/Sentry/SentryDefaultUIViewControllerPerformanceTracker.m index 4ba117f6f88..12dd63e4064 100644 --- a/Sources/Sentry/SentryDefaultUIViewControllerPerformanceTracker.m +++ b/Sources/Sentry/SentryDefaultUIViewControllerPerformanceTracker.m @@ -5,7 +5,7 @@ # import "SentryHub.h" # import "SentryLogC.h" -# import "SentryOptions.h" +# import "SentryOptionsInternal.h" # import "SentryPerformanceTracker.h" # import "SentrySDK+Private.h" # import "SentrySpanId.h" @@ -120,7 +120,7 @@ - (void)viewControllerLoadView:(UIViewController *)controller return; } - SentryOptions *options = [SentrySDKInternal options]; + SentryOptionsInternal *options = [SentrySDKInternal options]; if ([SentrySwizzleClassNameExclude shouldExcludeClassWithClassName:NSStringFromClass([controller class]) diff --git a/Sources/Sentry/SentryDependencyContainerSwiftHelper.m b/Sources/Sentry/SentryDependencyContainerSwiftHelper.m index c47141b27b9..f69877e471d 100644 --- a/Sources/Sentry/SentryDependencyContainerSwiftHelper.m +++ b/Sources/Sentry/SentryDependencyContainerSwiftHelper.m @@ -1,7 +1,7 @@ #import "SentryDependencyContainerSwiftHelper.h" #import "SentryClient+Private.h" #import "SentryHub+Private.h" -#import "SentryOptions+Private.h" +#import "SentryOptionsInternal+Private.h" #import "SentrySDK+Private.h" #import "SentrySwift.h" @@ -32,17 +32,17 @@ @implementation SentryDependencyContainerSwiftHelper return [SentryDependencyContainer.sharedInstance.application getWindows]; } -+ (BOOL)fastViewRenderingEnabled:(SentryOptions *)options ++ (BOOL)fastViewRenderingEnabled:(SentryOptionsInternal *)options { return options.screenshot.enableFastViewRendering; } -+ (BOOL)viewRendererV2Enabled:(SentryOptions *)options ++ (BOOL)viewRendererV2Enabled:(SentryOptionsInternal *)options { return options.screenshot.enableViewRendererV2; } -+ (SentryDefaultRedactOptions *)redactOptions:(SentryOptions *)options ++ (SentryDefaultRedactOptions *)redactOptions:(SentryOptionsInternal *)options { return [[SentryDefaultRedactOptions alloc] initWithMaskAllText:options.screenshot.maskAllText diff --git a/Sources/Sentry/SentryFileIOTrackerHelper.m b/Sources/Sentry/SentryFileIOTrackerHelper.m index 6fd7038d807..7b79079ef0f 100644 --- a/Sources/Sentry/SentryFileIOTrackerHelper.m +++ b/Sources/Sentry/SentryFileIOTrackerHelper.m @@ -5,7 +5,7 @@ #import "SentryHub+Private.h" #import "SentryInternalDefines.h" #import "SentryLogC.h" -#import "SentryOptions.h" +#import "SentryOptionsInternal.h" #import "SentrySDK+Private.h" #import "SentryScope+Private.h" #import "SentrySpan.h" diff --git a/Sources/Sentry/SentryFileIOTrackingIntegration.m b/Sources/Sentry/SentryFileIOTrackingIntegration.m index 575fc80bf34..b04afccb9c5 100644 --- a/Sources/Sentry/SentryFileIOTrackingIntegration.m +++ b/Sources/Sentry/SentryFileIOTrackingIntegration.m @@ -11,7 +11,7 @@ @interface SentryFileIOTrackingIntegration () @implementation SentryFileIOTrackingIntegration -- (BOOL)installWithOptions:(SentryOptions *)options +- (BOOL)installWithOptions:(SentryOptionsInternal *)options { if (![super installWithOptions:options]) { return NO; diff --git a/Sources/Sentry/SentryFileManagerHelper.m b/Sources/Sentry/SentryFileManagerHelper.m index b90be1953bf..c4672b08567 100644 --- a/Sources/Sentry/SentryFileManagerHelper.m +++ b/Sources/Sentry/SentryFileManagerHelper.m @@ -8,7 +8,7 @@ #import "SentryEvent.h" #import "SentryInternalDefines.h" #import "SentryLogC.h" -#import "SentryOptions.h" +#import "SentryOptionsInternal.h" #import "SentrySerialization.h" #import "SentrySwift.h" @@ -102,7 +102,8 @@ @interface SentryFileManagerHelper () @implementation SentryFileManagerHelper -- (nullable instancetype)initWithOptions:(SentryOptions *_Nullable)options error:(NSError **)error +- (nullable instancetype)initWithOptions:(SentryOptionsInternal *_Nullable)options + error:(NSError **)error { if (self = [super init]) { [self createPathsWithOptions:options]; @@ -127,7 +128,7 @@ - (nullable instancetype)initWithOptions:(SentryOptions *_Nullable)options error return self; } -- (void)createPathsWithOptions:(SentryOptions *_Nullable)options +- (void)createPathsWithOptions:(SentryOptionsInternal *_Nullable)options { NSString *cachePath = options.cacheDirectoryPath; diff --git a/Sources/Sentry/SentryFramesTrackingIntegration.m b/Sources/Sentry/SentryFramesTrackingIntegration.m index 78c1b95e91e..15dd45cc550 100644 --- a/Sources/Sentry/SentryFramesTrackingIntegration.m +++ b/Sources/Sentry/SentryFramesTrackingIntegration.m @@ -15,7 +15,7 @@ @interface SentryFramesTrackingIntegration () @implementation SentryFramesTrackingIntegration -- (BOOL)installWithOptions:(SentryOptions *)options +- (BOOL)installWithOptions:(SentryOptionsInternal *)options { if (!PrivateSentrySDKOnly.framesTrackingMeasurementHybridSDKMode && ![super installWithOptions:options]) { diff --git a/Sources/Sentry/SentryHttpTransport.m b/Sources/Sentry/SentryHttpTransport.m index f673a1f4294..ef174b5a2da 100644 --- a/Sources/Sentry/SentryHttpTransport.m +++ b/Sources/Sentry/SentryHttpTransport.m @@ -9,7 +9,6 @@ #import "SentryInternalDefines.h" #import "SentryLogC.h" #import "SentryNSURLRequestBuilder.h" -#import "SentryOptions.h" #import "SentrySerialization.h" #import "SentrySwift.h" diff --git a/Sources/Sentry/SentryHub.m b/Sources/Sentry/SentryHub.m index 364739bde8d..5c7792e71a7 100644 --- a/Sources/Sentry/SentryHub.m +++ b/Sources/Sentry/SentryHub.m @@ -7,7 +7,7 @@ #import "SentryInternalDefines.h" #import "SentryLevelMapper.h" #import "SentryLogC.h" -#import "SentryOptions+Private.h" +#import "SentryOptionsInternal+Private.h" #import "SentryPerformanceTracker.h" #import "SentryProfilingConditionals.h" #import "SentrySDK+Private.h" @@ -86,7 +86,7 @@ - (void)startSession { SentrySession *lastSession = nil; SentryScope *scope = self.scope; - SentryOptions *options = [self.client options]; + SentryOptionsInternal *options = [self.client options]; if (options == nil) { SENTRY_LOG_ERROR(@"Options of the client are nil. Not starting a session."); return; @@ -553,7 +553,7 @@ - (void)captureSerializedFeedback:(NSDictionary *)serializedFeedback - (void)addBreadcrumb:(SentryBreadcrumb *)crumb { - SentryOptions *options = [[self client] options]; + SentryOptionsInternal *options = [[self client] options]; if (options.maxBreadcrumbs < 1) { return; } diff --git a/Sources/Sentry/SentryMetricKitIntegration.m b/Sources/Sentry/SentryMetricKitIntegration.m index fd8a1b0f9ad..b668b47087e 100644 --- a/Sources/Sentry/SentryMetricKitIntegration.m +++ b/Sources/Sentry/SentryMetricKitIntegration.m @@ -3,7 +3,7 @@ #if SENTRY_HAS_METRIC_KIT # import "SentryInternalDefines.h" -# import "SentryOptions.h" +# import "SentryOptionsInternal.h" # import "SentryScope.h" # import "SentrySwift.h" # import @@ -55,7 +55,7 @@ @interface SentryMetricKitIntegration () @implementation SentryMetricKitIntegration -- (BOOL)installWithOptions:(SentryOptions *)options +- (BOOL)installWithOptions:(SentryOptionsInternal *)options { if (![super installWithOptions:options]) { return NO; diff --git a/Sources/Sentry/SentryNSDataSwizzling.m b/Sources/Sentry/SentryNSDataSwizzling.m index ebd4a3ad855..06402c15c54 100644 --- a/Sources/Sentry/SentryNSDataSwizzling.m +++ b/Sources/Sentry/SentryNSDataSwizzling.m @@ -1,5 +1,6 @@ #import "SentryNSDataSwizzling.h" #import "SentryLogC.h" +#import "SentryOptionsInternal.h" #import "SentrySwift.h" #import "SentrySwizzle.h" #import "SentryTraceOrigin.h" @@ -21,7 +22,7 @@ + (SentryNSDataSwizzling *)shared return instance; } -- (void)startWithOptions:(SentryOptions *)options tracker:(SentryFileIOTracker *)tracker +- (void)startWithOptions:(SentryOptionsInternal *)options tracker:(SentryFileIOTracker *)tracker { self.tracker = tracker; diff --git a/Sources/Sentry/SentryNSFileManagerSwizzling.m b/Sources/Sentry/SentryNSFileManagerSwizzling.m index fb6afc20715..82ec318d221 100644 --- a/Sources/Sentry/SentryNSFileManagerSwizzling.m +++ b/Sources/Sentry/SentryNSFileManagerSwizzling.m @@ -1,5 +1,6 @@ #import "SentryNSFileManagerSwizzling.h" #import "SentryLogC.h" +#import "SentryOptionsInternal.h" #import "SentrySwift.h" #import "SentrySwizzle.h" #import "SentryTraceOrigin.h" @@ -21,7 +22,7 @@ + (SentryNSFileManagerSwizzling *)shared return instance; } -- (void)startWithOptions:(SentryOptions *)options tracker:(SentryFileIOTracker *)tracker +- (void)startWithOptions:(SentryOptionsInternal *)options tracker:(SentryFileIOTracker *)tracker { self.tracker = tracker; diff --git a/Sources/Sentry/SentryNetworkTracker.m b/Sources/Sentry/SentryNetworkTracker.m index 6b161004720..9e423701075 100644 --- a/Sources/Sentry/SentryNetworkTracker.m +++ b/Sources/Sentry/SentryNetworkTracker.m @@ -14,7 +14,7 @@ #import "SentryLogC.h" #import "SentryMechanism.h" #import "SentryNoOpSpan.h" -#import "SentryOptions.h" +#import "SentryOptionsInternal.h" #import "SentryPropagationContext.h" #import "SentryRequest.h" #import "SentrySDK+Private.h" @@ -217,7 +217,7 @@ - (void)addTraceWithoutTransactionToTask:(NSURLSessionTask *)sessionTask SentryTraceContext *traceContext = [[SentryTraceContext alloc] initWithTraceId:propagationContext.traceId - options:SENTRY_UNWRAP_NULLABLE(SentryOptions, + options:SENTRY_UNWRAP_NULLABLE(SentryOptionsInternal, SentrySDKInternal.currentHub.client.options) replayId:SentrySDKInternal.currentHub.scope.replayId]; diff --git a/Sources/Sentry/SentryNetworkTrackingIntegration.m b/Sources/Sentry/SentryNetworkTrackingIntegration.m index ab8746eb714..33ff71dff7c 100644 --- a/Sources/Sentry/SentryNetworkTrackingIntegration.m +++ b/Sources/Sentry/SentryNetworkTrackingIntegration.m @@ -2,13 +2,13 @@ #import "SentryLogC.h" #import "SentryNSURLSessionTaskSearch.h" #import "SentryNetworkTracker.h" -#import "SentryOptions.h" +#import "SentryOptionsInternal.h" #import "SentrySwizzle.h" #import @implementation SentryNetworkTrackingIntegration -- (BOOL)installWithOptions:(SentryOptions *)options +- (BOOL)installWithOptions:(SentryOptionsInternal *)options { if (!options.enableSwizzling) { [self logWithOptionName:@"enableSwizzling"]; diff --git a/Sources/Sentry/SentryOptions.m b/Sources/Sentry/SentryOptions.m deleted file mode 100644 index e4ea3ba6141..00000000000 --- a/Sources/Sentry/SentryOptions.m +++ /dev/null @@ -1,337 +0,0 @@ -#import "SentryANRTrackingIntegration.h" -#import "SentryAutoBreadcrumbTrackingIntegration.h" -#import "SentryAutoSessionTrackingIntegration.h" -#import "SentryCoreDataTrackingIntegration.h" -#import "SentryCrashIntegration.h" -#import "SentryDsn.h" -#import "SentryFileIOTrackingIntegration.h" -#import "SentryHttpStatusCodeRange.h" -#import "SentryInternalDefines.h" -#import "SentryLevelMapper.h" -#import "SentryLogC.h" -#import "SentryMeta.h" -#import "SentryNetworkTrackingIntegration.h" -#import "SentryOptions+Private.h" -#import "SentryOptionsInternal.h" -#import "SentrySDKInternal.h" -#import "SentryScope.h" -#import "SentrySessionReplayIntegration.h" -#import "SentrySwift.h" -#import "SentrySwiftAsyncIntegration.h" -#import "SentryTracer.h" -#import - -NSString *const kSentryDefaultEnvironment = @"production"; - -@implementation SentryOptions { -#if SWIFT_PACKAGE || SENTRY_TEST - id _beforeSendLogDynamic; -#endif // SWIFT_PACKAGE || SENTRY_TEST -} - -#if SWIFT_PACKAGE || SENTRY_TEST -// Provide explicit implementation for SPM builds where the property is excluded from header -// Use id to avoid typedef dependency, Swift extension provides type safety -- (id)beforeSendLogDynamic -{ - return _beforeSendLogDynamic; -} - -- (void)setBeforeSendLogDynamic:(id)beforeSendLogDynamic -{ - _beforeSendLogDynamic = beforeSendLogDynamic; -} - -#endif // SWIFT_PACKAGE || SENTRY_TEST - -- (instancetype)init -{ - if (self = [super init]) { - self.enabled = YES; - self.shutdownTimeInterval = 2.0; - self.enableCrashHandler = YES; -#if TARGET_OS_OSX - self.enableUncaughtNSExceptionReporting = NO; -#endif // TARGET_OS_OSX -#if !TARGET_OS_WATCH - self.enableSigtermReporting = NO; -#endif // !TARGET_OS_WATCH - self.diagnosticLevel = kSentryLevelDebug; - self.debug = NO; - self.maxBreadcrumbs = defaultMaxBreadcrumbs; - self.maxCacheItems = 30; - self.sampleRate = SENTRY_DEFAULT_SAMPLE_RATE; - self.enableAutoSessionTracking = YES; - self.enableGraphQLOperationTracking = NO; - self.enableWatchdogTerminationTracking = YES; - self.sessionTrackingIntervalMillis = [@30000 unsignedIntValue]; - self.attachStacktrace = YES; - // Maximum attachment size is 100 MiB, matches Relay's limit: - // https://develop.sentry.dev/sdk/data-model/envelopes/#size-limits - self.maxAttachmentSize = 100 * 1024 * 1024; - self.sendDefaultPii = NO; - self.enableAutoPerformanceTracing = YES; - self.enablePersistingTracesWhenCrashing = NO; - self.enableCaptureFailedRequests = YES; - self.environment = kSentryDefaultEnvironment; - self.enableTimeToFullDisplayTracing = NO; - - self.initialScope = ^SentryScope *(SentryScope *scope) { return scope; }; - __swiftExperimentalOptions = [[SentryExperimentalOptions alloc] init]; -#if SENTRY_HAS_UIKIT - self.enableUIViewControllerTracing = YES; - self.attachScreenshot = NO; - self.screenshot = [[SentryViewScreenshotOptions alloc] init]; - self.attachViewHierarchy = NO; - self.reportAccessibilityIdentifier = YES; - self.enableUserInteractionTracing = YES; - self.idleTimeout = SentryTracerDefaultTimeout; - self.enablePreWarmedAppStartTracing = YES; - self.enableReportNonFullyBlockingAppHangs = YES; -#endif // SENTRY_HAS_UIKIT - -#if SENTRY_TARGET_REPLAY_SUPPORTED - self.sessionReplay = [[SentryReplayOptions alloc] init]; -#endif - - self.enableAppHangTracking = YES; - self.appHangTimeoutInterval = 2.0; - self.enableAutoBreadcrumbTracking = YES; - self.enablePropagateTraceparent = NO; - self.enableNetworkTracking = YES; - self.enableFileIOTracing = YES; - self.enableFileManagerSwizzling = NO; - self.enableDataSwizzling = YES; - self.enableNetworkBreadcrumbs = YES; - self.enableLogs = NO; - self.tracesSampleRate = nil; - self.enableCoreDataTracing = YES; - _enableSwizzling = YES; - self.swizzleClassNameExcludes = [NSSet new]; - self.sendClientReports = YES; - self.swiftAsyncStacktraces = NO; - self.enableSpotlight = NO; - self.spotlightUrl = @"http://localhost:8969/stream"; - -#if TARGET_OS_OSX - NSString *dsn = [[[NSProcessInfo processInfo] environment] objectForKey:@"SENTRY_DSN"]; - if (dsn.length > 0) { - self.dsn = dsn; - } -#endif // TARGET_OS_OSX - - // Use the name of the bundle's executable file as inAppInclude, so SentryInAppLogic - // marks frames coming from there as inApp. With this approach, the SDK marks public - // frameworks such as UIKitCore, CoreFoundation, GraphicsServices, and so forth, as not - // inApp. For private frameworks, such as Sentry, dynamic and static frameworks differ. - // Suppose you use dynamic frameworks inside your app. In that case, the SDK marks these as - // not inApp as these frameworks are located in the application bundle, but their location - // is different from the main executable. In case you have a private framework that should - // be inApp you can add it to inAppInclude. When using static frameworks, the frameworks end - // up in the main executable. Therefore, the SDK currently can't detect if a frame of the - // main executable originates from the application or a private framework and marks all of - // them as inApp. To fix this, the user can use stack trace rules on Sentry. - NSDictionary *infoDict = [[NSBundle mainBundle] infoDictionary]; - NSString *bundleExecutable = infoDict[@"CFBundleExecutable"]; - if (bundleExecutable == nil) { - _inAppIncludes = [NSArray new]; - } else { - _inAppIncludes = @[ bundleExecutable ]; - } - - // Set default release name - if (infoDict != nil) { - self.releaseName = - [NSString stringWithFormat:@"%@@%@+%@", infoDict[@"CFBundleIdentifier"], - infoDict[@"CFBundleShortVersionString"], infoDict[@"CFBundleVersion"]]; - } - - NSRegularExpression *everythingAllowedRegex = - [NSRegularExpression regularExpressionWithPattern:@".*" - options:NSRegularExpressionCaseInsensitive - error:NULL]; - self.tracePropagationTargets = @[ everythingAllowedRegex ]; - self.failedRequestTargets = @[ everythingAllowedRegex ]; - - // defaults to 500 to 599 - SentryHttpStatusCodeRange *defaultHttpStatusCodeRange = - [[SentryHttpStatusCodeRange alloc] initWithMin:500 max:599]; - self.failedRequestStatusCodes = @[ defaultHttpStatusCodeRange ]; - - self.cacheDirectoryPath - = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) - .firstObject - ?: @""; - -#if SENTRY_HAS_METRIC_KIT - self.enableMetricKit = NO; - self.enableMetricKitRawPayload = NO; -#endif // SENTRY_HAS_METRIC_KIT - } - return self; -} - -- (void)setTracePropagationTargets:(NSArray *)tracePropagationTargets -{ - for (id targetCheck in tracePropagationTargets) { - if (![targetCheck isKindOfClass:[NSRegularExpression class]] - && ![targetCheck isKindOfClass:[NSString class]]) { - SENTRY_LOG_WARN(@"Only instances of NSString and NSRegularExpression are supported " - @"inside tracePropagationTargets."); - } - } - - _tracePropagationTargets = tracePropagationTargets; -} - -- (void)setFailedRequestTargets:(NSArray *)failedRequestTargets -{ - for (id targetCheck in failedRequestTargets) { - if (![targetCheck isKindOfClass:[NSRegularExpression class]] - && ![targetCheck isKindOfClass:[NSString class]]) { - SENTRY_LOG_WARN(@"Only instances of NSString and NSRegularExpression are supported " - @"inside failedRequestTargets."); - } - } - - _failedRequestTargets = failedRequestTargets; -} - -- (void)setDsn:(NSString *)dsn -{ - NSError *error = nil; - self.parsedDsn = [[SentryDsn alloc] initWithString:dsn didFailWithError:&error]; - - if (error == nil) { - _dsn = dsn; - } else { - SENTRY_LOG_ERROR(@"Could not parse the DSN: %@.", error); - } -} - -- (void)addInAppInclude:(NSString *)inAppInclude -{ - _inAppIncludes = [self.inAppIncludes arrayByAddingObject:inAppInclude]; -} - -- (void)setSampleRate:(NSNumber *)sampleRate -{ - if (sampleRate == nil) { - _sampleRate = nil; - } else if (sentry_isValidSampleRate(sampleRate)) { - _sampleRate = sampleRate; - } else { - _sampleRate = SENTRY_DEFAULT_SAMPLE_RATE; - } -} - -BOOL -sentry_isValidSampleRate(NSNumber *sampleRate) -{ - double rate = [sampleRate doubleValue]; - return rate >= 0 && rate <= 1.0; -} - -- (void)setTracesSampleRate:(NSNumber *)tracesSampleRate -{ - if (tracesSampleRate == nil) { - _tracesSampleRate = nil; - } else if (sentry_isValidSampleRate(tracesSampleRate)) { - _tracesSampleRate = tracesSampleRate; - } else { - _tracesSampleRate = SENTRY_DEFAULT_TRACES_SAMPLE_RATE; - } -} - -- (BOOL)isTracingEnabled -{ - return (_tracesSampleRate != nil && [_tracesSampleRate doubleValue] > 0) - || _tracesSampler != nil; -} - -#if SENTRY_TARGET_PROFILING_SUPPORTED - -- (BOOL)isContinuousProfilingEnabled -{ - return _profiling != nil; -} - -- (BOOL)isProfilingCorrelatedToTraces -{ - return _profiling != nil && _profiling.lifecycle == SentryProfileLifecycleTrace; -} -#endif // SENTRY_TARGET_PROFILING_SUPPORTED - -#if SENTRY_UIKIT_AVAILABLE - -# if SENTRY_TARGET_REPLAY_SUPPORTED - -- (BOOL)enableViewRendererV2 -{ - return self.sessionReplay.enableViewRendererV2; -} - -- (BOOL)enableFastViewRendering -{ - return self.sessionReplay.enableFastViewRendering; -} - -# endif // SENTRY_TARGET_REPLAY_SUPPORTED - -#endif // SENTRY_UIKIT_AVAILABLE - -- (void)setEnableSpotlight:(BOOL)value -{ - _enableSpotlight = value; -#if defined(RELEASE) - if (value) { - SENTRY_LOG_WARN(@"Enabling Spotlight for a release build. We recommend running Spotlight " - @"only for local development."); - } -#endif // defined(RELEASE) -} - -#if SENTRY_HAS_UIKIT -- (BOOL)isAppHangTrackingDisabled -{ - return !self.enableAppHangTracking || self.appHangTimeoutInterval <= 0; -} -#endif // SENTRY_HAS_UIKIT - -#if TARGET_OS_IOS && SENTRY_HAS_UIKIT -- (void)setConfigureUserFeedback:(SentryUserFeedbackConfigurationBlock)configureUserFeedback -{ - SentryUserFeedbackConfiguration *userFeedbackConfiguration = - [[SentryUserFeedbackConfiguration alloc] init]; - self.userFeedbackConfiguration = userFeedbackConfiguration; - if (configureUserFeedback) { - configureUserFeedback(userFeedbackConfiguration); - } -} -#endif // TARGET_OS_IOS && SENTRY_HAS_UIKIT - -#if defined(DEBUG) || defined(SENTRY_TEST) || defined(SENTRY_TEST_CI) -- (NSString *)debugDescription -{ - NSMutableString *propertiesDescription = [NSMutableString string]; - @autoreleasepool { - unsigned int outCount, i; - objc_property_t *properties = class_copyPropertyList([self class], &outCount); - for (i = 0; i < outCount; i++) { - objc_property_t property = properties[i]; - const char *propName = property_getName(property); - if (propName) { - NSString *propertyName = [NSString stringWithUTF8String:propName]; - NSString *propertyValue = [[self valueForKey:propertyName] description]; - [propertiesDescription appendFormat:@" %@: %@\n", propertyName, propertyValue]; - } else { - SENTRY_LOG_DEBUG(@"Failed to get a property name."); - } - } - free(properties); - } - return [NSString stringWithFormat:@"<%@: {\n%@\n}>", self, propertiesDescription]; -} -#endif // defined(DEBUG) || defined(SENTRY_TEST) || defined(SENTRY_TEST_CI) - -@end diff --git a/Sources/Sentry/SentryOptionsConverter.m b/Sources/Sentry/SentryOptionsConverter.m new file mode 100644 index 00000000000..228340d8547 --- /dev/null +++ b/Sources/Sentry/SentryOptionsConverter.m @@ -0,0 +1,14 @@ +#import "SentryOptionsConverter.h" +#import "SentryOptionsInternal.h" +#import "SentrySwift.h" + +@implementation SentryOptionsConverter + ++ (SentryOptions *)fromInternal:(SentryOptionsInternal *)internalOptions +{ + SentryOptions *options = [[SentryOptions alloc] init]; + options.dsn = internalOptions.dsn; + return options; +} + +@end diff --git a/Sources/Sentry/SentryOptionsInternal.m b/Sources/Sentry/SentryOptionsInternal.m index 53c038da4b2..186dc2800d9 100644 --- a/Sources/Sentry/SentryOptionsInternal.m +++ b/Sources/Sentry/SentryOptionsInternal.m @@ -1,349 +1,319 @@ #import "SentryOptionsInternal.h" #import "SentryDsn.h" +#import "SentryHttpStatusCodeRange.h" #import "SentryInternalDefines.h" #import "SentryLevelMapper.h" -#import "SentryOptions+Private.h" -#import "SentryOptions.h" +#import "SentryLogC.h" +#import "SentryMeta.h" +#import "SentryOptionsInternal+Private.h" +#import "SentrySDKInternal.h" +#import "SentryScope.h" #import "SentrySwift.h" +#import "SentryTracer.h" +#import -@implementation SentryOptionsInternal +NSString *const kSentryDefaultEnvironment = @"production"; -+ (nullable SentryOptions *)initWithDict:(NSDictionary *)options - didFailWithError:(NSError *_Nullable *_Nullable)error -{ - SentryOptions *sentryOptions = [[SentryOptions alloc] init]; - if (![SentryOptionsInternal validateOptions:options - sentryOptions:sentryOptions - didFailWithError:error]) { - if (error != nil) { - SENTRY_LOG_ERROR(@"Failed to initialize SentryOptions: %@", *error); - } else { - SENTRY_LOG_ERROR(@"Failed to initialize SentryOptions"); - } - return nil; - } - return sentryOptions; +@implementation SentryOptionsInternal { + id _beforeSendLogDynamic; +#if SENTRY_TARGET_REPLAY_SUPPORTED + id _sessionReplayDynamic; +#endif +#if TARGET_OS_IOS && SENTRY_HAS_UIKIT + id _userFeedbackDynamic; +#endif } -/** - * Populates all @c SentryOptions values from @c options dict using fallbacks/defaults if needed. - */ -+ (BOOL)validateOptions:(NSDictionary *)options - sentryOptions:(SentryOptions *)sentryOptions - didFailWithError:(NSError *_Nullable *_Nullable)error +// Provide explicit implementation for SPM builds where the property is excluded from header +// Use id to avoid typedef dependency, Swift extension provides type safety +- (id)beforeSendLogDynamic { - NSPredicate *isNSString = [NSPredicate predicateWithBlock:^BOOL( - id object, NSDictionary *bindings) { return [object isKindOfClass:[NSString class]]; }]; - - [self setBool:options[@"debug"] block:^(BOOL value) { sentryOptions.debug = value; }]; - - if ([options[@"diagnosticLevel"] isKindOfClass:[NSString class]]) { - NSString *_Nonnull diagnosticLevel - = SENTRY_UNWRAP_NULLABLE(NSString, options[@"diagnosticLevel"]); - for (SentryLevel level = 0; level <= kSentryLevelFatal; level++) { - if ([nameForSentryLevel(level) isEqualToString:diagnosticLevel]) { - sentryOptions.diagnosticLevel = level; - break; - } - } - } - - if (options[@"dsn"] != [NSNull null]) { - NSString *dsn = @""; - if (nil != options[@"dsn"] && [options[@"dsn"] isKindOfClass:[NSString class]]) { - dsn = options[@"dsn"]; - } - - sentryOptions.parsedDsn = [[SentryDsn alloc] initWithString:dsn didFailWithError:error]; - if (sentryOptions.parsedDsn == nil) { - return NO; - } - } + return _beforeSendLogDynamic; +} - if ([options[@"release"] isKindOfClass:[NSString class]]) { - sentryOptions.releaseName = options[@"release"]; - } +- (void)setBeforeSendLogDynamic:(id)beforeSendLogDynamic +{ + _beforeSendLogDynamic = beforeSendLogDynamic; +} - if ([options[@"environment"] isKindOfClass:[NSString class]]) { - NSString *_Nonnull environment = SENTRY_UNWRAP_NULLABLE(NSString, options[@"environment"]); - sentryOptions.environment = environment; - } +#if SENTRY_TARGET_REPLAY_SUPPORTED +- (id)sessionReplayDynamic +{ + return _sessionReplayDynamic; +} - if ([options[@"dist"] isKindOfClass:[NSString class]]) { - sentryOptions.dist = options[@"dist"]; - } +- (void)setSessionReplayDynamic:(id)sessionReplayDynamic +{ + _sessionReplayDynamic = sessionReplayDynamic; +} +#endif - [self setBool:options[@"enabled"] block:^(BOOL value) { sentryOptions.enabled = value; }]; +#if TARGET_OS_IOS && SENTRY_HAS_UIKIT +- (id)userFeedbackDynamic +{ + return _userFeedbackDynamic; +} - if ([options[@"shutdownTimeInterval"] isKindOfClass:[NSNumber class]]) { - sentryOptions.shutdownTimeInterval = [options[@"shutdownTimeInterval"] doubleValue]; - } +- (void)setUserFeedbackDynamic:(id)userFeedbackDynamic +{ + _userFeedbackDynamic = userFeedbackDynamic; +} +#endif - [self setBool:options[@"enableCrashHandler"] - block:^(BOOL value) { sentryOptions.enableCrashHandler = value; }]; ++ (nullable SentryOptions *)initWithDict:(NSDictionary *)options + didFailWithError:(NSError *_Nullable *_Nullable)error +{ + return [[SentryOptions alloc] init]; +} +- (instancetype)init +{ + if (self = [super init]) { + self.enabled = YES; + self.shutdownTimeInterval = 2.0; + self.enableCrashHandler = YES; #if TARGET_OS_OSX - [self setBool:options[@"enableUncaughtNSExceptionReporting"] - block:^(BOOL value) { sentryOptions.enableUncaughtNSExceptionReporting = value; }]; + self.enableUncaughtNSExceptionReporting = NO; #endif // TARGET_OS_OSX - #if !TARGET_OS_WATCH - [self setBool:options[@"enableSigtermReporting"] - block:^(BOOL value) { sentryOptions.enableSigtermReporting = value; }]; + self.enableSigtermReporting = NO; #endif // !TARGET_OS_WATCH - - if ([options[@"maxBreadcrumbs"] isKindOfClass:[NSNumber class]]) { - sentryOptions.maxBreadcrumbs = [options[@"maxBreadcrumbs"] unsignedIntValue]; - } - - [self setBool:options[@"enableLogs"] block:^(BOOL value) { sentryOptions.enableLogs = value; }]; - - [self setBool:options[@"enableNetworkBreadcrumbs"] - block:^(BOOL value) { sentryOptions.enableNetworkBreadcrumbs = value; }]; - - if ([options[@"maxCacheItems"] isKindOfClass:[NSNumber class]]) { - sentryOptions.maxCacheItems = [options[@"maxCacheItems"] unsignedIntValue]; - } - - if ([options[@"cacheDirectoryPath"] isKindOfClass:[NSString class]]) { - NSString *_Nonnull cacheDirectoryPath - = SENTRY_UNWRAP_NULLABLE(NSString, options[@"cacheDirectoryPath"]); - sentryOptions.cacheDirectoryPath = cacheDirectoryPath; - } - - if ([self isBlock:options[@"beforeSend"]]) { - sentryOptions.beforeSend = options[@"beforeSend"]; - } - -#if !SWIFT_PACKAGE - if ([self isBlock:options[@"beforeSendLog"]]) { - sentryOptions.beforeSendLog = options[@"beforeSendLog"]; - } -#endif // !SWIFT_PACKAGE - - if ([self isBlock:options[@"beforeSendSpan"]]) { - sentryOptions.beforeSendSpan = options[@"beforeSendSpan"]; - } - - if ([self isBlock:options[@"beforeBreadcrumb"]]) { - sentryOptions.beforeBreadcrumb = options[@"beforeBreadcrumb"]; - } - - if ([self isBlock:options[@"beforeCaptureScreenshot"]]) { - sentryOptions.beforeCaptureScreenshot = options[@"beforeCaptureScreenshot"]; - } - - if ([self isBlock:options[@"beforeCaptureViewHierarchy"]]) { - sentryOptions.beforeCaptureViewHierarchy = options[@"beforeCaptureViewHierarchy"]; - } - - if ([self isBlock:options[@"onCrashedLastRun"]]) { - sentryOptions.onCrashedLastRun = options[@"onCrashedLastRun"]; - } - - if ([options[@"sampleRate"] isKindOfClass:[NSNumber class]]) { - sentryOptions.sampleRate = options[@"sampleRate"]; - } - - [self setBool:options[@"enableAutoSessionTracking"] - block:^(BOOL value) { sentryOptions.enableAutoSessionTracking = value; }]; - - [self setBool:options[@"enableGraphQLOperationTracking"] - block:^(BOOL value) { sentryOptions.enableGraphQLOperationTracking = value; }]; - - [self setBool:options[@"enableWatchdogTerminationTracking"] - block:^(BOOL value) { sentryOptions.enableWatchdogTerminationTracking = value; }]; - - [self setBool:options[@"swiftAsyncStacktraces"] - block:^(BOOL value) { sentryOptions.swiftAsyncStacktraces = value; }]; - - if ([options[@"sessionTrackingIntervalMillis"] isKindOfClass:[NSNumber class]]) { - sentryOptions.sessionTrackingIntervalMillis = - [options[@"sessionTrackingIntervalMillis"] unsignedIntValue]; - } - - [self setBool:options[@"attachStacktrace"] - block:^(BOOL value) { sentryOptions.attachStacktrace = value; }]; - - if ([options[@"maxAttachmentSize"] isKindOfClass:[NSNumber class]]) { - sentryOptions.maxAttachmentSize = [options[@"maxAttachmentSize"] unsignedIntValue]; - } - - [self setBool:options[@"sendDefaultPii"] - block:^(BOOL value) { sentryOptions.sendDefaultPii = value; }]; - - [self setBool:options[@"enableAutoPerformanceTracing"] - block:^(BOOL value) { sentryOptions.enableAutoPerformanceTracing = value; }]; - - [self setBool:options[@"enablePersistingTracesWhenCrashing"] - block:^(BOOL value) { sentryOptions.enablePersistingTracesWhenCrashing = value; }]; - - [self setBool:options[@"enableCaptureFailedRequests"] - block:^(BOOL value) { sentryOptions.enableCaptureFailedRequests = value; }]; - - [self setBool:options[@"enableTimeToFullDisplayTracing"] - block:^(BOOL value) { sentryOptions.enableTimeToFullDisplayTracing = value; }]; - - if ([self isBlock:options[@"initialScope"]]) { - sentryOptions.initialScope - = (SentryScope * (^_Nonnull)(SentryScope *)) options[@"initialScope"]; - } + self.diagnosticLevel = kSentryLevelDebug; + self.debug = NO; + self.maxBreadcrumbs = defaultMaxBreadcrumbs; + self.maxCacheItems = 30; + self.sampleRate = SENTRY_DEFAULT_SAMPLE_RATE; + self.enableAutoSessionTracking = YES; + self.enableGraphQLOperationTracking = NO; + self.enableWatchdogTerminationTracking = YES; + self.sessionTrackingIntervalMillis = [@30000 unsignedIntValue]; + self.attachStacktrace = YES; + // Maximum attachment size is 100 MiB, matches Relay's limit: + // https://develop.sentry.dev/sdk/data-model/envelopes/#size-limits + self.maxAttachmentSize = 100 * 1024 * 1024; + self.sendDefaultPii = NO; + self.enableAutoPerformanceTracing = YES; + self.enablePersistingTracesWhenCrashing = NO; + self.enableCaptureFailedRequests = YES; + self.environment = kSentryDefaultEnvironment; + self.enableTimeToFullDisplayTracing = NO; + + self.initialScope = ^SentryScope *(SentryScope *scope) { return scope; }; + __swiftExperimentalOptions = [[SentryExperimentalOptions alloc] init]; #if SENTRY_HAS_UIKIT - [self setBool:options[@"enableUIViewControllerTracing"] - block:^(BOOL value) { sentryOptions.enableUIViewControllerTracing = value; }]; - - [self setBool:options[@"attachScreenshot"] - block:^(BOOL value) { sentryOptions.attachScreenshot = value; }]; - - [self setBool:options[@"attachViewHierarchy"] - block:^(BOOL value) { sentryOptions.attachViewHierarchy = value; }]; - - [self setBool:options[@"reportAccessibilityIdentifier"] - block:^(BOOL value) { sentryOptions.reportAccessibilityIdentifier = value; }]; - - [self setBool:options[@"enableUserInteractionTracing"] - block:^(BOOL value) { sentryOptions.enableUserInteractionTracing = value; }]; - - if ([options[@"idleTimeout"] isKindOfClass:[NSNumber class]]) { - sentryOptions.idleTimeout = [options[@"idleTimeout"] doubleValue]; - } - - [self setBool:options[@"enablePreWarmedAppStartTracing"] - block:^(BOOL value) { sentryOptions.enablePreWarmedAppStartTracing = value; }]; - - [self setBool:options[@"enableReportNonFullyBlockingAppHangs"] - block:^(BOOL value) { sentryOptions.enableReportNonFullyBlockingAppHangs = value; }]; - + self.enableUIViewControllerTracing = YES; + self.attachScreenshot = NO; + self.screenshot = [[SentryViewScreenshotOptions alloc] init]; + self.attachViewHierarchy = NO; + self.reportAccessibilityIdentifier = YES; + self.enableUserInteractionTracing = YES; + self.idleTimeout = SentryTracerDefaultTimeout; + self.enablePreWarmedAppStartTracing = YES; + self.enableReportNonFullyBlockingAppHangs = YES; #endif // SENTRY_HAS_UIKIT #if SENTRY_TARGET_REPLAY_SUPPORTED - if ([options[@"sessionReplay"] isKindOfClass:NSDictionary.class]) { - sentryOptions.sessionReplay = [[SentryReplayOptions alloc] - initWithDictionary:SENTRY_UNWRAP_NULLABLE(NSDictionary, options[@"sessionReplay"])]; - } -#endif // SENTRY_TARGET_REPLAY_SUPPORTED + _sessionReplayDynamic = [[SentryReplayOptions alloc] init]; +#endif + + self.enableAppHangTracking = YES; + self.appHangTimeoutInterval = 2.0; + self.enableAutoBreadcrumbTracking = YES; + self.enablePropagateTraceparent = NO; + self.enableNetworkTracking = YES; + self.enableFileIOTracing = YES; + self.enableFileManagerSwizzling = NO; + self.enableDataSwizzling = YES; + self.enableNetworkBreadcrumbs = YES; + self.enableLogs = NO; + self.tracesSampleRate = nil; + self.enableCoreDataTracing = YES; + _enableSwizzling = YES; + self.swizzleClassNameExcludes = [NSSet new]; + self.sendClientReports = YES; + self.swiftAsyncStacktraces = NO; + self.enableSpotlight = NO; + self.spotlightUrl = @"http://localhost:8969/stream"; - [self setBool:options[@"enableAppHangTracking"] - block:^(BOOL value) { sentryOptions.enableAppHangTracking = value; }]; +#if TARGET_OS_OSX + NSString *dsn = [[[NSProcessInfo processInfo] environment] objectForKey:@"SENTRY_DSN"]; + if (dsn.length > 0) { + self.dsn = dsn; + } +#endif // TARGET_OS_OSX - if ([options[@"appHangTimeoutInterval"] isKindOfClass:[NSNumber class]]) { - sentryOptions.appHangTimeoutInterval = [options[@"appHangTimeoutInterval"] doubleValue]; - } + // Use the name of the bundle's executable file as inAppInclude, so SentryInAppLogic + // marks frames coming from there as inApp. With this approach, the SDK marks public + // frameworks such as UIKitCore, CoreFoundation, GraphicsServices, and so forth, as not + // inApp. For private frameworks, such as Sentry, dynamic and static frameworks differ. + // Suppose you use dynamic frameworks inside your app. In that case, the SDK marks these as + // not inApp as these frameworks are located in the application bundle, but their location + // is different from the main executable. In case you have a private framework that should + // be inApp you can add it to inAppInclude. When using static frameworks, the frameworks end + // up in the main executable. Therefore, the SDK currently can't detect if a frame of the + // main executable originates from the application or a private framework and marks all of + // them as inApp. To fix this, the user can use stack trace rules on Sentry. + NSDictionary *infoDict = [[NSBundle mainBundle] infoDictionary]; + NSString *bundleExecutable = infoDict[@"CFBundleExecutable"]; + if (bundleExecutable == nil) { + _inAppIncludes = [NSArray new]; + } else { + _inAppIncludes = @[ bundleExecutable ]; + } - [self setBool:options[@"enableNetworkTracking"] - block:^(BOOL value) { sentryOptions.enableNetworkTracking = value; }]; + _inAppExcludes = [NSArray new]; - [self setBool:options[@"enableFileIOTracing"] - block:^(BOOL value) { sentryOptions.enableFileIOTracing = value; }]; + // Set default release name + if (infoDict != nil) { + self.releaseName = + [NSString stringWithFormat:@"%@@%@+%@", infoDict[@"CFBundleIdentifier"], + infoDict[@"CFBundleShortVersionString"], infoDict[@"CFBundleVersion"]]; + } - if ([options[@"tracesSampleRate"] isKindOfClass:[NSNumber class]]) { - sentryOptions.tracesSampleRate = options[@"tracesSampleRate"]; - } + NSRegularExpression *everythingAllowedRegex = + [NSRegularExpression regularExpressionWithPattern:@".*" + options:NSRegularExpressionCaseInsensitive + error:NULL]; + self.tracePropagationTargets = @[ everythingAllowedRegex ]; + self.failedRequestTargets = @[ everythingAllowedRegex ]; - if ([self isBlock:options[@"tracesSampler"]]) { - sentryOptions.tracesSampler = options[@"tracesSampler"]; - } + // defaults to 500 to 599 + SentryHttpStatusCodeRange *defaultHttpStatusCodeRange = + [[SentryHttpStatusCodeRange alloc] initWithMin:500 max:599]; + self.failedRequestStatusCodes = @[ defaultHttpStatusCodeRange ]; - if ([options[@"inAppIncludes"] isKindOfClass:[NSArray class]]) { - NSArray *inAppIncludes = - [options[@"inAppIncludes"] filteredArrayUsingPredicate:isNSString]; - for (NSString *include in inAppIncludes) { - [sentryOptions addInAppInclude:include]; - } - } + self.cacheDirectoryPath + = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) + .firstObject + ?: @""; - if ([options[@"urlSession"] isKindOfClass:[NSURLSession class]]) { - sentryOptions.urlSession = options[@"urlSession"]; +#if SENTRY_HAS_METRIC_KIT + self.enableMetricKit = NO; + self.enableMetricKitRawPayload = NO; +#endif // SENTRY_HAS_METRIC_KIT } + return self; +} - if ([options[@"urlSessionDelegate"] conformsToProtocol:@protocol(NSURLSessionDelegate)]) { - sentryOptions.urlSessionDelegate = options[@"urlSessionDelegate"]; +- (void)setTracePropagationTargets:(NSArray *)tracePropagationTargets +{ + for (id targetCheck in tracePropagationTargets) { + if (![targetCheck isKindOfClass:[NSRegularExpression class]] + && ![targetCheck isKindOfClass:[NSString class]]) { + SENTRY_LOG_WARN(@"Only instances of NSString and NSRegularExpression are supported " + @"inside tracePropagationTargets."); + } } - [self setBool:options[@"enableSwizzling"] - block:^(BOOL value) { sentryOptions.enableSwizzling = value; }]; + _tracePropagationTargets = tracePropagationTargets; +} - if ([options[@"swizzleClassNameExcludes"] isKindOfClass:[NSSet class]]) { - sentryOptions.swizzleClassNameExcludes = [SENTRY_UNWRAP_NULLABLE( - NSSet, options[@"swizzleClassNameExcludes"]) filteredSetUsingPredicate:isNSString]; +- (void)setFailedRequestTargets:(NSArray *)failedRequestTargets +{ + for (id targetCheck in failedRequestTargets) { + if (![targetCheck isKindOfClass:[NSRegularExpression class]] + && ![targetCheck isKindOfClass:[NSString class]]) { + SENTRY_LOG_WARN(@"Only instances of NSString and NSRegularExpression are supported " + @"inside failedRequestTargets."); + } } - [self setBool:options[@"enableCoreDataTracing"] - block:^(BOOL value) { sentryOptions.enableCoreDataTracing = value; }]; - - [self setBool:options[@"sendClientReports"] - block:^(BOOL value) { sentryOptions.sendClientReports = value; }]; - - [self setBool:options[@"enableAutoBreadcrumbTracking"] - block:^(BOOL value) { sentryOptions.enableAutoBreadcrumbTracking = value; }]; + _failedRequestTargets = failedRequestTargets; +} - [self setBool:options[@"enablePropagateTraceparent"] - block:^(BOOL value) { sentryOptions.enablePropagateTraceparent = value; }]; +- (void)setDsn:(NSString *)dsn +{ + NSError *error = nil; + self.parsedDsn = [[SentryDsn alloc] initWithString:dsn didFailWithError:&error]; - if ([options[@"tracePropagationTargets"] isKindOfClass:[NSArray class]]) { - sentryOptions.tracePropagationTargets - = SENTRY_UNWRAP_NULLABLE(NSArray, options[@"tracePropagationTargets"]); + if (error == nil) { + _dsn = dsn; + } else { + SENTRY_LOG_ERROR(@"Could not parse the DSN: %@.", error); } +} - if ([options[@"failedRequestStatusCodes"] isKindOfClass:[NSArray class]]) { - sentryOptions.failedRequestStatusCodes - = SENTRY_UNWRAP_NULLABLE(NSArray, options[@"failedRequestStatusCodes"]); +- (void)setSampleRate:(NSNumber *)sampleRate +{ + if (sampleRate == nil) { + _sampleRate = nil; + } else if (sentry_isValidSampleRate(sampleRate)) { + _sampleRate = sampleRate; + } else { + _sampleRate = SENTRY_DEFAULT_SAMPLE_RATE; } +} - if ([options[@"failedRequestTargets"] isKindOfClass:[NSArray class]]) { - sentryOptions.failedRequestTargets - = SENTRY_UNWRAP_NULLABLE(NSArray, options[@"failedRequestTargets"]); +- (void)setTracesSampleRate:(NSNumber *)tracesSampleRate +{ + if (tracesSampleRate == nil) { + _tracesSampleRate = nil; + } else if (sentry_isValidSampleRate(tracesSampleRate)) { + _tracesSampleRate = tracesSampleRate; + } else { + _tracesSampleRate = SENTRY_DEFAULT_TRACES_SAMPLE_RATE; } +} -#if SENTRY_HAS_METRIC_KIT - [self setBool:options[@"enableMetricKit"] - block:^(BOOL value) { sentryOptions.enableMetricKit = value; }]; - [self setBool:options[@"enableMetricKitRawPayload"] - block:^(BOOL value) { sentryOptions.enableMetricKitRawPayload = value; }]; -#endif // SENTRY_HAS_METRIC_KIT - - [self setBool:options[@"enableSpotlight"] - block:^(BOOL value) { sentryOptions.enableSpotlight = value; }]; +- (BOOL)isTracingEnabled +{ + return (_tracesSampleRate != nil && [_tracesSampleRate doubleValue] > 0) + || _tracesSampler != nil; +} - if ([options[@"spotlightUrl"] isKindOfClass:[NSString class]]) { - sentryOptions.spotlightUrl = SENTRY_UNWRAP_NULLABLE(NSString, options[@"spotlightUrl"]); - } +#if SENTRY_TARGET_PROFILING_SUPPORTED - if ([options[@"experimental"] isKindOfClass:NSDictionary.class]) { - [sentryOptions.experimental validateOptions:options[@"experimental"]]; - } +- (BOOL)isContinuousProfilingEnabled +{ + return _profiling != nil; +} - return YES; +- (BOOL)isProfilingCorrelatedToTraces +{ + return _profiling != nil && _profiling.lifecycle == SentryProfileLifecycleTrace; } +#endif // SENTRY_TARGET_PROFILING_SUPPORTED -/** - * Checks if the passed in block is actually of type block. We can't check if the block matches a - * specific block without some complex objc runtime method calls and therefore we only check if it's - * a block or not. Assigning a wrong block to the @c SentryOptions blocks still could lead to - * crashes at runtime, but when someone uses the @c initWithDict they should better know what they - * are doing. - * @see Taken from https://gist.github.com/steipete/6ee378bd7d87f276f6e0 - */ -+ (BOOL)isBlock:(nullable id)block +- (void)setEnableSpotlight:(BOOL)value { - static Class blockClass; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - blockClass = [^{ } class]; - while ([blockClass superclass] != NSObject.class) { - blockClass = [blockClass superclass]; - } - }); + _enableSpotlight = value; +#if defined(RELEASE) + if (value) { + SENTRY_LOG_WARN(@"Enabling Spotlight for a release build. We recommend running Spotlight " + @"only for local development."); + } +#endif // defined(RELEASE) +} - return [block isKindOfClass:blockClass]; +#if SENTRY_HAS_UIKIT +- (BOOL)isAppHangTrackingDisabled +{ + return !self.enableAppHangTracking || self.appHangTimeoutInterval <= 0; } +#endif // SENTRY_HAS_UIKIT -+ (void)setBool:(id)value block:(void (^)(BOOL))block +#if defined(DEBUG) || defined(SENTRY_TEST) || defined(SENTRY_TEST_CI) +- (NSString *)debugDescription { - // Entries in the dictionary can be NSNull. Especially, on React-Native, this can happen. - if (value != nil && ![value isEqual:[NSNull null]]) { - block([value boolValue]); + NSMutableString *propertiesDescription = [NSMutableString string]; + @autoreleasepool { + unsigned int outCount, i; + objc_property_t *properties = class_copyPropertyList([self class], &outCount); + for (i = 0; i < outCount; i++) { + objc_property_t property = properties[i]; + const char *propName = property_getName(property); + if (propName) { + NSString *propertyName = [NSString stringWithUTF8String:propName]; + NSString *propertyValue = [[self valueForKey:propertyName] description]; + [propertiesDescription appendFormat:@" %@: %@\n", propertyName, propertyValue]; + } else { + SENTRY_LOG_DEBUG(@"Failed to get a property name."); + } + } + free(properties); } + return [NSString stringWithFormat:@"<%@: {\n%@\n}>", self, propertiesDescription]; } +#endif // defined(DEBUG) || defined(SENTRY_TEST) || defined(SENTRY_TEST_CI) @end diff --git a/Sources/Sentry/SentryPerformanceTrackingIntegration.m b/Sources/Sentry/SentryPerformanceTrackingIntegration.m index 710289f61e7..79a449dabda 100644 --- a/Sources/Sentry/SentryPerformanceTrackingIntegration.m +++ b/Sources/Sentry/SentryPerformanceTrackingIntegration.m @@ -3,7 +3,7 @@ #if SENTRY_HAS_UIKIT # import "SentryLogC.h" -# import "SentryOptions.h" +# import "SentryOptionsInternal.h" # import "SentrySubClassFinder.h" # import "SentrySwift.h" # import "SentryUIViewControllerSwizzling.h" @@ -16,7 +16,7 @@ @interface SentryPerformanceTrackingIntegration () @implementation SentryPerformanceTrackingIntegration -- (BOOL)installWithOptions:(SentryOptions *)options +- (BOOL)installWithOptions:(SentryOptionsInternal *)options { if (![super installWithOptions:options]) { return NO; diff --git a/Sources/Sentry/SentryProfiler.mm b/Sources/Sentry/SentryProfiler.mm index 28ee9ede3a7..8f17847b404 100644 --- a/Sources/Sentry/SentryProfiler.mm +++ b/Sources/Sentry/SentryProfiler.mm @@ -10,7 +10,7 @@ # import "SentryLaunchProfiling.h" # import "SentryLogC.h" # import "SentryMetricProfiler.h" -# import "SentryOptions+Private.h" +# import "SentryOptionsInternal+Private.h" # import "SentryProfileConfiguration.h" # import "SentryProfilerState+ObjCpp.h" # import "SentryProfilerTestHelpers.h" @@ -64,7 +64,7 @@ } void -sentry_configureContinuousProfiling(SentryOptions *options) +sentry_configureContinuousProfiling(SentryOptionsInternal *options) { if (options.configureProfiling == nil) { SENTRY_LOG_DEBUG(@"Continuous profiling V2 configuration not set by SDK consumer, nothing " @@ -102,7 +102,7 @@ } void -sentry_sdkInitProfilerTasks(SentryOptions *options, SentryHubInternal *hub) +sentry_sdkInitProfilerTasks(SentryOptionsInternal *options, SentryHubInternal *hub) { // get the configuration options from the last time the launch config was written; it may be // different than the new options the SDK was just started with diff --git a/Sources/Sentry/SentryReplayApi.m b/Sources/Sentry/SentryReplayApi.m index d32af680090..2e0d0f79b18 100644 --- a/Sources/Sentry/SentryReplayApi.m +++ b/Sources/Sentry/SentryReplayApi.m @@ -7,7 +7,7 @@ # import "SentryInternalCDefines.h" # import "SentryInternalDefines.h" # import "SentryLogC.h" -# import "SentryOptions+Private.h" +# import "SentryOptionsInternal+Private.h" # import "SentrySDK+Private.h" # import "SentrySessionReplayIntegration+Private.h" # import "SentrySwift.h" @@ -58,8 +58,8 @@ - (void)start SENTRY_DISABLE_THREAD_SANITIZER("double-checked lock produce false replayIntegration = (SentrySessionReplayIntegration *)[SentrySDKInternal.currentHub getInstalledIntegration:SentrySessionReplayIntegration.class]; if (replayIntegration == nil && SentrySDKInternal.currentHub.client.options) { - SentryOptions *currentOptions = SENTRY_UNWRAP_NULLABLE( - SentryOptions, SentrySDKInternal.currentHub.client.options); + SentryOptionsInternal *currentOptions = SENTRY_UNWRAP_NULLABLE( + SentryOptionsInternal, SentrySDKInternal.currentHub.client.options); if (![SentrySessionReplayIntegration shouldEnableForOptions:currentOptions]) { SENTRY_LOG_ERROR(@"[Session Replay] Session replay is disabled due to " @"environment potentially causing PII leaks."); diff --git a/Sources/Sentry/SentryRequestOperation.m b/Sources/Sentry/SentryRequestOperation.m index e7aa5e9f608..fb31afe392d 100644 --- a/Sources/Sentry/SentryRequestOperation.m +++ b/Sources/Sentry/SentryRequestOperation.m @@ -4,7 +4,7 @@ #import "SentryHub.h" #import "SentryInternalDefines.h" #import "SentryLogC.h" -#import "SentryOptions.h" +#import "SentryOptionsInternal.h" #import "SentrySDK+Private.h" #import "SentrySwift.h" diff --git a/Sources/Sentry/SentrySDKInternal.m b/Sources/Sentry/SentrySDKInternal.m index a201a87de1a..d2f094a5fff 100644 --- a/Sources/Sentry/SentrySDKInternal.m +++ b/Sources/Sentry/SentrySDKInternal.m @@ -15,8 +15,7 @@ #import "SentryLogC.h" #import "SentryMeta.h" #import "SentryNetworkTrackingIntegration.h" -#import "SentryOptions+Private.h" -#import "SentryOptionsInternal.h" +#import "SentryOptionsInternal+Private.h" #import "SentryProfilingConditionals.h" #import "SentryReplayApi.h" #import "SentrySamplerDecision.h" @@ -77,7 +76,7 @@ @implementation SentrySDKInternal static SentryAppStartMeasurement *_Nullable sentrySDKappStartMeasurement; static NSObject *sentrySDKappStartMeasurementLock; static BOOL _detectedStartUpCrash; -static SentryOptions *_Nullable startOption; +static SentryOptionsInternal *_Nullable startOption; static NSObject *startOptionsLock; /** @@ -112,7 +111,7 @@ + (SentryHubInternal *)currentHub } } -+ (nullable SentryOptions *)options ++ (nullable SentryOptionsInternal *)options { @synchronized(startOptionsLock) { return startOption; @@ -136,7 +135,7 @@ + (void)setCurrentHub:(nullable SentryHubInternal *)hub } } /** Internal, only needed for testing. */ -+ (void)setStartOptions:(nullable SentryOptions *)options ++ (void)setStartOptions:(nullable SentryOptionsInternal *)options { @synchronized(startOptionsLock) { startOption = options; @@ -218,7 +217,7 @@ + (void)setStartTimestamp:(NSDate *)value startTimestamp = value; } -+ (void)startWithOptions:(SentryOptions *)options ++ (void)startWithOptions:(SentryOptionsInternal *)options { // We save the options before checking for Xcode preview because // we will use this options in the preview @@ -291,13 +290,6 @@ + (void)startWithOptions:(SentryOptions *)options SENTRY_LOG_DEBUG(@"SDK initialized! Version: %@", SentryMeta.versionString); } -+ (void)startWithConfigureOptions:(void (^)(SentryOptions *options))configureOptions -{ - SentryOptions *options = [[SentryOptions alloc] init]; - configureOptions(options); - [SentrySDKInternal startWithOptions:options]; -} - + (void)captureFatalEvent:(SentryEvent *)event { [SentrySDKInternal.currentHub captureFatalEvent:event]; @@ -587,7 +579,7 @@ + (void)installIntegrations // Gatekeeper return; } - SentryOptions *options = [SentrySDKInternal.currentHub getClient].options; + SentryOptionsInternal *options = [SentrySDKInternal.currentHub getClient].options; NSArray *integrationClasses = [SentrySDKInternal defaultIntegrationClasses]; @@ -690,7 +682,7 @@ + (void)crash #if SENTRY_TARGET_PROFILING_SUPPORTED + (void)startProfiler { - SentryOptions *options = currentHub.client.options; + SentryOptionsInternal *options = currentHub.client.options; if (options == nil) { SENTRY_LOG_WARN(@"Cannot start profiling when options are nil."); return; @@ -745,7 +737,7 @@ + (void)stopProfiler return; } - SentryOptions *options = currentHub.client.options; + SentryOptionsInternal *options = currentHub.client.options; if (options == nil) { SENTRY_LOG_WARN(@"Cannot stop profiling when options are nil."); return; diff --git a/Sources/Sentry/SentrySampling.m b/Sources/Sentry/SentrySampling.m index 5d18a9c4249..a96e4ce12fd 100644 --- a/Sources/Sentry/SentrySampling.m +++ b/Sources/Sentry/SentrySampling.m @@ -1,12 +1,12 @@ #import "SentrySampling.h" #import "SentryInternalDefines.h" -#import "SentryOptions.h" +#import "SentryOptionsInternal.h" #import "SentrySampleDecision.h" #import "SentrySamplerDecision.h" #import "SentrySamplingContext.h" #import "SentrySwift.h" #import "SentryTransactionContext.h" -#import +#import NS_ASSUME_NONNULL_BEGIN @@ -57,7 +57,7 @@ #pragma mark - Public SentrySamplerDecision * -sentry_sampleTrace(SentrySamplingContext *context, SentryOptions *_Nullable options) +sentry_sampleTrace(SentrySamplingContext *context, SentryOptionsInternal *_Nullable options) { // check this transaction's sampling decision, if already decided if (context.transactionContext.sampled != kSentrySampleDecisionUndecided) { diff --git a/Sources/Sentry/SentryScreenshotIntegration.m b/Sources/Sentry/SentryScreenshotIntegration.m index 14d90ca6fb8..1d997db6e6a 100644 --- a/Sources/Sentry/SentryScreenshotIntegration.m +++ b/Sources/Sentry/SentryScreenshotIntegration.m @@ -7,7 +7,7 @@ # import "SentryEvent+Private.h" # import "SentryException.h" # import "SentryHub+Private.h" -# import "SentryOptions.h" +# import "SentryOptionsInternal.h" # import "SentrySDK+Private.h" # import "SentrySwift.h" @@ -26,13 +26,13 @@ @interface SentryScreenshotIntegration () -@property (nonatomic, strong) SentryOptions *options; +@property (nonatomic, strong) SentryOptionsInternal *options; @end @implementation SentryScreenshotIntegration -- (BOOL)installWithOptions:(nonnull SentryOptions *)options +- (BOOL)installWithOptions:(nonnull SentryOptionsInternal *)options { self.options = options; diff --git a/Sources/Sentry/SentrySessionReplayIntegration.m b/Sources/Sentry/SentrySessionReplayIntegration.m index cc2be17baab..1d8c712c312 100644 --- a/Sources/Sentry/SentrySessionReplayIntegration.m +++ b/Sources/Sentry/SentrySessionReplayIntegration.m @@ -7,7 +7,8 @@ # import "SentryHub+Private.h" # import "SentryInternalDefines.h" # import "SentryLogC.h" -# import "SentryOptions.h" +# import "SentryOptionsConverter.h" +# import "SentryOptionsInternal.h" # import "SentrySDK+Private.h" # import "SentryScope+Private.h" # import "SentrySerialization.h" @@ -46,7 +47,6 @@ - (void)newSceneActivate; @implementation SentrySessionReplayIntegration { BOOL _startedAsFullSession; SentryReplayOptions *_replayOptions; - SentryExperimentalOptions *_experimentalOptions; id _notificationCenter; id _rateLimits; id _currentScreenshotProvider; @@ -61,12 +61,14 @@ @implementation SentrySessionReplayIntegration { id _environmentChecker; } -+ (BOOL)shouldEnableForOptions:(SentryOptions *)options ++ (BOOL)shouldEnableForOptions:(SentryOptionsInternal *)options { return [SentrySessionReplay shouldEnableSessionReplayWithEnvironmentChecker:SentryDependencyContainer.sharedInstance .sessionReplayEnvironmentChecker - experimentalOptions:options.experimental]; + experimentalOptions:[SentryOptionsConverter + fromInternal:options] + .experimental]; } - (instancetype)init @@ -75,44 +77,42 @@ - (instancetype)init return self; } -- (instancetype)initForManualUse:(nonnull SentryOptions *)options +- (instancetype)initForManualUse:(nonnull SentryOptionsInternal *)options { if (self = [super init]) { - [self setupWith:options.sessionReplay - experimentalOptions:options.experimental + SentryReplayOptions *replayOptions = + [SentryOptionsConverter fromInternal:options].sessionReplay; + [self setupWith:replayOptions enableTouchTracker:options.enableSwizzling - enableViewRendererV2:options.sessionReplay.enableViewRendererV2 - enableFastViewRendering:options.sessionReplay.enableFastViewRendering]; - [self startWithOptions:options.sessionReplay - experimentalOptions:options.experimental - fullSession:YES]; + enableViewRendererV2:replayOptions.enableViewRendererV2 + enableFastViewRendering:replayOptions.enableFastViewRendering]; + [self startWithOptions:replayOptions fullSession:YES]; } return self; } -- (BOOL)installWithOptions:(nonnull SentryOptions *)options +- (BOOL)installWithOptions:(nonnull SentryOptionsInternal *)options { if ([super installWithOptions:options] == NO || [SentrySessionReplayIntegration shouldEnableForOptions:options] == NO) { return NO; } + SentryReplayOptions *replayOptions = + [SentryOptionsConverter fromInternal:options].sessionReplay; - [self setupWith:options.sessionReplay - experimentalOptions:options.experimental + [self setupWith:replayOptions enableTouchTracker:options.enableSwizzling - enableViewRendererV2:options.sessionReplay.enableViewRendererV2 - enableFastViewRendering:options.sessionReplay.enableFastViewRendering]; + enableViewRendererV2:replayOptions.enableViewRendererV2 + enableFastViewRendering:replayOptions.enableFastViewRendering]; return YES; } - (void)setupWith:(SentryReplayOptions *)replayOptions - experimentalOptions:(SentryExperimentalOptions *)experimentalOptions enableTouchTracker:(BOOL)touchTracker enableViewRendererV2:(BOOL)enableViewRendererV2 enableFastViewRendering:(BOOL)enableFastViewRendering { _replayOptions = replayOptions; - _experimentalOptions = experimentalOptions; _rateLimits = SentryDependencyContainer.sharedInstance.rateLimits; _dateProvider = SentryDependencyContainer.sharedInstance.dateProvider; @@ -359,9 +359,7 @@ - (void)runReplayForAvailableWindow if ([SentryDependencyContainer.sharedInstance.application getWindows].count > 0) { SENTRY_LOG_DEBUG(@"[Session Replay] Running replay for available window"); // If a window its already available start replay right away - [self startWithOptions:_replayOptions - experimentalOptions:_experimentalOptions - fullSession:_startedAsFullSession]; + [self startWithOptions:_replayOptions fullSession:_startedAsFullSession]; } else { SENTRY_LOG_DEBUG( @"[Session Replay] Waiting for a scene to be available to started the replay"); @@ -380,18 +378,14 @@ - (void)newSceneActivate removeObserver:self name:UISceneDidActivateNotification object:nil]; - [self startWithOptions:_replayOptions - experimentalOptions:_experimentalOptions - fullSession:_startedAsFullSession]; + [self startWithOptions:_replayOptions fullSession:_startedAsFullSession]; } - (void)startWithOptions:(SentryReplayOptions *)replayOptions - experimentalOptions:(SentryExperimentalOptions *)experimentalOptions fullSession:(BOOL)shouldReplayFullSession { SENTRY_LOG_DEBUG(@"[Session Replay] Starting session"); [self startWithOptions:replayOptions - experimentalOptions:experimentalOptions screenshotProvider:_currentScreenshotProvider ?: _viewPhotographer breadcrumbConverter:_currentBreadcrumbConverter ?: [[SentrySRDefaultBreadcrumbConverter alloc] init] @@ -399,7 +393,6 @@ - (void)startWithOptions:(SentryReplayOptions *)replayOptions } - (void)startWithOptions:(SentryReplayOptions *)replayOptions - experimentalOptions:(SentryExperimentalOptions *)experimentalOptions screenshotProvider:(id)screenshotProvider breadcrumbConverter:(id)breadcrumbConverter fullSession:(BOOL)shouldReplayFullSession diff --git a/Sources/Sentry/SentrySpan.m b/Sources/Sentry/SentrySpan.m index f0698aa600e..ca4a7273113 100644 --- a/Sources/Sentry/SentrySpan.m +++ b/Sources/Sentry/SentrySpan.m @@ -18,7 +18,7 @@ #if SENTRY_TARGET_PROFILING_SUPPORTED # import "SentryContinuousProfiler.h" -# import "SentryOptions+Private.h" +# import "SentryOptionsInternal+Private.h" # import "SentryProfilingConditionals.h" # import "SentrySDK+Private.h" #endif // SENTRY_TARGET_PROFILING_SUPPORTED diff --git a/Sources/Sentry/SentrySpotlightTransport.m b/Sources/Sentry/SentrySpotlightTransport.m index 82c83bf6219..92971d983f4 100644 --- a/Sources/Sentry/SentrySpotlightTransport.m +++ b/Sources/Sentry/SentrySpotlightTransport.m @@ -3,7 +3,7 @@ #import "SentryInternalDefines.h" #import "SentryLogC.h" #import "SentryNSURLRequestBuilder.h" -#import "SentryOptions.h" +#import "SentryOptionsInternal.h" #import "SentrySerialization.h" #import "SentrySwift.h" #import "SentryTransport.h" @@ -14,7 +14,7 @@ @interface SentrySpotlightTransport () @property (nonatomic, strong) id requestManager; @property (nonatomic, strong) SentryNSURLRequestBuilder *requestBuilder; -@property (nonatomic, strong) SentryOptions *options; +@property (nonatomic, strong) SentryOptionsInternal *options; @property (nonatomic, strong) SentryDispatchQueueWrapper *dispatchQueue; @property (nonatomic, strong, nullable) NSURL *apiURL; @@ -22,7 +22,7 @@ @interface SentrySpotlightTransport () @implementation SentrySpotlightTransport -- (id)initWithOptions:(SentryOptions *)options +- (id)initWithOptions:(SentryOptionsInternal *)options requestManager:(id)requestManager requestBuilder:(SentryNSURLRequestBuilder *)requestBuilder dispatchQueueWrapper:(SentryDispatchQueueWrapper *)dispatchQueueWrapper diff --git a/Sources/Sentry/SentrySwiftAsyncIntegration.m b/Sources/Sentry/SentrySwiftAsyncIntegration.m index d0d9ab26c53..3f3ad734108 100644 --- a/Sources/Sentry/SentrySwiftAsyncIntegration.m +++ b/Sources/Sentry/SentrySwiftAsyncIntegration.m @@ -1,10 +1,10 @@ #import "SentrySwiftAsyncIntegration.h" #import "SentryCrashStackCursor_SelfThread.h" -#import "SentryOptions.h" +#import "SentryOptionsInternal.h" @implementation SentrySwiftAsyncIntegration -- (BOOL)installWithOptions:(nonnull SentryOptions *)options +- (BOOL)installWithOptions:(nonnull SentryOptionsInternal *)options { sentrycrashsc_setSwiftAsyncStitching(options.swiftAsyncStacktraces); return options.swiftAsyncStacktraces; diff --git a/Sources/Sentry/SentryTimeToDisplayTracker.m b/Sources/Sentry/SentryTimeToDisplayTracker.m index f76ed3730b4..b75a690ff4d 100644 --- a/Sources/Sentry/SentryTimeToDisplayTracker.m +++ b/Sources/Sentry/SentryTimeToDisplayTracker.m @@ -4,7 +4,7 @@ # import "SentryInternalDefines.h" # import "SentryLogC.h" -# import "SentryOptions+Private.h" +# import "SentryOptionsInternal+Private.h" # import "SentryProfilingConditionals.h" # import "SentrySDK+Private.h" # import "SentrySpan.h" diff --git a/Sources/Sentry/SentryTraceContext.m b/Sources/Sentry/SentryTraceContext.m index 00cf681ab78..9d6b5deac09 100644 --- a/Sources/Sentry/SentryTraceContext.m +++ b/Sources/Sentry/SentryTraceContext.m @@ -4,7 +4,7 @@ #import "SentryDsn.h" #import "SentryInternalDefines.h" #import "SentryLogC.h" -#import "SentryOptions+Private.h" +#import "SentryOptionsInternal+Private.h" #import "SentrySampleDecision.h" #import "SentryScope+Private.h" #import "SentryScope+PrivateSwift.h" @@ -62,7 +62,7 @@ - (instancetype)initWithTraceId:(SentryId *)traceId return self; } -- (nullable instancetype)initWithScope:(SentryScope *)scope options:(SentryOptions *)options +- (nullable instancetype)initWithScope:(SentryScope *)scope options:(SentryOptionsInternal *)options { SentryTracer *tracer = [SentryTracer getTracer:scope.span]; if (tracer == nil) { @@ -73,7 +73,7 @@ - (nullable instancetype)initWithScope:(SentryScope *)scope options:(SentryOptio - (nullable instancetype)initWithTracer:(SentryTracer *)tracer scope:(nullable SentryScope *)scope - options:(SentryOptions *)options + options:(SentryOptionsInternal *)options { if (tracer.traceId == nil || options.parsedDsn == nil) { return nil; @@ -108,7 +108,7 @@ - (nullable instancetype)initWithTracer:(SentryTracer *)tracer } - (instancetype)initWithTraceId:(SentryId *)traceId - options:(SentryOptions *)options + options:(SentryOptionsInternal *)options replayId:(nullable NSString *)replayId; { return [[SentryTraceContext alloc] diff --git a/Sources/Sentry/SentryTracer.m b/Sources/Sentry/SentryTracer.m index 1ee10f444f8..4110f817eb2 100644 --- a/Sources/Sentry/SentryTracer.m +++ b/Sources/Sentry/SentryTracer.m @@ -7,7 +7,6 @@ #import "SentryLogC.h" #import "SentryNSDictionarySanitize.h" #import "SentryNoOpSpan.h" -#import "SentryOptions+Private.h" #import "SentryProfilingConditionals.h" #import "SentrySDK+Private.h" #import "SentrySamplerDecision.h" diff --git a/Sources/Sentry/SentryTransportAdapter.m b/Sources/Sentry/SentryTransportAdapter.m index f6aac067911..82693c6f73d 100644 --- a/Sources/Sentry/SentryTransportAdapter.m +++ b/Sources/Sentry/SentryTransportAdapter.m @@ -1,6 +1,6 @@ #import "SentryTransportAdapter.h" #import "SentryEvent.h" -#import "SentryOptions.h" +#import "SentryOptionsInternal.h" #import "SentrySwift.h" NS_ASSUME_NONNULL_BEGIN @@ -8,14 +8,14 @@ @interface SentryTransportAdapter () @property (nonatomic, strong) NSArray> *transports; -@property (nonatomic, strong) SentryOptions *options; +@property (nonatomic, strong) SentryOptionsInternal *options; @end @implementation SentryTransportAdapter - (instancetype)initWithTransports:(NSArray> *)transports - options:(SentryOptions *)options + options:(SentryOptionsInternal *)options { if (self = [super init]) { self.transports = transports; diff --git a/Sources/Sentry/SentryTransportFactory.m b/Sources/Sentry/SentryTransportFactory.m index a2948992960..699f1a5626c 100644 --- a/Sources/Sentry/SentryTransportFactory.m +++ b/Sources/Sentry/SentryTransportFactory.m @@ -4,7 +4,7 @@ #import "SentryInternalDefines.h" #import "SentryLogC.h" #import "SentryNSURLRequestBuilder.h" -#import "SentryOptions.h" +#import "SentryOptionsInternal.h" #import "SentryQueueableRequestManager.h" #import "SentrySpotlightTransport.h" #import "SentrySwift.h" @@ -18,7 +18,7 @@ @interface SentryTransportFactory () @implementation SentryTransportFactory -+ (NSArray> *)initTransports:(SentryOptions *)options ++ (NSArray> *)initTransports:(SentryOptionsInternal *)options dateProvider:(id)dateProvider sentryFileManager:(SentryFileManager *)sentryFileManager rateLimits:(id)rateLimits @@ -73,7 +73,7 @@ @implementation SentryTransportFactory return transports; } -+ (NSURLSession *)getUrlSession:(SentryOptions *_Nonnull)options ++ (NSURLSession *)getUrlSession:(SentryOptionsInternal *_Nonnull)options { if (options.urlSession) { SENTRY_LOG_DEBUG(@"Using URL session provided in SDK options for HTTP transport."); diff --git a/Sources/Sentry/SentryUIEventTrackingIntegration.m b/Sources/Sentry/SentryUIEventTrackingIntegration.m index af1ea1a00a0..49537539c36 100644 --- a/Sources/Sentry/SentryUIEventTrackingIntegration.m +++ b/Sources/Sentry/SentryUIEventTrackingIntegration.m @@ -4,8 +4,8 @@ # import # import -# import -# import +# import +# import # import # import @@ -17,7 +17,7 @@ @interface SentryUIEventTrackingIntegration () @implementation SentryUIEventTrackingIntegration -- (BOOL)installWithOptions:(SentryOptions *)options +- (BOOL)installWithOptions:(SentryOptionsInternal *)options { if (![super installWithOptions:options]) { return NO; diff --git a/Sources/Sentry/SentryUIViewControllerSwizzling.m b/Sources/Sentry/SentryUIViewControllerSwizzling.m index d77e77c1653..40360e16d4e 100644 --- a/Sources/Sentry/SentryUIViewControllerSwizzling.m +++ b/Sources/Sentry/SentryUIViewControllerSwizzling.m @@ -7,7 +7,7 @@ # import "SentrySubClassFinder.h" # import "SentrySwift.h" # import "SentrySwizzle.h" -# import +# import # import # import # import @@ -29,7 +29,7 @@ @interface UIApplication (SentryUIApplication) @interface SentryUIViewControllerSwizzling () -@property (nonatomic, strong) SentryOptions *options; +@property (nonatomic, strong) SentryOptionsInternal *options; @property (nonatomic, strong) SentryInAppLogic *inAppLogic; @property (nonatomic, strong) SentryDispatchQueueWrapper *dispatchQueue; @property (nonatomic, strong) id objcRuntimeWrapper; @@ -42,7 +42,7 @@ @interface SentryUIViewControllerSwizzling () @implementation SentryUIViewControllerSwizzling -- (instancetype)initWithOptions:(SentryOptions *)options +- (instancetype)initWithOptions:(SentryOptionsInternal *)options dispatchQueue:(SentryDispatchQueueWrapper *)dispatchQueue objcRuntimeWrapper:(id)objcRuntimeWrapper subClassFinder:(SentrySubClassFinder *)subClassFinder diff --git a/Sources/Sentry/SentryUseNSExceptionCallstackWrapper.m b/Sources/Sentry/SentryUseNSExceptionCallstackWrapper.m index 5118e920218..2dfcbc8fecb 100644 --- a/Sources/Sentry/SentryUseNSExceptionCallstackWrapper.m +++ b/Sources/Sentry/SentryUseNSExceptionCallstackWrapper.m @@ -1,7 +1,7 @@ #import "SentryUseNSExceptionCallstackWrapper.h" #import "SentryCrashStackEntryMapper.h" #import "SentryCrashSymbolicator.h" -#import "SentryOptions+Private.h" +#import "SentryOptionsInternal+Private.h" #import "SentrySDK+Private.h" #import "SentryStacktraceBuilder.h" #import "SentrySwift.h" @@ -58,7 +58,7 @@ - (instancetype)initWithName:(NSExceptionName)aName - (SentryCrashStackEntryMapper *)buildCrashStackToEntryMapper { - SentryOptions *options = SentrySDKInternal.options; + SentryOptionsInternal *options = SentrySDKInternal.options; SentryInAppLogic *inAppLogic = [[SentryInAppLogic alloc] initWithInAppIncludes:options.inAppIncludes]; diff --git a/Sources/Sentry/SentryUserFeedbackIntegration.m b/Sources/Sentry/SentryUserFeedbackIntegration.m index cc4a07d0e12..b22dfaf8585 100644 --- a/Sources/Sentry/SentryUserFeedbackIntegration.m +++ b/Sources/Sentry/SentryUserFeedbackIntegration.m @@ -1,6 +1,7 @@ #import "SentryUserFeedbackIntegration.h" #import "SentryInternalDefines.h" -#import "SentryOptions+Private.h" +#import "SentryOptionsConverter.h" +#import "SentryOptionsInternal+Private.h" #import "SentrySDK+Private.h" #import "SentrySwift.h" @@ -13,9 +14,10 @@ @implementation SentryUserFeedbackIntegration { SentryUserFeedbackIntegrationDriver *_driver; } -- (BOOL)installWithOptions:(SentryOptions *)options +- (BOOL)installWithOptions:(SentryOptionsInternal *)options { - if (options.userFeedbackConfiguration == nil) { + SentryOptions *convertedOptions = [SentryOptionsConverter fromInternal:options]; + if (convertedOptions.userFeedbackConfiguration == nil) { return NO; } @@ -25,7 +27,7 @@ - (BOOL)installWithOptions:(SentryOptions *)options = SentryDependencyContainer.sharedInstance.screenshotSource; _driver = [[SentryUserFeedbackIntegrationDriver alloc] initWithConfiguration:SENTRY_UNWRAP_NULLABLE(SentryUserFeedbackConfiguration, - options.userFeedbackConfiguration) + convertedOptions.userFeedbackConfiguration) delegate:self screenshotSource:screenshotSource]; return YES; diff --git a/Sources/Sentry/SentryViewHierarchyIntegration.m b/Sources/Sentry/SentryViewHierarchyIntegration.m index 3b5c37fbd56..a459f66c3e7 100644 --- a/Sources/Sentry/SentryViewHierarchyIntegration.m +++ b/Sources/Sentry/SentryViewHierarchyIntegration.m @@ -6,7 +6,7 @@ # import "SentryEvent+Private.h" # import "SentryException.h" # import "SentryHub+Private.h" -# import "SentryOptions.h" +# import "SentryOptionsInternal.h" # import "SentrySDK+Private.h" # import "SentrySwift.h" # if SENTRY_HAS_METRIC_KIT @@ -29,13 +29,13 @@ @interface SentryViewHierarchyIntegration () -@property (nonatomic, strong) SentryOptions *options; +@property (nonatomic, strong) SentryOptionsInternal *options; @end @implementation SentryViewHierarchyIntegration -- (BOOL)installWithOptions:(nonnull SentryOptions *)options +- (BOOL)installWithOptions:(nonnull SentryOptionsInternal *)options { if (![super installWithOptions:options]) { return NO; diff --git a/Sources/Sentry/SentryWatchdogTerminationLogic.m b/Sources/Sentry/SentryWatchdogTerminationLogic.m index 5d7e852089b..01cac1ad7c0 100644 --- a/Sources/Sentry/SentryWatchdogTerminationLogic.m +++ b/Sources/Sentry/SentryWatchdogTerminationLogic.m @@ -3,13 +3,13 @@ #if SENTRY_HAS_UIKIT -# import +# import # import # import @interface SentryWatchdogTerminationLogic () -@property (nonatomic, strong) SentryOptions *options; +@property (nonatomic, strong) SentryOptionsInternal *options; @property (nonatomic, strong) SentryCrashWrapper *crashAdapter; @property (nonatomic, strong) SentryAppStateManager *appStateManager; @@ -17,7 +17,7 @@ @interface SentryWatchdogTerminationLogic () @implementation SentryWatchdogTerminationLogic -- (instancetype)initWithOptions:(SentryOptions *)options +- (instancetype)initWithOptions:(SentryOptionsInternal *)options crashAdapter:(SentryCrashWrapper *)crashAdapter appStateManager:(SentryAppStateManager *)appStateManager { diff --git a/Sources/Sentry/SentryWatchdogTerminationTracker.m b/Sources/Sentry/SentryWatchdogTerminationTracker.m index 906b0eb1c4e..36030d1d2e2 100644 --- a/Sources/Sentry/SentryWatchdogTerminationTracker.m +++ b/Sources/Sentry/SentryWatchdogTerminationTracker.m @@ -7,14 +7,14 @@ #import #import #import -#import +#import #import #import #import @interface SentryWatchdogTerminationTracker () -@property (nonatomic, strong) SentryOptions *options; +@property (nonatomic, strong) SentryOptionsInternal *options; @property (nonatomic, strong) SentryWatchdogTerminationLogic *watchdogTerminationLogic; @property (nonatomic, strong) SentryDispatchQueueWrapper *dispatchQueue; @property (nonatomic, strong) SentryAppStateManager *appStateManager; @@ -25,7 +25,7 @@ @interface SentryWatchdogTerminationTracker () @implementation SentryWatchdogTerminationTracker -- (instancetype)initWithOptions:(SentryOptions *)options +- (instancetype)initWithOptions:(SentryOptionsInternal *)options watchdogTerminationLogic:(SentryWatchdogTerminationLogic *)watchdogTerminationLogic appStateManager:(SentryAppStateManager *)appStateManager dispatchQueueWrapper:(SentryDispatchQueueWrapper *)dispatchQueueWrapper diff --git a/Sources/Sentry/SentryWatchdogTerminationTrackingIntegration.m b/Sources/Sentry/SentryWatchdogTerminationTrackingIntegration.m index 0ffdc5e78a3..7b995ced64d 100644 --- a/Sources/Sentry/SentryWatchdogTerminationTrackingIntegration.m +++ b/Sources/Sentry/SentryWatchdogTerminationTrackingIntegration.m @@ -5,7 +5,8 @@ # import # import # import -# import +# import +# import # import # import # import @@ -37,7 +38,7 @@ - (instancetype)init return self; } -- (BOOL)installWithOptions:(SentryOptions *)options +- (BOOL)installWithOptions:(SentryOptionsInternal *)options { if (self.testConfigurationFilePath) { return NO; @@ -80,7 +81,8 @@ - (BOOL)installWithOptions:(SentryOptions *)options self.appStateManager = appStateManager; id scopeObserver = [SentryDependencyContainer.sharedInstance - getWatchdogTerminationScopeObserverWithOptions:options]; + getWatchdogTerminationScopeObserverWithOptions:[SentryOptionsConverter + fromInternal:options]]; [SentrySDKInternal.currentHub configureScope:^(SentryScope *_Nonnull outerScope) { // Add the observer to the scope so that it can be notified when the scope changes. diff --git a/Sources/Sentry/include/HybridPublic/PrivateSentrySDKOnly.h b/Sources/Sentry/include/HybridPublic/PrivateSentrySDKOnly.h index 3d7c7d79851..28b564ccf17 100644 --- a/Sources/Sentry/include/HybridPublic/PrivateSentrySDKOnly.h +++ b/Sources/Sentry/include/HybridPublic/PrivateSentrySDKOnly.h @@ -7,7 +7,7 @@ @class SentryDebugMeta; @class SentryScreenFrames; @class SentryAppStartMeasurement; -@class SentryOptions; +@class SentryOptionsInternal; @class SentryBreadcrumb; @class SentryUser; @class SentryEnvelope; @@ -114,7 +114,7 @@ typedef void (^SentryOnAppStartMeasurementAvailable)( @property (class, nonatomic, readonly, copy) NSString *installationID; -@property (class, nonatomic, readonly, copy) SentryOptions *options; +@property (class, nonatomic, readonly, copy) SentryOptionsInternal *options; /** * If enabled, the SDK won't send the app start measurement with the first transaction. Instead, if diff --git a/Sources/Sentry/include/HybridPublic/SentryBaseIntegration.h b/Sources/Sentry/include/HybridPublic/SentryBaseIntegration.h index 87edbbf5771..55b81c89976 100644 --- a/Sources/Sentry/include/HybridPublic/SentryBaseIntegration.h +++ b/Sources/Sentry/include/HybridPublic/SentryBaseIntegration.h @@ -32,15 +32,15 @@ typedef NS_OPTIONS(NSUInteger, SentryIntegrationOption) { kIntegrationOptionStartFramesTracker = 1 << 19, }; -@class SentryOptions; +@class SentryOptionsInternal; @interface SentryBaseIntegration : NSObject - (NSString *)integrationName; -- (BOOL)installWithOptions:(SentryOptions *)options; +- (BOOL)installWithOptions:(SentryOptionsInternal *)options; - (void)logWithOptionName:(NSString *)optionName; - (void)logWithReason:(NSString *)reason; -- (BOOL)shouldBeEnabledWithOptions:(SentryOptions *)options; +- (BOOL)shouldBeEnabledWithOptions:(SentryOptionsInternal *)options; - (SentryIntegrationOption)integrationOptions; - (void)uninstall; @end diff --git a/Sources/Sentry/include/HybridPublic/SentryIntegrationProtocol.h b/Sources/Sentry/include/HybridPublic/SentryIntegrationProtocol.h index 021d6a7acb7..6b08e193cb7 100644 --- a/Sources/Sentry/include/HybridPublic/SentryIntegrationProtocol.h +++ b/Sources/Sentry/include/HybridPublic/SentryIntegrationProtocol.h @@ -2,14 +2,14 @@ NS_ASSUME_NONNULL_BEGIN -@class SentryOptions; +@class SentryOptionsInternal; @protocol SentryIntegrationProtocol /** * Installs the integration and returns YES if successful. */ -- (BOOL)installWithOptions:(SentryOptions *)options NS_SWIFT_NAME(install(with:)); +- (BOOL)installWithOptions:(SentryOptionsInternal *)options NS_SWIFT_NAME(install(with:)); /** * Uninstalls the integration. diff --git a/Sources/Sentry/include/HybridPublic/SentryOptionsInternal.h b/Sources/Sentry/include/HybridPublic/SentryOptionsInternal.h deleted file mode 100644 index 5f042e733b5..00000000000 --- a/Sources/Sentry/include/HybridPublic/SentryOptionsInternal.h +++ /dev/null @@ -1,14 +0,0 @@ -#import - -@class SentryOptions; - -NS_ASSUME_NONNULL_BEGIN - -@interface SentryOptionsInternal : NSObject - -+ (nullable SentryOptions *)initWithDict:(NSDictionary *)options - didFailWithError:(NSError *_Nullable *_Nullable)error; - -@end - -NS_ASSUME_NONNULL_END diff --git a/Sources/Sentry/include/HybridPublic/SentrySessionReplayIntegration.h b/Sources/Sentry/include/HybridPublic/SentrySessionReplayIntegration.h index 7f67b6b68cd..c5f5a884534 100644 --- a/Sources/Sentry/include/HybridPublic/SentrySessionReplayIntegration.h +++ b/Sources/Sentry/include/HybridPublic/SentrySessionReplayIntegration.h @@ -18,7 +18,7 @@ NS_ASSUME_NONNULL_BEGIN @interface SentrySessionReplayIntegration : SentryBaseIntegration -- (instancetype)initForManualUse:(nonnull SentryOptions *)options; +- (instancetype)initForManualUse:(nonnull SentryOptionsInternal *)options; /** * Captures Replay. Used by the Hybrid SDKs. @@ -49,7 +49,7 @@ NS_ASSUME_NONNULL_BEGIN * Verifies the device environment and options and returns wether it is safe to enable * SessionReplay or not */ -+ (BOOL)shouldEnableForOptions:(SentryOptions *)options; ++ (BOOL)shouldEnableForOptions:(SentryOptionsInternal *)options; @end #endif // SENTRY_TARGET_REPLAY_SUPPORTED diff --git a/Sources/Sentry/include/SentryANRTrackerV1.h b/Sources/Sentry/include/SentryANRTrackerV1.h index 9d882ac0118..90b4af3380f 100644 --- a/Sources/Sentry/include/SentryANRTrackerV1.h +++ b/Sources/Sentry/include/SentryANRTrackerV1.h @@ -1,6 +1,6 @@ #import "SentryDefines.h" -@class SentryOptions; +@class SentryOptionsInternal; @class SentryCrashWrapper; @class SentryDispatchQueueWrapper; @class SentryThreadWrapper; diff --git a/Sources/Sentry/include/SentryClient.h b/Sources/Sentry/include/SentryClient.h index b159358b4bb..a89ede40b54 100644 --- a/Sources/Sentry/include/SentryClient.h +++ b/Sources/Sentry/include/SentryClient.h @@ -8,7 +8,7 @@ @class SentryEvent; @class SentryFeedback; -@class SentryOptions; +@class SentryOptionsInternal; @class SentryScope; @class SentryId; @class SentryTransaction; @@ -20,14 +20,14 @@ SENTRY_NO_INIT @property (nonatomic, assign, readonly) BOOL isEnabled; -@property (nonatomic, strong) SentryOptions *options; +@property (nonatomic, strong) SentryOptionsInternal *options; /** * Initializes a @c SentryClient. Pass in a dictionary of options. * @param options Options dictionary * @return An initialized @c SentryClient or @c nil if an error occurred. */ -- (_Nullable instancetype)initWithOptions:(SentryOptions *)options; +- (_Nullable instancetype)initWithOptions:(SentryOptionsInternal *)options; /** * Captures a manually created event and sends it to Sentry. @@ -110,7 +110,7 @@ SENTRY_NO_INIT - (void)flush:(NSTimeInterval)timeout NS_SWIFT_NAME(flush(timeout:)); /** - * Disables the client and calls flush with @c SentryOptions.shutdownTimeInterval . + * Disables the client and calls flush with @c SentryOptionsInternal.shutdownTimeInterval . */ - (void)close; diff --git a/Sources/Sentry/include/SentryDefaultAppStateManager.h b/Sources/Sentry/include/SentryDefaultAppStateManager.h index 5a64fce79e8..0bccf57a5a2 100644 --- a/Sources/Sentry/include/SentryDefaultAppStateManager.h +++ b/Sources/Sentry/include/SentryDefaultAppStateManager.h @@ -4,7 +4,7 @@ @class SentryCrashWrapper; @class SentryDispatchQueueWrapper; @class SentryFileManager; -@class SentryOptions; +@class SentryOptionsInternal; @protocol SentryNSNotificationCenterWrapper; diff --git a/Sources/Sentry/include/SentryDefaultThreadInspector.h b/Sources/Sentry/include/SentryDefaultThreadInspector.h index c87ab32426b..0fc9c4b66dc 100644 --- a/Sources/Sentry/include/SentryDefaultThreadInspector.h +++ b/Sources/Sentry/include/SentryDefaultThreadInspector.h @@ -2,7 +2,7 @@ #import "SentryDefines.h" #import -@class SentryOptions; +@class SentryOptionsInternal; @class SentryStacktrace; @class SentryStacktraceBuilder; @class SentryThread; @@ -18,7 +18,7 @@ SENTRY_NO_INIT andMachineContextWrapper:(id)machineContextWrapper symbolicate:(BOOL)symbolicate; -- (instancetype)initWithOptions:(SentryOptions *_Nullable)options; +- (instancetype)initWithOptions:(SentryOptionsInternal *_Nullable)options; - (nullable SentryStacktrace *)stacktraceForCurrentThreadAsyncUnsafe; diff --git a/Sources/Sentry/include/SentryDependencyContainerSwiftHelper.h b/Sources/Sentry/include/SentryDependencyContainerSwiftHelper.h index 2a17f0d13c4..a26df13b3bb 100644 --- a/Sources/Sentry/include/SentryDependencyContainerSwiftHelper.h +++ b/Sources/Sentry/include/SentryDependencyContainerSwiftHelper.h @@ -8,7 +8,7 @@ @class SentryHubInternal; @class SentryDispatchQueueWrapper; -@class SentryOptions; +@class SentryOptionsInternal; NS_ASSUME_NONNULL_BEGIN @@ -31,10 +31,11 @@ NS_ASSUME_NONNULL_BEGIN + (nullable NSArray *)windows; -// Since SentryOptions is in ObjC, Swift code can't see the SentryViewScreenshotOptions property -+ (BOOL)fastViewRenderingEnabled:(SentryOptions *)options; -+ (BOOL)viewRendererV2Enabled:(SentryOptions *)options; -+ (SentryDefaultRedactOptions *)redactOptions:(SentryOptions *)options; +// Since SentryOptionsInternal is in ObjC, Swift code can't see the SentryViewScreenshotOptions +// property ++ (BOOL)fastViewRenderingEnabled:(SentryOptionsInternal *)options; ++ (BOOL)viewRendererV2Enabled:(SentryOptionsInternal *)options; ++ (SentryDefaultRedactOptions *)redactOptions:(SentryOptionsInternal *)options; #endif // SENTRY_HAS_UIKIT diff --git a/Sources/Sentry/include/SentryFileManagerHelper.h b/Sources/Sentry/include/SentryFileManagerHelper.h index 39a0b00bdc4..23eab13cc15 100644 --- a/Sources/Sentry/include/SentryFileManagerHelper.h +++ b/Sources/Sentry/include/SentryFileManagerHelper.h @@ -8,7 +8,7 @@ NS_ASSUME_NONNULL_BEGIN @class SentryEvent; @class SentryEnvelope; @class SentryEnvelopeItem; -@class SentryOptions; +@class SentryOptionsInternal; @class SentrySession; @protocol SentryCurrentDateProvider; @@ -33,7 +33,7 @@ SENTRY_NO_INIT @property (nonatomic, copy, nullable) void (^handleEnvelopesLimit)(void); -- (nullable instancetype)initWithOptions:(SentryOptions *_Nullable)options +- (nullable instancetype)initWithOptions:(SentryOptionsInternal *_Nullable)options error:(NSError **)error NS_DESIGNATED_INITIALIZER; #pragma mark - Envelope diff --git a/Sources/Sentry/include/SentryLaunchProfiling.h b/Sources/Sentry/include/SentryLaunchProfiling.h index 033e7154965..1d5174618d2 100644 --- a/Sources/Sentry/include/SentryLaunchProfiling.h +++ b/Sources/Sentry/include/SentryLaunchProfiling.h @@ -7,7 +7,7 @@ @class SentryHubInternal; @class SentryId; -@class SentryOptions; +@class SentryOptionsInternal; @class SentryTracerConfiguration; @class SentryTransactionContext; @class SentryTracer; @@ -48,7 +48,7 @@ SENTRY_EXTERN void sentry_stopAndDiscardLaunchProfileTracer(SentryHubInternal *_ * sampling decisions through to SentryHub later when it needs to start a transaction for the * profile to be attached to. */ -SENTRY_EXTERN void sentry_configureLaunchProfilingForNextLaunch(SentryOptions *options); +SENTRY_EXTERN void sentry_configureLaunchProfilingForNextLaunch(SentryOptionsInternal *options); NS_ASSUME_NONNULL_END diff --git a/Sources/Sentry/include/SentryNSDataSwizzling.h b/Sources/Sentry/include/SentryNSDataSwizzling.h index f546443b415..ef663c23c2c 100644 --- a/Sources/Sentry/include/SentryNSDataSwizzling.h +++ b/Sources/Sentry/include/SentryNSDataSwizzling.h @@ -2,7 +2,7 @@ NS_ASSUME_NONNULL_BEGIN -@class SentryOptions; +@class SentryOptionsInternal; @class SentryFileIOTracker; @interface SentryNSDataSwizzling : NSObject @@ -10,7 +10,7 @@ SENTRY_NO_INIT @property (class, readonly) SentryNSDataSwizzling *shared; -- (void)startWithOptions:(SentryOptions *)options tracker:(SentryFileIOTracker *)tracker; +- (void)startWithOptions:(SentryOptionsInternal *)options tracker:(SentryFileIOTracker *)tracker; - (void)stop; diff --git a/Sources/Sentry/include/SentryNSFileManagerSwizzling.h b/Sources/Sentry/include/SentryNSFileManagerSwizzling.h index 020e9f99461..b6aa1c8529a 100644 --- a/Sources/Sentry/include/SentryNSFileManagerSwizzling.h +++ b/Sources/Sentry/include/SentryNSFileManagerSwizzling.h @@ -2,7 +2,7 @@ NS_ASSUME_NONNULL_BEGIN -@class SentryOptions; +@class SentryOptionsInternal; @class SentryFileIOTracker; @interface SentryNSFileManagerSwizzling : NSObject @@ -10,7 +10,7 @@ SENTRY_NO_INIT @property (class, readonly) SentryNSFileManagerSwizzling *shared; -- (void)startWithOptions:(SentryOptions *)options tracker:(SentryFileIOTracker *)tracker; +- (void)startWithOptions:(SentryOptionsInternal *)options tracker:(SentryFileIOTracker *)tracker; - (void)stop; diff --git a/Sources/Sentry/include/SentryOptionsConverter.h b/Sources/Sentry/include/SentryOptionsConverter.h new file mode 100644 index 00000000000..a4a9b0aee9a --- /dev/null +++ b/Sources/Sentry/include/SentryOptionsConverter.h @@ -0,0 +1,14 @@ +#import + +@class SentryOptionsInternal; +@class SentryOptions; + +NS_ASSUME_NONNULL_BEGIN + +@interface SentryOptionsConverter : NSObject + ++ (SentryOptions *)fromInternal:(SentryOptionsInternal *)internalOptions; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Sources/Sentry/include/SentryOptions+Private.h b/Sources/Sentry/include/SentryOptionsInternal+Private.h similarity index 73% rename from Sources/Sentry/include/SentryOptions+Private.h rename to Sources/Sentry/include/SentryOptionsInternal+Private.h index d9dd3bbd4fa..0e55f37285f 100644 --- a/Sources/Sentry/include/SentryOptions+Private.h +++ b/Sources/Sentry/include/SentryOptionsInternal+Private.h @@ -1,14 +1,14 @@ -#if __has_include() -# import +#if __has_include() +# import #else -# import "SentryOptions.h" +# import "SentryOptionsInternal.h" #endif NS_ASSUME_NONNULL_BEGIN FOUNDATION_EXPORT NSString *const kSentryDefaultEnvironment; -@interface SentryOptions () +@interface SentryOptionsInternal () #if SENTRY_TARGET_PROFILING_SUPPORTED @property (nonatomic, assign) BOOL enableProfiling_DEPRECATED_TEST_ONLY; @@ -32,16 +32,6 @@ FOUNDATION_EXPORT NSString *const kSentryDefaultEnvironment; @property (nonatomic, nullable, strong) SentryProfileOptions *profiling; #endif // SENTRY_TARGET_PROFILING_SUPPORTED -#if SENTRY_TARGET_REPLAY_SUPPORTED - -- (BOOL)enableViewRendererV2; - -- (BOOL)enableFastViewRendering; - -#endif // # SENTRY_TARGET_REPLAY_SUPPORTED - -@property (nonatomic, strong, nullable) SentryUserFeedbackConfiguration *userFeedbackConfiguration; - SENTRY_EXTERN BOOL sentry_isValidSampleRate(NSNumber *sampleRate); #if SENTRY_HAS_UIKIT diff --git a/Sources/Sentry/Public/SentryOptions.h b/Sources/Sentry/include/SentryOptionsInternal.h similarity index 93% rename from Sources/Sentry/Public/SentryOptions.h rename to Sources/Sentry/include/SentryOptionsInternal.h index 9673babc6da..bf8778d90b5 100644 --- a/Sources/Sentry/Public/SentryOptions.h +++ b/Sources/Sentry/include/SentryOptionsInternal.h @@ -12,15 +12,19 @@ NS_ASSUME_NONNULL_BEGIN @class SentryDsn; @class SentryHttpStatusCodeRange; @class SentryMeasurementValue; +@class SentryExperimentalOptions; @class SentryReplayOptions; #if SENTRY_TARGET_PROFILING_SUPPORTED @class SentryProfileOptions; #endif // SENTRY_TARGET_PROFILING_SUPPORTED @class SentryScope; @class SentryViewScreenshotOptions; +@class SentryOptions; -NS_SWIFT_NAME(Options) -@interface SentryOptions : NSObject +@interface SentryOptionsInternal : NSObject + ++ (nullable SentryOptions *)initWithDict:(NSDictionary *)options + didFailWithError:(NSError *_Nullable *_Nullable)error; /** * The DSN tells the SDK where to send the events to. If this value is not provided, the SDK will @@ -164,14 +168,6 @@ NS_SWIFT_NAME(Options) */ @property (nonatomic, assign) BOOL enableLogs; -#if !SWIFT_PACKAGE -/** - * Use this callback to drop or modify a log before the SDK sends it to Sentry. Return @c nil to - * drop the log. - */ -@property (nullable, nonatomic, copy) SentryBeforeSendLogCallback beforeSendLog NS_SWIFT_SENDABLE; -#endif // !SWIFT_PACKAGE - /** * This block can be used to modify the event before it will be serialized and sent. */ @@ -385,15 +381,6 @@ NS_SWIFT_NAME(Options) #endif // SENTRY_HAS_UIKIT -#if SENTRY_TARGET_REPLAY_SUPPORTED - -/** - * Settings to configure the session replay. - */ -@property (nonatomic, strong) SentryReplayOptions *sessionReplay; - -#endif // SENTRY_TARGET_REPLAY_SUPPORTED - /** * When enabled, the SDK tracks performance for HTTP requests if auto performance tracking and * @c enableSwizzling are enabled. @@ -454,13 +441,7 @@ NS_SWIFT_NAME(Options) * A list of string prefixes of framework names that belong to the app. * @note By default, this contains @c CFBundleExecutable to mark it as "in-app". */ -@property (nonatomic, readonly, copy) NSArray *inAppIncludes; - -/** - * Adds an item to the list of @c inAppIncludes. - * @param inAppInclude The prefix of the framework name. - */ -- (void)addInAppInclude:(NSString *)inAppInclude; +@property (nonatomic, copy) NSArray *inAppIncludes; /** * Set as delegate on the @c NSURLSession used for all network data-transfer tasks performed by @@ -514,19 +495,14 @@ NS_SWIFT_NAME(Options) @property (nonatomic, assign) BOOL enableCoreDataTracing; #if SENTRY_TARGET_PROFILING_SUPPORTED -/** - * Block used to configure the continuous profiling options. - * @warning Continuous profiling is an experimental feature and may contain bugs. - * @seealso @c SentryProfileOptions, @c SentrySDK.startProfiler and @c SentrySDK.stopProfiler . - */ -typedef void (^SentryProfilingConfigurationBlock)(SentryProfileOptions *_Nonnull profiling); /** * Configuration for the Sentry profiler. * @warning: Continuous profiling is an experimental feature and may still contain bugs. * @warning: Profiling is automatically disabled if a thread sanitizer is attached. */ -@property (nullable, nonatomic, copy) SentryProfilingConfigurationBlock configureProfiling; +@property (nullable, nonatomic, copy) SentryProfileOptions * (^configureProfiling) + (SentryProfileOptions *); #endif // SENTRY_TARGET_PROFILING_SUPPORTED @@ -692,19 +668,7 @@ typedef void (^SentryProfilingConfigurationBlock)(SentryProfileOptions *_Nonnull // Do not use this directly, instead use the non-underscored `experimental` property that is // defined through a Swift extension. -@property (nonatomic, readonly) NSObject *_swiftExperimentalOptions; - -#if TARGET_OS_IOS && SENTRY_HAS_UIKIT - -/** - * A block that can be defined that receives a user feedback configuration object to modify. - * @warning This is an experimental feature and may still have bugs. - */ -@property (nonatomic, copy, nullable) - SentryUserFeedbackConfigurationBlock configureUserFeedback NS_EXTENSION_UNAVAILABLE( - "Sentry User Feedback UI cannot be used from app extensions."); - -#endif // TARGET_OS_IOS && SENTRY_HAS_UIKIT +@property (nonatomic) NSObject *_swiftExperimentalOptions; @end diff --git a/Sources/Sentry/include/SentryPrivate.h b/Sources/Sentry/include/SentryPrivate.h index 494ddcf2c84..2c8cdc5ed46 100644 --- a/Sources/Sentry/include/SentryPrivate.h +++ b/Sources/Sentry/include/SentryPrivate.h @@ -47,7 +47,8 @@ #import "SentryMeta.h" #import "SentryMsgPackSerializer.h" #import "SentryNSDictionarySanitize.h" -#import "SentryOptions+Private.h" +#import "SentryOptionsInternal+Private.h" +#import "SentryOptionsInternal.h" #import "SentryPerformanceTracker.h" #import "SentryProfiler+Private.h" #import "SentrySDKInternal.h" diff --git a/Sources/Sentry/include/SentryProfiler+Private.h b/Sources/Sentry/include/SentryProfiler+Private.h index daa7b923aad..64c488133cf 100644 --- a/Sources/Sentry/include/SentryProfiler+Private.h +++ b/Sources/Sentry/include/SentryProfiler+Private.h @@ -9,7 +9,7 @@ @class SentryHubInternal; @class SentryId; @class SentryMetricProfiler; -@class SentryOptions; +@class SentryOptionsInternal; @class SentryProfileConfiguration; @class SentryProfileOptions; @class SentryProfilerState; @@ -35,7 +35,8 @@ typedef struct { * launch's profiling, stop tracer profiling if no automatic performance transaction is running, * start the continuous profiler if enabled and not profiling from launch. */ -SENTRY_EXTERN void sentry_sdkInitProfilerTasks(SentryOptions *options, SentryHubInternal *hub); +SENTRY_EXTERN void sentry_sdkInitProfilerTasks( + SentryOptionsInternal *options, SentryHubInternal *hub); SENTRY_EXTERN SentryProfileConfiguration *_Nullable sentry_profileConfiguration; @@ -43,7 +44,7 @@ SENTRY_EXTERN BOOL sentry_isLaunchProfileCorrelatedToTraces(void); SENTRY_EXTERN void sentry_reevaluateSessionSampleRate(void); -SENTRY_EXTERN void sentry_configureContinuousProfiling(SentryOptions *options); +SENTRY_EXTERN void sentry_configureContinuousProfiling(SentryOptionsInternal *options); /** * A wrapper around the low-level components used to gather sampled backtrace profiles. diff --git a/Sources/Sentry/include/SentrySDK+Private.h b/Sources/Sentry/include/SentrySDK+Private.h index 13299264e2c..830f2dc7472 100644 --- a/Sources/Sentry/include/SentrySDK+Private.h +++ b/Sources/Sentry/include/SentrySDK+Private.h @@ -1,4 +1,4 @@ -#if __has_include() +#if __has_include() # import #else # import "SentryProfilingConditionals.h" @@ -47,7 +47,7 @@ NS_ASSUME_NONNULL_BEGIN /** * The option used to start the SDK */ -@property (nonatomic, nullable, readonly, class) SentryOptions *options; +@property (nonatomic, nullable, readonly, class) SentryOptionsInternal *options; /** * Needed by hybrid SDKs as react-native to synchronously store an envelope to disk. diff --git a/Sources/Sentry/include/SentrySDKInternal.h b/Sources/Sentry/include/SentrySDKInternal.h index 20234a0bab4..e72b8c082e2 100644 --- a/Sources/Sentry/include/SentrySDKInternal.h +++ b/Sources/Sentry/include/SentrySDKInternal.h @@ -14,7 +14,7 @@ @class SentryFeedback; @class SentryFeedbackAPI; @class SentryId; -@class SentryOptions; +@class SentryOptionsInternal; @class SentryReplayApi; @class SentryScope; @class SentryTransactionContext; @@ -56,17 +56,7 @@ SENTRY_NO_INIT * @discussion Call this method on the main thread. When calling it from a background thread, the * SDK starts on the main thread async. */ -+ (void)startWithOptions:(SentryOptions *)options NS_SWIFT_NAME(start(options:)); - -/** - * Inits and configures Sentry (SentryHub, SentryClient) and sets up all integrations. Make sure to - * set a valid DSN. - * - * @discussion Call this method on the main thread. When calling it from a background thread, the - * SDK starts on the main thread async. - */ -+ (void)startWithConfigureOptions:(void (^)(SentryOptions *options))configureOptions - NS_SWIFT_NAME(start(configureOptions:)); ++ (void)startWithOptions:(SentryOptionsInternal *)options NS_SWIFT_NAME(start(options:)); /** * Captures a manually created event and sends it to Sentry. diff --git a/Sources/Sentry/include/SentrySampling.h b/Sources/Sentry/include/SentrySampling.h index 5afb9ae9ecb..4e6387f196e 100644 --- a/Sources/Sentry/include/SentrySampling.h +++ b/Sources/Sentry/include/SentrySampling.h @@ -3,7 +3,7 @@ NS_ASSUME_NONNULL_BEGIN -@class SentryOptions; +@class SentryOptionsInternal; @class SentrySamplerDecision; @class SentrySamplingContext; @@ -11,7 +11,7 @@ NS_ASSUME_NONNULL_BEGIN * Determines whether a trace should be sampled based on the context and options. */ SENTRY_EXTERN SentrySamplerDecision *sentry_sampleTrace( - SentrySamplingContext *context, SentryOptions *_Nullable options); + SentrySamplingContext *context, SentryOptionsInternal *_Nullable options); #if SENTRY_TARGET_PROFILING_SUPPORTED SENTRY_EXTERN SentrySamplerDecision *sentry_sampleProfileSession(float sessionSampleRate); diff --git a/Sources/Sentry/include/SentrySpotlightTransport.h b/Sources/Sentry/include/SentrySpotlightTransport.h index 4cc93b34500..b9ae99a3aaf 100644 --- a/Sources/Sentry/include/SentrySpotlightTransport.h +++ b/Sources/Sentry/include/SentrySpotlightTransport.h @@ -4,14 +4,14 @@ @class SentryDispatchQueueWrapper; @class SentryNSURLRequestBuilder; -@class SentryOptions; +@class SentryOptionsInternal; NS_ASSUME_NONNULL_BEGIN @interface SentrySpotlightTransport : NSObject SENTRY_NO_INIT -- (id)initWithOptions:(SentryOptions *)options +- (id)initWithOptions:(SentryOptionsInternal *)options requestManager:(id)requestManager requestBuilder:(SentryNSURLRequestBuilder *)requestBuilder dispatchQueueWrapper:(SentryDispatchQueueWrapper *)dispatchQueueWrapper; diff --git a/Sources/Sentry/include/SentryTraceContext+Private.h b/Sources/Sentry/include/SentryTraceContext+Private.h index 0191dc3a1e0..4a619faf1ca 100644 --- a/Sources/Sentry/include/SentryTraceContext+Private.h +++ b/Sources/Sentry/include/SentryTraceContext+Private.h @@ -4,7 +4,7 @@ @class SentryId; @class SentryTracer; @class SentryScope; -@class SentryOptions; +@class SentryOptionsInternal; NS_ASSUME_NONNULL_BEGIN @@ -38,7 +38,8 @@ NS_ASSUME_NONNULL_BEGIN /** * Initializes a SentryTraceContext with data from scope and options. */ -- (nullable instancetype)initWithScope:(SentryScope *)scope options:(SentryOptions *)options; +- (nullable instancetype)initWithScope:(SentryScope *)scope + options:(SentryOptionsInternal *)options; /** * Initializes a SentryTraceContext with data from a dictionary. @@ -50,7 +51,7 @@ NS_ASSUME_NONNULL_BEGIN */ - (nullable instancetype)initWithTracer:(SentryTracer *)tracer scope:(nullable SentryScope *)scope - options:(SentryOptions *)options; + options:(SentryOptionsInternal *)options; /** * Initializes a SentryTraceContext with data from a traceId, options and replayId. @@ -60,7 +61,7 @@ NS_ASSUME_NONNULL_BEGIN * @param replayId The current session replay. */ - (instancetype)initWithTraceId:(SentryId *)traceId - options:(SentryOptions *)options + options:(SentryOptionsInternal *)options replayId:(nullable NSString *)replayId; @end diff --git a/Sources/Sentry/include/SentryTransportAdapter.h b/Sources/Sentry/include/SentryTransportAdapter.h index b21ddd1e952..7af79375559 100644 --- a/Sources/Sentry/include/SentryTransportAdapter.h +++ b/Sources/Sentry/include/SentryTransportAdapter.h @@ -8,7 +8,7 @@ @class SentryEnvelopeItem; @class SentryEvent; @class SentryFeedback; -@class SentryOptions; +@class SentryOptionsInternal; @class SentrySession; @class SentryTraceContext; @@ -23,7 +23,7 @@ NS_ASSUME_NONNULL_BEGIN SENTRY_NO_INIT - (instancetype)initWithTransports:(NSArray> *)transports - options:(SentryOptions *)options; + options:(SentryOptionsInternal *)options; - (void)sendEvent:(SentryEvent *)event session:(SentrySession *)session diff --git a/Sources/Sentry/include/SentryTransportFactory.h b/Sources/Sentry/include/SentryTransportFactory.h index 29afbc40023..69fcea5c939 100644 --- a/Sources/Sentry/include/SentryTransportFactory.h +++ b/Sources/Sentry/include/SentryTransportFactory.h @@ -1,7 +1,7 @@ #import "SentryTransport.h" @class SentryFileManager; -@class SentryOptions; +@class SentryOptionsInternal; @protocol SentryCurrentDateProvider; @protocol SentryRateLimits; @@ -10,7 +10,7 @@ NS_ASSUME_NONNULL_BEGIN NS_SWIFT_NAME(TransportInitializer) @interface SentryTransportFactory : NSObject -+ (NSArray> *)initTransports:(SentryOptions *)options ++ (NSArray> *)initTransports:(SentryOptionsInternal *)options dateProvider:(id)dateProvider sentryFileManager:(SentryFileManager *)sentryFileManager rateLimits:(id)rateLimits; diff --git a/Sources/Sentry/include/SentryUIViewControllerSwizzling.h b/Sources/Sentry/include/SentryUIViewControllerSwizzling.h index b1f4100cc80..7631531b4eb 100644 --- a/Sources/Sentry/include/SentryUIViewControllerSwizzling.h +++ b/Sources/Sentry/include/SentryUIViewControllerSwizzling.h @@ -11,7 +11,7 @@ NS_ASSUME_NONNULL_BEGIN @class SentryBinaryImageCache; @class SentryDispatchQueueWrapper; -@class SentryOptions; +@class SentryOptionsInternal; @class SentrySubClassFinder; /** @@ -31,7 +31,7 @@ NS_ASSUME_NONNULL_BEGIN @interface SentryUIViewControllerSwizzling : NSObject SENTRY_NO_INIT -- (instancetype)initWithOptions:(SentryOptions *)options +- (instancetype)initWithOptions:(SentryOptionsInternal *)options dispatchQueue:(SentryDispatchQueueWrapper *)dispatchQueue objcRuntimeWrapper:(id)objcRuntimeWrapper subClassFinder:(SentrySubClassFinder *)subClassFinder diff --git a/Sources/Sentry/include/SentryWatchdogTerminationLogic.h b/Sources/Sentry/include/SentryWatchdogTerminationLogic.h index ee0add889ba..0784c7b2029 100644 --- a/Sources/Sentry/include/SentryWatchdogTerminationLogic.h +++ b/Sources/Sentry/include/SentryWatchdogTerminationLogic.h @@ -6,14 +6,14 @@ @class SentryAppStateManager; @class SentryCrashWrapper; @class SentryFileManager; -@class SentryOptions; +@class SentryOptionsInternal; NS_ASSUME_NONNULL_BEGIN @interface SentryWatchdogTerminationLogic : NSObject SENTRY_NO_INIT -- (instancetype)initWithOptions:(SentryOptions *)options +- (instancetype)initWithOptions:(SentryOptionsInternal *)options crashAdapter:(SentryCrashWrapper *)crashAdapter appStateManager:(SentryAppStateManager *)appStateManager; diff --git a/Sources/Sentry/include/SentryWatchdogTerminationTracker.h b/Sources/Sentry/include/SentryWatchdogTerminationTracker.h index 50e3e329f7e..306f5a11091 100644 --- a/Sources/Sentry/include/SentryWatchdogTerminationTracker.h +++ b/Sources/Sentry/include/SentryWatchdogTerminationTracker.h @@ -3,7 +3,7 @@ @class SentryAppStateManager; @class SentryDispatchQueueWrapper; @class SentryFileManager; -@class SentryOptions; +@class SentryOptionsInternal; @class SentryWatchdogTerminationLogic; @class SentryScopePersistentStore; @@ -23,7 +23,7 @@ static NSString *const SentryWatchdogTerminationMechanismType = @"watchdog_termi @interface SentryWatchdogTerminationTracker : NSObject SENTRY_NO_INIT -- (instancetype)initWithOptions:(SentryOptions *)options +- (instancetype)initWithOptions:(SentryOptionsInternal *)options watchdogTerminationLogic:(SentryWatchdogTerminationLogic *)watchdogTerminationLogic appStateManager:(SentryAppStateManager *)appStateManager dispatchQueueWrapper:(SentryDispatchQueueWrapper *)dispatchQueueWrapper diff --git a/Sources/SentrySwiftUI/SentryInternal/SentryInternal.h b/Sources/SentrySwiftUI/SentryInternal/SentryInternal.h index 523f6ba185d..7c0d3398d7d 100644 --- a/Sources/SentrySwiftUI/SentryInternal/SentryInternal.h +++ b/Sources/SentrySwiftUI/SentryInternal/SentryInternal.h @@ -125,6 +125,15 @@ typedef NS_ENUM(NSUInteger, SentrySpanStatus); @end +@class SentryReplayOptions; + +@interface SentryOptionsInternal : NSObject + +@property (nonatomic, strong) SentryReplayOptions *sessionReplay; +@property (nonatomic) BOOL enableTimeToFullDisplayTracing; + +@end + @class SentryHubInternal; #if __has_include("SentrySDKInternal.h") @@ -133,9 +142,9 @@ typedef NS_ENUM(NSUInteger, SentrySpanStatus); @interface SentrySDKInternal : NSObject #endif -@property (nonatomic, nullable, readonly, class) SentryOptions *options; +@property (nonatomic, nullable, readonly, class) SentryOptionsInternal *options; + (void)setCurrentHub:(nullable SentryHubInternal *)hub; -+ (void)setStartOptions:(nullable SentryOptions *)options NS_SWIFT_NAME(setStart(with:)); ++ (void)setStartOptions:(nullable SentryOptionsInternal *)options NS_SWIFT_NAME(setStart(with:)); @end diff --git a/Sources/Swift/Helper/SentryEnabledFeaturesBuilder.swift b/Sources/Swift/Helper/SentryEnabledFeaturesBuilder.swift index 7f191d5f91d..7c7aa8b50dc 100644 --- a/Sources/Swift/Helper/SentryEnabledFeaturesBuilder.swift +++ b/Sources/Swift/Helper/SentryEnabledFeaturesBuilder.swift @@ -27,11 +27,11 @@ final class SentryEnabledFeaturesBuilder: NSObject { } #if (os(iOS) || os(tvOS)) && !SENTRY_NO_UIKIT - if options.enableViewRendererV2() { + if options.sessionReplay.enableViewRendererV2 { // We keep the old name for backwards compatibility of the telemetry data. features.append("experimentalViewRenderer") } - if options.enableFastViewRendering() { + if options.sessionReplay.enableFastViewRendering { features.append("fastViewRendering") } #endif // (os(iOS) || os(tvOS)) && !SENTRY_NO_UIKIT diff --git a/Sources/Swift/Helper/SentryFileManager.swift b/Sources/Swift/Helper/SentryFileManager.swift index 79b9119c8a4..62d450b6686 100644 --- a/Sources/Swift/Helper/SentryFileManager.swift +++ b/Sources/Swift/Helper/SentryFileManager.swift @@ -29,7 +29,7 @@ @objc public init(options: Options?, dateProvider: SentryCurrentDateProvider, dispatchQueueWrapper: SentryDispatchQueueWrapper) throws { dispatchQueue = dispatchQueueWrapper self.dateProvider = dateProvider - helper = try SentryFileManagerHelper(options: options) + helper = try SentryFileManagerHelper(options: options?.toInternal()) super.init() helper.handleEnvelopesLimit = { [weak self] in diff --git a/Sources/Swift/Helper/SentrySDK.swift b/Sources/Swift/Helper/SentrySDK.swift index ea52b5ae680..afe229aac36 100644 --- a/Sources/Swift/Helper/SentrySDK.swift +++ b/Sources/Swift/Helper/SentrySDK.swift @@ -43,7 +43,7 @@ import Foundation /// - note: Call this method on the main thread. When calling it from a background thread, the /// SDK starts on the main thread async. @objc public static func start(options: Options) { - SentrySDKInternal.start(options: options) + SentrySDKInternal.start(options: options.toInternal()) } /// Inits and configures Sentry (`SentryHub`, `SentryClient`) and sets up all integrations. Make sure to @@ -51,7 +51,9 @@ import Foundation /// - note: Call this method on the main thread. When calling it from a background thread, the /// SDK starts on the main thread async. @objc public static func start(configureOptions: @escaping (Options) -> Void) { - SentrySDKInternal.start(configureOptions: configureOptions) + let options = Options() + configureOptions(options) + SentrySDKInternal.start(options: options.toInternal()) } // MARK: - Event Capture diff --git a/Sources/Swift/Helper/SentrySdkInfo.swift b/Sources/Swift/Helper/SentrySdkInfo.swift index d2c529f1371..4970102e664 100644 --- a/Sources/Swift/Helper/SentrySdkInfo.swift +++ b/Sources/Swift/Helper/SentrySdkInfo.swift @@ -9,7 +9,7 @@ import Foundation @_spi(Private) @objc public final class SentrySdkInfo: NSObject, SentrySerializable { @objc public static func global() -> Self { - Self(withOptions: SentrySDKInternal.currentHub().getClient()?.options) + Self(withOptions: SentrySDKInternal.currentHub().getClient()?.options.toOptions()) } /** diff --git a/Sources/Swift/Integrations/SessionReplay/SentryReplayOptions.swift b/Sources/Swift/Integrations/SessionReplay/SentryReplayOptions.swift index a0cade08a76..14871549eca 100644 --- a/Sources/Swift/Integrations/SessionReplay/SentryReplayOptions.swift +++ b/Sources/Swift/Integrations/SessionReplay/SentryReplayOptions.swift @@ -1,4 +1,5 @@ // swiftlint:disable file_length +@_implementationOnly import _SentryPrivate import Foundation @objcMembers @@ -397,4 +398,21 @@ public final class SentryReplayOptions: NSObject, SentryRedactOptions { super.init() } } + +// Makes the `sessionReplay` property visible as the Swift type `SentrySessionReplay`. +// This works around `SentrySessionReplay` being only forward declared in the objc header, resulting in +// compile time issues with SPM builds. +extension SentryOptionsInternal { + + /// Settings to configure the session replay. + var sessionReplay: SentryReplayOptions { + // Note: This property provides SentrySessionReplay type safety for SPM builds where the native Objective-C + // property cannot be used due to Swift-to-Objective-C bridging limitations. + // swiftlint:disable force_cast + get { return value(forKey: "sessionReplayDynamic") as! SentryReplayOptions } + // swiftlint:enable force_cast + set { setValue(newValue, forKey: "sessionReplayDynamic") } + } +} + // swiftlint:enable file_length diff --git a/Sources/Swift/Integrations/UserFeedback/Configuration/SentryUserFeedbackConfiguration.swift b/Sources/Swift/Integrations/UserFeedback/Configuration/SentryUserFeedbackConfiguration.swift index fc59add3095..2fbfbb32c9a 100644 --- a/Sources/Swift/Integrations/UserFeedback/Configuration/SentryUserFeedbackConfiguration.swift +++ b/Sources/Swift/Integrations/UserFeedback/Configuration/SentryUserFeedbackConfiguration.swift @@ -1,3 +1,4 @@ +@_implementationOnly import _SentryPrivate import Foundation #if os(iOS) && !SENTRY_NO_UIKIT import UIKit @@ -144,4 +145,15 @@ public final class SentryUserFeedbackConfiguration: NSObject { let margin: CGFloat = 32 } +extension SentryOptionsInternal { + var userFeedbackConfiguration: SentryUserFeedbackConfiguration? { + // Note: This property provides SentryUserFeedbackConfiguration type safety for SPM builds where the native Objective-C + // property cannot be used due to Swift-to-Objective-C bridging limitations. + // swiftlint:disable force_cast + get { return value(forKey: "userFeedbackDynamic") as! SentryUserFeedbackConfiguration? } + // swiftlint:enable force_cast + set { setValue(newValue, forKey: "userFeedbackDynamic") } + } +} + #endif // os(iOS) && !SENTRY_NO_UIKIT diff --git a/Sources/Swift/Options+Internal.swift b/Sources/Swift/Options+Internal.swift new file mode 100644 index 00000000000..fa09e06fedc --- /dev/null +++ b/Sources/Swift/Options+Internal.swift @@ -0,0 +1,153 @@ +@_implementationOnly import _SentryPrivate + +struct Mapping { + let fromOptions: (Options, inout SentryOptionsInternal) -> Void + let fromOptionsInternal: (SentryOptionsInternal, inout Options) -> Void + + init(optionsPath: WritableKeyPath, internalPath: WritableKeyPath) { + self.fromOptions = { $1[keyPath: internalPath] = $0[keyPath: optionsPath] } + self.fromOptionsInternal = { $1[keyPath: optionsPath] = $0[keyPath: internalPath] } + } +} + +#if os(macOS) +let macOSOnlyMapping = [Mapping(optionsPath: \.enableUncaughtNSExceptionReporting, internalPath: \.enableUncaughtNSExceptionReporting)] +#else +let macOSOnlyMapping = [Mapping]() +#endif + +#if (os(iOS) || os(tvOS) || os(visionOS)) && !SENTRY_NO_UIKIT +let uiKitMapping = [ + Mapping(optionsPath: \.enableUIViewControllerTracing, internalPath: \.enableUIViewControllerTracing), + Mapping(optionsPath: \.attachScreenshot, internalPath: \.attachScreenshot), + // Mapping(optionsPath: \.screenshot, internalPath: \.screenshot), + Mapping(optionsPath: \.attachViewHierarchy, internalPath: \.attachViewHierarchy), + Mapping(optionsPath: \.reportAccessibilityIdentifier, internalPath: \.reportAccessibilityIdentifier), + Mapping(optionsPath: \.enableUserInteractionTracing, internalPath: \.enableUserInteractionTracing), + Mapping(optionsPath: \.idleTimeout, internalPath: \.idleTimeout), + Mapping(optionsPath: \.enablePreWarmedAppStartTracing, internalPath: \.enablePreWarmedAppStartTracing), + Mapping(optionsPath: \.enableReportNonFullyBlockingAppHangs, internalPath: \.enableReportNonFullyBlockingAppHangs) +] +#else +let uiKitMapping = [Mapping]() +#endif + +#if (os(iOS) || os(tvOS)) && !SENTRY_NO_UIKIT +let sessionReplayMapping = [ + Mapping(optionsPath: \.sessionReplay, internalPath: \.sessionReplay) +] +#else +let sessionReplayMapping = [Mapping]() +#endif + +#if !(os(watchOS) || os(tvOS) || os(visionOS)) +let profilingMapping: [Mapping] = [ + // Mapping(optionsPath: \.configureProfiling, internalPath: \.configureProfiling) +] +#else +let profilingMapping = [Mapping]() +#endif + +#if os(iOS) && !SENTRY_NO_UIKIT +let userFeedbackMapping = [Mapping(optionsPath: \.userFeedbackConfiguration, internalPath: \.userFeedbackConfiguration)] +#else +let userFeedbackMapping = [Mapping]() +#endif + +#if canImport(MetricKit) && !os(tvOS) && !os(visionOS) +let metricKitMapping = [ + Mapping(optionsPath: \.enableMetricKit, internalPath: \.enableMetricKit), + Mapping(optionsPath: \.enableMetricKitRawPayload, internalPath: \.enableMetricKitRawPayload) +] +#else +let metricKitMapping = [Mapping]() +#endif + +#if os(watchOS) +let watchMapping = [Mapping]() +#else +let watchMapping = [Mapping(optionsPath: \.enableSigtermReporting, internalPath: \.enableSigtermReporting)] +#endif + +let keyPathMapping = [ + Mapping(optionsPath: \.dsn, internalPath: \.dsn), + Mapping(optionsPath: \.parsedDsn, internalPath: \.parsedDsn), + Mapping(optionsPath: \.debug, internalPath: \.debug), + //Mapping(optionsPath: \.diagnosticLevel, internalPath: \.diagnosticLevel), + Mapping(optionsPath: \.releaseName, internalPath: \.releaseName), + Mapping(optionsPath: \.dist, internalPath: \.dist), + Mapping(optionsPath: \.environment, internalPath: \.environment), + Mapping(optionsPath: \.enabled, internalPath: \.enabled), + Mapping(optionsPath: \.shutdownTimeInterval, internalPath: \.shutdownTimeInterval), + Mapping(optionsPath: \.enableCrashHandler, internalPath: \.enableCrashHandler), + Mapping(optionsPath: \.maxBreadcrumbs, internalPath: \.maxBreadcrumbs), + Mapping(optionsPath: \.enableNetworkBreadcrumbs, internalPath: \.enableNetworkBreadcrumbs), + Mapping(optionsPath: \.maxCacheItems, internalPath: \.maxCacheItems), + Mapping(optionsPath: \.beforeSend, internalPath: \.beforeSend), + Mapping(optionsPath: \.beforeSendSpan, internalPath: \.beforeSendSpan), + Mapping(optionsPath: \.enableLogs, internalPath: \.enableLogs), + Mapping(optionsPath: \.beforeSendLog, internalPath: \.beforeSendLog), + Mapping(optionsPath: \.beforeBreadcrumb, internalPath: \.beforeBreadcrumb), + Mapping(optionsPath: \.beforeCaptureScreenshot, internalPath: \.beforeCaptureScreenshot), + Mapping(optionsPath: \.beforeCaptureViewHierarchy, internalPath: \.beforeCaptureViewHierarchy), + Mapping(optionsPath: \.onCrashedLastRun, internalPath: \.onCrashedLastRun), + Mapping(optionsPath: \.sampleRate, internalPath: \.sampleRate), + Mapping(optionsPath: \.enableAutoSessionTracking, internalPath: \.enableAutoSessionTracking), + Mapping(optionsPath: \.enableGraphQLOperationTracking, internalPath: \.enableGraphQLOperationTracking), + Mapping(optionsPath: \.enableWatchdogTerminationTracking, internalPath: \.enableWatchdogTerminationTracking), + Mapping(optionsPath: \.sessionTrackingIntervalMillis, internalPath: \.sessionTrackingIntervalMillis), + Mapping(optionsPath: \.attachStacktrace, internalPath: \.attachStacktrace), + Mapping(optionsPath: \.maxAttachmentSize, internalPath: \.maxAttachmentSize), + Mapping(optionsPath: \.sendDefaultPii, internalPath: \.sendDefaultPii), + Mapping(optionsPath: \.enableAutoPerformanceTracing, internalPath: \.enableAutoPerformanceTracing), + Mapping(optionsPath: \.enablePersistingTracesWhenCrashing, internalPath: \.enablePersistingTracesWhenCrashing), + Mapping(optionsPath: \.initialScope, internalPath: \.initialScope), + Mapping(optionsPath: \.enableNetworkTracking, internalPath: \.enableNetworkTracking), + Mapping(optionsPath: \.enableFileIOTracing, internalPath: \.enableFileIOTracing), + Mapping(optionsPath: \.enableDataSwizzling, internalPath: \.enableDataSwizzling), + Mapping(optionsPath: \.enableFileManagerSwizzling, internalPath: \.enableFileManagerSwizzling), + Mapping(optionsPath: \.tracesSampleRate, internalPath: \.tracesSampleRate), + Mapping(optionsPath: \.tracesSampler, internalPath: \.tracesSampler), + Mapping(optionsPath: \.inAppIncludes, internalPath: \.inAppIncludes), + Mapping(optionsPath: \.inAppExcludes, internalPath: \.inAppExcludes), + Mapping(optionsPath: \.urlSessionDelegate, internalPath: \.urlSessionDelegate), + Mapping(optionsPath: \.urlSession, internalPath: \.urlSession), + Mapping(optionsPath: \.enableSwizzling, internalPath: \.enableSwizzling), + Mapping(optionsPath: \.swizzleClassNameExcludes, internalPath: \.swizzleClassNameExcludes), + Mapping(optionsPath: \.enableCoreDataTracing, internalPath: \.enableCoreDataTracing), + Mapping(optionsPath: \.sendClientReports, internalPath: \.sendClientReports), + Mapping(optionsPath: \.enableAppHangTracking, internalPath: \.enableAppHangTracking), + Mapping(optionsPath: \.appHangTimeoutInterval, internalPath: \.appHangTimeoutInterval), + Mapping(optionsPath: \.enableAutoBreadcrumbTracking, internalPath: \.enableAutoBreadcrumbTracking), + Mapping(optionsPath: \.enablePropagateTraceparent, internalPath: \.enablePropagateTraceparent), + Mapping(optionsPath: \.tracePropagationTargets, internalPath: \.tracePropagationTargets), + Mapping(optionsPath: \.enableCaptureFailedRequests, internalPath: \.enableCaptureFailedRequests), + Mapping(optionsPath: \.failedRequestStatusCodes, internalPath: \.failedRequestStatusCodes), + Mapping(optionsPath: \.failedRequestTargets, internalPath: \.failedRequestTargets), + Mapping(optionsPath: \.enableTimeToFullDisplayTracing, internalPath: \.enableTimeToFullDisplayTracing), + Mapping(optionsPath: \.swiftAsyncStacktraces, internalPath: \.swiftAsyncStacktraces), + Mapping(optionsPath: \.cacheDirectoryPath, internalPath: \.cacheDirectoryPath), + Mapping(optionsPath: \.enableSpotlight, internalPath: \.enableSpotlight), + Mapping(optionsPath: \.spotlightUrl, internalPath: \.spotlightUrl), + Mapping(optionsPath: \.experimental, internalPath: \.experimental) +] + macOSOnlyMapping + uiKitMapping + sessionReplayMapping + profilingMapping + userFeedbackMapping + metricKitMapping + watchMapping + +extension SentryOptionsInternal { + func toOptions() -> Options { + var options = Options() + keyPathMapping.forEach { mapping in + mapping.fromOptionsInternal(self, &options) + } + return options + } +} + +extension Options { + func toInternal() -> SentryOptionsInternal { + var options = SentryOptionsInternal() + keyPathMapping.forEach { mapping in + mapping.fromOptions(self, &options) + } + return options + } +} diff --git a/Sources/Swift/Options.swift b/Sources/Swift/Options.swift new file mode 100644 index 00000000000..ff731b11a06 --- /dev/null +++ b/Sources/Swift/Options.swift @@ -0,0 +1,525 @@ +// swiftlint:disable file_length +@objc(SentryOptions) public final class Options: NSObject { + /// The DSN tells the SDK where to send the events to. If this value is not provided, the SDK will + /// not send any events. + @objc public var dsn: String? + + /// The parsed internal DSN. + @objc public var parsedDsn: SentryDsn? + + /// Turns debug mode on or off. If debug is enabled SDK will attempt to print out useful debugging + /// information if something goes wrong. + /// @note Default is NO. + @objc public var debug: Bool = false + + /// Minimum LogLevel to be used if debug is enabled. + /// @note Default is kSentryLevelDebug. + @objc public var diagnosticLevel: SentryLevel = .debug + + /// This property will be filled before the event is sent. + @objc public var releaseName: String? + + /// The distribution of the application. + /// @discussion Distributions are used to disambiguate build or deployment variants of the same + /// release of an application. For example, the dist can be the build number of an Xcode build. + @objc public var dist: String? + + /// The environment used for events if no environment is set on the current scope. + /// @note Default value is "production". + @objc public var environment: String = "production" + + /// Specifies whether this SDK should send events to Sentry. If set to NO events will be + /// dropped in the client and not sent to Sentry. Default is YES. + @objc public var enabled: Bool = true + + /// Controls the flush duration when calling SentrySDK/close. + @objc public var shutdownTimeInterval: TimeInterval = 0 + + /// When enabled, the SDK sends crashes to Sentry. + /// @note Disabling this feature disables the SentryWatchdogTerminationTrackingIntegration, + /// because SentryWatchdogTerminationTrackingIntegration would falsely report every crash as watchdog + /// termination. + /// @note Default value is YES. + /// @note Crash reporting is automatically disabled if a debugger is attached. + @objc public var enableCrashHandler: Bool = true + + #if os(macOS) + /// When enabled, the SDK captures uncaught NSExceptions. As this feature uses swizzling, disabling + /// enableSwizzling also disables this feature. + /// + /// @discussion This option registers the `NSApplicationCrashOnExceptions` UserDefault, + /// so your macOS application crashes when an uncaught exception occurs. As the Cocoa Frameworks are + /// generally not exception-safe on macOS, we recommend this approach because the application could + /// otherwise end up in a corrupted state. + /// + /// @warning Don't use this in combination with `SentryCrashExceptionApplication`. Either enable this + /// feature or use the `SentryCrashExceptionApplication`. Having both enabled can lead to duplicated + /// reports. + /// + /// @note Default value is NO. + @objc public var enableUncaughtNSExceptionReporting: Bool = false + #endif + + #if !os(watchOS) + /// When enabled, the SDK reports SIGTERM signals to Sentry. + /// + /// It's crucial for developers to understand that the OS sends a SIGTERM to their app as a prelude + /// to a graceful shutdown, before resorting to a SIGKILL. This SIGKILL, which your app can't catch + /// or ignore, is a direct order to terminate your app's process immediately. Developers should be + /// aware that their app can receive a SIGTERM in various scenarios, such as CPU or disk overuse, + /// watchdog terminations, or when the OS updates your app. + /// + /// @note The default value is NO. + @objc public var enableSigtermReporting: Bool = false + #endif + + /// How many breadcrumbs do you want to keep in memory? + /// @note Default is 100. + @objc public var maxBreadcrumbs: UInt = 100 + + /// When enabled, the SDK adds breadcrumbs for each network request. As this feature uses swizzling, + /// disabling enableSwizzling also disables this feature. + /// @discussion If you want to enable or disable network tracking for performance monitoring, please + /// use enableNetworkTracking instead. + /// @note Default value is YES. + @objc public var enableNetworkBreadcrumbs: Bool = true + + /// The maximum number of envelopes to keep in cache. + /// @note Default is 30. + @objc public var maxCacheItems: UInt = 30 + + /// This block can be used to modify the event before it will be serialized and sent. + @objc public var beforeSend: SentryBeforeSendEventCallback? + + /// Use this callback to drop or modify a span before the SDK sends it to Sentry. Return nil to + /// drop the span. + @objc public var beforeSendSpan: SentryBeforeSendSpanCallback? + + /// When enabled, the SDK sends logs to Sentry. Logs can be captured using the SentrySDK.logger + /// API, which provides structured logging with attributes. + /// @note Default value is NO. + @objc public var enableLogs: Bool = false + + /// Use this callback to drop or modify a log before the SDK sends it to Sentry. Return nil to + /// drop the log. + @objc public var beforeSendLog: SentryBeforeSendLogCallback? + + /// This block can be used to modify the breadcrumb before it will be serialized and sent. + @objc public var beforeBreadcrumb: SentryBeforeBreadcrumbCallback? + + /// You can use this callback to decide if the SDK should capture a screenshot or not. Return true + /// if the SDK should capture a screenshot, return false if not. This callback doesn't work for + /// crashes. + @objc public var beforeCaptureScreenshot: SentryBeforeCaptureScreenshotCallback? + + /// You can use this callback to decide if the SDK should capture a view hierarchy or not. Return + /// true if the SDK should capture a view hierarchy, return false if not. This callback doesn't + /// work for crashes. + @objc public var beforeCaptureViewHierarchy: SentryBeforeCaptureScreenshotCallback? + + /// A block called shortly after the initialization of the SDK when the last program execution + /// terminated with a crash. + /// @discussion This callback is only executed once during the entire run of the program to avoid + /// multiple callbacks if there are multiple crash events to send. This can happen when the program + /// terminates with a crash before the SDK can send the crash event. You can look into beforeSend + /// if you prefer a callback for every event. + /// @warning It is not guaranteed that this is called on the main thread. + /// @note Crash reporting is automatically disabled if a debugger is attached. + @objc public var onCrashedLastRun: SentryOnCrashedLastRunCallback? + + /// Indicates the percentage of events being sent to Sentry. + /// @discussion Specifying 0 discards all events, 1.0 or nil sends all events, 0.01 collects 1% of + /// all events. + /// @note The value needs to be >= 0.0 and <= 1.0. When setting a value out of range the SDK sets + /// it to the default of 1.0. + /// @note The default is 1. + @objc public var sampleRate: NSNumber? + + /// Whether to enable automatic session tracking or not. + /// @note Default is YES. + @objc public var enableAutoSessionTracking: Bool = true + + /// Whether to attach the top level `operationName` node of HTTP json requests to HTTP breadcrumbs + /// @note Default is NO. + @objc public var enableGraphQLOperationTracking: Bool = false + + /// Whether to enable Watchdog Termination tracking or not. + /// @note This feature requires the SentryCrashIntegration being enabled, otherwise it would + /// falsely report every crash as watchdog termination. + /// @note Default is YES. + @objc public var enableWatchdogTerminationTracking: Bool = true + + /// The interval to end a session after the App goes to the background. + /// @note The default is 30 seconds. + @objc public var sessionTrackingIntervalMillis: UInt = 30_000 + + /// When enabled, stack traces are automatically attached to all messages logged. Stack traces are + /// always attached to exceptions but when this is set stack traces are also sent with messages. + /// Stack traces are only attached for the current thread. + /// @note This feature is enabled by default. + @objc public var attachStacktrace: Bool = true + + /// The maximum size for each attachment in bytes. + /// @note Default is 100 MiB (100 ✕ 1024 ✕ 1024 bytes). + /// @note Please also check the maximum attachment size of relay to make sure your attachments don't + /// get discarded there: + /// https://docs.sentry.io/product/relay/options/ + @objc public var maxAttachmentSize: UInt = 100 * 1_024 * 1_024 + + /// When enabled, the SDK sends personal identifiable along with events. + /// @note The default is NO. + /// @discussion When the user of an event doesn't contain an IP address, and this flag is YES, the + /// SDK sets sdk.settings.infer_ip to auto to instruct the server to use the connection IP address as + /// the user address. Due to backward compatibility concerns, Sentry sets sdk.settings.infer_ip to + /// auto out of the box for Cocoa. If you want to stop Sentry from using the connections IP address, + /// you have to enable Prevent Storing of IP Addresses in your project settings in Sentry. + @objc public var sendDefaultPii: Bool = false + + /// When enabled, the SDK tracks performance for UIViewController subclasses and HTTP requests + /// automatically. It also measures the app start and slow and frozen frames. + /// @note The default is YES. + /// @note Performance Monitoring must be enabled for this flag to take effect. See: + /// https://docs.sentry.io/platforms/apple/performance/ + @objc public var enableAutoPerformanceTracing: Bool = true + + /// WARNING: This is an experimental feature and may still have bugs. + /// + /// When enabled, the SDK finishes the ongoing transaction bound to the scope and links them to the + /// crash event when your app crashes. The SDK skips adding profiles to increase the chance of + /// keeping the transaction. + /// + /// @note The default is NO. + @objc public var enablePersistingTracesWhenCrashing: Bool = false + + /// A block that configures the initial scope when starting the SDK. + /// @discussion The block receives a suggested default scope. You can either configure and return + /// this, or create your own scope instead. + /// @note The default simply returns the passed in scope. + @objc public var initialScope: ((Scope) -> Scope) = { return $0 } + + #if (os(iOS) || os(tvOS) || os(visionOS)) && !SENTRY_NO_UIKIT + + /// When enabled, the SDK tracks performance for UIViewController subclasses. + /// @warning This feature is not available in @c DebugWithoutUIKit and @c ReleaseWithoutUIKit + /// configurations even when targeting iOS or tvOS platforms. + /// @note The default is @c YES . + @objc public var enableUIViewControllerTracing: Bool = true + + /// Automatically attaches a screenshot when capturing an error or exception. + /// @warning This feature is not available in @c DebugWithoutUIKit and @c ReleaseWithoutUIKit + /// configurations even when targeting iOS or tvOS platforms. + /// @note Default value is @c NO . + @objc public var attachScreenshot: Bool = false + + /// Settings to configure screenshot attachments. + @objc public var screenshot: SentryViewScreenshotOptions = SentryViewScreenshotOptions() + + /// @warning This is an experimental feature and may still have bugs. + /// @brief Automatically attaches a textual representation of the view hierarchy when capturing an + /// error event. + /// @warning This feature is not available in @c DebugWithoutUIKit and @c ReleaseWithoutUIKit + /// configurations even when targeting iOS or tvOS platforms. + /// @note Default value is @c NO . + @objc public var attachViewHierarchy: Bool = false + + /// @brief If enabled, view hierarchy attachment will contain view `accessibilityIdentifier`. + /// Set it to @c NO if your project uses `accessibilityIdentifier` for PII. + /// @warning This feature is not available in @c DebugWithoutUIKit and @c ReleaseWithoutUIKit + /// configurations even when targeting iOS or tvOS platforms. + /// @note Default value is @c YES. + @objc public var reportAccessibilityIdentifier: Bool = true + + /// When enabled, the SDK creates transactions for UI events like buttons clicks, switch toggles, + /// and other ui elements that uses UIControl @c sendAction:to:forEvent: + /// @warning This feature is not available in @c DebugWithoutUIKit and @c ReleaseWithoutUIKit + /// configurations even when targeting iOS or tvOS platforms. + /// @note Default value is @c YES . + @objc public var enableUserInteractionTracing: Bool = true + + /// How long an idle transaction waits for new children after all its child spans finished. Only UI + /// event transactions are idle transactions. + /// @warning This feature is not available in @c DebugWithoutUIKit and @c ReleaseWithoutUIKit + /// configurations even when targeting iOS or tvOS platforms. + /// @note The default is 3 seconds. + @objc public var idleTimeout: TimeInterval = 3.0 + + /// Report pre-warmed app starts by dropping the first app start spans if pre-warming paused + /// during these steps. This approach will shorten the app start duration, but it represents the + /// duration a user has to wait after clicking the app icon until the app is responsive. + /// + /// @note You can filter for different app start types in Discover with + /// @c app_start_type:cold.prewarmed , + /// @c app_start_type:warm.prewarmed , @c app_start_type:cold , and @c app_start_type:warm . + /// + /// @warning This feature is not available in @c DebugWithoutUIKit and @c ReleaseWithoutUIKit + /// configurations even when targeting iOS or tvOS platforms. + /// + /// @note Default value is @c YES . + @objc public var enablePreWarmedAppStartTracing: Bool = true + + /// When enabled the SDK reports non-fully-blocking app hangs. A non-fully-blocking app hang is when + /// the app appears stuck to the user but can still render a few frames. + /// + /// @note The default is @c YES. + @objc public var enableReportNonFullyBlockingAppHangs: Bool = true + + #endif + + #if (os(iOS) || os(tvOS)) && !SENTRY_NO_UIKIT + + @objc public var sessionReplay = SentryReplayOptions() + + #endif + + /// When enabled, the SDK tracks performance for HTTP requests if auto performance tracking and + /// @c enableSwizzling are enabled. + /// @note The default is @c YES . + /// @discussion If you want to enable or disable network breadcrumbs, please use + /// @c enableNetworkBreadcrumbs instead. + @objc public var enableNetworkTracking: Bool = true + + /// When enabled, the SDK tracks performance for file IO reads and writes with NSData if auto + /// performance tracking and enableSwizzling are enabled. + /// @note The default is @c YES . + @objc public var enableFileIOTracing: Bool = true + + /// When enabled, the SDK tracks performance for file IO reads and writes with NSData if auto + /// performance tracking and enableSwizzling are enabled. + /// @note The default is @c YES . + @objc public var enableDataSwizzling: Bool = true + + /// When enabled, the SDK tracks performance for file IO operations with NSFileManager if auto + /// performance tracking and enableSwizzling are enabled. + /// @note The default is @c NO . + @objc public var enableFileManagerSwizzling: Bool = false + + /// Indicates the percentage of the tracing data that is collected. + /// @discussion Specifying @c 0 or @c nil discards all trace data, @c 1.0 collects all trace data, + /// @c 0.01 collects 1% of all trace data. + /// @note The value needs to be >= 0.0 and \<= 1.0. When setting a value out of range the SDK sets it + /// to the default. + /// @note The default is @c 0 . + @objc public var tracesSampleRate: NSNumber? + + /// A callback to a user defined traces sampler function. + /// @discussion Specifying @c 0 or @c nil discards all trace data, @c 1.0 collects all trace data, + /// @c 0.01 collects 1% of all trace data. + /// @note The value needs to be >= 0.0 and \<= 1.0. When setting a value out of range the SDK sets it + /// to the default of @c 0 . + @objc public var tracesSampler: SentryTracesSamplerCallback? + + /// If tracing is enabled or not. + /// @discussion @c YES if @c tracesSampleRateis > @c 0 and \<= @c 1 + /// or a @c tracesSampler is set, otherwise @c NO. + @objc public var isTracingEnabled: Bool { + (tracesSampleRate?.doubleValue ?? 0) > 0 && (tracesSampleRate?.doubleValue ?? 0) <= 1 || tracesSampler != nil + } + + /// A list of string prefixes of framework names that belong to the app. + /// @note This option takes precedence over @c inAppExcludes. + /// @note By default, this contains @c CFBundleExecutable to mark it as "in-app". + @objc public internal(set) var inAppIncludes: [String] = { + if let executable = Bundle.main.object(forInfoDictionaryKey: "CFBundleExecutable") as? String { + return [executable] + } + return [] + }() + + /// Adds an item to the list of inAppIncludes. + /// - Parameter inAppInclude: The prefix of the framework name. + @objc public func add(inAppInclude: String) { + inAppIncludes.append(inAppInclude) + } + + /// A list of string prefixes of framework names that do not belong to the app, but rather to + /// third-party frameworks. + /// By default, frameworks considered not part of the app will be hidden from stack traces. + /// This option can be overridden using inAppIncludes. + @objc public internal(set) var inAppExcludes: [String] = [] + + /// Adds an item to the list of inAppExcludes. + /// - Parameter inAppExclude: The prefix of the framework name. + @objc public func add(inAppExclude: String) { + inAppExcludes.append(inAppExclude) + } + + /// Set as delegate on the URLSession used for all network data-transfer tasks performed by Sentry. + /// The SDK ignores this option when using urlSession. + @objc public weak var urlSessionDelegate: URLSessionDelegate? + + /// Use this property so the transport uses this URLSession with your configuration for + /// sending requests to Sentry. If not set, the SDK will create a new URLSession with + /// URLSessionConfiguration.ephemeral. + @objc public var urlSession: URLSession? + + /// Whether the SDK should use swizzling or not. + /// When turned off the following features are disabled: breadcrumbs for touch events and + /// navigation with UIViewControllers, automatic instrumentation for UIViewControllers, + /// automatic instrumentation for HTTP requests, automatic instrumentation for file IO with + /// NSData, and automatically added sentry-trace header to HTTP requests for distributed tracing. + /// Default is true. + @objc public var enableSwizzling: Bool = true + + /// A set of class names to ignore for swizzling. + /// The SDK checks if a class name of a class to swizzle contains a class name of this array. + /// For example, if you add MyUIViewController to this list, the SDK excludes the following classes + /// from swizzling: YourApp.MyUIViewController, YourApp.MyUIViewControllerA, MyApp.MyUIViewController. + /// Default is an empty set. + @objc public var swizzleClassNameExcludes: Set = [] + + /// When enabled, the SDK tracks the performance of Core Data operations. It requires enabling + /// performance monitoring. The default is true. + /// See: https://docs.sentry.io/platforms/apple/performance/ + @objc public var enableCoreDataTracing: Bool = true + +#if !(os(watchOS) || os(tvOS) || os(visionOS)) + + /// Configuration for the Sentry profiler. + /// @warning: Continuous profiling is an experimental feature and may still contain bugs. + /// @warning: Profiling is automatically disabled if a thread sanitizer is attached. + @objc public var configureProfiling: ((SentryProfileOptions) -> Void)? + +#endif // SENTRY_TARGET_PROFILING_SUPPORTED + + /// Whether to send client reports, which contain statistics about discarded events. + /// @note The default is @c YES. + /// @see + @objc public var sendClientReports: Bool = true + + /// When enabled, the SDK tracks when the application stops responding for a specific amount of + /// time defined by the @c appHangTimeoutInterval option. + /// + /// On iOS, tvOS and visionOS, the SDK can differentiate between fully-blocking and non-fully + /// blocking app hangs. + /// A fully-blocking app hang is when the main thread is stuck completely, and the app can't render a + /// single frame. A non-fully-blocking app hang is when the app appears stuck to the user but can still + /// render a few frames. Fully-blocking app hangs are more actionable because the stacktrace shows the + /// exact blocking location on the main thread. As the main thread isn't completely blocked, + /// non-fully-blocking app hangs can have a stacktrace that doesn't highlight the exact blocking + /// location. + /// + /// You can use @c enableReportNonFullyBlockingAppHangs to ignore non-fully-blocking app hangs. + /// + /// @note The default is @c YES + /// @note App Hang tracking is automatically disabled if a debugger is attached. + @objc public var enableAppHangTracking: Bool = true + + /// The minimum amount of time an app should be unresponsive to be classified as an App Hanging. + /// @note The actual amount may be a little longer. + /// @note Avoid using values lower than 100ms, which may cause a lot of app hangs events being + /// transmitted. + /// @note The default value is 2 seconds. + @objc public var appHangTimeoutInterval: TimeInterval = 2.0 + + /// When enabled, the SDK adds breadcrumbs for various system events. + /// @note Default value is @c YES. + @objc public var enableAutoBreadcrumbTracking: Bool = true + + /// When enabled, the SDK propagates the W3C Trace Context HTTP header traceparent on outgoing HTTP + /// requests. + /// + /// @discussion This is useful when the receiving services only support OTel/W3C propagation. The + /// traceparent header is only sent when this option is @c YES and the request matches @c + /// tracePropagationTargets. + /// + /// @note Default value is @c NO. + @objc public var enablePropagateTraceparent: Bool = false + + /// An array of hosts or regexes that determines if outgoing HTTP requests will get + /// extra @c trace_id and @c baggage headers added. + /// @discussion This array can contain instances of @c NSString which should match the URL (using + /// @c contains ), and instances of @c NSRegularExpression, which will be used to check the whole + /// URL. + /// @note The default value adds the header to all outgoing requests. + /// @see https://docs.sentry.io/platforms/apple/configuration/options/#trace-propagation-targets + @objc public var tracePropagationTargets: [Any] = [] + + /// When enabled, the SDK captures HTTP Client errors. + /// @note This feature requires @c enableSwizzling enabled as well. + /// @note Default value is @c YES. + @objc public var enableCaptureFailedRequests: Bool = true + + /// The SDK will only capture HTTP Client errors if the HTTP Response status code is within the + /// defined range. + /// @note Defaults to 500 - 599. + @objc public var failedRequestStatusCodes: [HttpStatusCodeRange] = [] + + /// An array of hosts or regexes that determines if HTTP Client errors will be automatically + /// captured. + /// @discussion This array can contain instances of @c NSString which should match the URL (using + /// @c contains ), and instances of @c NSRegularExpression, which will be used to check the whole + /// URL. + /// @note The default value automatically captures HTTP Client errors of all outgoing requests. + @objc public var failedRequestTargets: [Any] = [] + + #if canImport(MetricKit) && !os(tvOS) && !os(visionOS) + + /// Use this feature to enable the Sentry MetricKit integration. + /// + /// @brief When enabled, the SDK sends @c MXDiskWriteExceptionDiagnostic, @c MXCPUExceptionDiagnostic + /// and + /// @c MXHangDiagnostic to Sentry. The SDK supports this feature from iOS 15 and later and macOS 12 + /// and later because, on these versions, @c MetricKit delivers diagnostic reports immediately, which + /// allows the Sentry SDK to apply the current data from the scope. + /// @note This feature is disabled by default. + @objc public var enableMetricKit = false + + /// When enabled, the SDK adds the raw MXDiagnosticPayloads as an attachment to the converted + /// SentryEvent. You need to enable @c enableMetricKit for this flag to work. + /// + /// @note Default value is @c NO. + @objc public var enableMetricKitRawPayload = false + + #endif + + /// @warning This is an experimental feature and may still have bugs. + /// @brief By enabling this, every UIViewController tracing transaction will wait + /// for a call to @c SentrySDK.reportFullyDisplayed(). + /// @discussion Use this in conjunction with @c enableUIViewControllerTracing. + /// If @c SentrySDK.reportFullyDisplayed() is not called, the transaction will finish + /// automatically after 30 seconds and the `Time to full display` Span will be + /// finished with @c DeadlineExceeded status. + /// @note Default value is `NO`. + @objc public var enableTimeToFullDisplayTracing: Bool = false + + /// This feature is only available from Xcode 13 and from macOS 12.0, iOS 15.0, tvOS 15.0, + /// watchOS 8.0. + /// + /// @warning This is an experimental feature and may still have bugs. + /// @brief Stitches the call to Swift Async functions in one consecutive stack trace. + /// @note Default value is @c NO . + @objc public var swiftAsyncStacktraces: Bool = false + + /// The path to store SDK data, like events, transactions, profiles, raw crash data, etc. We + /// recommend only changing this when the default, e.g., in security environments, can't be accessed. + /// + /// @note The default is `NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, + /// YES)`. + @objc public var cacheDirectoryPath: String = NSSearchPathForDirectoriesInDomains(.cachesDirectory, .userDomainMask, true).first ?? "" + + /// Whether to enable Spotlight for local development. For more information see + /// https://spotlightjs.com/. + /// + /// @note Only set this option to @c YES while developing, not in production! + @objc public var enableSpotlight: Bool = false + + /// The Spotlight URL. Defaults to http://localhost:8969/stream. For more information see + /// https://spotlightjs.com/ + @objc public var spotlightUrl = "https://spotlightjs.com/" + + @objc public var experimental = SentryExperimentalOptions() + +#if os(iOS) && !SENTRY_NO_UIKIT + + @_spi(Private) @objc public var userFeedbackConfiguration: SentryUserFeedbackConfiguration? + @available(iOSApplicationExtension, unavailable) + @objc public var configureUserFeedback: ((SentryUserFeedbackConfiguration) -> Void)? { + didSet { + let config = SentryUserFeedbackConfiguration() + configureUserFeedback?(config) + userFeedbackConfiguration = config + } + } + #endif +} +// swiftlint:enable file_length diff --git a/Sources/Swift/SentryAppStateManager.swift b/Sources/Swift/SentryAppStateManager.swift index b7cc0f2c7d7..d64cb07f36a 100644 --- a/Sources/Swift/SentryAppStateManager.swift +++ b/Sources/Swift/SentryAppStateManager.swift @@ -6,7 +6,7 @@ import UIKit @_spi(Private) @objc public final class SentryAppStateManager: NSObject { - private let options: Options? + private let options: SentryOptionsInternal? private let crashWrapper: SentryCrashWrapper private let fileManager: SentryFileManager? #if (os(iOS) || os(tvOS) || (swift(>=5.9) && os(visionOS))) && !SENTRY_NO_UIKIT @@ -15,7 +15,7 @@ import UIKit private let helper: SentryDefaultAppStateManager #endif - init(options: Options?, crashWrapper: SentryCrashWrapper, fileManager: SentryFileManager?, sysctlWrapper: SentrySysctl) { + init(options: SentryOptionsInternal?, crashWrapper: SentryCrashWrapper, fileManager: SentryFileManager?, sysctlWrapper: SentrySysctl) { self.options = options self.crashWrapper = crashWrapper self.fileManager = fileManager diff --git a/Sources/Swift/SentryClient.swift b/Sources/Swift/SentryClient.swift index d669e837511..e0cc0ecc65c 100644 --- a/Sources/Swift/SentryClient.swift +++ b/Sources/Swift/SentryClient.swift @@ -8,7 +8,7 @@ import Foundation /// - Parameter options: Options dictionary /// - Returns: An initialized `SentryClient` or `nil` if an error occurred. @objc public init?(options: Options) { - guard let helper = SentryClientInternal(options: options) else { + guard let helper = SentryClientInternal(options: options.toInternal()) else { return nil } self.helper = helper @@ -23,8 +23,8 @@ import Foundation } @objc public var options: Options { - get { helper.options } - set { helper.options = newValue } + get { helper.options.toOptions() } + set { helper.options = newValue.toInternal() } } /// Captures a manually created event and sends it to Sentry. diff --git a/Sources/Swift/SentryCrash/SentryThreadInspector.swift b/Sources/Swift/SentryCrash/SentryThreadInspector.swift index 2dd6c5aae97..4a334ba4a08 100644 --- a/Sources/Swift/SentryCrash/SentryThreadInspector.swift +++ b/Sources/Swift/SentryCrash/SentryThreadInspector.swift @@ -7,7 +7,7 @@ internalHelper = SentryDefaultThreadInspector(options: SentrySDKInternal.options) } - init(options: Options) { + init(options: SentryOptionsInternal) { internalHelper = SentryDefaultThreadInspector(options: options) } diff --git a/Sources/Swift/SentryDependencyContainer.swift b/Sources/Swift/SentryDependencyContainer.swift index 395bb32a62e..1630a08c081 100644 --- a/Sources/Swift/SentryDependencyContainer.swift +++ b/Sources/Swift/SentryDependencyContainer.swift @@ -228,7 +228,7 @@ extension SentryFileManager: SentryFileManagerProtocol { } private var _fileManager: SentryFileManager? @objc public lazy var fileManager: SentryFileManager? = getOptionalLazyVar(\._fileManager) { do { - return try SentryFileManager(options: SentrySDKInternal.options, dateProvider: Dependencies.dateProvider, dispatchQueueWrapper: Dependencies.dispatchQueueWrapper) + return try SentryFileManager(options: SentrySDKInternal.options?.toOptions(), dateProvider: Dependencies.dateProvider, dispatchQueueWrapper: Dependencies.dispatchQueueWrapper) } catch { SentrySDKLog.debug("Could not create file manager - \(error)") return nil diff --git a/Sources/Swift/SentryExperimentalOptions.swift b/Sources/Swift/SentryExperimentalOptions.swift index 47eaf011be5..84a360fd482 100644 --- a/Sources/Swift/SentryExperimentalOptions.swift +++ b/Sources/Swift/SentryExperimentalOptions.swift @@ -1,3 +1,4 @@ +@_implementationOnly import _SentryPrivate import Foundation @objcMembers @@ -33,20 +34,22 @@ public final class SentryExperimentalOptions: NSObject { } } -// Makes the `experimental` property visible as the Swift type `SentryExperimentalOptions`. // This works around `SentryExperimentalOptions` being only forward declared in the objc header. -@objc -extension Options { +extension SentryOptionsInternal { /** * This aggregates options for experimental features. * Be aware that the options available for experimental can change at any time. */ - @objc - open var experimental: SentryExperimentalOptions { - // We know the type so it's fine to force cast. - // swiftlint:disable force_cast - _swiftExperimentalOptions as! SentryExperimentalOptions - // swiftlint:enable force_cast + var experimental: SentryExperimentalOptions { + get { + // We know the type so it's fine to force cast. + // swiftlint:disable force_cast + _swiftExperimentalOptions as! SentryExperimentalOptions + // swiftlint:enable force_cast + } + set { + _swiftExperimentalOptions = newValue + } } } diff --git a/Sources/Swift/Tools/SentryLogBatcher.swift b/Sources/Swift/Tools/SentryLogBatcher.swift index ead26be4e86..c18968dfecb 100644 --- a/Sources/Swift/Tools/SentryLogBatcher.swift +++ b/Sources/Swift/Tools/SentryLogBatcher.swift @@ -15,6 +15,7 @@ import Foundation private let maxBufferSizeBytes: Int private let dispatchQueue: SentryDispatchQueueWrapper + internal let options: SentryOptionsInternal // All mutable state is accessed from the same serial dispatch queue. // Every logs data is added sepratley. They are flushed together in an envelope. diff --git a/Tests/SentryProfilerTests/SentryAppLaunchProfilingTests.swift b/Tests/SentryProfilerTests/SentryAppLaunchProfilingTests.swift index c7d9a4ed79c..b78d17c2bed 100644 --- a/Tests/SentryProfilerTests/SentryAppLaunchProfilingTests.swift +++ b/Tests/SentryProfilerTests/SentryAppLaunchProfilingTests.swift @@ -1,3 +1,4 @@ +@testable import Sentry @_spi(Private) import SentryTestUtils import XCTest @@ -32,7 +33,7 @@ extension SentryAppLaunchProfilingTests { XCTAssertFalse(appLaunchProfileConfigFileExists()) // Act - sentry_sdkInitProfilerTasks(options, TestHub(client: nil, andScope: nil)) + sentry_sdkInitProfilerTasks(options.toInternal(), TestHub(client: nil, andScope: nil)) // Assert XCTAssert(appLaunchProfileConfigFileExists()) @@ -63,7 +64,7 @@ extension SentryAppLaunchProfilingTests { XCTAssertFalse(appLaunchProfileConfigFileExists()) // Act - sentry_sdkInitProfilerTasks(options, TestHub(client: nil, andScope: nil)) + sentry_sdkInitProfilerTasks(options.toInternal(), TestHub(client: nil, andScope: nil)) // Assert XCTAssert(appLaunchProfileConfigFileExists()) @@ -93,8 +94,8 @@ extension SentryAppLaunchProfilingTests { $0.sessionSampleRate = 1 $0.lifecycle = .trace } - sentry_configureContinuousProfiling(fixture.options) - sentry_configureLaunchProfilingForNextLaunch(fixture.options) + sentry_configureContinuousProfiling(fixture.options.toInternal()) + sentry_configureLaunchProfilingForNextLaunch(fixture.options.toInternal()) // Act _sentry_nondeduplicated_startLaunchProfile() @@ -124,8 +125,8 @@ extension SentryAppLaunchProfilingTests { $0.sessionSampleRate = 1 $0.lifecycle = .manual } - sentry_configureContinuousProfiling(fixture.options) - sentry_configureLaunchProfilingForNextLaunch(fixture.options) + sentry_configureContinuousProfiling(fixture.options.toInternal()) + sentry_configureLaunchProfilingForNextLaunch(fixture.options.toInternal()) // Act _sentry_nondeduplicated_startLaunchProfile() @@ -156,8 +157,8 @@ extension SentryAppLaunchProfilingTests { $0.sessionSampleRate = 1 $0.lifecycle = .trace } - sentry_configureContinuousProfiling(fixture.options) - sentry_configureLaunchProfilingForNextLaunch(fixture.options) + sentry_configureContinuousProfiling(fixture.options.toInternal()) + sentry_configureLaunchProfilingForNextLaunch(fixture.options.toInternal()) // Act _sentry_nondeduplicated_startLaunchProfile() @@ -186,8 +187,8 @@ extension SentryAppLaunchProfilingTests { $0.sessionSampleRate = 1 $0.lifecycle = .manual } - sentry_configureContinuousProfiling(fixture.options) - sentry_configureLaunchProfilingForNextLaunch(fixture.options) + sentry_configureContinuousProfiling(fixture.options.toInternal()) + sentry_configureLaunchProfilingForNextLaunch(fixture.options.toInternal()) // Act _sentry_nondeduplicated_startLaunchProfile() diff --git a/Tests/SentryProfilerTests/SentryAppStartProfilingConfigurationChangeTests.swift b/Tests/SentryProfilerTests/SentryAppStartProfilingConfigurationChangeTests.swift index 47c507254b8..4b4585a0fa0 100644 --- a/Tests/SentryProfilerTests/SentryAppStartProfilingConfigurationChangeTests.swift +++ b/Tests/SentryProfilerTests/SentryAppStartProfilingConfigurationChangeTests.swift @@ -1,5 +1,6 @@ //swiftlint:disable file_length +@testable import Sentry @_spi(Private) import SentryTestUtils import XCTest @@ -51,7 +52,7 @@ extension SentryAppStartProfilingConfigurationChangeTests { XCTAssertFalse(SentryTraceProfiler.isCurrentlyProfiling()) // Act: simulate SDK start - sentry_sdkInitProfilerTasks(fixture.options, TestHub(client: nil, andScope: nil)) + sentry_sdkInitProfilerTasks(fixture.options.toInternal(), TestHub(client: nil, andScope: nil)) // Act: simulate stopping the continuous profiler SentrySDK.stopProfiler() @@ -91,7 +92,7 @@ extension SentryAppStartProfilingConfigurationChangeTests { XCTAssertFalse(SentryTraceProfiler.isCurrentlyProfiling()) // Act: simulate SDK start - sentry_sdkInitProfilerTasks(fixture.options, TestHub(client: nil, andScope: nil)) + sentry_sdkInitProfilerTasks(fixture.options.toInternal(), TestHub(client: nil, andScope: nil)) // Act: simulate stopping the continuous profiler SentrySDK.stopProfiler() @@ -135,7 +136,7 @@ extension SentryAppStartProfilingConfigurationChangeTests { XCTAssertFalse(SentryTraceProfiler.isCurrentlyProfiling()) // Act: simulate SDK start - sentry_sdkInitProfilerTasks(fixture.options, TestHub(client: nil, andScope: nil)) + sentry_sdkInitProfilerTasks(fixture.options.toInternal(), TestHub(client: nil, andScope: nil)) // Act: simulate elapsed time to finish UI profile chunk fixture.currentDateProvider.advance(by: 60) @@ -176,7 +177,7 @@ extension SentryAppStartProfilingConfigurationChangeTests { XCTAssertFalse(SentryTraceProfiler.isCurrentlyProfiling()) // Act: simulate SDK start - sentry_sdkInitProfilerTasks(fixture.options, TestHub(client: nil, andScope: nil)) + sentry_sdkInitProfilerTasks(fixture.options.toInternal(), TestHub(client: nil, andScope: nil)) // Act: simulate elapsed time to finish UI profile chunk fixture.currentDateProvider.advance(by: 60) @@ -220,7 +221,7 @@ extension SentryAppStartProfilingConfigurationChangeTests { XCTAssertFalse(SentryTraceProfiler.isCurrentlyProfiling()) // Act: simulate SDK start - sentry_sdkInitProfilerTasks(fixture.options, TestHub(client: nil, andScope: nil)) + sentry_sdkInitProfilerTasks(fixture.options.toInternal(), TestHub(client: nil, andScope: nil)) // Act: simulate elapsed time to finish UI profile chunk SentrySDK.stopProfiler() @@ -260,7 +261,7 @@ extension SentryAppStartProfilingConfigurationChangeTests { XCTAssertFalse(SentryTraceProfiler.isCurrentlyProfiling()) // Act: simulate SDK start - sentry_sdkInitProfilerTasks(fixture.options, TestHub(client: nil, andScope: nil)) + sentry_sdkInitProfilerTasks(fixture.options.toInternal(), TestHub(client: nil, andScope: nil)) // Act: simulate elapsed time to finish UI profile chunk SentrySDK.stopProfiler() @@ -304,7 +305,7 @@ extension SentryAppStartProfilingConfigurationChangeTests { XCTAssertFalse(SentryTraceProfiler.isCurrentlyProfiling()) // Act: simulate SDK start - sentry_sdkInitProfilerTasks(fixture.options, TestHub(client: nil, andScope: nil)) + sentry_sdkInitProfilerTasks(fixture.options.toInternal(), TestHub(client: nil, andScope: nil)) // Act: simulate TTFD stoppage let launchTracer = try XCTUnwrap(sentry_launchTracer) @@ -351,7 +352,7 @@ extension SentryAppStartProfilingConfigurationChangeTests { XCTAssertFalse(SentryTraceProfiler.isCurrentlyProfiling()) // Act: simulate SDK start - sentry_sdkInitProfilerTasks(fixture.options, TestHub(client: nil, andScope: nil)) + sentry_sdkInitProfilerTasks(fixture.options.toInternal(), TestHub(client: nil, andScope: nil)) // Act: simulate TTFD stoppage let launchTracer = try XCTUnwrap(sentry_launchTracer) diff --git a/Tests/SentryProfilerTests/SentryAppStartProfilingConfigurationTests.swift b/Tests/SentryProfilerTests/SentryAppStartProfilingConfigurationTests.swift index 48eb3b9981b..29f75a9c115 100644 --- a/Tests/SentryProfilerTests/SentryAppStartProfilingConfigurationTests.swift +++ b/Tests/SentryProfilerTests/SentryAppStartProfilingConfigurationTests.swift @@ -1,4 +1,4 @@ -@_spi(Private) import Sentry +@_spi(Private) @testable import Sentry @_spi(Private) import SentryTestUtils import XCTest @@ -51,9 +51,9 @@ private extension SentryAppStartProfilingConfigurationTests { } // this is where SentryOptions.configureProfiling is evaluated - sentry_configureContinuousProfiling(actualOptions) + sentry_configureContinuousProfiling(actualOptions.toInternal()) - let actualIsValid = sentry_willProfileNextLaunch(actualOptions) + let actualIsValid = sentry_willProfileNextLaunch(actualOptions.toInternal()) if shouldProfileLaunch { XCTAssert(actualIsValid, "Expected to enable app launch profiling with options:\n\(expectedOptions.description)") } else { diff --git a/Tests/SentryProfilerTests/SentryProfileTestFixture.swift b/Tests/SentryProfilerTests/SentryProfileTestFixture.swift index 2f105b3c484..4d7af158b81 100644 --- a/Tests/SentryProfilerTests/SentryProfileTestFixture.swift +++ b/Tests/SentryProfilerTests/SentryProfileTestFixture.swift @@ -78,7 +78,7 @@ class SentryProfileTestFixture { options = Options() options.dsn = SentryProfileTestFixture.dsnAsString options.debug = true - client = TestClient(options: options) + client = TestClient(options: options.toInternal()) hub = SentryHubInternal(client: client, andScope: scope) hub.bindClient(client) SentrySDKInternal.setCurrentHub(hub) diff --git a/Tests/SentryProfilerTests/SentryProfilingPublicAPITests.swift b/Tests/SentryProfilerTests/SentryProfilingPublicAPITests.swift index 14f71e65d47..478ae09f4e8 100644 --- a/Tests/SentryProfilerTests/SentryProfilingPublicAPITests.swift +++ b/Tests/SentryProfilerTests/SentryProfilingPublicAPITests.swift @@ -35,7 +35,7 @@ class SentryProfilingPublicAPITests: XCTestCase { let currentDate = TestCurrentDateProvider() lazy var timerFactory = TestSentryNSTimerFactory(currentDateProvider: currentDate) - lazy var client = TestClient(options: options)! + lazy var client = TestClient(options: options.toInternal())! lazy var hub = SentryHubInternal(client: client, andScope: scope) } @@ -69,31 +69,31 @@ class SentryProfilingPublicAPITests: XCTestCase { // MARK: continuous profiling v2 extension SentryProfilingPublicAPITests { - func testSentryOptionsReportsContinuousProfilingV2Enabled() { + func testSentryOptionsInternalReportsContinuousProfilingV2Enabled() { // Arrange let options = Options() options.configureProfiling = { _ in } // Act - sentry_configureContinuousProfiling(options) + sentry_configureContinuousProfiling(options.toInternal()) // Assert - XCTAssertTrue(options.isContinuousProfilingEnabled()) + XCTAssertTrue(options.toInternal().isContinuousProfilingEnabled()) } - func testSentryOptionsReportsContinuousProfilingV2Disabled_NilConfiguration() { + func testSentryOptionsInternalReportsContinuousProfilingV2Disabled_NilConfiguration() { // Arrange let options = Options() options.configureProfiling = nil // Act - sentry_configureContinuousProfiling(options) + sentry_configureContinuousProfiling(options.toInternal()) // Assert - XCTAssertFalse(options.isContinuousProfilingEnabled()) + XCTAssertFalse(options.toInternal().isContinuousProfilingEnabled()) } - func testSentryOptionsReportsProfilingCorrelatedToTraces() { + func testSentryOptionsInternalReportsProfilingCorrelatedToTraces() { // Arrange let options = Options() options.configureProfiling = { @@ -101,13 +101,13 @@ extension SentryProfilingPublicAPITests { } // Act - sentry_configureContinuousProfiling(options) + sentry_configureContinuousProfiling(options.toInternal()) // Assert - XCTAssertTrue(options.isProfilingCorrelatedToTraces()) + XCTAssertTrue(options.toInternal().isProfilingCorrelatedToTraces()) } - func testSentryOptionsReportsProfilingNotCorrelatedToTraces_ManualLifecycle() { + func testSentryOptionsInternalReportsProfilingNotCorrelatedToTraces_ManualLifecycle() { // Arrange let options = Options() options.configureProfiling = { @@ -115,22 +115,22 @@ extension SentryProfilingPublicAPITests { } // Act - sentry_configureContinuousProfiling(options) + sentry_configureContinuousProfiling(options.toInternal()) // Assert - XCTAssertFalse(options.isProfilingCorrelatedToTraces()) + XCTAssertFalse(options.toInternal().isProfilingCorrelatedToTraces()) } - func testSentryOptionsReportsProfilingNotCorrelatedToTraces_NilConfiguration() { + func testSentryOptionsInternalReportsProfilingNotCorrelatedToTraces_NilConfiguration() { // Arrange let options = Options() options.configureProfiling = nil // Act - sentry_configureContinuousProfiling(options) + sentry_configureContinuousProfiling(options.toInternal()) // Assert - XCTAssertFalse(options.isProfilingCorrelatedToTraces()) + XCTAssertFalse(options.toInternal().isProfilingCorrelatedToTraces()) } func testManuallyStartingAndStoppingContinuousProfilerV2Sampled() throws { @@ -478,13 +478,13 @@ extension SentryProfilingPublicAPITests { private extension SentryProfilingPublicAPITests { func givenSdkWithHub() { SentrySDKInternal.setCurrentHub(fixture.hub) - SentrySDKInternal.setStart(with: fixture.options) - sentry_sdkInitProfilerTasks(fixture.options, fixture.hub) + SentrySDKInternal.setStart(with: fixture.options.toInternal()) + sentry_sdkInitProfilerTasks(fixture.options.toInternal(), fixture.hub) } func givenSdkWithHubButNoClient() { SentrySDKInternal.setCurrentHub(SentryHubInternal(client: nil, andScope: nil)) - SentrySDKInternal.setStart(with: fixture.options) + SentrySDKInternal.setStart(with: fixture.options.toInternal()) } func stopProfiler() throws { diff --git a/Tests/SentryProfilerTests/SentryProfilingSwiftHelpersTests.m b/Tests/SentryProfilerTests/SentryProfilingSwiftHelpersTests.m index d056b701dba..64a360b8b42 100644 --- a/Tests/SentryProfilerTests/SentryProfilingSwiftHelpersTests.m +++ b/Tests/SentryProfilerTests/SentryProfilingSwiftHelpersTests.m @@ -2,7 +2,7 @@ @import Sentry; @import SentryTestUtilsDynamic; #import "SentryClient.h" -#import "SentryOptions+Private.h" +#import "SentryOptionsInternal+Private.h" #import "SentryProfilingSwiftHelpers.h" @interface SentryProfilingSwiftHelpersTests : XCTestCase @@ -14,7 +14,7 @@ @implementation SentryProfilingSwiftHelpersTests - (void)testIsContinuousProfilingEnabled { - SentryOptions *options = [[SentryOptions alloc] init]; + SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; options.dsn = @"https://username:password@app.getsentry.com/12345"; options.profiling = [[SentryProfileOptions alloc] init]; SentryClientInternal *client = [[SentryClientInternal alloc] initWithOptions:options]; @@ -24,7 +24,7 @@ - (void)testIsContinuousProfilingEnabled - (void)testIsProfilingCorrelatedToTraces { - SentryOptions *options = [[SentryOptions alloc] init]; + SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; options.dsn = @"https://username:password@app.getsentry.com/12345"; options.profiling = [[SentryProfileOptions alloc] init]; options.profiling.lifecycle = SentryProfileLifecycleTrace; @@ -35,7 +35,7 @@ - (void)testIsProfilingCorrelatedToTraces - (void)testGetProfiling { - SentryOptions *options = [[SentryOptions alloc] init]; + SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; options.dsn = @"https://username:password@app.getsentry.com/12345"; options.profiling = [[SentryProfileOptions alloc] init]; SentryClientInternal *client = [[SentryClientInternal alloc] initWithOptions:options]; @@ -44,7 +44,7 @@ - (void)testGetProfiling - (void)testGetProfiling_whenProfilingOptionsIsNil_shouldReturnNil { - SentryOptions *options = [[SentryOptions alloc] init]; + SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; options.dsn = @"https://username:password@app.getsentry.com/12345"; options.profiling = nil; SentryClientInternal *client = [[SentryClientInternal alloc] initWithOptions:options]; diff --git a/Tests/SentryTests/Helper/SentryAppStateManagerTests.swift b/Tests/SentryTests/Helper/SentryAppStateManagerTests.swift index f198afbb89e..840c8d12002 100644 --- a/Tests/SentryTests/Helper/SentryAppStateManagerTests.swift +++ b/Tests/SentryTests/Helper/SentryAppStateManagerTests.swift @@ -31,7 +31,7 @@ class SentryAppStateManagerTests: XCTestCase { SentryDependencyContainer.sharedInstance().dispatchQueueWrapper = TestSentryDispatchQueueWrapper() SentryDependencyContainer.sharedInstance().notificationCenterWrapper = notificationCenterWrapper return SentryAppStateManager( - options: options, + options: options.toInternal(), crashWrapper: TestSentryCrashWrapper(processInfoWrapper: ProcessInfo.processInfo), fileManager: fileManager, sysctlWrapper: SentryDependencyContainer.sharedInstance().sysctlWrapper diff --git a/Tests/SentryTests/Helper/SentryDependencyContainerTests.swift b/Tests/SentryTests/Helper/SentryDependencyContainerTests.swift index 8942f8e4b58..31df27f7efb 100644 --- a/Tests/SentryTests/Helper/SentryDependencyContainerTests.swift +++ b/Tests/SentryTests/Helper/SentryDependencyContainerTests.swift @@ -48,7 +48,7 @@ final class SentryDependencyContainerTests: XCTestCase { let options = Options() options.dsn = SentryDependencyContainerTests.dsn - SentrySDKInternal.setStart(with: options) + SentrySDKInternal.setStart(with: options.toInternal()) let iterations = 100 @@ -136,7 +136,7 @@ final class SentryDependencyContainerTests: XCTestCase { // -- Arrange -- let options = Options() options.dsn = SentryDependencyContainerTests.dsn - SentrySDKInternal.setStart(with: options) + SentrySDKInternal.setStart(with: options.toInternal()) let container = SentryDependencyContainer.sharedInstance() @@ -153,7 +153,7 @@ final class SentryDependencyContainerTests: XCTestCase { // -- Arrange -- let options = Options() options.dsn = SentryDependencyContainerTests.dsn - SentrySDKInternal.setStart(with: options) + SentrySDKInternal.setStart(with: options.toInternal()) let container = SentryDependencyContainer.sharedInstance() @@ -173,7 +173,7 @@ final class SentryDependencyContainerTests: XCTestCase { // -- Arrange -- let options = Options() options.dsn = SentryDependencyContainerTests.dsn - SentrySDKInternal.setStart(with: options) + SentrySDKInternal.setStart(with: options.toInternal()) let container = SentryDependencyContainer.sharedInstance() let dispatchFactory = TestDispatchFactory() @@ -202,7 +202,7 @@ final class SentryDependencyContainerTests: XCTestCase { options2.dsn = SentryDependencyContainerTests.dsn options2.sessionTrackingIntervalMillis = 5_000 - SentrySDKInternal.setStart(with: options1) + SentrySDKInternal.setStart(with: options1.toInternal()) let container = SentryDependencyContainer.sharedInstance() @@ -226,7 +226,7 @@ final class SentryDependencyContainerTests: XCTestCase { options2.sessionTrackingIntervalMillis = 5_000 options2.environment = "test2" - SentrySDKInternal.setStart(with: options1) + SentrySDKInternal.setStart(with: options1.toInternal()) let container = SentryDependencyContainer.sharedInstance() @@ -248,7 +248,7 @@ final class SentryDependencyContainerTests: XCTestCase { // -- Arrange -- let options = Options() options.dsn = SentryDependencyContainerTests.dsn - SentrySDKInternal.setStart(with: options) + SentrySDKInternal.setStart(with: options.toInternal()) let container = SentryDependencyContainer.sharedInstance() diff --git a/Tests/SentryTests/Integrations/ANR/SentryANRTrackingIntegrationTests.swift b/Tests/SentryTests/Integrations/ANR/SentryANRTrackingIntegrationTests.swift index dd9729621e3..9a12ffa8c1f 100644 --- a/Tests/SentryTests/Integrations/ANR/SentryANRTrackingIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/ANR/SentryANRTrackingIntegrationTests.swift @@ -65,7 +65,7 @@ class SentryANRTrackingIntegrationTests: SentrySDKIntegrationTestsBase { options.enableAppHangTracking = false sut = SentryANRTrackingIntegration() - let result = sut.install(with: options) + let result = sut.install(with: options.toInternal()) XCTAssertFalse(result) } @@ -76,7 +76,7 @@ class SentryANRTrackingIntegrationTests: SentrySDKIntegrationTestsBase { options.appHangTimeoutInterval = 0 sut = SentryANRTrackingIntegration() - let result = sut.install(with: options) + let result = sut.install(with: options.toInternal()) XCTAssertFalse(result) } @@ -330,7 +330,7 @@ class SentryANRTrackingIntegrationTests: SentrySDKIntegrationTestsBase { func initIntegration() { self.crashWrapper.internalIsBeingTraced = false let sut = SentryANRTrackingIntegration() - sut.install(with: self.options) + sut.install(with: self.options.toInternal()) } initIntegration() @@ -667,7 +667,7 @@ class SentryANRTrackingIntegrationTests: SentrySDKIntegrationTestsBase { Dynamic(sut).anrStoppedWithResult(result) // Act - sut.install(with: self.options) + sut.install(with: self.options.toInternal()) // Assert try assertEventWithScopeCaptured { event, _, _ in @@ -735,7 +735,7 @@ class SentryANRTrackingIntegrationTests: SentrySDKIntegrationTestsBase { self.crashWrapper.internalIsBeingTraced = isBeingTraced self.crashWrapper.internalCrashedLastLaunch = crashedLastLaunch sut = SentryANRTrackingIntegration() - sut.install(with: self.options) + sut.install(with: self.options.toInternal()) } private func setUpThreadInspector(addThreads: Bool = true) { diff --git a/Tests/SentryTests/Integrations/Breadcrumbs/SentryAutoBreadcrumbTrackingIntegration+Test.h b/Tests/SentryTests/Integrations/Breadcrumbs/SentryAutoBreadcrumbTrackingIntegration+Test.h index 2278d4455b2..edceea65400 100644 --- a/Tests/SentryTests/Integrations/Breadcrumbs/SentryAutoBreadcrumbTrackingIntegration+Test.h +++ b/Tests/SentryTests/Integrations/Breadcrumbs/SentryAutoBreadcrumbTrackingIntegration+Test.h @@ -3,12 +3,12 @@ NS_ASSUME_NONNULL_BEGIN @class SentryBreadcrumbTracker; -@class SentryOptions; +@class SentryOptionsInternal; @class SentrySystemEventBreadcrumbs; @interface SentryAutoBreadcrumbTrackingIntegration (Test) -- (void)installWithOptions:(nonnull SentryOptions *)options +- (void)installWithOptions:(nonnull SentryOptionsInternal *)options breadcrumbTracker:(SentryBreadcrumbTracker *)breadcrumbTracker #if TARGET_OS_IOS && SENTRY_HAS_UIKIT systemEventBreadcrumbs:(SentrySystemEventBreadcrumbs *)systemEventBreadcrumbs diff --git a/Tests/SentryTests/Integrations/Breadcrumbs/SentryAutoBreadcrumbTrackingIntegrationTests.swift b/Tests/SentryTests/Integrations/Breadcrumbs/SentryAutoBreadcrumbTrackingIntegrationTests.swift index bf313ef802d..86eb7dbeeb3 100644 --- a/Tests/SentryTests/Integrations/Breadcrumbs/SentryAutoBreadcrumbTrackingIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/Breadcrumbs/SentryAutoBreadcrumbTrackingIntegrationTests.swift @@ -72,7 +72,7 @@ class SentryAutoBreadcrumbTrackingIntegrationTests: XCTestCase { options.enableAutoBreadcrumbTracking = false let sut = SentryAutoBreadcrumbTrackingIntegration() - let result = sut.install(with: options) + let result = sut.install(with: options.toInternal()) XCTAssertFalse(result) } @@ -85,7 +85,7 @@ class SentryAutoBreadcrumbTrackingIntegrationTests: XCTestCase { try self.install(sut: sut, options: options) let scope = Scope() - let hub = SentryHubInternal(client: TestClient(options: Options()), andScope: scope) + let hub = SentryHubInternal(client: TestClient(options: Options().toInternal()), andScope: scope) SentrySDKInternal.setCurrentHub(hub) let crumb = TestData.crumb @@ -109,9 +109,9 @@ class SentryAutoBreadcrumbTrackingIntegrationTests: XCTestCase { #if os(iOS) fixture.systemEventBreadcrumbTracker = SentryTestSystemEventBreadcrumbs(fileManager: fixture.fileManager, andNotificationCenterWrapper: TestNSNotificationCenterWrapper()) - sut.install(with: options, breadcrumbTracker: fixture.breadcrumbTracker, systemEventBreadcrumbs: fixture.systemEventBreadcrumbTracker!) + sut.install(withOptions: options.toInternal(), breadcrumbTracker: fixture.breadcrumbTracker, systemEventBreadcrumbs: fixture.systemEventBreadcrumbTracker!) #else - sut.install(with: options, breadcrumbTracker: fixture.breadcrumbTracker) + sut.install(withOptions: options.toInternal(), breadcrumbTracker: fixture.breadcrumbTracker) #endif // os(iOS) } diff --git a/Tests/SentryTests/Integrations/Breadcrumbs/SentryBreadcrumbTrackerTests.swift b/Tests/SentryTests/Integrations/Breadcrumbs/SentryBreadcrumbTrackerTests.swift index 57bd1eacd1b..701e52cd4a1 100644 --- a/Tests/SentryTests/Integrations/Breadcrumbs/SentryBreadcrumbTrackerTests.swift +++ b/Tests/SentryTests/Integrations/Breadcrumbs/SentryBreadcrumbTrackerTests.swift @@ -97,7 +97,7 @@ class SentryBreadcrumbTrackerTests: XCTestCase { SentryDependencyContainer.sharedInstance().reachability = testReachability let scope = Scope() - let client = TestClient(options: Options()) + let client = TestClient(options: Options().toInternal()) let hub = TestHub(client: client, andScope: scope) SentrySDKInternal.setCurrentHub(hub) @@ -164,7 +164,7 @@ class SentryBreadcrumbTrackerTests: XCTestCase { func testAppLifeCycleBreadcrumbForSessionReplay() throws { let scope = Scope() - let client = TestClient(options: Options()) + let client = TestClient(options: Options().toInternal()) let hub = TestHub(client: client, andScope: scope) SentrySDKInternal.setCurrentHub(hub) @@ -208,7 +208,7 @@ class SentryBreadcrumbTrackerTests: XCTestCase { func testTouchBreadcrumbForSessionReplay() throws { let scope = Scope() - let client = TestClient(options: Options()) + let client = TestClient(options: Options().toInternal()) let hub = TestHub(client: client, andScope: scope) SentrySDKInternal.setCurrentHub(hub) @@ -237,7 +237,7 @@ class SentryBreadcrumbTrackerTests: XCTestCase { func testTouchBreadcrumb_DontReportAccessibilityIdentifier() throws { let scope = Scope() - let client = TestClient(options: Options()) + let client = TestClient(options: Options().toInternal()) let hub = TestHub(client: client, andScope: scope) SentrySDKInternal.setCurrentHub(hub) @@ -265,7 +265,7 @@ class SentryBreadcrumbTrackerTests: XCTestCase { func testTouchBreadcrumb_ReportAccessibilityIdentifier() throws { let scope = Scope() - let client = TestClient(options: Options()) + let client = TestClient(options: Options().toInternal()) let hub = TestHub(client: client, andScope: scope) SentrySDKInternal.setCurrentHub(hub) @@ -292,7 +292,7 @@ class SentryBreadcrumbTrackerTests: XCTestCase { SentryDependencyContainer.sharedInstance().reachability = testReachability let scope = Scope() - let client = TestClient(options: Options()) + let client = TestClient(options: Options().toInternal()) let hub = TestHub(client: client, andScope: scope) SentrySDKInternal.setCurrentHub(hub) diff --git a/Tests/SentryTests/Integrations/Feedback/SentryFeedbackTests.swift b/Tests/SentryTests/Integrations/Feedback/SentryFeedbackTests.swift index 3630ab990c1..a02406acaf5 100644 --- a/Tests/SentryTests/Integrations/Feedback/SentryFeedbackTests.swift +++ b/Tests/SentryTests/Integrations/Feedback/SentryFeedbackTests.swift @@ -197,10 +197,10 @@ class SentryFeedbackTests: XCTestCase { options.sampleRate = 0.0 // Sample rate that would normally filter out all events let transport = TestTransport() - let transportAdapter = TestTransportAdapter(transports: [transport], options: options) + let transportAdapter = TestTransportAdapter(transports: [transport], options: options.toInternal()) let client = SentryClientInternal( - options: options, + options: options.toInternal(), transportAdapter: transportAdapter, fileManager: try XCTUnwrap(SentryFileManager( options: options, @@ -239,10 +239,10 @@ class SentryFeedbackTests: XCTestCase { options.beforeSend = { _ in return nil } // beforeSend that filters out all events let transport = TestTransport() - let transportAdapter = TestTransportAdapter(transports: [transport], options: options) + let transportAdapter = TestTransportAdapter(transports: [transport], options: options.toInternal()) let client = SentryClientInternal( - options: options, + options: options.toInternal(), transportAdapter: transportAdapter, fileManager: try XCTUnwrap(SentryFileManager( options: options, @@ -281,10 +281,10 @@ class SentryFeedbackTests: XCTestCase { options.beforeSend = { _ in return nil } // beforeSend that filters out all events let transport = TestTransport() - let transportAdapter = TestTransportAdapter(transports: [transport], options: options) + let transportAdapter = TestTransportAdapter(transports: [transport], options: options.toInternal()) let client = SentryClientInternal( - options: options, + options: options.toInternal(), transportAdapter: transportAdapter, fileManager: try XCTUnwrap(SentryFileManager( options: options, diff --git a/Tests/SentryTests/Integrations/MetricKit/SentryMetricKitIntegrationTests.swift b/Tests/SentryTests/Integrations/MetricKit/SentryMetricKitIntegrationTests.swift index 57709284438..9045a889e17 100644 --- a/Tests/SentryTests/Integrations/MetricKit/SentryMetricKitIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/MetricKit/SentryMetricKitIntegrationTests.swift @@ -52,7 +52,7 @@ final class SentryMetricKitIntegrationTests: SentrySDKIntegrationTestsBase { if #available(iOS 15, macOS 12, macCatalyst 15, *) { let sut = SentryMetricKitIntegration() - sut.install(with: Options()) + sut.install(with: Options().toInternal()) XCTAssertNil(Dynamic(sut).metricKitManager as SentryMXManager?) } @@ -64,7 +64,7 @@ final class SentryMetricKitIntegrationTests: SentrySDKIntegrationTestsBase { let options = Options() options.enableMetricKit = true - sut.install(with: options) + sut.install(with: options.toInternal()) sut.uninstall() XCTAssertNil(Dynamic(sut).metricKitManager as SentryMXManager?) @@ -242,7 +242,7 @@ final class SentryMetricKitIntegrationTests: SentrySDKIntegrationTestsBase { let options = Options() options.enableMetricKit = true optionsBlock(options) - integration.install(with: options) + integration.install(with: options.toInternal()) } private func givenSDKWithHubWithScope() { diff --git a/Tests/SentryTests/Integrations/Performance/AppStartTracking/SentryAppStartTrackerTests.swift b/Tests/SentryTests/Integrations/Performance/AppStartTracking/SentryAppStartTrackerTests.swift index 855010bb132..0694de7e68c 100644 --- a/Tests/SentryTests/Integrations/Performance/AppStartTracking/SentryAppStartTrackerTests.swift +++ b/Tests/SentryTests/Integrations/Performance/AppStartTracking/SentryAppStartTrackerTests.swift @@ -42,7 +42,7 @@ class SentryAppStartTrackerTests: NotificationCenterTestCase { SentryDependencyContainer.sharedInstance().sysctlWrapper = sysctl SentryDependencyContainer.sharedInstance().dispatchQueueWrapper = dispatchQueue appStateManager = SentryAppStateManager( - options: options, + options: options.toInternal(), crashWrapper: crashWrapper, fileManager: fileManager, sysctlWrapper: sysctl diff --git a/Tests/SentryTests/Integrations/Performance/AppStartTracking/SentryAppStartTrackingIntegrationTests.swift b/Tests/SentryTests/Integrations/Performance/AppStartTracking/SentryAppStartTrackingIntegrationTests.swift index 8e3dc2d4e8c..bea5b2f4212 100644 --- a/Tests/SentryTests/Integrations/Performance/AppStartTracking/SentryAppStartTrackingIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/Performance/AppStartTracking/SentryAppStartTrackingIntegrationTests.swift @@ -52,14 +52,14 @@ class SentryAppStartTrackingIntegrationTests: NotificationCenterTestCase { } func testAppStartMeasuringEnabledAndSampleRate_properlySetupTracker() throws { - sut.install(with: fixture.options) + sut.install(with: fixture.options.toInternal()) let tracker = try XCTUnwrap(Dynamic(sut).tracker.asObject as? SentryAppStartTracker, "SentryAppStartTrackingIntegration should have a tracker") try assertTrackerSetupAndRunning(tracker) } func testUnistall_stopsTracker() throws { - sut.install(with: fixture.options) + sut.install(with: fixture.options.toInternal()) let tracker = try XCTUnwrap(Dynamic(sut).tracker.asObject as? SentryAppStartTracker, "SentryAppStartTrackingIntegration should have a tracker") try assertTrackerSetupAndRunning(tracker) @@ -73,7 +73,7 @@ class SentryAppStartTrackingIntegrationTests: NotificationCenterTestCase { let options = fixture.options options.tracesSampleRate = 0.0 options.tracesSampler = nil - sut.install(with: options) + sut.install(with: options.toInternal()) let tracker = Dynamic(sut).tracker.asAnyObject as? SentryAppStartTracker XCTAssertNil(tracker) @@ -85,7 +85,7 @@ class SentryAppStartTrackingIntegrationTests: NotificationCenterTestCase { let options = fixture.options options.tracesSampleRate = 0.0 options.tracesSampler = nil - sut.install(with: options) + sut.install(with: options.toInternal()) let tracker = try XCTUnwrap(Dynamic(sut).tracker.asObject as? SentryAppStartTracker, "SentryAppStartTrackingIntegration should have a tracker") try assertTrackerSetupAndRunning(tracker) @@ -95,7 +95,7 @@ class SentryAppStartTrackingIntegrationTests: NotificationCenterTestCase { let options = fixture.options options.tracesSampleRate = 0.0 options.tracesSampler = nil - sut.install(with: options) + sut.install(with: options.toInternal()) let tracker = Dynamic(sut).tracker.asAnyObject as? SentryAppStartTracker XCTAssertNil(tracker) @@ -104,7 +104,7 @@ class SentryAppStartTrackingIntegrationTests: NotificationCenterTestCase { func testAutoPerformanceTrackingDisabled_noTracker() { let options = fixture.options options.enableAutoPerformanceTracing = false - sut.install(with: options) + sut.install(with: options.toInternal()) let tracker = Dynamic(sut).tracker.asAnyObject as? SentryAppStartTracker XCTAssertNil(tracker) @@ -113,7 +113,7 @@ class SentryAppStartTrackingIntegrationTests: NotificationCenterTestCase { func test_PerformanceTrackingDisabled() { let options = fixture.options options.enableAutoPerformanceTracing = false - let result = sut.install(with: options) + let result = sut.install(with: options.toInternal()) XCTAssertFalse(result) } diff --git a/Tests/SentryTests/Integrations/Performance/CoreData/SentryCoreDataTrackingIntegrationTest.swift b/Tests/SentryTests/Integrations/Performance/CoreData/SentryCoreDataTrackingIntegrationTest.swift index 7b6a2d856b1..ea122c53aa1 100644 --- a/Tests/SentryTests/Integrations/Performance/CoreData/SentryCoreDataTrackingIntegrationTest.swift +++ b/Tests/SentryTests/Integrations/Performance/CoreData/SentryCoreDataTrackingIntegrationTest.swift @@ -1,4 +1,5 @@ import CoreData +@testable import Sentry import SentryTestUtils import XCTest @@ -41,7 +42,7 @@ class SentryCoreDataTrackingIntegrationTests: XCTestCase { let sut = fixture.getSut() XCTAssertNil(SentryCoreDataSwizzling.sharedInstance.coreDataTracker) - sut.install(with: fixture.options) + sut.install(with: fixture.options.toInternal()) XCTAssertNotNil(SentryCoreDataSwizzling.sharedInstance.coreDataTracker) sut.uninstall() XCTAssertNil(SentryCoreDataSwizzling.sharedInstance.coreDataTracker) @@ -115,7 +116,7 @@ class SentryCoreDataTrackingIntegrationTests: XCTestCase { let sut = fixture.getSut() confOptions(fixture.options) XCTAssertNil(SentryCoreDataSwizzling.sharedInstance.coreDataTracker, file: file, line: line) - sut.install(with: fixture.options) + sut.install(with: fixture.options.toInternal()) XCTAssertNil(SentryCoreDataSwizzling.sharedInstance.coreDataTracker, file: file, line: line) } diff --git a/Tests/SentryTests/Integrations/Performance/FramesTracking/SentryFramesTrackingIntegrationTests.swift b/Tests/SentryTests/Integrations/Performance/FramesTracking/SentryFramesTrackingIntegrationTests.swift index a5b8cfca495..9f242fe43d0 100644 --- a/Tests/SentryTests/Integrations/Performance/FramesTracking/SentryFramesTrackingIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/Performance/FramesTracking/SentryFramesTrackingIntegrationTests.swift @@ -35,7 +35,7 @@ class SentryFramesTrackingIntegrationTests: XCTestCase { func testTracesSampleRateSet_MeasuresFrames() { let options = fixture.options options.tracesSampleRate = 0.1 - sut.install(with: options) + sut.install(with: options.toInternal()) XCTAssertNotNil(Dynamic(sut).tracker.asObject) } @@ -43,14 +43,14 @@ class SentryFramesTrackingIntegrationTests: XCTestCase { func testTracesSamplerSet_MeasuresFrames() { let options = fixture.options options.tracesSampler = { _ in return 0 } - sut.install(with: options) + sut.install(with: options.toInternal()) XCTAssertNotNil(Dynamic(sut).tracker.asObject) } func testAppHangEnabled_MeasuresFrames() { let options = fixture.options - sut.install(with: options) + sut.install(with: options.toInternal()) XCTAssertNotNil(Dynamic(sut).tracker.asObject) } @@ -59,7 +59,7 @@ class SentryFramesTrackingIntegrationTests: XCTestCase { let options = fixture.options options.appHangTimeoutInterval = 0.0 options.enableWatchdogTerminationTracking = false - sut.install(with: options) + sut.install(with: options.toInternal()) XCTAssertNil(Dynamic(sut).tracker.asObject) } @@ -69,7 +69,7 @@ class SentryFramesTrackingIntegrationTests: XCTestCase { options.tracesSampleRate = 0.0 options.appHangTimeoutInterval = 0.0 options.enableWatchdogTerminationTracking = false - sut.install(with: options) + sut.install(with: options.toInternal()) XCTAssertNil(Dynamic(sut).tracker.asObject) } @@ -80,7 +80,7 @@ class SentryFramesTrackingIntegrationTests: XCTestCase { options.enableAutoPerformanceTracing = false options.enableAppHangTracking = false options.enableWatchdogTerminationTracking = false - sut.install(with: options) + sut.install(with: options.toInternal()) XCTAssertNil(Dynamic(sut).tracker.asObject) } @@ -90,13 +90,13 @@ class SentryFramesTrackingIntegrationTests: XCTestCase { let options = fixture.options options.enableAutoPerformanceTracing = false - sut.install(with: options) + sut.install(with: options.toInternal()) XCTAssertNotNil(Dynamic(sut).tracker.asObject) } func testUninstall() { - sut.install(with: fixture.options) + sut.install(with: fixture.options.toInternal()) SentryDependencyContainer.sharedInstance().framesTracker.setDisplayLinkWrapper(fixture.displayLink) diff --git a/Tests/SentryTests/Integrations/Performance/IO/FileIOTrackerTestHelpers.swift b/Tests/SentryTests/Integrations/Performance/IO/FileIOTrackerTestHelpers.swift index b1e40320387..652e1e60a56 100644 --- a/Tests/SentryTests/Integrations/Performance/IO/FileIOTrackerTestHelpers.swift +++ b/Tests/SentryTests/Integrations/Performance/IO/FileIOTrackerTestHelpers.swift @@ -2,7 +2,7 @@ @objc public class FileIOTrackerTestHelpers: NSObject { @objc static func makeTracker(options: Options) -> SentryFileIOTracker { - let threadInspector = SentryThreadInspector(options: options) + let threadInspector = SentryThreadInspector(options: options.toInternal()) let processInfoWrapper = SentryDependencyContainer.sharedInstance().processInfoWrapper return SentryFileIOTracker(threadInspector: threadInspector, processInfoWrapper: processInfoWrapper) } diff --git a/Tests/SentryTests/Integrations/Performance/IO/SentryFileIOTrackingIntegrationObjCTests.m b/Tests/SentryTests/Integrations/Performance/IO/SentryFileIOTrackingIntegrationObjCTests.m index 5270a631d9e..570e158e60f 100644 --- a/Tests/SentryTests/Integrations/Performance/IO/SentryFileIOTrackingIntegrationObjCTests.m +++ b/Tests/SentryTests/Integrations/Performance/IO/SentryFileIOTrackingIntegrationObjCTests.m @@ -1,6 +1,6 @@ #import "SentryByteCountFormatter.h" #import "SentryFileIOTrackerHelper.h" -#import "SentryOptions.h" +#import "SentryOptionsInternal.h" #import "SentrySpan.h" #import "SentrySpanOperation.h" #import "SentrySwizzle.h" diff --git a/Tests/SentryTests/Integrations/Performance/IO/SentryFileIoTrackingUnitTests.swift b/Tests/SentryTests/Integrations/Performance/IO/SentryFileIoTrackingUnitTests.swift index 1c57ef06ee3..299d2e429b2 100644 --- a/Tests/SentryTests/Integrations/Performance/IO/SentryFileIoTrackingUnitTests.swift +++ b/Tests/SentryTests/Integrations/Performance/IO/SentryFileIoTrackingUnitTests.swift @@ -1,4 +1,4 @@ -import Sentry +@testable import Sentry import XCTest class SentryFileIoTrackingUnitTests: XCTestCase { @@ -7,7 +7,7 @@ class SentryFileIoTrackingUnitTests: XCTestCase { let options = Options() options.enableFileIOTracing = false let sut = SentryFileIOTrackingIntegration() - let result = sut.install(with: options) + let result = sut.install(with: options.toInternal()) XCTAssertFalse(result) } diff --git a/Tests/SentryTests/Integrations/Performance/IO/SentryNSFileManagerSwizzlingTests.m b/Tests/SentryTests/Integrations/Performance/IO/SentryNSFileManagerSwizzlingTests.m index fb2071ff890..c39e8ab7042 100644 --- a/Tests/SentryTests/Integrations/Performance/IO/SentryNSFileManagerSwizzlingTests.m +++ b/Tests/SentryTests/Integrations/Performance/IO/SentryNSFileManagerSwizzlingTests.m @@ -2,7 +2,7 @@ #import "SentryDefaultThreadInspector.h" #import "SentryFileIOTrackerHelper.h" #import "SentryNSFileManagerSwizzling.h" -#import "SentryOptions.h" +#import "SentryOptionsInternal.h" #import "SentrySpan.h" #import "SentrySpanOperation.h" #import "SentrySwizzle.h" @@ -59,7 +59,8 @@ - (void)setUpNSFileManagerSwizzlingWithEnabledFlag:(bool)enableFileManagerSwizzl self->tracker = [FileIOTrackerTestHelpers makeTrackerWithOptions:options]; [tracker enable]; - [[SentryNSFileManagerSwizzling shared] startWithOptions:options tracker:self->tracker]; + [[SentryNSFileManagerSwizzling shared] startWithOptions:[options toInternalOptions] + tracker:self->tracker]; } - (void)tearDown diff --git a/Tests/SentryTests/Integrations/Performance/Network/SentryNetworkTrackerIntegrationTests.swift b/Tests/SentryTests/Integrations/Performance/Network/SentryNetworkTrackerIntegrationTests.swift index 499958ca3b4..80bbdd6fc0f 100644 --- a/Tests/SentryTests/Integrations/Performance/Network/SentryNetworkTrackerIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/Performance/Network/SentryNetworkTrackerIntegrationTests.swift @@ -212,7 +212,7 @@ class SentryNetworkTrackerIntegrationTests: XCTestCase { private func assertRemovedIntegration(_ options: Options) { let sut = SentryNetworkTrackingIntegration() - let result = sut.install(with: options) + let result = sut.install(with: options.toInternal()) XCTAssertFalse(result) } diff --git a/Tests/SentryTests/Integrations/Performance/Network/SentryNetworkTrackerTests.swift b/Tests/SentryTests/Integrations/Performance/Network/SentryNetworkTrackerTests.swift index abc42acc8f5..82860c69ef4 100644 --- a/Tests/SentryTests/Integrations/Performance/Network/SentryNetworkTrackerTests.swift +++ b/Tests/SentryTests/Integrations/Performance/Network/SentryNetworkTrackerTests.swift @@ -42,7 +42,7 @@ class SentryNetworkTrackerTests: XCTestCase { options.enablePropagateTraceparent = true sentryTask = URLSessionDataTaskMock(request: URLRequest(url: URL(string: options.dsn!)!)) scope = Scope() - client = TestClient(options: options) + client = TestClient(options: options.toInternal()) hub = TestHub(client: client, andScope: scope) } @@ -63,7 +63,7 @@ class SentryNetworkTrackerTests: XCTestCase { fixture = Fixture() SentrySDKInternal.setCurrentHub(fixture.hub) - SentrySDKInternal.setStart(with: fixture.options) + SentrySDKInternal.setStart(with: fixture.options.toInternal()) SentryDependencyContainer.sharedInstance().dateProvider = fixture.dateProvider } @@ -969,7 +969,7 @@ class SentryNetworkTrackerTests: XCTestCase { sut.urlSessionTaskResume(task) let expectedTraceHeader = SentrySDKInternal.currentHub().scope.propagationContext.traceHeader.value() - let traceContext = TraceContext(trace: SentrySDKInternal.currentHub().scope.propagationContext.traceId, options: self.fixture.options, replayId: nil) + let traceContext = TraceContext(trace: SentrySDKInternal.currentHub().scope.propagationContext.traceId, options: self.fixture.options.toInternal(), replayId: nil) let expectedBaggageHeader = traceContext.toBaggage().toHTTPHeader(withOriginalBaggage: nil) XCTAssertEqual(task.currentRequest?.allHTTPHeaderFields?["baggage"] ?? "", expectedBaggageHeader) XCTAssertEqual(task.currentRequest?.allHTTPHeaderFields?["sentry-trace"] ?? "", expectedTraceHeader) @@ -981,7 +981,7 @@ class SentryNetworkTrackerTests: XCTestCase { sut.urlSessionTaskResume(task) let expectedTraceHeader = SentrySDKInternal.currentHub().scope.propagationContext.traceHeader.value() - let traceContext = TraceContext(trace: SentrySDKInternal.currentHub().scope.propagationContext.traceId, options: self.fixture.options, replayId: nil) + let traceContext = TraceContext(trace: SentrySDKInternal.currentHub().scope.propagationContext.traceId, options: self.fixture.options.toInternal(), replayId: nil) let expectedBaggageHeader = traceContext.toBaggage().toHTTPHeader(withOriginalBaggage: nil) XCTAssertEqual(task.currentRequest?.allHTTPHeaderFields?["baggage"] ?? "", expectedBaggageHeader) XCTAssertEqual(task.currentRequest?.allHTTPHeaderFields?["sentry-trace"] ?? "", expectedTraceHeader) diff --git a/Tests/SentryTests/Integrations/Performance/SentryPerformanceTrackerTests.swift b/Tests/SentryTests/Integrations/Performance/SentryPerformanceTrackerTests.swift index e8ac46190e3..8969dd7cd91 100644 --- a/Tests/SentryTests/Integrations/Performance/SentryPerformanceTrackerTests.swift +++ b/Tests/SentryTests/Integrations/Performance/SentryPerformanceTrackerTests.swift @@ -1,4 +1,4 @@ -@_spi(Private) import Sentry +@_spi(Private) @testable import Sentry @_spi(Private) import SentryTestUtils import XCTest @@ -17,7 +17,7 @@ class SentryPerformanceTrackerTests: XCTestCase { init() { scope = Scope() - client = TestClient(options: Options()) + client = TestClient(options: Options().toInternal()) hub = TestHub(client: client, andScope: scope) } diff --git a/Tests/SentryTests/Integrations/Performance/SentryPerformanceTrackingIntegrationTests.swift b/Tests/SentryTests/Integrations/Performance/SentryPerformanceTrackingIntegrationTests.swift index f77535dfd05..3c6a696e46c 100644 --- a/Tests/SentryTests/Integrations/Performance/SentryPerformanceTrackingIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/Performance/SentryPerformanceTrackingIntegrationTests.swift @@ -10,7 +10,7 @@ class SentryPerformanceTrackingIntegrationTests: XCTestCase { let options = Options() options.tracesSampleRate = 0.1 - sut.install(with: options) + sut.install(with: options.toInternalOptions()) XCTAssertNotNil(Dynamic(sut).swizzling.asObject) } @@ -18,7 +18,7 @@ class SentryPerformanceTrackingIntegrationTests: XCTestCase { func testSwizzlingNotInitialized_WhenTracingDisabled() { let sut = SentryPerformanceTrackingIntegration() - sut.install(with: Options()) + sut.install(with: Options().toInternalOptions()) XCTAssertNil(Dynamic(sut).swizzling.asObject) } @@ -29,7 +29,7 @@ class SentryPerformanceTrackingIntegrationTests: XCTestCase { let options = Options() options.tracesSampleRate = 0.1 options.enableAutoPerformanceTracing = false - sut.install(with: options) + sut.install(with: options.toInternalOptions()) XCTAssertNil(Dynamic(sut).swizzling.asObject) } @@ -40,7 +40,7 @@ class SentryPerformanceTrackingIntegrationTests: XCTestCase { let options = Options() options.tracesSampleRate = 0.1 options.enableSwizzling = false - sut.install(with: options) + sut.install(with: options.toInternalOptions()) XCTAssertNil(Dynamic(sut).swizzling.asObject) } @@ -61,7 +61,7 @@ class SentryPerformanceTrackingIntegrationTests: XCTestCase { private func disablesIntegration(_ options: Options) { let sut = SentryPerformanceTrackingIntegration() - let result = sut.install(with: options) + let result = sut.install(with: options.toInternalOptions()) XCTAssertFalse(result) XCTAssertNil(Dynamic(sut).swizzling.asObject) @@ -75,7 +75,7 @@ class SentryPerformanceTrackingIntegrationTests: XCTestCase { let options = Options() options.tracesSampleRate = 0.1 options.enableTimeToFullDisplayTracing = true - sut.install(with: options) + sut.install(with: options.toInternalOptions()) // -- Assert -- let performanceTracker = SentryDependencyContainer.sharedInstance().uiViewControllerPerformanceTracker @@ -90,7 +90,7 @@ class SentryPerformanceTrackingIntegrationTests: XCTestCase { let options = Options() options.tracesSampleRate = 0.1 options.enableTimeToFullDisplayTracing = false - sut.install(with: options) + sut.install(with: options.toInternalOptions()) // -- Assert -- let performanceTracker = SentryDependencyContainer.sharedInstance().uiViewControllerPerformanceTracker diff --git a/Tests/SentryTests/Integrations/Performance/UIViewController/SentryUIViewControllerSwizzlingTests.swift b/Tests/SentryTests/Integrations/Performance/UIViewController/SentryUIViewControllerSwizzlingTests.swift index 3a05e9b87e5..72f129c2b39 100644 --- a/Tests/SentryTests/Integrations/Performance/UIViewController/SentryUIViewControllerSwizzlingTests.swift +++ b/Tests/SentryTests/Integrations/Performance/UIViewController/SentryUIViewControllerSwizzlingTests.swift @@ -28,15 +28,15 @@ class SentryUIViewControllerSwizzlingTests: XCTestCase { } var sut: SentryUIViewControllerSwizzling { - return SentryUIViewControllerSwizzling(options: options, dispatchQueue: dispatchQueue, objcRuntimeWrapper: objcRuntimeWrapper, subClassFinder: subClassFinder, processInfoWrapper: processInfoWrapper, binaryImageCache: binaryImageCache) + return SentryUIViewControllerSwizzling(options: options.toInternal(), dispatchQueue: dispatchQueue, objcRuntimeWrapper: objcRuntimeWrapper, subClassFinder: subClassFinder, processInfoWrapper: processInfoWrapper, binaryImageCache: binaryImageCache) } var sutWithDefaultObjCRuntimeWrapper: SentryUIViewControllerSwizzling { - return SentryUIViewControllerSwizzling(options: options, dispatchQueue: dispatchQueue, objcRuntimeWrapper: SentryDependencyContainer.sharedInstance().objcRuntimeWrapper, subClassFinder: subClassFinder, processInfoWrapper: processInfoWrapper, binaryImageCache: binaryImageCache) + return SentryUIViewControllerSwizzling(options: options.toInternal(), dispatchQueue: dispatchQueue, objcRuntimeWrapper: SentryDependencyContainer.sharedInstance().objcRuntimeWrapper, subClassFinder: subClassFinder, processInfoWrapper: processInfoWrapper, binaryImageCache: binaryImageCache) } var testableSut: TestSentryUIViewControllerSwizzling { - return TestSentryUIViewControllerSwizzling(options: options, dispatchQueue: dispatchQueue, objcRuntimeWrapper: objcRuntimeWrapper, subClassFinder: subClassFinder, processInfoWrapper: processInfoWrapper, binaryImageCache: binaryImageCache) + return TestSentryUIViewControllerSwizzling(options: options.toInternal(), dispatchQueue: dispatchQueue, objcRuntimeWrapper: objcRuntimeWrapper, subClassFinder: subClassFinder, processInfoWrapper: processInfoWrapper, binaryImageCache: binaryImageCache) } var delegate: MockApplication.MockApplicationDelegate { diff --git a/Tests/SentryTests/Integrations/Screenshot/SentryScreenshotIntegrationTests.swift b/Tests/SentryTests/Integrations/Screenshot/SentryScreenshotIntegrationTests.swift index b26a5ea57db..4295aa91eff 100644 --- a/Tests/SentryTests/Integrations/Screenshot/SentryScreenshotIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/Screenshot/SentryScreenshotIntegrationTests.swift @@ -24,7 +24,7 @@ class SentryScreenshotIntegrationTests: XCTestCase { func getSut(options: Options = Options()) -> SentryScreenshotIntegration { let sut = SentryScreenshotIntegration() - sut.install(with: options) + sut.install(with: options.toInternal()) return sut } } diff --git a/Tests/SentryTests/Integrations/SentryBaseIntegrationTests.swift b/Tests/SentryTests/Integrations/SentryBaseIntegrationTests.swift index b74c342dd37..facbe90b713 100644 --- a/Tests/SentryTests/Integrations/SentryBaseIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/SentryBaseIntegrationTests.swift @@ -44,7 +44,7 @@ class SentryBaseIntegrationTests: XCTestCase { let sut = MyTestIntegration() let options = Options() options.enableAutoSessionTracking = false - let result = sut.install(with: options) + let result = sut.install(with: options.toInternal()) XCTAssertFalse(result) XCTAssertFalse(logOutput.loggedMessages.filter({ $0.contains("Not going to enable SentryTests.MyTestIntegration because enableAutoSessionTracking is disabled.") }).isEmpty) } diff --git a/Tests/SentryTests/Integrations/SentryCrash/SentryCrashIntegrationTests.swift b/Tests/SentryTests/Integrations/SentryCrash/SentryCrashIntegrationTests.swift index bba89db4c9b..c30d047822d 100644 --- a/Tests/SentryTests/Integrations/SentryCrash/SentryCrashIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/SentryCrash/SentryCrashIntegrationTests.swift @@ -76,7 +76,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { fixture.client.fileManager.deleteAppState() fixture.client.fileManager.deleteAppHangEvent() - SentrySDKInternal.setStart(with: fixture.options) + SentrySDKInternal.setStart(with: fixture.options.toInternal()) } override func tearDown() { @@ -130,7 +130,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { try advanceTime(bySeconds: 10) let sut = fixture.getSut() - sut.install(with: Options()) + sut.install(with: Options().toInternal()) assertCrashedSessionStored(expected: expectedCrashedSession) } @@ -146,7 +146,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { try advanceTime(bySeconds: 10) let sut = fixture.sutWithoutCrash - sut.install(with: fixture.options) + sut.install(with: fixture.options.toInternal()) assertCrashedSessionStored(expected: expectedCrashedSession) } @@ -159,7 +159,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let sut = fixture.sutWithoutCrash let options = fixture.options options.enableWatchdogTerminationTracking = false - sut.install(with: options) + sut.install(with: options.toInternal()) let fileManager = fixture.client.fileManager XCTAssertEqual(session, fileManager.readCurrentSession()) @@ -172,7 +172,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { func testEndSessionAsCrashed_NoClientSet() { let (sut, _) = givenSutWithGlobalHub() - sut.install(with: Options()) + sut.install(with: Options().toInternal()) let fileManager = fixture.client.fileManager XCTAssertNil(fileManager.readCurrentSession()) @@ -186,7 +186,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let sentryCrash = fixture.sentryCrash sentryCrash.internalCrashedLastLaunch = false let sut = SentryCrashIntegration(crashAdapter: sentryCrash, andDispatchQueueWrapper: fixture.dispatchQueueWrapper) - sut.install(with: Options()) + sut.install(with: Options().toInternal()) let fileManager = fixture.client.fileManager XCTAssertEqual(session, fileManager.readCurrentSession()) @@ -197,7 +197,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { func testEndSessionAsCrashed_NoCurrentSession() { let (sut, _) = givenSutWithGlobalHub() - sut.install(with: Options()) + sut.install(with: Options().toInternal()) let fileManager = fixture.client.fileManager XCTAssertNil(fileManager.readCurrentSession()) @@ -215,7 +215,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let sut = SentryCrashIntegration(crashAdapter: sentryCrash, andDispatchQueueWrapper: fixture.dispatchQueueWrapper) // Act - sut.install(with: Options()) + sut.install(with: Options().toInternal()) // Assert let fileManager = fixture.client.fileManager @@ -232,7 +232,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let sut = SentryCrashIntegration(crashAdapter: sentryCrash, andDispatchQueueWrapper: fixture.dispatchQueueWrapper) // Act - sut.install(with: Options()) + sut.install(with: Options().toInternal()) // Assert let fileManager = fixture.client.fileManager @@ -251,7 +251,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let session = givenCurrentSession() // Act - sut.install(with: Options()) + sut.install(with: Options().toInternal()) // Assert let fileManager = fixture.client.fileManager @@ -279,7 +279,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { fileManager.storeAppHang(appHangEvent) // Act - sut.install(with: Options()) + sut.install(with: Options().toInternal()) // Assert XCTAssertEqual(session, fileManager.readCurrentSession()) @@ -301,7 +301,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { fileManager.storeAppHang(appHangEvent) // Act - sut.install(with: Options()) + sut.install(with: Options().toInternal()) // Assert XCTAssertNil(fileManager.readCurrentSession()) @@ -329,7 +329,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { // Act let sut = fixture.getSut() - sut.install(with: Options()) + sut.install(with: Options().toInternal()) // Assert assertCrashedSessionStored(expected: expectedCrashedSession) @@ -341,7 +341,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { func testUninstall_DoesNotUpdateLocale_OnLocaleDidChangeNotification() { let (sut, hub) = givenSutWithGlobalHubAndCrashWrapper() - sut.install(with: Options()) + sut.install(with: Options().toInternal()) let locale = "garbage" setLocaleToGlobalScope(locale: locale) @@ -356,7 +356,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { func testOSCorrectlySetToScopeContext() { let (sut, hub) = givenSutWithGlobalHubAndCrashWrapper() - sut.install(with: Options()) + sut.install(with: Options().toInternal()) assertContext(context: hub.scope.contextDictionary as? [String: Any] ?? ["": ""]) } @@ -364,7 +364,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { func testLocaleChanged_NoDeviceContext_SetsCurrentLocale() { let (sut, hub) = givenSutWithGlobalHub() - sut.install(with: Options()) + sut.install(with: Options().toInternal()) SentrySDK.configureScope { scope in scope.removeContext(key: "device") @@ -378,7 +378,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { func testLocaleChanged_DifferentLocale_SetsCurrentLocale() { let (sut, hub) = givenSutWithGlobalHubAndCrashWrapper() - sut.install(with: Options()) + sut.install(with: Options().toInternal()) setLocaleToGlobalScope(locale: "garbage") @@ -389,7 +389,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { func testStartUpCrash_CallsFlush() throws { let (sut, hub) = givenSutWithGlobalHubAndCrashWrapper() - sut.install(with: Options()) + sut.install(with: Options().toInternal()) // Manually reset and enable the crash state because tearing down the global state in SentryCrash to achieve the same is complicated and doesn't really work. let crashStatePath = String(cString: sentrycrashstate_filePath()) @@ -399,7 +399,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let transport = TestTransport() let client = SentryClientInternal(options: fixture.options, fileManager: fixture.fileManager) - Dynamic(client).transportAdapter = TestTransportAdapter(transports: [transport], options: fixture.options) + Dynamic(client).transportAdapter = TestTransportAdapter(transports: [transport], options: fixture.options.toInternal()) hub.bindClient(client) delayNonBlocking(timeout: 0.01) @@ -430,7 +430,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let (sut, _) = givenSutWithGlobalHubAndCrashWrapper() let options = Options() options.enableUncaughtNSExceptionReporting = true - sut.install(with: options) + sut.install(with: options.toInternal()) XCTAssertTrue(UserDefaults.standard.bool(forKey: "NSApplicationCrashOnExceptions")) // We have to set the flat to false, cause otherwise we would crash @@ -455,7 +455,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let options = Options() options.enableUncaughtNSExceptionReporting = true options.enableSwizzling = false - sut.install(with: options) + sut.install(with: options.toInternal()) XCTAssertFalse(UserDefaults.standard.bool(forKey: "NSApplicationCrashOnExceptions")) @@ -477,7 +477,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let (sut, _) = givenSutWithGlobalHubAndCrashWrapper() let options = Options() options.enableUncaughtNSExceptionReporting = false - sut.install(with: options) + sut.install(with: options.toInternal()) XCTAssertFalse(UserDefaults.standard.bool(forKey: "NSApplicationCrashOnExceptions")) @@ -503,7 +503,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { options.experimental.enableUnhandledCPPExceptionsV2 = true // Act - sut.install(with: options) + sut.install(with: options.toInternal()) // Assert XCTAssertTrue(sentrycrashct_is_cxa_throw_swapped(), "C++ exception throw handler must be swapped when enableUnhandledCPPExceptionsV2 is true.") @@ -518,7 +518,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { options.experimental.enableUnhandledCPPExceptionsV2 = false // Act - sut.install(with: options) + sut.install(with: options.toInternal()) // Assert XCTAssertFalse(sentrycrashct_is_cxa_throw_swapped(), "C++ exception throw handler must NOT be swapped when enableUnhandledCPPExceptionsV2 is false.") @@ -528,7 +528,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let (sut, _) = givenSutWithGlobalHubAndCrashWrapper() let options = Options() options.enablePersistingTracesWhenCrashing = true - sut.install(with: options) + sut.install(with: options.toInternal()) XCTAssertTrue(sentrycrash_hasSaveTransaction()) } @@ -537,7 +537,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let (sut, _) = givenSutWithGlobalHubAndCrashWrapper() let options = Options() options.enablePersistingTracesWhenCrashing = true - sut.install(with: options) + sut.install(with: options.toInternal()) sut.uninstall() @@ -548,7 +548,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let (sut, _) = givenSutWithGlobalHubAndCrashWrapper() let options = Options() options.enablePersistingTracesWhenCrashing = false - sut.install(with: options) + sut.install(with: options.toInternal()) XCTAssertFalse(sentrycrash_hasSaveTransaction()) } @@ -557,13 +557,13 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let options = fixture.options options.enablePersistingTracesWhenCrashing = true - let client = SentryClientInternal(options: options) + let client = SentryClientInternal(options: options.toInternal()) defer { client?.fileManager.deleteAllEnvelopes() } let hub = SentryHubInternal(client: client, andScope: nil) SentrySDKInternal.setCurrentHub(hub) let sut = fixture.getSut(crashWrapper: SentryDependencyContainer.sharedInstance().crashWrapper) - sut.install(with: options) + sut.install(with: options.toInternal()) let transaction = SentrySDK.startTransaction(name: "Crashing", operation: "Operation", bindToScope: true) @@ -582,13 +582,13 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let options = fixture.options options.enablePersistingTracesWhenCrashing = true - let client = SentryClientInternal(options: options) + let client = SentryClientInternal(options: options.toInternal()) defer { client?.fileManager.deleteAllEnvelopes() } let hub = SentryHubInternal(client: client, andScope: nil) SentrySDKInternal.setCurrentHub(hub) let sut = fixture.getSut(crashWrapper: SentryDependencyContainer.sharedInstance().crashWrapper) - sut.install(with: options) + sut.install(with: options.toInternal()) let transaction = SentrySDK.startTransaction(name: "name", operation: "operation", bindToScope: true) SentrySDKInternal.currentHub().scope.span = nil @@ -603,13 +603,13 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let options = fixture.options options.enablePersistingTracesWhenCrashing = true - let client = SentryClientInternal(options: options) + let client = SentryClientInternal(options: options.toInternal()) defer { client?.fileManager.deleteAllEnvelopes() } let hub = SentryHubInternal(client: client, andScope: nil) SentrySDKInternal.setCurrentHub(hub) let sut = fixture.getSut(crashWrapper: SentryDependencyContainer.sharedInstance().crashWrapper) - sut.install(with: options) + sut.install(with: options.toInternal()) let transaction = SentrySDK.startTransaction(name: "name", operation: "operation", bindToScope: true) let span = transaction.startChild(operation: "child") diff --git a/Tests/SentryTests/Integrations/SentryCrash/SentryTestIntegration.h b/Tests/SentryTests/Integrations/SentryCrash/SentryTestIntegration.h index ad6e84f95db..7a4fb4c870e 100644 --- a/Tests/SentryTests/Integrations/SentryCrash/SentryTestIntegration.h +++ b/Tests/SentryTests/Integrations/SentryCrash/SentryTestIntegration.h @@ -1,13 +1,13 @@ #import "Sentry/SentryIntegrationProtocol.h" #import -@class SentryOptions; +@class SentryOptionsInternal; NS_ASSUME_NONNULL_BEGIN @interface SentryTestIntegration : NSObject -@property (nonatomic, strong) SentryOptions *options; +@property (nonatomic, strong) SentryOptionsInternal *options; @end diff --git a/Tests/SentryTests/Integrations/SentryCrash/SentryTestIntegration.m b/Tests/SentryTests/Integrations/SentryCrash/SentryTestIntegration.m index 3e15ab822e4..2fc03dc3cc8 100644 --- a/Tests/SentryTests/Integrations/SentryCrash/SentryTestIntegration.m +++ b/Tests/SentryTests/Integrations/SentryCrash/SentryTestIntegration.m @@ -4,7 +4,7 @@ @implementation SentryTestIntegration -- (BOOL)installWithOptions:(SentryOptions *)options +- (BOOL)installWithOptions:(SentryOptionsInternal *)options { self.options = options; return YES; diff --git a/Tests/SentryTests/Integrations/Session/SentryAutoSessionTrackingIntegrationTests.swift b/Tests/SentryTests/Integrations/Session/SentryAutoSessionTrackingIntegrationTests.swift index f2aafae448f..56c2dd18bf2 100644 --- a/Tests/SentryTests/Integrations/Session/SentryAutoSessionTrackingIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/Session/SentryAutoSessionTrackingIntegrationTests.swift @@ -1,3 +1,4 @@ +@testable import Sentry import SentryTestUtils import XCTest @@ -5,7 +6,7 @@ class SentryAutoSessionTrackingIntegrationTests: XCTestCase { func test_AutoSessionTrackingEnabled_TrackerInitialized() { let sut = SentryAutoSessionTrackingIntegration() - sut.install(with: Options()) + sut.install(with: Options().toInternal()) XCTAssertNotNil(Dynamic(sut).tracker.asAnyObject) } @@ -15,7 +16,7 @@ class SentryAutoSessionTrackingIntegrationTests: XCTestCase { options.enableAutoSessionTracking = false let sut = SentryAutoSessionTrackingIntegration() - let result = sut.install(with: options) + let result = sut.install(with: options.toInternal()) XCTAssertFalse(result) } diff --git a/Tests/SentryTests/Integrations/Session/SentrySessionGeneratorTests.swift b/Tests/SentryTests/Integrations/Session/SentrySessionGeneratorTests.swift index 5690bd5a7ef..124d3c697db 100644 --- a/Tests/SentryTests/Integrations/Session/SentrySessionGeneratorTests.swift +++ b/Tests/SentryTests/Integrations/Session/SentrySessionGeneratorTests.swift @@ -92,9 +92,9 @@ class SentrySessionGeneratorTests: NotificationCenterTestCase { sentryCrash.internalCrashedLastLaunch = true for _ in Array(1...amount.crashed) { // send crashed session - crashIntegration.install(with: options) + crashIntegration.install(with: options.toInternal()) autoSessionTrackingIntegration.stop() - autoSessionTrackingIntegration.install(with: options) + autoSessionTrackingIntegration.install(with: options.toInternal()) goToForeground() // Almost always the AutoSessionTrackingIntegration is faster @@ -114,10 +114,10 @@ class SentrySessionGeneratorTests: NotificationCenterTestCase { for _ in Array(1...amount.oom) { // send crashed session - crashIntegration.install(with: options) + crashIntegration.install(with: options.toInternal()) autoSessionTrackingIntegration.stop() - autoSessionTrackingIntegration.install(with: options) + autoSessionTrackingIntegration.install(with: options.toInternal()) goToForeground() SentrySDKInternal.captureFatalEvent(TestData.oomEvent) @@ -127,7 +127,7 @@ class SentrySessionGeneratorTests: NotificationCenterTestCase { for _ in Array(1...amount.abnormal) { autoSessionTrackingIntegration.stop() - autoSessionTrackingIntegration.install(with: options) + autoSessionTrackingIntegration.install(with: options.toInternal()) goToForeground() } @@ -148,10 +148,10 @@ class SentrySessionGeneratorTests: NotificationCenterTestCase { SentrySDKInternal.setCurrentHub(hub) crashIntegration = SentryCrashIntegration(crashAdapter: sentryCrash, andDispatchQueueWrapper: TestSentryDispatchQueueWrapper()) - crashIntegration.install(with: options) + crashIntegration.install(with: options.toInternal()) autoSessionTrackingIntegration = SentryAutoSessionTrackingIntegration() - autoSessionTrackingIntegration.install(with: options) + autoSessionTrackingIntegration.install(with: options.toInternal()) } private func goToForeground(forSeconds: TimeInterval = 0.2) { diff --git a/Tests/SentryTests/Integrations/Session/SentrySessionTrackerTests.swift b/Tests/SentryTests/Integrations/Session/SentrySessionTrackerTests.swift index ee0ed31e4e4..54d74d5c8db 100644 --- a/Tests/SentryTests/Integrations/Session/SentrySessionTrackerTests.swift +++ b/Tests/SentryTests/Integrations/Session/SentrySessionTrackerTests.swift @@ -32,7 +32,7 @@ class SentrySessionTrackerTests: XCTestCase { options.sessionTrackingIntervalMillis = 10_000 options.environment = "debug" - client = TestClient(options: options) + client = TestClient(options: options.toInternal()) sentryCrash = TestSentryCrashWrapper(processInfoWrapper: ProcessInfo.processInfo) diff --git a/Tests/SentryTests/Integrations/SessionReplay/SentryReplayApiTests.swift b/Tests/SentryTests/Integrations/SessionReplay/SentryReplayApiTests.swift index 19ae9f05d46..1a00d5b80c3 100644 --- a/Tests/SentryTests/Integrations/SessionReplay/SentryReplayApiTests.swift +++ b/Tests/SentryTests/Integrations/SessionReplay/SentryReplayApiTests.swift @@ -15,7 +15,7 @@ class SentryReplayApiTests: XCTestCase { func testStart_whenReplayIntegrationAlreadyInstalled_shouldCallStartOnExistingIntegration() { // Arrange - let mockClient = TestClient(options: Options()) + let mockClient = TestClient(options: Options().toInternal()) let mockReplayIntegration = MockSessionReplayIntegration() let mockHub = TestHub(client: mockClient, andScope: Scope()) mockHub.removeAllIntegrations() @@ -37,7 +37,7 @@ class SentryReplayApiTests: XCTestCase { let options = Options() options.sessionReplay = SentryReplayOptions(sessionSampleRate: 1.0, onErrorSampleRate: 1.0) options.experimental.enableSessionReplayInUnreliableEnvironment = false - let mockClient = TestClient(options: options) + let mockClient = TestClient(options: options.toInternal()) let mockHub = TestHub(client: mockClient, andScope: Scope()) mockHub.removeAllIntegrations() SentrySDKInternal.setCurrentHub(mockHub) @@ -59,7 +59,7 @@ class SentryReplayApiTests: XCTestCase { options.sessionReplay = SentryReplayOptions(sessionSampleRate: 1.0, onErrorSampleRate: 1.0) options.experimental.enableSessionReplayInUnreliableEnvironment = true options.dsn = "https://user@test.com/test" - let mockClient = TestClient(options: options) + let mockClient = TestClient(options: options.toInternal()) let mockHub = TestHub(client: mockClient, andScope: Scope()) mockHub.removeAllIntegrations() SentrySDKInternal.setCurrentHub(mockHub) diff --git a/Tests/SentryTests/Integrations/SessionReplay/SentryReplayOptionsObjcTests.m b/Tests/SentryTests/Integrations/SessionReplay/SentryReplayOptionsObjcTests.m index 5c606b38ab3..307e7adb13e 100644 --- a/Tests/SentryTests/Integrations/SessionReplay/SentryReplayOptionsObjcTests.m +++ b/Tests/SentryTests/Integrations/SessionReplay/SentryReplayOptionsObjcTests.m @@ -1,4 +1,4 @@ -#import "SentryOptions+Private.h" +#import "SentryOptionsInternal+Private.h" #import #import diff --git a/Tests/SentryTests/Integrations/SessionReplay/SentrySessionReplayIntegrationTests.swift b/Tests/SentryTests/Integrations/SessionReplay/SentrySessionReplayIntegrationTests.swift index 8d76a207cd1..6d7570c385a 100644 --- a/Tests/SentryTests/Integrations/SessionReplay/SentrySessionReplayIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/SessionReplay/SentrySessionReplayIntegrationTests.swift @@ -562,7 +562,7 @@ class SentrySessionReplayIntegrationTests: XCTestCase { // We can't use SentrySDK.start because the dependency container dispatch queue is used for other tasks. // Manually starting the integration and initializing it makes the test more controlled. let integration = SentrySessionReplayIntegration() - integration.install(with: options) + integration.install(with: options.toInternal()) XCTAssertEqual(dispatchQueue.dispatchAsyncCalled, 0) } @@ -728,7 +728,7 @@ class SentrySessionReplayIntegrationTests: XCTestCase { options.sessionReplay = SentryReplayOptions(sessionSampleRate: 1.0, onErrorSampleRate: 1.0) let instance = SentrySessionReplayIntegration() - instance.install(with: options) + instance.install(with: options.toInternal()) instance.uninstall() weakSut = instance @@ -752,7 +752,7 @@ class SentrySessionReplayIntegrationTests: XCTestCase { SentryDependencyContainer.sharedInstance().sessionReplayEnvironmentChecker = TestSessionReplayEnvironmentChecker(mockedIsReliableReturnValue: false) // -- Act -- - let result = instance.install(with: options) + let result = instance.install(with: options.toInternal()) // -- Assert -- XCTAssertFalse(result) @@ -769,7 +769,7 @@ class SentrySessionReplayIntegrationTests: XCTestCase { SentryDependencyContainer.sharedInstance().sessionReplayEnvironmentChecker = TestSessionReplayEnvironmentChecker(mockedIsReliableReturnValue: false) // -- Act -- - let result = instance.install(with: options) + let result = instance.install(with: options.toInternal()) // -- Assert -- XCTAssertTrue(result) @@ -786,7 +786,7 @@ class SentrySessionReplayIntegrationTests: XCTestCase { SentryDependencyContainer.sharedInstance().sessionReplayEnvironmentChecker = TestSessionReplayEnvironmentChecker(mockedIsReliableReturnValue: true) // -- Act -- - let result = instance.install(with: options) + let result = instance.install(with: options.toInternal()) // -- Assert -- XCTAssertTrue(result) diff --git a/Tests/SentryTests/Integrations/UIEvents/SentryUIEventTrackerTests.swift b/Tests/SentryTests/Integrations/UIEvents/SentryUIEventTrackerTests.swift index 8bc0f50255f..273a4f75042 100644 --- a/Tests/SentryTests/Integrations/UIEvents/SentryUIEventTrackerTests.swift +++ b/Tests/SentryTests/Integrations/UIEvents/SentryUIEventTrackerTests.swift @@ -1,4 +1,4 @@ -@_spi(Private) import Sentry +@_spi(Private) @testable import Sentry @_spi(Private) import SentryTestUtils import XCTest @@ -8,7 +8,7 @@ class SentryUIEventTrackerTests: XCTestCase { private class Fixture { let swizzleWrapper = TestSentrySwizzleWrapper() let target = FirstViewController() - let hub = SentryHubInternal(client: TestClient(options: Options()), andScope: nil) + let hub = SentryHubInternal(client: TestClient(options: Options().toInternal()), andScope: nil) let dispatchQueue = TestSentryDispatchQueueWrapper() let uiEventTrackerMode: SentryUIEventTrackerMode let button = UIButton() diff --git a/Tests/SentryTests/Integrations/UIEvents/SentryUIEventTrackingIntegrationTests.swift b/Tests/SentryTests/Integrations/UIEvents/SentryUIEventTrackingIntegrationTests.swift index 3fdf475f30b..cab2110d734 100644 --- a/Tests/SentryTests/Integrations/UIEvents/SentryUIEventTrackingIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/UIEvents/SentryUIEventTrackingIntegrationTests.swift @@ -11,13 +11,13 @@ class SentryUIEventTrackerIntegrationTests: XCTestCase { return SentryUIEventTrackingIntegration() } - func optionForUIEventTracking(enableSwizzling: Bool = true, enableAutoPerformanceTracing: Bool = true, enableUserInteractionTracing: Bool = true, tracesSampleRate: Double = 1.0) -> Options { + func optionForUIEventTracking(enableSwizzling: Bool = true, enableAutoPerformanceTracing: Bool = true, enableUserInteractionTracing: Bool = true, tracesSampleRate: Double = 1.0) -> SentryOptionsInternal { let res = Options() res.enableSwizzling = enableSwizzling res.enableAutoPerformanceTracing = enableAutoPerformanceTracing res.enableUserInteractionTracing = enableUserInteractionTracing res.tracesSampleRate = NSNumber(value: tracesSampleRate) - return res + return res.toInternal() } } diff --git a/Tests/SentryTests/Integrations/ViewHierarchy/SentryViewHierarchyIntegrationTests.swift b/Tests/SentryTests/Integrations/ViewHierarchy/SentryViewHierarchyIntegrationTests.swift index e9de03c768f..6f5649a3dc6 100644 --- a/Tests/SentryTests/Integrations/ViewHierarchy/SentryViewHierarchyIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/ViewHierarchy/SentryViewHierarchyIntegrationTests.swift @@ -1,6 +1,6 @@ #if os(iOS) || os(tvOS) || targetEnvironment(macCatalyst) -@_spi(Private) import Sentry +@_spi(Private) @testable import Sentry @_spi(Private) import SentryTestUtils import SentryTestUtils import XCTest @@ -125,7 +125,7 @@ class SentryViewHierarchyIntegrationTests: XCTestCase { return false } - sut.install(with: options) + sut.install(with: options.toInternal()) let newAttachmentList = sut.processAttachments([], for: Event(error: NSError(domain: "", code: -1))) diff --git a/Tests/SentryTests/Integrations/WatchdogTerminations/SentryWatchdogTerminationTrackerTests.swift b/Tests/SentryTests/Integrations/WatchdogTerminations/SentryWatchdogTerminationTrackerTests.swift index bbc42045462..a7d4f0ea50e 100644 --- a/Tests/SentryTests/Integrations/WatchdogTerminations/SentryWatchdogTerminationTrackerTests.swift +++ b/Tests/SentryTests/Integrations/WatchdogTerminations/SentryWatchdogTerminationTrackerTests.swift @@ -9,7 +9,7 @@ class SentryWatchdogTerminationTrackerTests: NotificationCenterTestCase { private class Fixture { - let options: Options + let options: SentryOptionsInternal let client: TestClient! let crashWrapper: TestSentryCrashWrapper let fileManager: SentryFileManager @@ -23,10 +23,11 @@ class SentryWatchdogTerminationTrackerTests: NotificationCenterTestCase { init() throws { SentryDependencyContainer.sharedInstance().sysctlWrapper = sysctl - options = Options() + let options = Options() options.maxBreadcrumbs = 2 options.dsn = SentryWatchdogTerminationTrackerTests.dsnAsString options.releaseName = TestData.appState.releaseName + self.options = options.toInternal() fileManager = try! SentryFileManager(options: options, dateProvider: currentDate, dispatchQueueWrapper: dispatchQueue) @@ -38,7 +39,7 @@ class SentryWatchdogTerminationTrackerTests: NotificationCenterTestCase { scopePersistentStore: scopePersistentStore ) - client = TestClient(options: options) + client = TestClient(options: self.options) crashWrapper = TestSentryCrashWrapper(processInfoWrapper: ProcessInfo.processInfo) diff --git a/Tests/SentryTests/Integrations/WatchdogTerminations/SentryWatchdogTerminationTrackingIntegrationTests.swift b/Tests/SentryTests/Integrations/WatchdogTerminations/SentryWatchdogTerminationTrackingIntegrationTests.swift index ad3550eb6f6..db799e4f5b6 100644 --- a/Tests/SentryTests/Integrations/WatchdogTerminations/SentryWatchdogTerminationTrackingIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/WatchdogTerminations/SentryWatchdogTerminationTrackingIntegrationTests.swift @@ -52,7 +52,7 @@ class SentryWatchdogTerminationIntegrationTests: XCTestCase { SentryDependencyContainer.sharedInstance().dispatchQueueWrapper = dispatchQueueWrapper SentryDependencyContainer.sharedInstance().notificationCenterWrapper = notificationCenterWrapper appStateManager = SentryAppStateManager( - options: options, + options: options.toInternal(), crashWrapper: crashWrapper, fileManager: fileManager, sysctlWrapper: SentryDependencyContainer.sharedInstance().sysctlWrapper @@ -67,7 +67,7 @@ class SentryWatchdogTerminationIntegrationTests: XCTestCase { ) container.watchdogTerminationAttributesProcessor = watchdogTerminationAttributesProcessor - let client = TestClient(options: options) + let client = TestClient(options: options.toInternal()) scope = Scope() hub = SentryHubInternal(client: client, andScope: scope, andCrashWrapper: crashWrapper, andDispatchQueue: dispatchQueueWrapper) SentrySDKInternal.setCurrentHub(hub) @@ -123,7 +123,7 @@ class SentryWatchdogTerminationIntegrationTests: XCTestCase { let sut = fixture.getSut() // -- Act -- - let result = sut.install(with: fixture.options) + let result = sut.install(with: fixture.options.toInternal()) // -- Assert -- XCTAssertFalse(result) @@ -138,7 +138,7 @@ class SentryWatchdogTerminationIntegrationTests: XCTestCase { let sut = fixture.getSut() // -- Act -- - let result = sut.install(with: fixture.options) + let result = sut.install(with: fixture.options.toInternal()) // -- Assert -- XCTAssertFalse(result) @@ -153,7 +153,7 @@ class SentryWatchdogTerminationIntegrationTests: XCTestCase { let sut = fixture.getSut() // -- Act -- - let result = sut.install(with: fixture.options) + let result = sut.install(with: fixture.options.toInternal()) // -- Assert -- XCTAssertFalse(result) @@ -162,7 +162,7 @@ class SentryWatchdogTerminationIntegrationTests: XCTestCase { func testInstallWithOptions_whenNoUnitTests_trackerInitialized() { let sut = SentryWatchdogTerminationTrackingIntegration() Dynamic(sut).setTestConfigurationFilePath(nil) - sut.install(with: Options()) + sut.install(with: Options().toInternal()) XCTAssertNotNil(Dynamic(sut).tracker.asAnyObject) } @@ -181,7 +181,7 @@ class SentryWatchdogTerminationIntegrationTests: XCTestCase { XCTAssertEqual(fixture.watchdogTerminationAttributesProcessor.setFingerprintInvocations.count, 0) // -- Act -- - sut.install(with: fixture.options) + sut.install(with: fixture.options.toInternal()) XCTAssertEqual(fixture.watchdogTerminationAttributesProcessor.setContextInvocations.count, 1) XCTAssertEqual(fixture.watchdogTerminationAttributesProcessor.setUserInvocations.count, 1) XCTAssertEqual(fixture.watchdogTerminationAttributesProcessor.setDistInvocations.count, 1) @@ -243,7 +243,7 @@ class SentryWatchdogTerminationIntegrationTests: XCTestCase { XCTAssertEqual(fixture.watchdogTerminationAttributesProcessor.setFingerprintInvocations.count, 0) // -- Act -- - sut.install(with: fixture.options) + sut.install(with: fixture.options.toInternal()) // -- Assert -- // As the instance of the scope observer is dynamically created by the dependency container, @@ -271,7 +271,7 @@ class SentryWatchdogTerminationIntegrationTests: XCTestCase { // -- Arrange -- fixture.crashWrapper.internalIsBeingTraced = false let sut = fixture.getSut() - sut.install(with: Options()) + sut.install(with: Options().toInternal()) // -- Act -- Dynamic(sut).anrDetectedWithType(SentryANRType.unknown) @@ -285,7 +285,7 @@ class SentryWatchdogTerminationIntegrationTests: XCTestCase { // -- Arrange -- fixture.crashWrapper.internalIsBeingTraced = false let sut = fixture.getSut() - sut.install(with: Options()) + sut.install(with: Options().toInternal()) // -- Act -- Dynamic(sut).anrStopped() diff --git a/Tests/SentryTests/Networking/SentrySpotlightTransportTests.swift b/Tests/SentryTests/Networking/SentrySpotlightTransportTests.swift index 3cbc8cc5878..e8f70e4bf94 100644 --- a/Tests/SentryTests/Networking/SentrySpotlightTransportTests.swift +++ b/Tests/SentryTests/Networking/SentrySpotlightTransportTests.swift @@ -24,7 +24,7 @@ final class SentrySpotlightTransportTests: XCTestCase { options.spotlightUrl = spotlightUrl ?? "" } - return SentrySpotlightTransport(options: options, requestManager: requestManager, requestBuilder: requestBuilder, dispatchQueueWrapper: TestSentryDispatchQueueWrapper()) + return SentrySpotlightTransport(options: options.toInternal(), requestManager: requestManager, requestBuilder: requestBuilder, dispatchQueueWrapper: TestSentryDispatchQueueWrapper()) } private func givenEventEnvelope(withAttachment: Bool = false) throws -> SentryEnvelope { diff --git a/Tests/SentryTests/Networking/SentryTransportAdapterTests.swift b/Tests/SentryTests/Networking/SentryTransportAdapterTests.swift index bb249db2545..bf2467aede2 100644 --- a/Tests/SentryTests/Networking/SentryTransportAdapterTests.swift +++ b/Tests/SentryTests/Networking/SentryTransportAdapterTests.swift @@ -13,7 +13,7 @@ class SentryTransportAdapterTests: XCTestCase { let attachment = Attachment(data: Data(), filename: "test.txt") var sut: SentryTransportAdapter { - return SentryTransportAdapter(transports: [transport1, transport2], options: options) + return SentryTransportAdapter(transports: [transport1, transport2], options: options.toInternal()) } } diff --git a/Tests/SentryTests/Networking/SentryTransportFactoryTests.swift b/Tests/SentryTests/Networking/SentryTransportFactoryTests.swift index f147c618a97..e24d6200c87 100644 --- a/Tests/SentryTests/Networking/SentryTransportFactoryTests.swift +++ b/Tests/SentryTests/Networking/SentryTransportFactoryTests.swift @@ -27,7 +27,7 @@ class SentryTransportFactoryTests: XCTestCase { // -- Act -- let transports = TransportInitializer.initTransports( - options, + options.toInternal(), dateProvider: dateProvider, sentryFileManager: fileManager, rateLimits: rateLimiting() @@ -67,7 +67,7 @@ class SentryTransportFactoryTests: XCTestCase { // -- Act -- let transports = TransportInitializer.initTransports( - options, + options.toInternal(), dateProvider: dateProvider, sentryFileManager: fileManager, rateLimits: rateLimiting() @@ -96,7 +96,7 @@ class SentryTransportFactoryTests: XCTestCase { // -- Act -- let transports = TransportInitializer.initTransports( - options, + options.toInternal(), dateProvider: dateProvider, sentryFileManager: try SentryFileManager( options: options, @@ -126,7 +126,7 @@ class SentryTransportFactoryTests: XCTestCase { // -- Act -- let transports = TransportInitializer.initTransports( - options, + options.toInternal(), dateProvider: dateProvider, sentryFileManager: try SentryFileManager( options: options, @@ -150,7 +150,7 @@ class SentryTransportFactoryTests: XCTestCase { // -- Act -- let transports = TransportInitializer.initTransports( - options, + options.toInternal(), dateProvider: dateProvider, sentryFileManager: try SentryFileManager( options: options, diff --git a/Tests/SentryTests/Networking/SentryTransportInitializerTests.swift b/Tests/SentryTests/Networking/SentryTransportInitializerTests.swift index c44bbbaed6e..8c86c0e1657 100644 --- a/Tests/SentryTests/Networking/SentryTransportInitializerTests.swift +++ b/Tests/SentryTests/Networking/SentryTransportInitializerTests.swift @@ -27,7 +27,7 @@ class SentryTransportInitializerTests: XCTestCase { let options = try SentryOptionsInternal.initWithDict(["dsn": SentryTransportInitializerTests.dsnAsString]) let result = TransportInitializer.initTransports( - options, + options.toInternal(), dateProvider: dateProvider, sentryFileManager: fileManager, rateLimits: rateLimits diff --git a/Tests/SentryTests/PrivateSentrySDKOnlyTests.swift b/Tests/SentryTests/PrivateSentrySDKOnlyTests.swift index c76dc3ec2da..c264d4c7dbe 100644 --- a/Tests/SentryTests/PrivateSentrySDKOnlyTests.swift +++ b/Tests/SentryTests/PrivateSentrySDKOnlyTests.swift @@ -15,7 +15,7 @@ class PrivateSentrySDKOnlyTests: XCTestCase { } func testStoreEnvelope() { - let client = TestClient(options: Options()) + let client = TestClient(options: Options().toInternal()) SentrySDKInternal.setCurrentHub(TestHub(client: client, andScope: nil)) let envelope = TestConstants.envelope @@ -26,7 +26,7 @@ class PrivateSentrySDKOnlyTests: XCTestCase { } func testStoreEnvelopeWithUndhandled_MarksSessionAsCrashedAndDoesNotStartNewSession() throws { - let client = TestClient(options: Options()) + let client = TestClient(options: Options().toInternal()) let hub = TestHub(client: client, andScope: nil) SentrySDKInternal.setCurrentHub(hub) hub.setTestSession() @@ -46,7 +46,7 @@ class PrivateSentrySDKOnlyTests: XCTestCase { } func testCaptureEnvelope() { - let client = TestClient(options: Options()) + let client = TestClient(options: Options().toInternal()) SentrySDKInternal.setCurrentHub(TestHub(client: client, andScope: nil)) let envelope = TestConstants.envelope @@ -57,7 +57,7 @@ class PrivateSentrySDKOnlyTests: XCTestCase { } func testCaptureEnvelopeWithUndhandled_MarksSessionAsCrashedAndStartsNewSession() throws { - let client = TestClient(options: Options()) + let client = TestClient(options: Options().toInternal()) let hub = TestHub(client: client, andScope: nil) SentrySDKInternal.setCurrentHub(hub) hub.setTestSession() @@ -228,7 +228,7 @@ class PrivateSentrySDKOnlyTests: XCTestCase { func testOptions() { let options = Options() options.dsn = TestConstants.dsnAsString(username: "SentryFramesTrackingIntegrationTests") - let client = TestClient(options: options) + let client = TestClient(options: options.toInternal()) SentrySDKInternal.setCurrentHub(TestHub(client: client, andScope: nil)) XCTAssertEqual(PrivateSentrySDKOnly.options, options) @@ -262,7 +262,7 @@ class PrivateSentrySDKOnlyTests: XCTestCase { } let options = Options() options.dsn = TestConstants.dsnAsString(username: "SentryFramesTrackingIntegrationTests") - let client = TestClient(options: options) + let client = TestClient(options: options.toInternal()) SentrySDKInternal.setCurrentHub(TestHub(client: client, andScope: nil)) let traceIdA = SentryId() @@ -300,7 +300,7 @@ class PrivateSentrySDKOnlyTests: XCTestCase { func testProfilingDiscard() { let options = Options() options.dsn = TestConstants.dsnAsString(username: "SentryFramesTrackingIntegrationTests") - let client = TestClient(options: options) + let client = TestClient(options: options.toInternal()) SentrySDKInternal.setCurrentHub(TestHub(client: client, andScope: nil)) let traceIdA = SentryId() @@ -355,7 +355,7 @@ class PrivateSentrySDKOnlyTests: XCTestCase { let options = Options.noIntegrations() options.sessionReplay = .init(sessionSampleRate: 1.0) options.experimental.enableSessionReplayInUnreliableEnvironment = true - SentrySDKInternal.start(options: options) + SentrySDKInternal.start(options: options.toInternal()) var didCallCaptureReplay = false let cls: AnyClass = SentrySessionReplayIntegration.self @@ -385,7 +385,7 @@ class PrivateSentrySDKOnlyTests: XCTestCase { } func testGetReplayIdShouldExist() { - let client = TestClient(options: Options()) + let client = TestClient(options: Options().toInternal()) let scope = Scope() scope.replayId = VALID_REPLAY_ID SentrySDKInternal.setCurrentHub(TestHub(client: client, andScope: scope)) @@ -396,7 +396,7 @@ class PrivateSentrySDKOnlyTests: XCTestCase { func testAddReplayIgnoreClassesShouldNotFailWhenReplayIsAvailable() { let options = Options.noIntegrations() options.sessionReplay = .init() - SentrySDKInternal.start(options: options) + SentrySDKInternal.start(options: options.toInternal()) PrivateSentrySDKOnly.addReplayIgnoreClasses([UILabel.self]) } @@ -404,7 +404,7 @@ class PrivateSentrySDKOnlyTests: XCTestCase { func testAddReplayRedactShouldNotFailWhenReplayIsAvailable() { let options = Options() options.sessionReplay = .init() - SentrySDKInternal.start(options: options) + SentrySDKInternal.start(options: options.toInternal()) PrivateSentrySDKOnly.addReplayRedactClasses([UILabel.self]) } @@ -412,7 +412,7 @@ class PrivateSentrySDKOnlyTests: XCTestCase { func testAddIgnoreContainer() throws { class IgnoreContainer: UIView {} - SentrySDKInternal.start { + SentrySDK.start { $0.removeAllIntegrations() $0.sessionReplay = SentryReplayOptions(sessionSampleRate: 1, onErrorSampleRate: 1) $0.experimental.enableSessionReplayInUnreliableEnvironment = true @@ -429,7 +429,7 @@ class PrivateSentrySDKOnlyTests: XCTestCase { func testAddRedactContainer() throws { class RedactContainer: UIView {} - SentrySDKInternal.start { + SentrySDK.start { $0.removeAllIntegrations() $0.sessionReplay = SentryReplayOptions(sessionSampleRate: 1, onErrorSampleRate: 1) $0.experimental.enableSessionReplayInUnreliableEnvironment = true @@ -484,7 +484,7 @@ class PrivateSentrySDKOnlyTests: XCTestCase { let spanId = SpanId() let scope = Scope() - let client = TestClient(options: Options()) + let client = TestClient(options: Options().toInternal()) let hub = TestHub(client: client, andScope: scope) SentrySDKInternal.setCurrentHub(hub) diff --git a/Tests/SentryTests/SentryClient+TestInit.h b/Tests/SentryTests/SentryClient+TestInit.h index c78a915b61d..88270d2f1c3 100644 --- a/Tests/SentryTests/SentryClient+TestInit.h +++ b/Tests/SentryTests/SentryClient+TestInit.h @@ -13,7 +13,7 @@ NS_ASSUME_NONNULL_BEGIN @interface SentryClientInternal () -- (instancetype)initWithOptions:(SentryOptions *)options +- (instancetype)initWithOptions:(SentryOptionsInternal *)options transportAdapter:(SentryTransportAdapter *)transportAdapter fileManager:(SentryFileManager *)fileManager threadInspector:(SentryDefaultThreadInspector *)threadInspector diff --git a/Tests/SentryTests/SentryClientTests.swift b/Tests/SentryTests/SentryClientTests.swift index d7bd84ae2e1..249b1f7721a 100644 --- a/Tests/SentryTests/SentryClientTests.swift +++ b/Tests/SentryTests/SentryClientTests.swift @@ -4,15 +4,15 @@ import XCTest extension SentryClientInternal { convenience init(options: Options, fileManager: SentryFileManager) { - let transports = TransportInitializer.initTransports(options, dateProvider: SentryDependencyContainer.sharedInstance().dateProvider, sentryFileManager: fileManager, rateLimits: SentryDependencyContainer.sharedInstance().rateLimits) + let transports = TransportInitializer.initTransports(options.toInternal(), dateProvider: SentryDependencyContainer.sharedInstance().dateProvider, sentryFileManager: fileManager, rateLimits: SentryDependencyContainer.sharedInstance().rateLimits) - let transportAdapter = SentryTransportAdapter(transports: transports, options: options) + let transportAdapter = SentryTransportAdapter(transports: transports, options: options.toInternal()) self.init( - options: options, + options: options.toInternal(), transportAdapter: transportAdapter, fileManager: fileManager, - threadInspector: SentryDefaultThreadInspector(options: options), + threadInspector: SentryDefaultThreadInspector(options: options.toInternal()), debugImageProvider: SentryDependencyContainer.sharedInstance().debugImageProvider, random: SentryDependencyContainer.sharedInstance().random, locale: Locale.autoupdatingCurrent, @@ -86,7 +86,7 @@ class SentryClientTests: XCTestCase { transaction = Transaction(trace: trace, children: []) transport = TestTransport() - transportAdapter = TestTransportAdapter(transports: [transport], options: options) + transportAdapter = TestTransportAdapter(transports: [transport], options: options.toInternal()) crashWrapper.internalFreeMemorySize = 123_456 crashWrapper.internalAppMemorySize = 234_567 @@ -111,7 +111,7 @@ class SentryClientTests: XCTestCase { configureOptions(options) client = SentryClientInternal( - options: options, + options: options.toInternal(), transportAdapter: transportAdapter, fileManager: fileManager, threadInspector: threadInspector, @@ -402,7 +402,7 @@ class SentryClientTests: XCTestCase { SentryDependencyContainer.sharedInstance().applicationOverride = TestSentryUIApplication() let scope = fixture.scope scope.currentScreen = "TransactionScreen" - let hub = SentryHubInternal(client: SentryClientInternal(options: Options()), andScope: scope) + let hub = SentryHubInternal(client: SentryClientInternal(options: Options().toInternal()), andScope: scope) let tracer = SentryTracer(transactionContext: TransactionContext(operation: "Operation"), hub: hub) @@ -814,7 +814,7 @@ class SentryClientTests: XCTestCase { try assertValidErrorEvent(eventWithSessionArguments.event, error) XCTAssertEqual(fixture.session, eventWithSessionArguments.session) - let expectedTraceContext = TraceContext(trace: scope.propagationContext.traceId, options: Options(), replayId: nil) + let expectedTraceContext = TraceContext(trace: scope.propagationContext.traceId, options: Options().toInternal(), replayId: nil) XCTAssertEqual(eventWithSessionArguments.traceContext?.traceId, expectedTraceContext.traceId) } @@ -1768,7 +1768,7 @@ class SentryClientTests: XCTestCase { let options = Options() options.dsn = SentryClientTests.dsn - let client = SentryClientInternal(options: options) + let client = SentryClientInternal(options: options.toInternal()) XCTAssertNil(client) } diff --git a/Tests/SentryTests/SentryCrash/SentryCrashInstallationReporterTests.swift b/Tests/SentryTests/SentryCrash/SentryCrashInstallationReporterTests.swift index 3910a37dc1d..d7ea17726c2 100644 --- a/Tests/SentryTests/SentryCrash/SentryCrashInstallationReporterTests.swift +++ b/Tests/SentryTests/SentryCrash/SentryCrashInstallationReporterTests.swift @@ -83,7 +83,7 @@ class SentryCrashInstallationReporterTests: XCTestCase { options.dsn = TestConstants.dsnAsString(username: "SentryCrashInstallationReporterTests") SentrySDK.start(options: options) - testClient = TestClient(options: options) + testClient = TestClient(options: options.toInternal()) let hub = SentryHubInternal(client: testClient, andScope: nil) SentrySDKInternal.setCurrentHub(hub) diff --git a/Tests/SentryTests/SentryCrashExceptionApplicationTests.swift b/Tests/SentryTests/SentryCrashExceptionApplicationTests.swift index 7bedd4075fa..1ff13df99c3 100644 --- a/Tests/SentryTests/SentryCrashExceptionApplicationTests.swift +++ b/Tests/SentryTests/SentryCrashExceptionApplicationTests.swift @@ -16,7 +16,7 @@ class SentryCrashExceptionApplicationHelperTests: XCTestCase { func testCrashOnException() throws { // Arrange - let client = TestClient(options: Options()) + let client = TestClient(options: Options().toInternal()) let hub = TestHub(client: client, andScope: nil) SentrySDKInternal.setCurrentHub(hub) let exception = NSException(name: NSExceptionName("TestException"), reason: "Test Reason", userInfo: nil) diff --git a/Tests/SentryTests/SentryHubTests.swift b/Tests/SentryTests/SentryHubTests.swift index db62f49ab56..f826400cdbd 100644 --- a/Tests/SentryTests/SentryHubTests.swift +++ b/Tests/SentryTests/SentryHubTests.swift @@ -11,7 +11,7 @@ class SentryHubTests: XCTestCase { let options: Options let error = NSError(domain: "", code: 0, userInfo: [NSLocalizedDescriptionKey: "Object does not exist"]) let exception = NSException(name: NSExceptionName("My Custom exception"), reason: "User wants to crash", userInfo: nil) - lazy var client = TestClient(options: options)! + lazy var client = TestClient(options: options.toInternal())! let crumb = Breadcrumb(level: .error, category: "default") let scope = Scope() let message = "some message" @@ -97,7 +97,7 @@ class SentryHubTests: XCTestCase { sentryOption.dsn = "https://6cc9bae94def43cab8444a99e0031c28@o447951.ingest.sentry.io/5428557" let scope = Scope() - let sentryHub = SentryHubInternal(client: SentryClientInternal(options: sentryOption), andScope: scope) + let sentryHub = SentryHubInternal(client: SentryClientInternal(options: sentryOption.toInternal()), andScope: scope) let error = NSError(domain: "Test.CaptureErrorWithRealDSN", code: 12) sentryHub.capture(error: error) @@ -1033,7 +1033,7 @@ class SentryHubTests: XCTestCase { sut = fixture.getSut() let options = fixture.options options.releaseName = nil - let client = SentryClientInternal(options: options) + let client = SentryClientInternal(options: options.toInternal()) sut.bindClient(client) givenCrashedSession() @@ -1128,7 +1128,7 @@ class SentryHubTests: XCTestCase { sut = fixture.getSut() let options = fixture.options options.releaseName = nil - let client = SentryClientInternal(options: options) + let client = SentryClientInternal(options: options.toInternal()) sut.bindClient(client) // Act @@ -1220,7 +1220,7 @@ class SentryHubTests: XCTestCase { self.scope = scope } } - let mockClient = SentryClientMockReplay(options: fixture.options) + let mockClient = SentryClientMockReplay(options: fixture.options.toInternal()) let replayEvent = SentryReplayEvent(eventId: SentryId(), replayStartTimestamp: Date(), replayType: .buffer, segmentId: 1) let replayRecording = SentryReplayRecording(segmentId: 3, size: 200, start: Date(timeIntervalSince1970: 2), duration: 5_000, frameCount: 5, frameRate: 1, height: 930, width: 390, extraEvents: []) diff --git a/Tests/SentryTests/SentryOptionsTest.m b/Tests/SentryTests/SentryOptionsTest.m index 4b83b144d9b..182e31574be 100644 --- a/Tests/SentryTests/SentryOptionsTest.m +++ b/Tests/SentryTests/SentryOptionsTest.m @@ -1,4 +1,3 @@ -#import "SentryOptions.h" #import "SentryError.h" #import "SentryOptionsInternal.h" #import "SentrySDKInternal.h" @@ -514,14 +513,14 @@ - (void)testSampleRateWithDict - (void)testSampleRate_SetToNil { - SentryOptions *options = [[SentryOptions alloc] init]; + SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; options.sampleRate = nil; XCTAssertEqual(options.sampleRate.doubleValue, 0); } - (void)testSampleRateLowerBound { - SentryOptions *options = [[SentryOptions alloc] init]; + SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; options.sampleRate = @0.5; NSNumber *sampleRateLowerBound = @0; @@ -537,7 +536,7 @@ - (void)testSampleRateLowerBound - (void)testSampleRateUpperBound { - SentryOptions *options = [[SentryOptions alloc] init]; + SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; options.sampleRate = @0.5; NSNumber *upperBound = @1; @@ -603,6 +602,7 @@ - (void)testEmptyConstructorSetsDefaultValues - (void)testNSNull_SetsDefaultValue { + SentryOptions *options = [SentryOptionsInternal initWithDict:@{ @"urlSession" : [NSNull null], @"dsn" : [NSNull null], @@ -741,7 +741,7 @@ - (void)assertDefaultValues:(SentryOptions *)options - (void)testSetValidDsn { NSString *dsnAsString = @"https://username:password@sentry.io/1"; - SentryOptions *options = [[SentryOptions alloc] init]; + SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; options.dsn = dsnAsString; options.enabled = NO; @@ -754,7 +754,7 @@ - (void)testSetValidDsn - (void)testSetNilDsn { - SentryOptions *options = [[SentryOptions alloc] init]; + SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; [options setDsn:nil]; XCTAssertNil(options.dsn); @@ -764,7 +764,7 @@ - (void)testSetNilDsn - (void)testSetInvalidValidDsn { - SentryOptions *options = [[SentryOptions alloc] init]; + SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; [options setDsn:@"https://username:passwordsentry.io/1"]; XCTAssertNil(options.dsn); @@ -776,7 +776,7 @@ - (void)testSetInvalidValidDsn - (void)testDsnViaEnvironment { setenv("SENTRY_DSN", "https://username:password@sentry.io/1", 1); - SentryOptions *options = [[SentryOptions alloc] init]; + SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; XCTAssertEqualObjects(options.dsn, @"https://username:password@sentry.io/1"); XCTAssertNotNil(options.parsedDsn); setenv("SENTRY_DSN", "", 1); @@ -785,7 +785,7 @@ - (void)testDsnViaEnvironment - (void)testInvalidDsnViaEnvironment { setenv("SENTRY_DSN", "foo_bar", 1); - SentryOptions *options = [[SentryOptions alloc] init]; + SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; XCTAssertNil(options.dsn); XCTAssertNil(options.parsedDsn); XCTAssertEqual(options.enabled, YES); @@ -966,7 +966,7 @@ - (void)testDefaultTracesSampleRate - (void)testTracesSampleRate_SetToNil { - SentryOptions *options = [[SentryOptions alloc] init]; + SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; options.tracesSampleRate = nil; XCTAssertNil(options.tracesSampleRate); XCTAssertEqual(options.tracesSampleRate.doubleValue, 0); @@ -974,7 +974,7 @@ - (void)testTracesSampleRate_SetToNil - (void)testTracesSampleRateLowerBound { - SentryOptions *options = [[SentryOptions alloc] init]; + SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; options.tracesSampleRate = @0.5; NSNumber *lowerBound = @0; @@ -990,7 +990,7 @@ - (void)testTracesSampleRateLowerBound - (void)testTracesSampleRateUpperBound { - SentryOptions *options = [[SentryOptions alloc] init]; + SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; options.tracesSampleRate = @0.5; NSNumber *lowerBound = @1; @@ -1036,27 +1036,27 @@ - (void)testGarbageTracesSampler_ReturnsNil - (void)testIsTracingEnabled_NothingSet_IsDisabled { - SentryOptions *options = [[SentryOptions alloc] init]; + SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; XCTAssertFalse(options.isTracingEnabled); } - (void)testIsTracingEnabled_TracesSampleRateSetToZero_IsDisabled { - SentryOptions *options = [[SentryOptions alloc] init]; + SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; options.tracesSampleRate = @0.00; XCTAssertFalse(options.isTracingEnabled); } - (void)testIsTracingEnabled_TracesSampleRateSet_IsEnabled { - SentryOptions *options = [[SentryOptions alloc] init]; + SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; options.tracesSampleRate = @0.01; XCTAssertTrue(options.isTracingEnabled); } - (void)testIsTracingEnabled_TracesSamplerSet_IsEnabled { - SentryOptions *options = [[SentryOptions alloc] init]; + SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; options.tracesSampler = ^(SentrySamplingContext *context) { XCTAssertNotNil(context); return @0.0; @@ -1205,14 +1205,14 @@ - (void)testSpotlightUrl - (void)testIsAppHangTrackingDisabled_WhenOptionDisabled { SentryOptions *options = [self getValidOptions:@{ @"appHangTimeoutInterval" : @0 }]; - XCTAssertTrue(options.isAppHangTrackingDisabled); + XCTAssertTrue([options toInternalOptions].isAppHangTrackingDisabled); } - (void)testIsAppHangTrackingDisabled_WhenOnlyAppHangTimeoutIntervalZero { SentryOptions *options = [self getValidOptions:@{ @"enableAppHangTracking" : @YES, @"appHangTimeoutInterval" : @0 }]; - XCTAssertTrue(options.isAppHangTrackingDisabled); + XCTAssertTrue([options toInternalOptions].isAppHangTrackingDisabled); } #endif // SENTRY_HAS_UIKIT diff --git a/Tests/SentryTests/SentrySDKIntegrationTestsBase.swift b/Tests/SentryTests/SentrySDKIntegrationTestsBase.swift index 752941a1b3c..b3cd0907214 100644 --- a/Tests/SentryTests/SentrySDKIntegrationTestsBase.swift +++ b/Tests/SentryTests/SentrySDKIntegrationTestsBase.swift @@ -27,10 +27,10 @@ class SentrySDKIntegrationTestsBase: XCTestCase { } func givenSdkWithHub(_ options: Options? = nil, scope: Scope = Scope()) { - let client = TestClient(options: options ?? self.options) + let client = TestClient(options: options?.toInternal() ?? self.options.toInternal()) let hub = SentryHubInternal(client: client, andScope: scope, andCrashWrapper: TestSentryCrashWrapper(processInfoWrapper: ProcessInfo.processInfo), andDispatchQueue: SentryDispatchQueueWrapper()) - SentrySDKInternal.setStart(with: self.options) + SentrySDKInternal.setStart(with: self.options.toInternal()) SentrySDKInternal.setCurrentHub(hub) } diff --git a/Tests/SentryTests/SentrySDKInternal+Tests.h b/Tests/SentryTests/SentrySDKInternal+Tests.h index 7130e76825a..206b4a00155 100644 --- a/Tests/SentryTests/SentrySDKInternal+Tests.h +++ b/Tests/SentryTests/SentrySDKInternal+Tests.h @@ -9,7 +9,7 @@ NS_ASSUME_NONNULL_BEGIN + (void)setCurrentHub:(nullable SentryHubInternal *)hub; -+ (void)setStartOptions:(nullable SentryOptions *)options NS_SWIFT_NAME(setStart(with:)); ++ (void)setStartOptions:(nullable SentryOptionsInternal *)options NS_SWIFT_NAME(setStart(with:)); + (void)captureEnvelope:(SentryEnvelope *)envelope; diff --git a/Tests/SentryTests/SentrySDKInternalTests.swift b/Tests/SentryTests/SentrySDKInternalTests.swift index 3f4b80cb863..b26719a888c 100644 --- a/Tests/SentryTests/SentrySDKInternalTests.swift +++ b/Tests/SentryTests/SentrySDKInternalTests.swift @@ -55,7 +55,7 @@ class SentrySDKInternalTests: XCTestCase { scope = Scope() scope.setTag(value: "value", key: "key") - client = TestClient(options: options)! + client = TestClient(options: options.toInternal())! hub = SentryHubInternal(client: client, andScope: scope, andCrashWrapper: TestSentryCrashWrapper(processInfoWrapper: ProcessInfo.processInfo), andDispatchQueue: SentryDispatchQueueWrapper()) feedback = SentryFeedback(message: "Again really?", name: "Tim Apple", email: "tim@apple.com") @@ -609,7 +609,7 @@ class SentrySDKInternalTests: XCTestCase { let transport = TestTransport() let fileManager = try TestFileManager(options: fixture.options, dateProvider: fixture.currentDate, dispatchQueueWrapper: fixture.dispatchQueueWrapper) let client = SentryClientInternal(options: fixture.options, fileManager: fileManager) - Dynamic(client).transportAdapter = TestTransportAdapter(transports: [transport], options: fixture.options) + Dynamic(client).transportAdapter = TestTransportAdapter(transports: [transport], options: fixture.options.toInternal()) SentrySDKInternal.currentHub().bindClient(client) SentrySDK.close() @@ -658,7 +658,7 @@ class SentrySDKInternalTests: XCTestCase { let transport = TestTransport() let fileManager = try TestFileManager(options: fixture.options, dateProvider: fixture.currentDate, dispatchQueueWrapper: fixture.dispatchQueueWrapper) let client = SentryClientInternal(options: fixture.options, fileManager: fileManager) - Dynamic(client).transportAdapter = TestTransportAdapter(transports: [transport], options: fixture.options) + Dynamic(client).transportAdapter = TestTransportAdapter(transports: [transport], options: fixture.options.toInternal()) SentrySDKInternal.currentHub().bindClient(client) let flushTimeout = 10.0 @@ -949,12 +949,12 @@ private extension SentrySDKInternalTests { func givenSdkWithHub() { SentrySDKInternal.setCurrentHub(fixture.hub) - SentrySDKInternal.setStart(with: fixture.options) + SentrySDKInternal.setStart(with: fixture.options.toInternal()) } func givenSdkWithHubButNoClient() { SentrySDKInternal.setCurrentHub(SentryHubInternal(client: nil, andScope: nil)) - SentrySDKInternal.setStart(with: fixture.options) + SentrySDKInternal.setStart(with: fixture.options.toInternal()) } func assertIntegrationsInstalled(integrations: [String]) { @@ -983,7 +983,7 @@ class SentrySDKWithSetupTests: XCTestCase { let expectation = expectation(description: "no deadlock") expectation.expectedFulfillmentCount = 20 - SentrySDKInternal.setStart(with: Options()) + SentrySDKInternal.setStart(with: Options().toInternal()) for _ in 0..<10 { concurrentQueue.async { @@ -1009,7 +1009,7 @@ public class MainThreadTestIntegration: NSObject, SentryIntegrationProtocol { public let expectation = XCTestExpectation(description: "MainThreadTestIntegration installed") - public func install(with options: Options) -> Bool { + public func install(with options: SentryOptionsInternal) -> Bool { print("[Sentry] [TEST] [\(#file):\(#line) starting install.") dispatchPrecondition(condition: .onQueue(.main)) diff --git a/Tests/SentryTests/SentrySDKTests.swift b/Tests/SentryTests/SentrySDKTests.swift index c7ce308a103..dff50ca5d23 100644 --- a/Tests/SentryTests/SentrySDKTests.swift +++ b/Tests/SentryTests/SentrySDKTests.swift @@ -54,7 +54,7 @@ class SentrySDKTests: XCTestCase { scope = Scope() scope.setTag(value: "value", key: "key") - client = TestClient(options: options)! + client = TestClient(options: options.toInternal())! hub = SentryHubInternal(client: client, andScope: scope, andCrashWrapper: TestSentryCrashWrapper(processInfoWrapper: ProcessInfo.processInfo), andDispatchQueue: SentryDispatchQueueWrapper()) feedback = SentryFeedback(message: "Again really?", name: "Tim Apple", email: "tim@apple.com") @@ -510,11 +510,11 @@ extension SentrySDKTests { private func givenSdkWithHubButNoClient() { SentrySDKInternal.setCurrentHub(SentryHubInternal(client: nil, andScope: nil)) - SentrySDKInternal.setStart(with: fixture.options) + SentrySDKInternal.setStart(with: fixture.options.toInternal()) } private func givenSdkWithHub() { SentrySDKInternal.setCurrentHub(fixture.hub) - SentrySDKInternal.setStart(with: fixture.options) + SentrySDKInternal.setStart(with: fixture.options.toInternal()) } } diff --git a/Tests/SentryTests/SentrySDKThreadTests.swift b/Tests/SentryTests/SentrySDKThreadTests.swift index 802afc8fbde..b18371bba38 100644 --- a/Tests/SentryTests/SentrySDKThreadTests.swift +++ b/Tests/SentryTests/SentrySDKThreadTests.swift @@ -5,7 +5,7 @@ final class SentrySDKThreadTests: XCTestCase { func testRaceWhenBindingClient() { let options = Options() - let sut = SentryHubInternal(client: SentryClientInternal(options: options), andScope: nil) + let sut = SentryHubInternal(client: SentryClientInternal(options: options.toInternal()), andScope: nil) for _ in 0..<100 { @@ -16,7 +16,7 @@ final class SentrySDKThreadTests: XCTestCase { for _ in 0..<100 { queue.async { - sut.bindClient(SentryClientInternal(options: options)) + sut.bindClient(SentryClientInternal(options: options.toInternal())) sut.capture(message: "Test message") exp.fulfill() } diff --git a/Tests/SentryTests/SentryScopeTests.m b/Tests/SentryTests/SentryScopeTests.m index 926214dc5fa..b9c47ed1423 100644 --- a/Tests/SentryTests/SentryScopeTests.m +++ b/Tests/SentryTests/SentryScopeTests.m @@ -1,5 +1,5 @@ #import "SentryBreadcrumb.h" -#import "SentryOptions+Private.h" +#import "SentryOptionsInternal+Private.h" #import "SentryScope+Private.h" #import "SentryScope.h" #import "SentryUser.h" diff --git a/Tests/SentryTests/SentryTests-Bridging-Header.h b/Tests/SentryTests/SentryTests-Bridging-Header.h index 297935c85a8..2f2f3f4bcd9 100644 --- a/Tests/SentryTests/SentryTests-Bridging-Header.h +++ b/Tests/SentryTests/SentryTests-Bridging-Header.h @@ -136,8 +136,7 @@ #import "SentryNetworkTracker.h" #import "SentryNetworkTrackingIntegration.h" #import "SentryNoOpSpan.h" -#import "SentryOptions+Private.h" -#import "SentryOptionsInternal.h" +#import "SentryOptionsInternal+Private.h" #import "SentryPerformanceTracker+Testing.h" #import "SentryPerformanceTracker.h" #import "SentryPerformanceTrackingIntegration.h" diff --git a/Tests/SentryTests/SentryTests.m b/Tests/SentryTests/SentryTests.m index e8bc61904a9..2a99d298ab1 100644 --- a/Tests/SentryTests/SentryTests.m +++ b/Tests/SentryTests/SentryTests.m @@ -10,6 +10,7 @@ #import "SentryMeta.h" #import "SentryOptionsInternal.h" #import "SentrySDK+Private.h" +#import "SentryTests-Swift.h" #import #import @import Sentry; @@ -38,7 +39,8 @@ - (void)testSharedClient initWithDict:@{ @"dsn" : @"https://username:password@app.getsentry.com/12345" } didFailWithError:&error]; - SentryClientInternal *client = [[SentryClientInternal alloc] initWithOptions:options]; + SentryClientInternal *client = + [[SentryClientInternal alloc] initWithOptions:[options toInternalOptions]]; XCTAssertNil(error); XCTAssertNil([SentrySDKInternal.currentHub getClient]); [SentrySDKInternal.currentHub bindClient:client]; diff --git a/Tests/SentryTests/TestUtils/EmptyIntegration.swift b/Tests/SentryTests/TestUtils/EmptyIntegration.swift index 4bc9a585369..0d2c1644def 100644 --- a/Tests/SentryTests/TestUtils/EmptyIntegration.swift +++ b/Tests/SentryTests/TestUtils/EmptyIntegration.swift @@ -1,7 +1,7 @@ import Foundation class EmptyIntegration: NSObject, SentryIntegrationProtocol { - func install(with options: Options) -> Bool { + func install(with options: SentryOptionsInternal) -> Bool { return true } diff --git a/Tests/SentryTests/TestUtils/OptionsUtils.swift b/Tests/SentryTests/TestUtils/OptionsUtils.swift new file mode 100644 index 00000000000..ae39ba71d9c --- /dev/null +++ b/Tests/SentryTests/TestUtils/OptionsUtils.swift @@ -0,0 +1,8 @@ +@testable import Sentry + +@objc extension Options { + // Exposes the `toInternal` function to ObjC + @objc public func toInternalOptions() -> SentryOptionsInternal { + self.toInternal() + } +} diff --git a/Tests/SentryTests/Transaction/SentrySpanTests.swift b/Tests/SentryTests/Transaction/SentrySpanTests.swift index 409f3e183de..c4adf20d26b 100644 --- a/Tests/SentryTests/Transaction/SentrySpanTests.swift +++ b/Tests/SentryTests/Transaction/SentrySpanTests.swift @@ -32,7 +32,7 @@ class SentrySpanTests: XCTestCase { } func getSut() -> Span { - return getSut(client: TestClient(options: options)!) + return getSut(client: TestClient(options: options.toInternal())!) } func getSut(client: SentryClientInternal) -> Span { @@ -68,7 +68,7 @@ class SentrySpanTests: XCTestCase { #if os(iOS) || os(macOS) || targetEnvironment(macCatalyst) func testSpanDoesNotSubscribeToNotificationsIfAlreadyCapturedContinuousProfileID() { SentryContinuousProfiler.start() - SentrySDKInternal.setStart(with: fixture.options) + SentrySDKInternal.setStart(with: fixture.options.toInternal()) let _ = fixture.getSut() let continuousProfileObservations = fixture.notificationCenter.addObserverWithObjectInvocations.invocations.filter { $0.name?.rawValue == kSentryNotificationContinuousProfileStarted @@ -77,7 +77,7 @@ class SentrySpanTests: XCTestCase { } func testSpanDoesSubscribeToNotificationsIfNotAlreadyCapturedContinuousProfileID() { - SentrySDKInternal.setStart(with: fixture.options) + SentrySDKInternal.setStart(with: fixture.options.toInternal()) let _ = fixture.getSut() let continuousProfileObservations = fixture.notificationCenter.addObserverWithObjectInvocations.invocations.filter { $0.name?.rawValue == kSentryNotificationContinuousProfileStarted @@ -92,7 +92,7 @@ class SentrySpanTests: XCTestCase { /// +----profile----+ /// ``` func test_spanStart_profileStart_spanEnd_profileEnd_spanIncludesProfileID() throws { - SentrySDKInternal.setStart(with: fixture.options) + SentrySDKInternal.setStart(with: fixture.options.toInternal()) let span = fixture.getSut() XCTAssertEqual(fixture.notificationCenter.addObserverWithObjectInvocations.invocations.filter { $0.name?.rawValue == kSentryNotificationContinuousProfileStarted @@ -113,7 +113,7 @@ class SentrySpanTests: XCTestCase { /// +----profile----+ /// ``` func test_spanStart_profileStart_profileEnd_spanEnd_spanIncludesProfileID() throws { - SentrySDKInternal.setStart(with: fixture.options) + SentrySDKInternal.setStart(with: fixture.options.toInternal()) let span = fixture.getSut() SentryContinuousProfiler.start() let profileId = try XCTUnwrap(SentryContinuousProfiler.profiler()?.profilerId.sentryIdString) @@ -132,7 +132,7 @@ class SentrySpanTests: XCTestCase { /// +-------span-------+ /// ``` func test_profileStart_spanStart_profileEnd_spanEnd_spanIncludesProfileID() throws { - SentrySDKInternal.setStart(with: fixture.options) + SentrySDKInternal.setStart(with: fixture.options.toInternal()) SentryContinuousProfiler.start() let profileId = try XCTUnwrap(SentryContinuousProfiler.profiler()?.profilerId.sentryIdString) let span = fixture.getSut() @@ -151,7 +151,7 @@ class SentrySpanTests: XCTestCase { /// +-------span-------+ /// ``` func test_profileStart_spanStart_spanEnd_profileEnd_spanIncludesProfileID() throws { - SentrySDKInternal.setStart(with: fixture.options) + SentrySDKInternal.setStart(with: fixture.options.toInternal()) SentryContinuousProfiler.start() let profileId = try XCTUnwrap(SentryContinuousProfiler.profiler()?.profilerId.sentryIdString) let span = fixture.getSut() @@ -169,7 +169,7 @@ class SentrySpanTests: XCTestCase { /// +--profile1--+ +--profile2--+ /// ``` func test_spanStart_profileStart_profileEnd_profileStart_profileEnd_spanEnd_spanIncludesSameProfileID() throws { - SentrySDKInternal.setStart(with: fixture.options) + SentrySDKInternal.setStart(with: fixture.options.toInternal()) let span = fixture.getSut() SentryContinuousProfiler.start() let profileId1 = try XCTUnwrap(SentryContinuousProfiler.profiler()?.profilerId.sentryIdString) @@ -191,7 +191,7 @@ class SentrySpanTests: XCTestCase { /// +----profile----+ /// ``` func test_spanStart_spanEnd_profileStart_profileEnd_spanDoesNotIncludeProfileID() { - SentrySDKInternal.setStart(with: fixture.options) + SentrySDKInternal.setStart(with: fixture.options.toInternal()) SentryContinuousProfiler.start() SentryContinuousProfiler.stop() let span = fixture.getSut() @@ -261,7 +261,7 @@ class SentrySpanTests: XCTestCase { } func testFinish() throws { - let client = TestClient(options: fixture.options)! + let client = TestClient(options: fixture.options.toInternal())! let span = fixture.getSut(client: client) span.finish() @@ -279,7 +279,7 @@ class SentrySpanTests: XCTestCase { } func testFinish_Custom_Timestamp() throws { - let client = TestClient(options: fixture.options)! + let client = TestClient(options: fixture.options.toInternal())! let span = fixture.getSut(client: client) let finishDate = Date(timeIntervalSinceNow: 6) @@ -332,7 +332,7 @@ class SentrySpanTests: XCTestCase { } func testFinishWithChild() throws { - let client = TestClient(options: fixture.options)! + let client = TestClient(options: fixture.options.toInternal())! let span = fixture.getSut(client: client) let childSpan = span.startChild(operation: fixture.someOperation) @@ -615,7 +615,7 @@ class SentrySpanTests: XCTestCase { } func testTraceContext() { - let client = TestClient(options: fixture.options)! + let client = TestClient(options: fixture.options.toInternal())! let sut = fixture.getSut(client: client) as! SentrySpan let expectedTraceContext = sut.tracer?.traceContext @@ -623,7 +623,7 @@ class SentrySpanTests: XCTestCase { } func testBaggageHttpHeader() { - let client = TestClient(options: fixture.options)! + let client = TestClient(options: fixture.options.toInternal())! let sut = fixture.getSut(client: client) as! SentrySpan let expectedBaggage = sut.tracer?.traceContext?.toBaggage().toHTTPHeader(withOriginalBaggage: nil) diff --git a/Tests/SentryTests/Transaction/SentryTraceContextTests.swift b/Tests/SentryTests/Transaction/SentryTraceContextTests.swift index 7b87745cdee..4cf7e52e31b 100644 --- a/Tests/SentryTests/Transaction/SentryTraceContextTests.swift +++ b/Tests/SentryTests/Transaction/SentryTraceContextTests.swift @@ -1,3 +1,4 @@ +@testable import Sentry import SentryTestUtils import XCTest @@ -99,7 +100,7 @@ class SentryTraceContextTests: XCTestCase { func testInitWithScopeOptions() { // Act - let traceContext = TraceContext(scope: fixture.scope, options: fixture.options)! + let traceContext = TraceContext(scope: fixture.scope, options: fixture.options.toInternal())! // Assert assertTraceState(traceContext: traceContext) @@ -107,7 +108,7 @@ class SentryTraceContextTests: XCTestCase { func testInitWithTracerScopeOptions() { // Act - let traceContext = TraceContext(tracer: fixture.tracer, scope: fixture.scope, options: fixture.options) + let traceContext = TraceContext(tracer: fixture.tracer, scope: fixture.scope, options: fixture.options.toInternal()) // Assert assertTraceState(traceContext: traceContext!) @@ -119,7 +120,7 @@ class SentryTraceContextTests: XCTestCase { tracer.sampled = .no // Act - let traceContext = TraceContext(tracer: tracer, scope: fixture.scope, options: fixture.options) + let traceContext = TraceContext(tracer: tracer, scope: fixture.scope, options: fixture.options.toInternal()) // Assert XCTAssertEqual(traceContext?.sampled, "false") @@ -130,7 +131,7 @@ class SentryTraceContextTests: XCTestCase { fixture.scope.span = nil // Act - let traceContext = TraceContext(scope: fixture.scope, options: fixture.options) + let traceContext = TraceContext(scope: fixture.scope, options: fixture.options.toInternal()) // Assert XCTAssertNil(traceContext) @@ -144,7 +145,7 @@ class SentryTraceContextTests: XCTestCase { let traceId = SentryId() // Act - let traceContext = TraceContext(trace: traceId, options: options, replayId: "replayId") + let traceContext = TraceContext(trace: traceId, options: options.toInternal(), replayId: "replayId") // Assert XCTAssertEqual(options.parsedDsn?.url.user, traceContext.publicKey) @@ -166,7 +167,7 @@ class SentryTraceContextTests: XCTestCase { let traceId = SentryId() // Act - let traceContext = TraceContext(trace: traceId, options: options, replayId: nil) + let traceContext = TraceContext(trace: traceId, options: options.toInternal(), replayId: nil) // Assert XCTAssertEqual(options.parsedDsn?.url.user, traceContext.publicKey) diff --git a/Tests/SentryTests/Transaction/SentryTracerTests.swift b/Tests/SentryTests/Transaction/SentryTracerTests.swift index bc001e564e8..4e901687418 100644 --- a/Tests/SentryTests/Transaction/SentryTracerTests.swift +++ b/Tests/SentryTests/Transaction/SentryTracerTests.swift @@ -66,7 +66,7 @@ class SentryTracerTests: XCTestCase { options.dsn = TestConstants.dsnAsString(username: "SentryTracerTests") options.tracesSampleRate = 1 - client = TestClient(options: options) + client = TestClient(options: options.toInternal()) hub = TestHub(client: client, andScope: scope) #if os(iOS) || os(tvOS) || targetEnvironment(macCatalyst) diff --git a/Tests/SentryTests/Transaction/SentryTransactionTests.swift b/Tests/SentryTests/Transaction/SentryTransactionTests.swift index 58bf568ffdf..4000a66b30f 100644 --- a/Tests/SentryTests/Transaction/SentryTransactionTests.swift +++ b/Tests/SentryTests/Transaction/SentryTransactionTests.swift @@ -25,13 +25,13 @@ class SentryTransactionTests: XCTestCase { func getHub() -> SentryHubInternal { let scope = Scope() - let client = TestClient(options: Options())! + let client = TestClient(options: Options().toInternal())! client.options.tracesSampleRate = 1 return TestHub(client: client, andScope: scope) } func getTransactionWith(scope: Scope) -> Transaction { - let client = TestClient(options: Options())! + let client = TestClient(options: Options().toInternal())! client.options.tracesSampleRate = 1 let hub = TestHub(client: client, andScope: scope) @@ -210,7 +210,7 @@ class SentryTransactionTests: XCTestCase { #if os(iOS) || os(macOS) || targetEnvironment(macCatalyst) func testTransactionWithContinuousProfile() throws { let options = Options() - SentrySDKInternal.setStart(with: options) + SentrySDKInternal.setStart(with: options.toInternal()) let transaction = fixture.getTransaction() SentryContinuousProfiler.start() let profileId = try XCTUnwrap(SentryContinuousProfiler.profiler()?.profilerId.sentryIdString) diff --git a/sdk_api.json b/sdk_api.json index 353fc61f47c..536394f32a2 100644 --- a/sdk_api.json +++ b/sdk_api.json @@ -226,8 +226,8 @@ }, { "kind": "Import", - "name": "Sentry.SentryOptions", - "printedName": "Sentry.SentryOptions", + "name": "Sentry.SentryProfilingConditionals", + "printedName": "Sentry.SentryProfilingConditionals", "declKind": "Import", "moduleName": "Sentry", "declAttributes": [ @@ -14495,36 +14495,82 @@ ], "funcSelfKind": "NonMutating" }, + { + "kind": "Var", + "name": "SENTRY_BAGGAGE_HEADER", + "printedName": "SENTRY_BAGGAGE_HEADER", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@SENTRY_BAGGAGE_HEADER", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "Var", + "name": "SENTRY_TRACE_HEADER", + "printedName": "SENTRY_TRACE_HEADER", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@SENTRY_TRACE_HEADER", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "Var", + "name": "SENTRY_TRACE_TYPE", + "printedName": "SENTRY_TRACE_TYPE", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@SENTRY_TRACE_TYPE", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, { "kind": "TypeDecl", - "name": "Options", - "printedName": "Options", + "name": "SamplingContext", + "printedName": "SamplingContext", "children": [ { "kind": "Var", - "name": "dsn", - "printedName": "dsn", + "name": "transactionContext", + "printedName": "transactionContext", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" + "name": "TransactionContext", + "printedName": "Sentry.TransactionContext", + "usr": "c:objc(cs)SentryTransactionContext" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)dsn", + "usr": "c:objc(cs)SentrySamplingContext(py)transactionContext", "moduleName": "Sentry", "isOpen": true, - "objc_name": "dsn", + "objc_name": "transactionContext", "declAttributes": [ "ObjC", "Dynamic" @@ -14537,101 +14583,63 @@ "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" + "name": "TransactionContext", + "printedName": "Sentry.TransactionContext", + "usr": "c:objc(cs)SentryTransactionContext" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)dsn", + "usr": "c:objc(cs)SentrySamplingContext(im)transactionContext", "moduleName": "Sentry", "isOpen": true, - "objc_name": "dsn", + "objc_name": "transactionContext", "declAttributes": [ "DiscardableResult", "ObjC", "Dynamic" ], "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setDsn:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setDsn:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" } ] }, { "kind": "Var", - "name": "parsedDsn", - "printedName": "parsedDsn", + "name": "customSamplingContext", + "printedName": "customSamplingContext", "children": [ { "kind": "TypeNominal", "name": "Optional", - "printedName": "Sentry.SentryDsn?", + "printedName": "[Swift.String : Any]?", "children": [ { "kind": "TypeNominal", - "name": "SentryDsn", - "printedName": "Sentry.SentryDsn", - "usr": "c:objc(cs)SentryDsn" + "name": "Dictionary", + "printedName": "[Swift.String : Any]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" + } + ], + "usr": "s:SD" } ], "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)parsedDsn", + "usr": "c:objc(cs)SentrySamplingContext(py)customSamplingContext", "moduleName": "Sentry", "isOpen": true, - "objc_name": "parsedDsn", + "objc_name": "customSamplingContext", "declAttributes": [ "ObjC", "Dynamic" @@ -14645,175 +14653,248 @@ { "kind": "TypeNominal", "name": "Optional", - "printedName": "Sentry.SentryDsn?", + "printedName": "[Swift.String : Any]?", "children": [ { "kind": "TypeNominal", - "name": "SentryDsn", - "printedName": "Sentry.SentryDsn", - "usr": "c:objc(cs)SentryDsn" + "name": "Dictionary", + "printedName": "[Swift.String : Any]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" + } + ], + "usr": "s:SD" } ], "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)parsedDsn", + "usr": "c:objc(cs)SentrySamplingContext(im)customSamplingContext", "moduleName": "Sentry", "isOpen": true, - "objc_name": "parsedDsn", + "objc_name": "customSamplingContext", "declAttributes": [ "DiscardableResult", "ObjC", "Dynamic" ], "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryDsn?", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryDsn", - "printedName": "Sentry.SentryDsn", - "usr": "c:objc(cs)SentryDsn" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setParsedDsn:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setParsedDsn:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" } ] }, { - "kind": "Var", - "name": "debug", - "printedName": "debug", + "kind": "Constructor", + "name": "init", + "printedName": "init(transactionContext:)", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "SamplingContext", + "printedName": "Sentry.SamplingContext", + "usr": "c:objc(cs)SentrySamplingContext" + }, + { + "kind": "TypeNominal", + "name": "TransactionContext", + "printedName": "Sentry.TransactionContext", + "usr": "c:objc(cs)SentryTransactionContext" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)debug", + "declKind": "Constructor", + "usr": "c:objc(cs)SentrySamplingContext(im)initWithTransactionContext:", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "debug", + "objc_name": "initWithTransactionContext:", "declAttributes": [ "ObjC", "Dynamic" ], - "accessors": [ + "init_kind": "Designated" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(transactionContext:customSamplingContext:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)debug", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "debug", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + "kind": "TypeNominal", + "name": "SamplingContext", + "printedName": "Sentry.SamplingContext", + "usr": "c:objc(cs)SentrySamplingContext" }, { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeNominal", + "name": "TransactionContext", + "printedName": "Sentry.TransactionContext", + "usr": "c:objc(cs)SentryTransactionContext" + }, + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" }, { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "ProtocolComposition", + "printedName": "Any" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setDebug:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setDebug:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + "usr": "s:SD" } - ] + ], + "declKind": "Constructor", + "usr": "c:objc(cs)SentrySamplingContext(im)initWithTransactionContext:customSamplingContext:", + "moduleName": "Sentry", + "objc_name": "initWithTransactionContext:customSamplingContext:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "init_kind": "Designated" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init()", + "children": [ + { + "kind": "TypeNominal", + "name": "SamplingContext", + "printedName": "Sentry.SamplingContext", + "usr": "c:objc(cs)SentrySamplingContext" + } + ], + "declKind": "Constructor", + "usr": "c:objc(cs)NSObject(im)init", + "moduleName": "Sentry", + "overriding": true, + "implicit": true, + "objc_name": "init", + "declAttributes": [ + "Override", + "ObjC", + "Dynamic" + ], + "init_kind": "Designated" + } + ], + "declKind": "Class", + "usr": "c:objc(cs)SentrySamplingContext", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "SentrySamplingContext", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "superclassUsr": "c:objc(cs)NSObject", + "inheritsConvenienceInitializers": true, + "superclassNames": [ + "ObjectiveC.NSObject" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" + }, + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" }, + { + "kind": "Conformance", + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "Scope", + "printedName": "Scope", + "children": [ { "kind": "Var", - "name": "diagnosticLevel", - "printedName": "diagnosticLevel", + "name": "span", + "printedName": "span", "children": [ { "kind": "TypeNominal", - "name": "SentryLevel", - "printedName": "Sentry.SentryLevel", - "usr": "c:@M@Sentry@E@SentryLevel" + "name": "Optional", + "printedName": "(any Sentry.Span)?", + "children": [ + { + "kind": "TypeNominal", + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" + } + ], + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)diagnosticLevel", + "usr": "c:objc(cs)SentryScope(py)span", "moduleName": "Sentry", "isOpen": true, - "objc_name": "diagnosticLevel", + "objc_name": "span", "declAttributes": [ "ObjC", "Dynamic" @@ -14826,64 +14907,37 @@ "children": [ { "kind": "TypeNominal", - "name": "SentryLevel", - "printedName": "Sentry.SentryLevel", - "usr": "c:@M@Sentry@E@SentryLevel" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)diagnosticLevel", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "diagnosticLevel", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "name": "Optional", + "printedName": "(any Sentry.Span)?", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" } - ] - }, - { - "kind": "TypeNominal", - "name": "SentryLevel", - "printedName": "Sentry.SentryLevel", - "usr": "c:@M@Sentry@E@SentryLevel" + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setDiagnosticLevel:", + "usr": "c:objc(cs)SentryScope(im)span", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setDiagnosticLevel:", + "objc_name": "span", "declAttributes": [ + "DiscardableResult", "ObjC", "Dynamic" ], - "accessorKind": "set" + "accessorKind": "get" } ] }, { "kind": "Var", - "name": "releaseName", - "printedName": "releaseName", + "name": "replayId", + "printedName": "replayId", "children": [ { "kind": "TypeNominal", @@ -14901,10 +14955,10 @@ } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)releaseName", + "usr": "c:objc(cs)SentryScope(py)replayId", "moduleName": "Sentry", "isOpen": true, - "objc_name": "releaseName", + "objc_name": "replayId", "declAttributes": [ "ObjC", "Dynamic" @@ -14931,10 +14985,10 @@ } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)releaseName", + "usr": "c:objc(cs)SentryScope(im)replayId", "moduleName": "Sentry", "isOpen": true, - "objc_name": "releaseName", + "objc_name": "replayId", "declAttributes": [ "DiscardableResult", "ObjC", @@ -14975,10 +15029,10 @@ } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setReleaseName:", + "usr": "c:objc(cs)SentryScope(im)setReplayId:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setReleaseName:", + "objc_name": "setReplayId:", "declAttributes": [ "ObjC", "Dynamic" @@ -14989,14 +15043,20 @@ }, { "kind": "Var", - "name": "dist", - "printedName": "dist", + "name": "tags", + "printedName": "tags", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", + "name": "Dictionary", + "printedName": "[Swift.String : Swift.String]", "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, { "kind": "TypeNominal", "name": "String", @@ -15004,14 +15064,14 @@ "usr": "s:SS" } ], - "usr": "s:Sq" + "usr": "s:SD" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)dist", + "usr": "c:objc(cs)SentryScope(py)tags", "moduleName": "Sentry", "isOpen": true, - "objc_name": "dist", + "objc_name": "tags", "declAttributes": [ "ObjC", "Dynamic" @@ -15024,53 +15084,15 @@ "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", + "name": "Dictionary", + "printedName": "[Swift.String : Swift.String]", "children": [ { "kind": "TypeNominal", "name": "String", "printedName": "Swift.String", "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)dist", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "dist", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ + }, { "kind": "TypeNominal", "name": "String", @@ -15078,1512 +15100,1008 @@ "usr": "s:SS" } ], - "usr": "s:Sq" + "usr": "s:SD" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setDist:", + "usr": "c:objc(cs)SentryScope(im)tags", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setDist:", + "objc_name": "tags", "declAttributes": [ + "DiscardableResult", "ObjC", "Dynamic" ], - "accessorKind": "set" + "accessorKind": "get" } ] }, { - "kind": "Var", - "name": "environment", - "printedName": "environment", + "kind": "Constructor", + "name": "init", + "printedName": "init(maxBreadcrumbs:)", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)environment", + "declKind": "Constructor", + "usr": "c:objc(cs)SentryScope(im)initWithMaxBreadcrumbs:", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "environment", + "objc_name": "initWithMaxBreadcrumbs:", "declAttributes": [ "ObjC", "Dynamic" ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)environment", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "environment", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, + "init_kind": "Designated" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init()", + "children": [ { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnvironment:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEnvironment:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + "kind": "TypeNominal", + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" } - ] + ], + "declKind": "Constructor", + "usr": "c:objc(cs)SentryScope(im)init", + "moduleName": "Sentry", + "overriding": true, + "objc_name": "init", + "declAttributes": [ + "Override", + "Required", + "ObjC", + "Dynamic" + ], + "init_kind": "Convenience" }, { - "kind": "Var", - "name": "enabled", - "printedName": "enabled", + "kind": "Constructor", + "name": "init", + "printedName": "init(scope:)", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" + }, + { + "kind": "TypeNominal", + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enabled", + "declKind": "Constructor", + "usr": "c:objc(cs)SentryScope(im)initWithScope:", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enabled", + "objc_name": "initWithScope:", "declAttributes": [ "ObjC", "Dynamic" ], - "accessors": [ + "init_kind": "Convenience" + }, + { + "kind": "Function", + "name": "setUser", + "printedName": "setUser(_:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Void", + "printedName": "()" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enabled", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enabled", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + ] }, { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.User?", "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "User", + "printedName": "Sentry.User", + "usr": "c:objc(cs)SentryUser" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnabled:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEnabled:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + "usr": "s:Sq" } - ] + ], + "declKind": "Func", + "usr": "c:objc(cs)SentryScope(im)setUser:", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "setUser:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "shutdownTimeInterval", - "printedName": "shutdownTimeInterval", + "kind": "Function", + "name": "setTag", + "printedName": "setTag(value:key:)", "children": [ { "kind": "TypeNameAlias", - "name": "TimeInterval", - "printedName": "Foundation.TimeInterval", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "Double", - "printedName": "Swift.Double", - "usr": "s:Sd" + "name": "Void", + "printedName": "()" } ] + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)shutdownTimeInterval", + "declKind": "Func", + "usr": "c:objc(cs)SentryScope(im)setTagValue:forKey:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "shutdownTimeInterval", + "objc_name": "setTagValue:forKey:", "declAttributes": [ "ObjC", "Dynamic" ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "TimeInterval", - "printedName": "Foundation.TimeInterval", - "children": [ - { - "kind": "TypeNominal", - "name": "Double", - "printedName": "Swift.Double", - "usr": "s:Sd" - } - ] - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)shutdownTimeInterval", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "shutdownTimeInterval", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "removeTag", + "printedName": "removeTag(key:)", + "children": [ { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { - "kind": "TypeNameAlias", + "kind": "TypeNominal", "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNameAlias", - "name": "TimeInterval", - "printedName": "Foundation.TimeInterval", - "children": [ - { - "kind": "TypeNominal", - "name": "Double", - "printedName": "Swift.Double", - "usr": "s:Sd" - } - ] + "printedName": "()" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setShutdownTimeInterval:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setShutdownTimeInterval:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" - } - ] - }, - { - "kind": "Var", - "name": "enableCrashHandler", - "printedName": "enableCrashHandler", - "children": [ + ] + }, { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enableCrashHandler", + "declKind": "Func", + "usr": "c:objc(cs)SentryScope(im)removeTagForKey:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "enableCrashHandler", + "objc_name": "removeTagForKey:", "declAttributes": [ "ObjC", "Dynamic" ], - "accessors": [ + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "setTags", + "printedName": "setTags(_:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Void", + "printedName": "()" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enableCrashHandler", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableCrashHandler", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + ] }, { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "[Swift.String : Swift.String]?", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Swift.String]", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } - ] - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + ], + "usr": "s:SD" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnableCrashHandler:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEnableCrashHandler:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" - } - ] - }, - { - "kind": "Var", - "name": "enableSigtermReporting", - "printedName": "enableSigtermReporting", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "usr": "s:Sq" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enableSigtermReporting", + "declKind": "Func", + "usr": "c:objc(cs)SentryScope(im)setTags:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "enableSigtermReporting", + "objc_name": "setTags:", "declAttributes": [ "ObjC", "Dynamic" ], - "accessors": [ + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "setExtras", + "printedName": "setExtras(_:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Void", + "printedName": "()" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enableSigtermReporting", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableSigtermReporting", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + ] }, { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "[Swift.String : Any]?", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" } - ] - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + ], + "usr": "s:SD" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnableSigtermReporting:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEnableSigtermReporting:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" - } - ] - }, - { - "kind": "Var", - "name": "maxBreadcrumbs", - "printedName": "maxBreadcrumbs", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "usr": "s:Sq" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)maxBreadcrumbs", + "declKind": "Func", + "usr": "c:objc(cs)SentryScope(im)setExtras:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "maxBreadcrumbs", + "objc_name": "setExtras:", "declAttributes": [ "ObjC", "Dynamic" ], - "accessors": [ + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "setExtra", + "printedName": "setExtra(value:key:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "Void", + "printedName": "()" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)maxBreadcrumbs", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "maxBreadcrumbs", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + ] }, { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Any?", "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "ProtocolComposition", + "printedName": "Any" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setMaxBreadcrumbs:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setMaxBreadcrumbs:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" - } - ] - }, - { - "kind": "Var", - "name": "enableNetworkBreadcrumbs", - "printedName": "enableNetworkBreadcrumbs", - "children": [ + "usr": "s:Sq" + }, { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enableNetworkBreadcrumbs", + "declKind": "Func", + "usr": "c:objc(cs)SentryScope(im)setExtraValue:forKey:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "enableNetworkBreadcrumbs", + "objc_name": "setExtraValue:forKey:", "declAttributes": [ "ObjC", "Dynamic" ], - "accessors": [ + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "removeExtra", + "printedName": "removeExtra(key:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enableNetworkBreadcrumbs", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableNetworkBreadcrumbs", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "printedName": "()" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnableNetworkBreadcrumbs:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEnableNetworkBreadcrumbs:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" - } - ] - }, - { - "kind": "Var", - "name": "maxCacheItems", - "printedName": "maxCacheItems", - "children": [ + ] + }, { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)maxCacheItems", + "declKind": "Func", + "usr": "c:objc(cs)SentryScope(im)removeExtraForKey:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "maxCacheItems", + "objc_name": "removeExtraForKey:", "declAttributes": [ "ObjC", "Dynamic" ], - "accessors": [ + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "setDist", + "printedName": "setDist(_:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)maxCacheItems", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "maxCacheItems", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "printedName": "()" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setMaxCacheItems:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setMaxCacheItems:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" - } - ] - }, - { - "kind": "Var", - "name": "beforeSend", - "printedName": "beforeSend", - "children": [ + ] + }, { "kind": "TypeNominal", "name": "Optional", - "printedName": "((Sentry.Event) -> Sentry.Event?)?", + "printedName": "Swift.String?", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Event) -> Sentry.Event?", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.Event?", - "children": [ - { - "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" - } - ] + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "usr": "s:Sq" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)beforeSend", + "declKind": "Func", + "usr": "c:objc(cs)SentryScope(im)setDist:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "beforeSend", + "objc_name": "setDist:", "declAttributes": [ "ObjC", "Dynamic" ], - "accessors": [ + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "setEnvironment", + "printedName": "setEnvironment(_:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.Event) -> Sentry.Event?)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Event) -> Sentry.Event?", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.Event?", - "children": [ - { - "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" - } - ] - } - ], - "usr": "s:Sq" + "name": "Void", + "printedName": "()" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)beforeSend", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "beforeSend", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + ] }, { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, { "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.Event) -> Sentry.Event?)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Event) -> Sentry.Event?", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.Event?", - "children": [ - { - "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" - } - ] - } - ], - "usr": "s:Sq" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setBeforeSend:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setBeforeSend:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + "usr": "s:Sq" } - ] + ], + "declKind": "Func", + "usr": "c:objc(cs)SentryScope(im)setEnvironment:", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "setEnvironment:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "beforeSendSpan", - "printedName": "beforeSendSpan", + "kind": "Function", + "name": "setFingerprint", + "printedName": "setFingerprint(_:)", "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, { "kind": "TypeNominal", "name": "Optional", - "printedName": "((any Sentry.Span) -> (any Sentry.Span)?)?", + "printedName": "[Swift.String]?", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(any Sentry.Span) -> (any Sentry.Span)?", + "kind": "TypeNominal", + "name": "Array", + "printedName": "[Swift.String]", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "(any Sentry.Span)?", - "children": [ - { - "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } - ] + ], + "usr": "s:Sa" } ], "usr": "s:Sq" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)beforeSendSpan", + "declKind": "Func", + "usr": "c:objc(cs)SentryScope(im)setFingerprint:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "beforeSendSpan", + "objc_name": "setFingerprint:", "declAttributes": [ "ObjC", "Dynamic" ], - "accessors": [ + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "setLevel", + "printedName": "setLevel(_:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "((any Sentry.Span) -> (any Sentry.Span)?)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(any Sentry.Span) -> (any Sentry.Span)?", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "(any Sentry.Span)?", - "children": [ - { - "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" - } - ] - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)beforeSendSpan", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "beforeSendSpan", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "((any Sentry.Span) -> (any Sentry.Span)?)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(any Sentry.Span) -> (any Sentry.Span)?", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "(any Sentry.Span)?", - "children": [ - { - "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" - } - ] - } - ], - "usr": "s:Sq" + "printedName": "()" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setBeforeSendSpan:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setBeforeSendSpan:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" - } - ] - }, - { - "kind": "Var", - "name": "enableLogs", - "printedName": "enableLogs", - "children": [ + ] + }, { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "SentryLevel", + "printedName": "Sentry.SentryLevel", + "usr": "c:@M@Sentry@E@SentryLevel" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enableLogs", + "declKind": "Func", + "usr": "c:objc(cs)SentryScope(im)setLevel:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "enableLogs", + "objc_name": "setLevel:", "declAttributes": [ "ObjC", "Dynamic" ], - "accessors": [ + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "addBreadcrumb", + "printedName": "addBreadcrumb(_:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Void", + "printedName": "()" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enableLogs", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableLogs", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + ] }, { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeNominal", + "name": "Breadcrumb", + "printedName": "Sentry.Breadcrumb", + "usr": "c:objc(cs)SentryBreadcrumb" + } + ], + "declKind": "Func", + "usr": "c:objc(cs)SentryScope(im)addBreadcrumb:", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "addBreadcrumb:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "clearBreadcrumbs", + "printedName": "clearBreadcrumbs()", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Void", + "printedName": "()" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnableLogs:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEnableLogs:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } - ] + ], + "declKind": "Func", + "usr": "c:objc(cs)SentryScope(im)clearBreadcrumbs", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "clearBreadcrumbs", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "beforeSendLog", - "printedName": "beforeSendLog", + "kind": "Function", + "name": "serialize", + "printedName": "serialize()", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.SentryLog) -> Sentry.SentryLog?)?", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryLog) -> Sentry.SentryLog?", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryLog?", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryLog", - "printedName": "Sentry.SentryLog", - "usr": "c:@M@Sentry@objc(cs)SentryLog" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "SentryLog", - "printedName": "Sentry.SentryLog", - "usr": "c:@M@Sentry@objc(cs)SentryLog" - } - ] + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" } ], - "usr": "s:Sq" + "usr": "s:SD" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)beforeSendLog", + "declKind": "Func", + "usr": "c:objc(cs)SentryScope(im)serialize", "moduleName": "Sentry", "isOpen": true, - "objc_name": "beforeSendLog", + "objc_name": "serialize", "declAttributes": [ + "DiscardableResult", "ObjC", "Dynamic" ], - "accessors": [ + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "setContext", + "printedName": "setContext(value:key:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.SentryLog) -> Sentry.SentryLog?)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryLog) -> Sentry.SentryLog?", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryLog?", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryLog", - "printedName": "Sentry.SentryLog", - "usr": "c:@M@Sentry@objc(cs)SentryLog" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "SentryLog", - "printedName": "Sentry.SentryLog", - "usr": "c:@M@Sentry@objc(cs)SentryLog" - } - ] - } - ], - "usr": "s:Sq" + "name": "Void", + "printedName": "()" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)beforeSendLog", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "beforeSendLog", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + ] }, { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" }, { "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.SentryLog) -> Sentry.SentryLog?)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryLog) -> Sentry.SentryLog?", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryLog?", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryLog", - "printedName": "Sentry.SentryLog", - "usr": "c:@M@Sentry@objc(cs)SentryLog" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "SentryLog", - "printedName": "Sentry.SentryLog", - "usr": "c:@M@Sentry@objc(cs)SentryLog" - } - ] - } - ], - "usr": "s:Sq" + "name": "ProtocolComposition", + "printedName": "Any" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setBeforeSendLog:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setBeforeSendLog:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + "usr": "s:SD" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } - ] + ], + "declKind": "Func", + "usr": "c:objc(cs)SentryScope(im)setContextValue:forKey:", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "setContextValue:forKey:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "beforeBreadcrumb", - "printedName": "beforeBreadcrumb", + "kind": "Function", + "name": "removeContext", + "printedName": "removeContext(key:)", "children": [ { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.Breadcrumb) -> Sentry.Breadcrumb?)?", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Breadcrumb) -> Sentry.Breadcrumb?", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.Breadcrumb?", - "children": [ - { - "kind": "TypeNominal", - "name": "Breadcrumb", - "printedName": "Sentry.Breadcrumb", - "usr": "c:objc(cs)SentryBreadcrumb" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Breadcrumb", - "printedName": "Sentry.Breadcrumb", - "usr": "c:objc(cs)SentryBreadcrumb" - } - ] + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" } - ], - "usr": "s:Sq" + ] + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)beforeBreadcrumb", + "declKind": "Func", + "usr": "c:objc(cs)SentryScope(im)removeContextForKey:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "beforeBreadcrumb", + "objc_name": "removeContextForKey:", "declAttributes": [ "ObjC", "Dynamic" ], - "accessors": [ + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "addAttachment", + "printedName": "addAttachment(_:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.Breadcrumb) -> Sentry.Breadcrumb?)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Breadcrumb) -> Sentry.Breadcrumb?", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.Breadcrumb?", - "children": [ - { - "kind": "TypeNominal", - "name": "Breadcrumb", - "printedName": "Sentry.Breadcrumb", - "usr": "c:objc(cs)SentryBreadcrumb" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Breadcrumb", - "printedName": "Sentry.Breadcrumb", - "usr": "c:objc(cs)SentryBreadcrumb" - } - ] - } - ], - "usr": "s:Sq" + "name": "Void", + "printedName": "()" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)beforeBreadcrumb", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "beforeBreadcrumb", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + ] }, { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", + "kind": "TypeNominal", + "name": "Attachment", + "printedName": "Sentry.Attachment", + "usr": "c:objc(cs)SentryAttachment" + } + ], + "declKind": "Func", + "usr": "c:objc(cs)SentryScope(im)addAttachment:", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "addAttachment:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "clearAttachments", + "printedName": "clearAttachments()", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, + "printedName": "()" + } + ] + } + ], + "declKind": "Func", + "usr": "c:objc(cs)SentryScope(im)clearAttachments", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "clearAttachments", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "clear", + "printedName": "clear()", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.Breadcrumb) -> Sentry.Breadcrumb?)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Breadcrumb) -> Sentry.Breadcrumb?", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.Breadcrumb?", - "children": [ - { - "kind": "TypeNominal", - "name": "Breadcrumb", - "printedName": "Sentry.Breadcrumb", - "usr": "c:objc(cs)SentryBreadcrumb" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Breadcrumb", - "printedName": "Sentry.Breadcrumb", - "usr": "c:objc(cs)SentryBreadcrumb" - } - ] - } - ], - "usr": "s:Sq" + "name": "Void", + "printedName": "()" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setBeforeBreadcrumb:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setBeforeBreadcrumb:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } - ] + ], + "declKind": "Func", + "usr": "c:objc(cs)SentryScope(im)clear", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "clear", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Class", + "usr": "c:objc(cs)SentryScope", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "SentryScope", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "superclassUsr": "c:objc(cs)NSObject", + "inheritsConvenienceInitializers": true, + "superclassNames": [ + "ObjectiveC.NSObject" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "SentrySerializable", + "printedName": "SentrySerializable", + "usr": "c:objc(pl)SentrySerializable" }, { - "kind": "Var", - "name": "beforeCaptureScreenshot", - "printedName": "beforeCaptureScreenshot", + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" + }, + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" + }, + { + "kind": "Conformance", + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "SentryANRType", + "printedName": "SentryANRType", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(rawValue:)", "children": [ { "kind": "TypeNominal", "name": "Optional", - "printedName": "((Sentry.Event) -> Swift.Bool)?", + "printedName": "Sentry.SentryANRType?", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Event) -> Swift.Bool", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - }, - { - "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" - } - ] + "kind": "TypeNominal", + "name": "SentryANRType", + "printedName": "Sentry.SentryANRType", + "usr": "c:@M@Sentry@E@SentryANRType" } ], "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)beforeCaptureScreenshot", + "declKind": "Constructor", + "usr": "s:So13SentryANRTypeV8rawValueABSgSi_tcfc", + "mangledName": "$sSo13SentryANRTypeV8rawValueABSgSi_tcfc", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "beforeCaptureScreenshot", - "declAttributes": [ - "ObjC", - "Dynamic" + "implicit": true, + "init_kind": "Designated" + }, + { + "kind": "Var", + "name": "rawValue", + "printedName": "rawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } ], + "declKind": "Var", + "usr": "s:So13SentryANRTypeV8rawValueSivp", + "mangledName": "$sSo13SentryANRTypeV8rawValueSivp", + "moduleName": "Sentry", + "implicit": true, "accessors": [ { "kind": "Accessor", @@ -16592,442 +16110,368 @@ "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.Event) -> Swift.Bool)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Event) -> Swift.Bool", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - }, - { - "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" - } - ] - } - ], - "usr": "s:Sq" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)beforeCaptureScreenshot", + "usr": "s:So13SentryANRTypeV8rawValueSivg", + "mangledName": "$sSo13SentryANRTypeV8rawValueSivg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "beforeCaptureScreenshot", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], + "implicit": true, "accessorKind": "get" - }, + } + ] + }, + { + "kind": "TypeAlias", + "name": "RawValue", + "printedName": "RawValue", + "children": [ { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "TypeAlias", + "usr": "s:So13SentryANRTypeV8RawValuea", + "mangledName": "$sSo13SentryANRTypeV8RawValuea", + "moduleName": "Sentry", + "implicit": true + }, + { + "kind": "Var", + "name": "fatalFullyBlocking", + "printedName": "fatalFullyBlocking", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryANRType.Type) -> Sentry.SentryANRType", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "SentryANRType", + "printedName": "Sentry.SentryANRType", + "usr": "c:@M@Sentry@E@SentryANRType" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryANRType.Type", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryANRType", + "printedName": "Sentry.SentryANRType", + "usr": "c:@M@Sentry@E@SentryANRType" } ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryANRType@SentryANRTypeFatalFullyBlocking", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" + ] + }, + { + "kind": "Var", + "name": "fatalNonFullyBlocking", + "printedName": "fatalNonFullyBlocking", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryANRType.Type) -> Sentry.SentryANRType", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryANRType", + "printedName": "Sentry.SentryANRType", + "usr": "c:@M@Sentry@E@SentryANRType" }, { "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.Event) -> Swift.Bool)?", + "name": "Metatype", + "printedName": "Sentry.SentryANRType.Type", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Event) -> Swift.Bool", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - }, - { - "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" - } - ] + "kind": "TypeNominal", + "name": "SentryANRType", + "printedName": "Sentry.SentryANRType", + "usr": "c:@M@Sentry@E@SentryANRType" } - ], - "usr": "s:Sq" + ] } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setBeforeCaptureScreenshot:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setBeforeCaptureScreenshot:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } + ], + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryANRType@SentryANRTypeFatalNonFullyBlocking", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" ] }, { "kind": "Var", - "name": "beforeCaptureViewHierarchy", - "printedName": "beforeCaptureViewHierarchy", + "name": "fullyBlocking", + "printedName": "fullyBlocking", "children": [ { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.Event) -> Swift.Bool)?", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryANRType.Type) -> Sentry.SentryANRType", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Event) -> Swift.Bool", + "kind": "TypeNominal", + "name": "SentryANRType", + "printedName": "Sentry.SentryANRType", + "usr": "c:@M@Sentry@E@SentryANRType" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryANRType.Type", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - }, - { - "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" + "name": "SentryANRType", + "printedName": "Sentry.SentryANRType", + "usr": "c:@M@Sentry@E@SentryANRType" } ] } - ], - "usr": "s:Sq" + ] } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)beforeCaptureViewHierarchy", + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryANRType@SentryANRTypeFullyBlocking", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "beforeCaptureViewHierarchy", "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ + "ObjC" + ] + }, + { + "kind": "Var", + "name": "nonFullyBlocking", + "printedName": "nonFullyBlocking", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryANRType.Type) -> Sentry.SentryANRType", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.Event) -> Swift.Bool)?", + "name": "SentryANRType", + "printedName": "Sentry.SentryANRType", + "usr": "c:@M@Sentry@E@SentryANRType" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryANRType.Type", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Event) -> Swift.Bool", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - }, - { - "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" - } - ] + "kind": "TypeNominal", + "name": "SentryANRType", + "printedName": "Sentry.SentryANRType", + "usr": "c:@M@Sentry@E@SentryANRType" } - ], - "usr": "s:Sq" + ] } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)beforeCaptureViewHierarchy", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "beforeCaptureViewHierarchy", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.Event) -> Swift.Bool)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Event) -> Swift.Bool", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - }, - { - "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" - } - ] - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setBeforeCaptureViewHierarchy:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setBeforeCaptureViewHierarchy:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } + ], + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryANRType@SentryANRTypeNonFullyBlocking", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" ] }, { "kind": "Var", - "name": "onCrashedLastRun", - "printedName": "onCrashedLastRun", + "name": "unknown", + "printedName": "unknown", "children": [ { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.Event) -> Swift.Void)?", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryANRType.Type) -> Sentry.SentryANRType", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Event) -> Swift.Void", + "kind": "TypeNominal", + "name": "SentryANRType", + "printedName": "Sentry.SentryANRType", + "usr": "c:@M@Sentry@E@SentryANRType" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryANRType.Type", "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, { "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" + "name": "SentryANRType", + "printedName": "Sentry.SentryANRType", + "usr": "c:@M@Sentry@E@SentryANRType" } ] } - ], - "usr": "s:Sq" + ] } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)onCrashedLastRun", + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryANRType@SentryANRTypeUnknown", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "onCrashedLastRun", "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.Event) -> Swift.Void)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Event) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" - } - ] - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)onCrashedLastRun", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "onCrashedLastRun", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, + "ObjC" + ] + } + ], + "declKind": "Enum", + "usr": "c:@M@Sentry@E@SentryANRType", + "moduleName": "Sentry", + "objc_name": "SentryANRType", + "declAttributes": [ + "SynthesizedProtocol", + "ObjC", + "SynthesizedProtocol", + "Sendable", + "Dynamic" + ], + "enumRawTypeName": "Int", + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "RawRepresentable", + "printedName": "RawRepresentable", + "children": [ { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeWitness", + "name": "RawValue", + "printedName": "RawValue", "children": [ { "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "name": "RawValue", + "printedName": "Sentry.SentryANRType.RawValue", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.Event) -> Swift.Void)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Event) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" - } - ] - } - ], - "usr": "s:Sq" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setOnCrashedLastRun:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setOnCrashedLastRun:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } - ] + ], + "usr": "s:SY", + "mangledName": "$sSY" }, { - "kind": "Var", - "name": "sampleRate", - "printedName": "sampleRate", + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + } + ] + }, + { + "kind": "TypeDecl", + "name": "SentryAttachmentType", + "printedName": "SentryAttachmentType", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(rawValue:)", "children": [ { "kind": "TypeNominal", "name": "Optional", - "printedName": "Foundation.NSNumber?", + "printedName": "Sentry.SentryAttachmentType?", "children": [ { "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" + "name": "SentryAttachmentType", + "printedName": "Sentry.SentryAttachmentType", + "usr": "c:@E@SentryAttachmentType" } ], "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)sampleRate", + "declKind": "Constructor", + "usr": "s:So20SentryAttachmentTypeV8rawValueABSgSi_tcfc", + "mangledName": "$sSo20SentryAttachmentTypeV8rawValueABSgSi_tcfc", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "sampleRate", - "declAttributes": [ - "NSCopying", - "ObjC", - "Dynamic" + "implicit": true, + "init_kind": "Designated" + }, + { + "kind": "Var", + "name": "rawValue", + "printedName": "rawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } ], + "declKind": "Var", + "usr": "s:So20SentryAttachmentTypeV8rawValueSivp", + "mangledName": "$sSo20SentryAttachmentTypeV8rawValueSivp", + "moduleName": "Sentry", + "implicit": true, "accessors": [ { "kind": "Accessor", @@ -17036,425 +16480,424 @@ "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)sampleRate", + "usr": "s:So20SentryAttachmentTypeV8rawValueSivg", + "mangledName": "$sSo20SentryAttachmentTypeV8rawValueSivg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "sampleRate", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], + "implicit": true, "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setSampleRate:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setSampleRate:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" } ] }, { - "kind": "Var", - "name": "enableAutoSessionTracking", - "printedName": "enableAutoSessionTracking", + "kind": "TypeAlias", + "name": "RawValue", + "printedName": "RawValue", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enableAutoSessionTracking", + "declKind": "TypeAlias", + "usr": "s:So20SentryAttachmentTypeV8RawValuea", + "mangledName": "$sSo20SentryAttachmentTypeV8RawValuea", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableAutoSessionTracking", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ + "implicit": true + }, + { + "kind": "Var", + "name": "eventAttachment", + "printedName": "eventAttachment", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryAttachmentType.Type) -> Sentry.SentryAttachmentType", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enableAutoSessionTracking", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableAutoSessionTracking", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ + "name": "SentryAttachmentType", + "printedName": "Sentry.SentryAttachmentType", + "usr": "c:@E@SentryAttachmentType" + }, { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryAttachmentType.Type", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryAttachmentType", + "printedName": "Sentry.SentryAttachmentType", + "usr": "c:@E@SentryAttachmentType" } ] - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnableAutoSessionTracking:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEnableAutoSessionTracking:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } + ], + "declKind": "EnumElement", + "usr": "c:@E@SentryAttachmentType@kSentryAttachmentTypeEventAttachment", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" ] }, { "kind": "Var", - "name": "enableGraphQLOperationTracking", - "printedName": "enableGraphQLOperationTracking", + "name": "viewHierarchy", + "printedName": "viewHierarchy", "children": [ { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enableGraphQLOperationTracking", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableGraphQLOperationTracking", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryAttachmentType.Type) -> Sentry.SentryAttachmentType", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "SentryAttachmentType", + "printedName": "Sentry.SentryAttachmentType", + "usr": "c:@E@SentryAttachmentType" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryAttachmentType.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryAttachmentType", + "printedName": "Sentry.SentryAttachmentType", + "usr": "c:@E@SentryAttachmentType" + } + ] } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enableGraphQLOperationTracking", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableGraphQLOperationTracking", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, + ] + } + ], + "declKind": "EnumElement", + "usr": "c:@E@SentryAttachmentType@kSentryAttachmentTypeViewHierarchy", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" + ] + } + ], + "declKind": "Enum", + "usr": "c:@E@SentryAttachmentType", + "moduleName": "Sentry", + "objc_name": "SentryAttachmentType", + "declAttributes": [ + "SynthesizedProtocol", + "ObjC", + "SynthesizedProtocol", + "Sendable", + "Dynamic" + ], + "enumRawTypeName": "Int", + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "RawRepresentable", + "printedName": "RawRepresentable", + "children": [ { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeWitness", + "name": "RawValue", + "printedName": "RawValue", "children": [ { "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "name": "RawValue", + "printedName": "Sentry.SentryAttachmentType.RawValue", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ] - }, + } + ] + } + ], + "usr": "s:SY", + "mangledName": "$sSY" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + } + ] + }, + { + "kind": "TypeAlias", + "name": "SentryBeforeBreadcrumbCallback", + "printedName": "SentryBeforeBreadcrumbCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Breadcrumb) -> Sentry.Breadcrumb?", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.Breadcrumb?", + "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Breadcrumb", + "printedName": "Sentry.Breadcrumb", + "usr": "c:objc(cs)SentryBreadcrumb" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnableGraphQLOperationTracking:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEnableGraphQLOperationTracking:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Breadcrumb", + "printedName": "Sentry.Breadcrumb", + "usr": "c:objc(cs)SentryBreadcrumb" } ] - }, + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@SentryBeforeBreadcrumbCallback", + "moduleName": "Sentry" + }, + { + "kind": "TypeAlias", + "name": "SentryBeforeCaptureScreenshotCallback", + "printedName": "SentryBeforeCaptureScreenshotCallback", + "children": [ { - "kind": "Var", - "name": "enableWatchdogTerminationTracking", - "printedName": "enableWatchdogTerminationTracking", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Event) -> Swift.Bool", "children": [ { "kind": "TypeNominal", "name": "Bool", "printedName": "Swift.Bool", "usr": "s:Sb" + }, + { + "kind": "TypeNominal", + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enableWatchdogTerminationTracking", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableWatchdogTerminationTracking", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ + ] + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@SentryBeforeCaptureScreenshotCallback", + "moduleName": "Sentry" + }, + { + "kind": "TypeAlias", + "name": "SentryBeforeCaptureViewHierarchyCallback", + "printedName": "SentryBeforeCaptureViewHierarchyCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Event) -> Swift.Bool", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enableWatchdogTerminationTracking", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableWatchdogTerminationTracking", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" }, { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeNominal", + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" + } + ] + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@SentryBeforeCaptureViewHierarchyCallback", + "moduleName": "Sentry" + }, + { + "kind": "TypeAlias", + "name": "SentryBeforeSendEventCallback", + "printedName": "SentryBeforeSendEventCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Event) -> Sentry.Event?", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.Event?", "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnableWatchdogTerminationTracking:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEnableWatchdogTerminationTracking:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" } ] - }, + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@SentryBeforeSendEventCallback", + "moduleName": "Sentry" + }, + { + "kind": "TypeAlias", + "name": "SentryBeforeSendLogCallback", + "printedName": "SentryBeforeSendLogCallback", + "children": [ { - "kind": "Var", - "name": "sessionTrackingIntervalMillis", - "printedName": "sessionTrackingIntervalMillis", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryLog) -> Sentry.SentryLog?", "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)sessionTrackingIntervalMillis", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "sessionTrackingIntervalMillis", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "name": "Optional", + "printedName": "Sentry.SentryLog?", "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "SentryLog", + "printedName": "Sentry.SentryLog", + "usr": "c:@M@Sentry@objc(cs)SentryLog" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)sessionTrackingIntervalMillis", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "sessionTrackingIntervalMillis", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + "usr": "s:Sq" }, { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeNominal", + "name": "SentryLog", + "printedName": "Sentry.SentryLog", + "usr": "c:@M@Sentry@objc(cs)SentryLog" + } + ] + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@SentryBeforeSendLogCallback", + "moduleName": "Sentry" + }, + { + "kind": "TypeAlias", + "name": "SentryBeforeSendSpanCallback", + "printedName": "SentryBeforeSendSpanCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(any Sentry.Span) -> (any Sentry.Span)?", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "(any Sentry.Span)?", "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setSessionTrackingIntervalMillis:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setSessionTrackingIntervalMillis:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" } ] - }, + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@SentryBeforeSendSpanCallback", + "moduleName": "Sentry" + }, + { + "kind": "TypeDecl", + "name": "SentryDsn", + "printedName": "SentryDsn", + "children": [ { "kind": "Var", - "name": "attachStacktrace", - "printedName": "attachStacktrace", + "name": "url", + "printedName": "url", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "URL", + "printedName": "Foundation.URL", + "usr": "s:10Foundation3URLV" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)attachStacktrace", + "usr": "c:objc(cs)SentryDsn(py)url", "moduleName": "Sentry", "isOpen": true, - "objc_name": "attachStacktrace", + "objc_name": "url", "declAttributes": [ "ObjC", "Dynamic" @@ -17467,160 +16910,372 @@ "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "URL", + "printedName": "Foundation.URL", + "usr": "s:10Foundation3URLV" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)attachStacktrace", + "usr": "c:objc(cs)SentryDsn(im)url", "moduleName": "Sentry", "isOpen": true, - "objc_name": "attachStacktrace", + "objc_name": "url", "declAttributes": [ "DiscardableResult", "ObjC", "Dynamic" ], "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setAttachStacktrace:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setAttachStacktrace:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" } ] }, { - "kind": "Var", - "name": "maxAttachmentSize", - "printedName": "maxAttachmentSize", + "kind": "Constructor", + "name": "init", + "printedName": "init(string:)", "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "SentryDsn", + "printedName": "Sentry.SentryDsn", + "usr": "c:objc(cs)SentryDsn" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)maxAttachmentSize", + "declKind": "Constructor", + "usr": "c:objc(cs)SentryDsn(im)initWithString:didFailWithError:", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "maxAttachmentSize", + "objc_name": "initWithString:didFailWithError:", "declAttributes": [ "ObjC", "Dynamic" ], - "accessors": [ + "throwing": true, + "init_kind": "Designated" + }, + { + "kind": "Function", + "name": "getEnvelopeEndpoint", + "printedName": "getEnvelopeEndpoint()", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)maxAttachmentSize", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "maxAttachmentSize", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + "kind": "TypeNominal", + "name": "URL", + "printedName": "Foundation.URL", + "usr": "s:10Foundation3URLV" + } + ], + "declKind": "Func", + "usr": "c:objc(cs)SentryDsn(im)getEnvelopeEndpoint", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "getEnvelopeEndpoint", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init()", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryDsn", + "printedName": "Sentry.SentryDsn", + "usr": "c:objc(cs)SentryDsn" + } + ], + "declKind": "Constructor", + "usr": "c:objc(cs)NSObject(im)init", + "moduleName": "Sentry", + "overriding": true, + "implicit": true, + "objc_name": "init", + "declAttributes": [ + "Override", + "ObjC", + "Dynamic" + ], + "init_kind": "Designated" + } + ], + "declKind": "Class", + "usr": "c:objc(cs)SentryDsn", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "SentryDsn", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "superclassUsr": "c:objc(cs)NSObject", + "inheritsConvenienceInitializers": true, + "superclassNames": [ + "ObjectiveC.NSObject" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" + }, + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" + }, + { + "kind": "Conformance", + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "SentryEnvelopeItemHeader", + "printedName": "SentryEnvelopeItemHeader", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(type:length:)", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryEnvelopeItemHeader", + "printedName": "Sentry.SentryEnvelopeItemHeader", + "usr": "c:objc(cs)SentryEnvelopeItemHeader" }, { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Constructor", + "usr": "c:objc(cs)SentryEnvelopeItemHeader(im)initWithType:length:", + "moduleName": "Sentry", + "objc_name": "initWithType:length:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "init_kind": "Designated" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(type:length:contentType:)", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryEnvelopeItemHeader", + "printedName": "Sentry.SentryEnvelopeItemHeader", + "usr": "c:objc(cs)SentryEnvelopeItemHeader" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Constructor", + "usr": "c:objc(cs)SentryEnvelopeItemHeader(im)initWithType:length:contentType:", + "moduleName": "Sentry", + "objc_name": "initWithType:length:contentType:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "init_kind": "Convenience" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(type:length:filenname:contentType:)", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryEnvelopeItemHeader", + "printedName": "Sentry.SentryEnvelopeItemHeader", + "usr": "c:objc(cs)SentryEnvelopeItemHeader" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Constructor", + "usr": "c:objc(cs)SentryEnvelopeItemHeader(im)initWithType:length:filenname:contentType:", + "moduleName": "Sentry", + "objc_name": "initWithType:length:filenname:contentType:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "init_kind": "Convenience" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(type:length:contentType:itemCount:)", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryEnvelopeItemHeader", + "printedName": "Sentry.SentryEnvelopeItemHeader", + "usr": "c:objc(cs)SentryEnvelopeItemHeader" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setMaxAttachmentSize:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setMaxAttachmentSize:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" } - ] + ], + "declKind": "Constructor", + "usr": "c:objc(cs)SentryEnvelopeItemHeader(im)initWithType:length:contentType:itemCount:", + "moduleName": "Sentry", + "objc_name": "initWithType:length:contentType:itemCount:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "init_kind": "Convenience" }, { "kind": "Var", - "name": "sendDefaultPii", - "printedName": "sendDefaultPii", + "name": "type", + "printedName": "type", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)sendDefaultPii", + "usr": "c:objc(cs)SentryEnvelopeItemHeader(py)type", "moduleName": "Sentry", "isOpen": true, - "objc_name": "sendDefaultPii", + "objc_name": "type", "declAttributes": [ "ObjC", "Dynamic" @@ -17633,77 +17288,42 @@ "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)sendDefaultPii", + "usr": "c:objc(cs)SentryEnvelopeItemHeader(im)type", "moduleName": "Sentry", "isOpen": true, - "objc_name": "sendDefaultPii", + "objc_name": "type", "declAttributes": [ "DiscardableResult", "ObjC", "Dynamic" ], "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setSendDefaultPii:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setSendDefaultPii:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" } ] }, { "kind": "Var", - "name": "enableAutoPerformanceTracing", - "printedName": "enableAutoPerformanceTracing", + "name": "length", + "printedName": "length", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enableAutoPerformanceTracing", + "usr": "c:objc(cs)SentryEnvelopeItemHeader(py)length", "moduleName": "Sentry", "isOpen": true, - "objc_name": "enableAutoPerformanceTracing", + "objc_name": "length", "declAttributes": [ "ObjC", "Dynamic" @@ -17716,77 +17336,114 @@ "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enableAutoPerformanceTracing", + "usr": "c:objc(cs)SentryEnvelopeItemHeader(im)length", "moduleName": "Sentry", "isOpen": true, - "objc_name": "enableAutoPerformanceTracing", + "objc_name": "length", "declAttributes": [ "DiscardableResult", "ObjC", "Dynamic" ], "accessorKind": "get" - }, + } + ] + }, + { + "kind": "Var", + "name": "filename", + "printedName": "filename", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Var", + "usr": "c:objc(cs)SentryEnvelopeItemHeader(py)filename", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "filename", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessors": [ { "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "name": "Get", + "printedName": "Get()", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } - ] - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnableAutoPerformanceTracing:", + "usr": "c:objc(cs)SentryEnvelopeItemHeader(im)filename", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setEnableAutoPerformanceTracing:", + "objc_name": "filename", "declAttributes": [ + "DiscardableResult", "ObjC", "Dynamic" ], - "accessorKind": "set" + "accessorKind": "get" } ] }, { "kind": "Var", - "name": "enablePersistingTracesWhenCrashing", - "printedName": "enablePersistingTracesWhenCrashing", + "name": "contentType", + "printedName": "contentType", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enablePersistingTracesWhenCrashing", + "usr": "c:objc(cs)SentryEnvelopeItemHeader(py)contentType", "moduleName": "Sentry", "isOpen": true, - "objc_name": "enablePersistingTracesWhenCrashing", + "objc_name": "contentType", "declAttributes": [ "ObjC", "Dynamic" @@ -17799,91 +17456,60 @@ "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enablePersistingTracesWhenCrashing", + "usr": "c:objc(cs)SentryEnvelopeItemHeader(im)contentType", "moduleName": "Sentry", "isOpen": true, - "objc_name": "enablePersistingTracesWhenCrashing", + "objc_name": "contentType", "declAttributes": [ "DiscardableResult", "ObjC", "Dynamic" ], "accessorKind": "get" - }, + } + ] + }, + { + "kind": "Var", + "name": "itemCount", + "printedName": "itemCount", + "children": [ { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.NSNumber?", "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnablePersistingTracesWhenCrashing:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEnablePersistingTracesWhenCrashing:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" - } - ] - }, - { - "kind": "Var", - "name": "initialScope", - "printedName": "initialScope", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Scope) -> Sentry.Scope", - "children": [ - { - "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" - }, - { - "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" - } - ] + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)initialScope", + "usr": "c:objc(cs)SentryEnvelopeItemHeader(py)itemCount", "moduleName": "Sentry", "isOpen": true, - "objc_name": "initialScope", + "objc_name": "itemCount", "declAttributes": [ + "NSCopying", "ObjC", "Dynamic" ], @@ -17894,104 +17520,59 @@ "printedName": "Get()", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Scope) -> Sentry.Scope", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.NSNumber?", "children": [ { "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" - }, - { - "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" } - ] + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)initialScope", + "usr": "c:objc(cs)SentryEnvelopeItemHeader(im)itemCount", "moduleName": "Sentry", "isOpen": true, - "objc_name": "initialScope", + "objc_name": "itemCount", "declAttributes": [ "DiscardableResult", "ObjC", "Dynamic" ], "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Scope) -> Sentry.Scope", - "children": [ - { - "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" - }, - { - "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" - } - ] - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setInitialScope:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setInitialScope:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" } ] }, { "kind": "Var", - "name": "enableUIViewControllerTracing", - "printedName": "enableUIViewControllerTracing", + "name": "platform", + "printedName": "platform", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enableUIViewControllerTracing", + "usr": "c:objc(cs)SentryEnvelopeItemHeader(py)platform", "moduleName": "Sentry", "isOpen": true, - "objc_name": "enableUIViewControllerTracing", + "objc_name": "platform", "declAttributes": [ "ObjC", "Dynamic" @@ -18004,16 +17585,24 @@ "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enableUIViewControllerTracing", + "usr": "c:objc(cs)SentryEnvelopeItemHeader(im)platform", "moduleName": "Sentry", "isOpen": true, - "objc_name": "enableUIViewControllerTracing", + "objc_name": "platform", "declAttributes": [ "DiscardableResult", "ObjC", @@ -18040,16 +17629,24 @@ }, { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnableUIViewControllerTracing:", + "usr": "c:objc(cs)SentryEnvelopeItemHeader(im)setPlatform:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setEnableUIViewControllerTracing:", + "objc_name": "setPlatform:", "declAttributes": [ "ObjC", "Dynamic" @@ -18057,111 +17654,141 @@ "accessorKind": "set" } ] + } + ], + "declKind": "Class", + "usr": "c:objc(cs)SentryEnvelopeItemHeader", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "SentryEnvelopeItemHeader", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "superclassUsr": "c:objc(cs)NSObject", + "inheritsConvenienceInitializers": true, + "superclassNames": [ + "ObjectiveC.NSObject" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "SentrySerializable", + "printedName": "SentrySerializable", + "usr": "c:objc(pl)SentrySerializable" }, { - "kind": "Var", - "name": "enableReportNonFullyBlockingAppHangs", - "printedName": "enableReportNonFullyBlockingAppHangs", + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" + }, + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" + }, + { + "kind": "Conformance", + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "SentryError", + "printedName": "SentryError", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(rawValue:)", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enableReportNonFullyBlockingAppHangs", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableReportNonFullyBlockingAppHangs", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "name": "Optional", + "printedName": "Sentry.SentryError?", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "SentryError", + "printedName": "Sentry.SentryError", + "usr": "c:@E@SentryError" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enableReportNonFullyBlockingAppHangs", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableReportNonFullyBlockingAppHangs", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + "usr": "s:Sq" }, { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnableReportNonFullyBlockingAppHangs:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEnableReportNonFullyBlockingAppHangs:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } - ] + ], + "declKind": "Constructor", + "usr": "s:So11SentryErrorV8rawValueABSgSi_tcfc", + "mangledName": "$sSo11SentryErrorV8rawValueABSgSi_tcfc", + "moduleName": "Sentry", + "implicit": true, + "init_kind": "Designated" }, { "kind": "Var", - "name": "attachScreenshot", - "printedName": "attachScreenshot", + "name": "rawValue", + "printedName": "rawValue", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)attachScreenshot", + "usr": "s:So11SentryErrorV8rawValueSivp", + "mangledName": "$sSo11SentryErrorV8rawValueSivp", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "attachScreenshot", - "declAttributes": [ - "ObjC", - "Dynamic" - ], + "implicit": true, "accessors": [ { "kind": "Accessor", @@ -18170,1151 +17797,781 @@ "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)attachScreenshot", + "usr": "s:So11SentryErrorV8rawValueSivg", + "mangledName": "$sSo11SentryErrorV8rawValueSivg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "attachScreenshot", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], + "implicit": true, "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setAttachScreenshot:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setAttachScreenshot:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" } ] }, { - "kind": "Var", - "name": "screenshot", - "printedName": "screenshot", + "kind": "TypeAlias", + "name": "RawValue", + "printedName": "RawValue", "children": [ { "kind": "TypeNominal", - "name": "SentryViewScreenshotOptions", - "printedName": "Sentry.SentryViewScreenshotOptions", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)screenshot", + "declKind": "TypeAlias", + "usr": "s:So11SentryErrorV8RawValuea", + "mangledName": "$sSo11SentryErrorV8RawValuea", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "screenshot", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ + "implicit": true + }, + { + "kind": "Var", + "name": "unknownError", + "printedName": "unknownError", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryError.Type) -> Sentry.SentryError", "children": [ { "kind": "TypeNominal", - "name": "SentryViewScreenshotOptions", - "printedName": "Sentry.SentryViewScreenshotOptions", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)screenshot", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "screenshot", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ + "name": "SentryError", + "printedName": "Sentry.SentryError", + "usr": "c:@E@SentryError" + }, { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryError.Type", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryError", + "printedName": "Sentry.SentryError", + "usr": "c:@E@SentryError" } ] - }, - { - "kind": "TypeNominal", - "name": "SentryViewScreenshotOptions", - "printedName": "Sentry.SentryViewScreenshotOptions", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setScreenshot:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setScreenshot:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } + ], + "declKind": "EnumElement", + "usr": "c:@E@SentryError@kSentryErrorUnknownError", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" ] }, { "kind": "Var", - "name": "attachViewHierarchy", - "printedName": "attachViewHierarchy", + "name": "invalidDsnError", + "printedName": "invalidDsnError", "children": [ { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)attachViewHierarchy", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "attachViewHierarchy", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryError.Type) -> Sentry.SentryError", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)attachViewHierarchy", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "attachViewHierarchy", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ + "name": "SentryError", + "printedName": "Sentry.SentryError", + "usr": "c:@E@SentryError" + }, { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryError.Type", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryError", + "printedName": "Sentry.SentryError", + "usr": "c:@E@SentryError" } ] - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setAttachViewHierarchy:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setAttachViewHierarchy:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } + ], + "declKind": "EnumElement", + "usr": "c:@E@SentryError@kSentryErrorInvalidDsnError", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" ] }, { "kind": "Var", - "name": "reportAccessibilityIdentifier", - "printedName": "reportAccessibilityIdentifier", + "name": "sentryCrashNotInstalledError", + "printedName": "sentryCrashNotInstalledError", "children": [ { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)reportAccessibilityIdentifier", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "reportAccessibilityIdentifier", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryError.Type) -> Sentry.SentryError", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)reportAccessibilityIdentifier", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "reportAccessibilityIdentifier", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ + "name": "SentryError", + "printedName": "Sentry.SentryError", + "usr": "c:@E@SentryError" + }, { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryError.Type", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryError", + "printedName": "Sentry.SentryError", + "usr": "c:@E@SentryError" } ] - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setReportAccessibilityIdentifier:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setReportAccessibilityIdentifier:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } + ], + "declKind": "EnumElement", + "usr": "c:@E@SentryError@kSentryErrorSentryCrashNotInstalledError", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" ] }, { "kind": "Var", - "name": "enableUserInteractionTracing", - "printedName": "enableUserInteractionTracing", + "name": "invalidCrashReportError", + "printedName": "invalidCrashReportError", "children": [ { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enableUserInteractionTracing", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableUserInteractionTracing", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryError.Type) -> Sentry.SentryError", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enableUserInteractionTracing", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableUserInteractionTracing", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ + "name": "SentryError", + "printedName": "Sentry.SentryError", + "usr": "c:@E@SentryError" + }, { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryError.Type", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryError", + "printedName": "Sentry.SentryError", + "usr": "c:@E@SentryError" } ] - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnableUserInteractionTracing:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEnableUserInteractionTracing:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } + ], + "declKind": "EnumElement", + "usr": "c:@E@SentryError@kSentryErrorInvalidCrashReportError", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" ] }, { "kind": "Var", - "name": "idleTimeout", - "printedName": "idleTimeout", + "name": "compressionError", + "printedName": "compressionError", "children": [ { - "kind": "TypeNameAlias", - "name": "TimeInterval", - "printedName": "Foundation.TimeInterval", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryError.Type) -> Sentry.SentryError", "children": [ { "kind": "TypeNominal", - "name": "Double", - "printedName": "Swift.Double", - "usr": "s:Sd" + "name": "SentryError", + "printedName": "Sentry.SentryError", + "usr": "c:@E@SentryError" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryError", + "printedName": "Sentry.SentryError", + "usr": "c:@E@SentryError" + } + ] } ] } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)idleTimeout", + "declKind": "EnumElement", + "usr": "c:@E@SentryError@kSentryErrorCompressionError", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "idleTimeout", "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ + "ObjC" + ] + }, + { + "kind": "Var", + "name": "jsonConversionError", + "printedName": "jsonConversionError", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryError.Type) -> Sentry.SentryError", "children": [ { - "kind": "TypeNameAlias", - "name": "TimeInterval", - "printedName": "Foundation.TimeInterval", + "kind": "TypeNominal", + "name": "SentryError", + "printedName": "Sentry.SentryError", + "usr": "c:@E@SentryError" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryError.Type", "children": [ { "kind": "TypeNominal", - "name": "Double", - "printedName": "Swift.Double", - "usr": "s:Sd" + "name": "SentryError", + "printedName": "Sentry.SentryError", + "usr": "c:@E@SentryError" } ] } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)idleTimeout", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "idleTimeout", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, + ] + } + ], + "declKind": "EnumElement", + "usr": "c:@E@SentryError@kSentryErrorJsonConversionError", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" + ] + }, + { + "kind": "Var", + "name": "couldNotFindDirectory", + "printedName": "couldNotFindDirectory", + "children": [ { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryError.Type) -> Sentry.SentryError", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] + "kind": "TypeNominal", + "name": "SentryError", + "printedName": "Sentry.SentryError", + "usr": "c:@E@SentryError" }, { - "kind": "TypeNameAlias", - "name": "TimeInterval", - "printedName": "Foundation.TimeInterval", + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryError.Type", "children": [ { "kind": "TypeNominal", - "name": "Double", - "printedName": "Swift.Double", - "usr": "s:Sd" + "name": "SentryError", + "printedName": "Sentry.SentryError", + "usr": "c:@E@SentryError" } ] } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setIdleTimeout:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setIdleTimeout:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } + ], + "declKind": "EnumElement", + "usr": "c:@E@SentryError@kSentryErrorCouldNotFindDirectory", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" ] }, { "kind": "Var", - "name": "enablePreWarmedAppStartTracing", - "printedName": "enablePreWarmedAppStartTracing", + "name": "requestError", + "printedName": "requestError", "children": [ { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enablePreWarmedAppStartTracing", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enablePreWarmedAppStartTracing", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryError.Type) -> Sentry.SentryError", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enablePreWarmedAppStartTracing", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enablePreWarmedAppStartTracing", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ + "name": "SentryError", + "printedName": "Sentry.SentryError", + "usr": "c:@E@SentryError" + }, { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryError.Type", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryError", + "printedName": "Sentry.SentryError", + "usr": "c:@E@SentryError" } ] - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnablePreWarmedAppStartTracing:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEnablePreWarmedAppStartTracing:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } + ], + "declKind": "EnumElement", + "usr": "c:@E@SentryError@kSentryErrorRequestError", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" ] }, { "kind": "Var", - "name": "sessionReplay", - "printedName": "sessionReplay", + "name": "eventNotSent", + "printedName": "eventNotSent", "children": [ { - "kind": "TypeNominal", - "name": "SentryReplayOptions", - "printedName": "Sentry.SentryReplayOptions", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions" + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryError.Type) -> Sentry.SentryError", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryError", + "printedName": "Sentry.SentryError", + "usr": "c:@E@SentryError" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryError", + "printedName": "Sentry.SentryError", + "usr": "c:@E@SentryError" + } + ] + } + ] } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)sessionReplay", + "declKind": "EnumElement", + "usr": "c:@E@SentryError@kSentryErrorEventNotSent", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "sessionReplay", "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ + "ObjC" + ] + }, + { + "kind": "Var", + "name": "fileIO", + "printedName": "fileIO", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryError.Type) -> Sentry.SentryError", "children": [ { "kind": "TypeNominal", - "name": "SentryReplayOptions", - "printedName": "Sentry.SentryReplayOptions", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)sessionReplay", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "sessionReplay", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ + "name": "SentryError", + "printedName": "Sentry.SentryError", + "usr": "c:@E@SentryError" + }, { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryError.Type", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryError", + "printedName": "Sentry.SentryError", + "usr": "c:@E@SentryError" } ] - }, - { - "kind": "TypeNominal", - "name": "SentryReplayOptions", - "printedName": "Sentry.SentryReplayOptions", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setSessionReplay:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setSessionReplay:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } + ], + "declKind": "EnumElement", + "usr": "c:@E@SentryError@kSentryErrorFileIO", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" ] }, { "kind": "Var", - "name": "enableNetworkTracking", - "printedName": "enableNetworkTracking", + "name": "kernel", + "printedName": "kernel", "children": [ { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enableNetworkTracking", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableNetworkTracking", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryError.Type) -> Sentry.SentryError", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enableNetworkTracking", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableNetworkTracking", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ + "name": "SentryError", + "printedName": "Sentry.SentryError", + "usr": "c:@E@SentryError" + }, { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryError.Type", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryError", + "printedName": "Sentry.SentryError", + "usr": "c:@E@SentryError" } ] - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnableNetworkTracking:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEnableNetworkTracking:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } + ], + "declKind": "EnumElement", + "usr": "c:@E@SentryError@kSentryErrorKernel", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" ] + } + ], + "declKind": "Enum", + "usr": "c:@E@SentryError", + "moduleName": "Sentry", + "objc_name": "SentryError", + "declAttributes": [ + "SynthesizedProtocol", + "ObjC", + "SynthesizedProtocol", + "Sendable", + "Dynamic" + ], + "enumRawTypeName": "Int", + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" }, { - "kind": "Var", - "name": "enableFileIOTracing", - "printedName": "enableFileIOTracing", + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "RawRepresentable", + "printedName": "RawRepresentable", "children": [ { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enableFileIOTracing", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableFileIOTracing", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enableFileIOTracing", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableFileIOTracing", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeWitness", + "name": "RawValue", + "printedName": "RawValue", "children": [ { "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "name": "RawValue", + "printedName": "Sentry.SentryError.RawValue", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ] - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnableFileIOTracing:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEnableFileIOTracing:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } - ] + ], + "usr": "s:SY", + "mangledName": "$sSY" }, { - "kind": "Var", - "name": "enableDataSwizzling", - "printedName": "enableDataSwizzling", + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + } + ] + }, + { + "kind": "Var", + "name": "SentryErrorDomain", + "printedName": "SentryErrorDomain", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@SentryErrorDomain", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "TypeDecl", + "name": "SentryFeedbackAPI", + "printedName": "SentryFeedbackAPI", + "children": [ + { + "kind": "Function", + "name": "showWidget", + "printedName": "showWidget()", "children": [ { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enableDataSwizzling", + "declKind": "Func", + "usr": "c:objc(cs)SentryFeedbackAPI(im)showWidget", "moduleName": "Sentry", "isOpen": true, - "objc_name": "enableDataSwizzling", + "objc_name": "showWidget", "declAttributes": [ "ObjC", "Dynamic" ], - "accessors": [ + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "hideWidget", + "printedName": "hideWidget()", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enableDataSwizzling", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableDataSwizzling", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "printedName": "()" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnableDataSwizzling:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEnableDataSwizzling:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" - } - ] - }, - { - "kind": "Var", - "name": "enableFileManagerSwizzling", - "printedName": "enableFileManagerSwizzling", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + ] } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enableFileManagerSwizzling", + "declKind": "Func", + "usr": "c:objc(cs)SentryFeedbackAPI(im)hideWidget", "moduleName": "Sentry", "isOpen": true, - "objc_name": "enableFileManagerSwizzling", + "objc_name": "hideWidget", "declAttributes": [ "ObjC", "Dynamic" ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enableFileManagerSwizzling", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableFileManagerSwizzling", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnableFileManagerSwizzling:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEnableFileManagerSwizzling:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" - } - ] + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "tracesSampleRate", - "printedName": "tracesSampleRate", + "kind": "Constructor", + "name": "init", + "printedName": "init()", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" + "name": "SentryFeedbackAPI", + "printedName": "Sentry.SentryFeedbackAPI", + "usr": "c:objc(cs)SentryFeedbackAPI" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)tracesSampleRate", + "declKind": "Constructor", + "usr": "c:objc(cs)NSObject(im)init", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "tracesSampleRate", + "overriding": true, + "implicit": true, + "objc_name": "init", "declAttributes": [ + "Override", "ObjC", "Dynamic" ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)tracesSampleRate", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "tracesSampleRate", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setTracesSampleRate:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setTracesSampleRate:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" - } - ] + "init_kind": "Designated" + } + ], + "declKind": "Class", + "usr": "c:objc(cs)SentryFeedbackAPI", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "SentryFeedbackAPI", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "superclassUsr": "c:objc(cs)NSObject", + "inheritsConvenienceInitializers": true, + "superclassNames": [ + "ObjectiveC.NSObject" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" }, { - "kind": "Var", - "name": "tracesSampler", - "printedName": "tracesSampler", + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" + }, + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" + }, + { + "kind": "Conformance", + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "SentryFeedbackSource", + "printedName": "SentryFeedbackSource", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(rawValue:)", "children": [ { "kind": "TypeNominal", "name": "Optional", - "printedName": "((Sentry.SamplingContext) -> Foundation.NSNumber?)?", + "printedName": "Sentry.SentryFeedbackSource?", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SamplingContext) -> Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "SamplingContext", - "printedName": "Sentry.SamplingContext", - "usr": "c:objc(cs)SentrySamplingContext" - } - ] + "kind": "TypeNominal", + "name": "SentryFeedbackSource", + "printedName": "Sentry.SentryFeedbackSource", + "usr": "c:@M@Sentry@E@SentryFeedbackSource" } ], "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)tracesSampler", + "declKind": "Constructor", + "usr": "s:So20SentryFeedbackSourceV8rawValueABSgSi_tcfc", + "mangledName": "$sSo20SentryFeedbackSourceV8rawValueABSgSi_tcfc", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "tracesSampler", - "declAttributes": [ - "ObjC", - "Dynamic" + "implicit": true, + "init_kind": "Designated" + }, + { + "kind": "Var", + "name": "rawValue", + "printedName": "rawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } ], + "declKind": "Var", + "usr": "s:So20SentryFeedbackSourceV8rawValueSivp", + "mangledName": "$sSo20SentryFeedbackSourceV8rawValueSivp", + "moduleName": "Sentry", + "implicit": true, "accessors": [ { "kind": "Accessor", @@ -19323,135 +18580,219 @@ "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.SamplingContext) -> Foundation.NSNumber?)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SamplingContext) -> Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "SamplingContext", - "printedName": "Sentry.SamplingContext", - "usr": "c:objc(cs)SentrySamplingContext" - } - ] - } - ], - "usr": "s:Sq" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)tracesSampler", + "usr": "s:So20SentryFeedbackSourceV8rawValueSivg", + "mangledName": "$sSo20SentryFeedbackSourceV8rawValueSivg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "tracesSampler", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], + "implicit": true, "accessorKind": "get" - }, + } + ] + }, + { + "kind": "TypeAlias", + "name": "RawValue", + "printedName": "RawValue", + "children": [ { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "TypeAlias", + "usr": "s:So20SentryFeedbackSourceV8RawValuea", + "mangledName": "$sSo20SentryFeedbackSourceV8RawValuea", + "moduleName": "Sentry", + "implicit": true + }, + { + "kind": "Var", + "name": "widget", + "printedName": "widget", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryFeedbackSource.Type) -> Sentry.SentryFeedbackSource", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "SentryFeedbackSource", + "printedName": "Sentry.SentryFeedbackSource", + "usr": "c:@M@Sentry@E@SentryFeedbackSource" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryFeedbackSource.Type", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryFeedbackSource", + "printedName": "Sentry.SentryFeedbackSource", + "usr": "c:@M@Sentry@E@SentryFeedbackSource" } ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryFeedbackSource@SentryFeedbackSourceWidget", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" + ] + }, + { + "kind": "Var", + "name": "custom", + "printedName": "custom", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryFeedbackSource.Type) -> Sentry.SentryFeedbackSource", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryFeedbackSource", + "printedName": "Sentry.SentryFeedbackSource", + "usr": "c:@M@Sentry@E@SentryFeedbackSource" }, { "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.SamplingContext) -> Foundation.NSNumber?)?", + "name": "Metatype", + "printedName": "Sentry.SentryFeedbackSource.Type", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SamplingContext) -> Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "SamplingContext", - "printedName": "Sentry.SamplingContext", - "usr": "c:objc(cs)SentrySamplingContext" - } - ] + "kind": "TypeNominal", + "name": "SentryFeedbackSource", + "printedName": "Sentry.SentryFeedbackSource", + "usr": "c:@M@Sentry@E@SentryFeedbackSource" } - ], - "usr": "s:Sq" + ] } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setTracesSampler:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setTracesSampler:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } + ], + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryFeedbackSource@SentryFeedbackSourceCustom", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" ] + } + ], + "declKind": "Enum", + "usr": "c:@M@Sentry@E@SentryFeedbackSource", + "moduleName": "Sentry", + "objc_name": "SentryFeedbackSource", + "declAttributes": [ + "SynthesizedProtocol", + "ObjC", + "SynthesizedProtocol", + "Sendable", + "Dynamic" + ], + "enumRawTypeName": "Int", + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "RawRepresentable", + "printedName": "RawRepresentable", + "children": [ + { + "kind": "TypeWitness", + "name": "RawValue", + "printedName": "RawValue", + "children": [ + { + "kind": "TypeNameAlias", + "name": "RawValue", + "printedName": "Sentry.SentryFeedbackSource.RawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ] + } + ] + } + ], + "usr": "s:SY", + "mangledName": "$sSY" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + } + ] + }, + { + "kind": "TypeDecl", + "name": "SentryId", + "printedName": "SentryId", + "children": [ { "kind": "Var", - "name": "isTracingEnabled", - "printedName": "isTracingEnabled", + "name": "empty", + "printedName": "empty", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)isTracingEnabled", + "usr": "c:objc(cs)SentryId(cpy)empty", "moduleName": "Sentry", + "static": true, "isOpen": true, - "objc_name": "isTracingEnabled", + "objc_name": "empty", "declAttributes": [ "ObjC", "Dynamic" @@ -19464,18 +18805,18 @@ "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)isTracingEnabled", + "usr": "c:objc(cs)SentryId(cm)empty", "moduleName": "Sentry", + "static": true, "isOpen": true, - "objc_name": "isTracingEnabled", + "objc_name": "empty", "declAttributes": [ - "DiscardableResult", "ObjC", "Dynamic" ], @@ -19485,29 +18826,21 @@ }, { "kind": "Var", - "name": "inAppIncludes", - "printedName": "inAppIncludes", + "name": "sentryIdString", + "printedName": "sentryIdString", "children": [ { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.String]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sa" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)inAppIncludes", + "usr": "c:objc(cs)SentryId(py)sentryIdString", "moduleName": "Sentry", "isOpen": true, - "objc_name": "inAppIncludes", + "objc_name": "sentryIdString", "declAttributes": [ "ObjC", "Dynamic" @@ -19520,24 +18853,16 @@ "children": [ { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.String]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sa" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)inAppIncludes", + "usr": "c:objc(cs)SentryId(im)sentryIdString", "moduleName": "Sentry", "isOpen": true, - "objc_name": "inAppIncludes", + "objc_name": "sentryIdString", "declAttributes": [ "DiscardableResult", "ObjC", @@ -19548,62 +18873,306 @@ ] }, { - "kind": "Function", - "name": "add", - "printedName": "add(inAppInclude:)", + "kind": "Constructor", + "name": "init", + "printedName": "init()", "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" + } + ], + "declKind": "Constructor", + "usr": "c:objc(cs)SentryId(im)init", + "moduleName": "Sentry", + "overriding": true, + "objc_name": "init", + "declAttributes": [ + "Override", + "ObjC", + "Dynamic" + ], + "init_kind": "Designated" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(uuid:)", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" + }, + { + "kind": "TypeNominal", + "name": "UUID", + "printedName": "Foundation.UUID", + "usr": "s:10Foundation4UUIDV" + } + ], + "declKind": "Constructor", + "usr": "c:objc(cs)SentryId(im)initWithUuid:", + "moduleName": "Sentry", + "objc_name": "initWithUuid:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "init_kind": "Designated" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(uuidString:)", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Constructor", + "usr": "c:objc(cs)SentryId(im)initWithUUIDString:", + "moduleName": "Sentry", + "objc_name": "initWithUUIDString:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "init_kind": "Designated" + }, + { + "kind": "Function", + "name": "isEqual", + "printedName": "isEqual(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Any?", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" + } + ], + "usr": "s:Sq" + } + ], "declKind": "Func", - "usr": "c:objc(cs)SentryOptions(im)addInAppInclude:", + "usr": "c:objc(cs)SentryId(im)isEqual:", "moduleName": "Sentry", + "overriding": true, "isOpen": true, - "objc_name": "addInAppInclude:", + "objc_name": "isEqual:", "declAttributes": [ + "Override", "ObjC", "Dynamic" ], "funcSelfKind": "NonMutating" + } + ], + "declKind": "Class", + "usr": "c:objc(cs)SentryId", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "SentryId", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "superclassUsr": "c:objc(cs)NSObject", + "inheritsConvenienceInitializers": true, + "superclassNames": [ + "ObjectiveC.NSObject" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" + }, + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" + }, + { + "kind": "Conformance", + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "SentryMessage", + "printedName": "SentryMessage", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(formatted:)", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryMessage", + "printedName": "Sentry.SentryMessage", + "usr": "c:objc(cs)SentryMessage" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Constructor", + "usr": "c:objc(cs)SentryMessage(im)initWithFormatted:", + "moduleName": "Sentry", + "objc_name": "initWithFormatted:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "init_kind": "Designated" }, { "kind": "Var", - "name": "urlSessionDelegate", - "printedName": "urlSessionDelegate", + "name": "formatted", + "printedName": "formatted", "children": [ { "kind": "TypeNominal", - "name": "WeakStorage", - "printedName": "(any Foundation.URLSessionDelegate)?" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)urlSessionDelegate", + "usr": "c:objc(cs)SentryMessage(py)formatted", "moduleName": "Sentry", "isOpen": true, - "objc_name": "urlSessionDelegate", + "objc_name": "formatted", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryMessage(im)formatted", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "formatted", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "accessorKind": "get" + } + ] + }, + { + "kind": "Var", + "name": "message", + "printedName": "message", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Var", + "usr": "c:objc(cs)SentryMessage(py)message", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "message", "declAttributes": [ - "ReferenceOwnership", "ObjC", "Dynamic" ], - "ownership": 1, "accessors": [ { "kind": "Accessor", @@ -19613,23 +19182,23 @@ { "kind": "TypeNominal", "name": "Optional", - "printedName": "(any Foundation.URLSessionDelegate)?", + "printedName": "Swift.String?", "children": [ { "kind": "TypeNominal", - "name": "URLSessionDelegate", - "printedName": "any Foundation.URLSessionDelegate", - "usr": "c:objc(pl)NSURLSessionDelegate" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)urlSessionDelegate", + "usr": "c:objc(cs)SentryMessage(im)message", "moduleName": "Sentry", "isOpen": true, - "objc_name": "urlSessionDelegate", + "objc_name": "message", "declAttributes": [ "DiscardableResult", "ObjC", @@ -19657,23 +19226,23 @@ { "kind": "TypeNominal", "name": "Optional", - "printedName": "(any Foundation.URLSessionDelegate)?", + "printedName": "Swift.String?", "children": [ { "kind": "TypeNominal", - "name": "URLSessionDelegate", - "printedName": "any Foundation.URLSessionDelegate", - "usr": "c:objc(pl)NSURLSessionDelegate" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setUrlSessionDelegate:", + "usr": "c:objc(cs)SentryMessage(im)setMessage:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setUrlSessionDelegate:", + "objc_name": "setMessage:", "declAttributes": [ "ObjC", "Dynamic" @@ -19684,29 +19253,37 @@ }, { "kind": "Var", - "name": "urlSession", - "printedName": "urlSession", + "name": "params", + "printedName": "params", "children": [ { "kind": "TypeNominal", "name": "Optional", - "printedName": "Foundation.URLSession?", + "printedName": "[Swift.String]?", "children": [ { "kind": "TypeNominal", - "name": "URLSession", - "printedName": "Foundation.URLSession", - "usr": "c:objc(cs)NSURLSession" + "name": "Array", + "printedName": "[Swift.String]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sa" } ], "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)urlSession", + "usr": "c:objc(cs)SentryMessage(py)params", "moduleName": "Sentry", "isOpen": true, - "objc_name": "urlSession", + "objc_name": "params", "declAttributes": [ "ObjC", "Dynamic" @@ -19720,23 +19297,31 @@ { "kind": "TypeNominal", "name": "Optional", - "printedName": "Foundation.URLSession?", + "printedName": "[Swift.String]?", "children": [ { "kind": "TypeNominal", - "name": "URLSession", - "printedName": "Foundation.URLSession", - "usr": "c:objc(cs)NSURLSession" + "name": "Array", + "printedName": "[Swift.String]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sa" } ], "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)urlSession", + "usr": "c:objc(cs)SentryMessage(im)params", "moduleName": "Sentry", "isOpen": true, - "objc_name": "urlSession", + "objc_name": "params", "declAttributes": [ "DiscardableResult", "ObjC", @@ -19764,23 +19349,31 @@ { "kind": "TypeNominal", "name": "Optional", - "printedName": "Foundation.URLSession?", + "printedName": "[Swift.String]?", "children": [ { "kind": "TypeNominal", - "name": "URLSession", - "printedName": "Foundation.URLSession", - "usr": "c:objc(cs)NSURLSession" + "name": "Array", + "printedName": "[Swift.String]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sa" } ], "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setUrlSession:", + "usr": "c:objc(cs)SentryMessage(im)setParams:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setUrlSession:", + "objc_name": "setParams:", "declAttributes": [ "ObjC", "Dynamic" @@ -19788,24 +19381,108 @@ "accessorKind": "set" } ] + } + ], + "declKind": "Class", + "usr": "c:objc(cs)SentryMessage", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "SentryMessage", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "superclassUsr": "c:objc(cs)NSObject", + "inheritsConvenienceInitializers": true, + "superclassNames": [ + "ObjectiveC.NSObject" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "SentrySerializable", + "printedName": "SentrySerializable", + "usr": "c:objc(pl)SentrySerializable" + }, + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" + }, + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" }, + { + "kind": "Conformance", + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "SentryNSError", + "printedName": "SentryNSError", + "children": [ { "kind": "Var", - "name": "enableSwizzling", - "printedName": "enableSwizzling", + "name": "domain", + "printedName": "domain", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enableSwizzling", + "usr": "c:objc(cs)SentryNSError(py)domain", "moduleName": "Sentry", "isOpen": true, - "objc_name": "enableSwizzling", + "objc_name": "domain", "declAttributes": [ "ObjC", "Dynamic" @@ -19818,16 +19495,16 @@ "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enableSwizzling", + "usr": "c:objc(cs)SentryNSError(im)domain", "moduleName": "Sentry", "isOpen": true, - "objc_name": "enableSwizzling", + "objc_name": "domain", "declAttributes": [ "DiscardableResult", "ObjC", @@ -19854,16 +19531,16 @@ }, { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnableSwizzling:", + "usr": "c:objc(cs)SentryNSError(im)setDomain:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setEnableSwizzling:", + "objc_name": "setDomain:", "declAttributes": [ "ObjC", "Dynamic" @@ -19874,29 +19551,21 @@ }, { "kind": "Var", - "name": "swizzleClassNameExcludes", - "printedName": "swizzleClassNameExcludes", + "name": "code", + "printedName": "code", "children": [ { "kind": "TypeNominal", - "name": "Set", - "printedName": "Swift.Set", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sh" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)swizzleClassNameExcludes", + "usr": "c:objc(cs)SentryNSError(py)code", "moduleName": "Sentry", "isOpen": true, - "objc_name": "swizzleClassNameExcludes", + "objc_name": "code", "declAttributes": [ "ObjC", "Dynamic" @@ -19909,24 +19578,16 @@ "children": [ { "kind": "TypeNominal", - "name": "Set", - "printedName": "Swift.Set", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sh" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)swizzleClassNameExcludes", + "usr": "c:objc(cs)SentryNSError(im)code", "moduleName": "Sentry", "isOpen": true, - "objc_name": "swizzleClassNameExcludes", + "objc_name": "code", "declAttributes": [ "DiscardableResult", "ObjC", @@ -19953,24 +19614,16 @@ }, { "kind": "TypeNominal", - "name": "Set", - "printedName": "Swift.Set", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sh" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setSwizzleClassNameExcludes:", + "usr": "c:objc(cs)SentryNSError(im)setCode:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setSwizzleClassNameExcludes:", + "objc_name": "setCode:", "declAttributes": [ "ObjC", "Dynamic" @@ -19980,143 +19633,208 @@ ] }, { - "kind": "Var", - "name": "enableCoreDataTracing", - "printedName": "enableCoreDataTracing", + "kind": "Constructor", + "name": "init", + "printedName": "init(domain:code:)", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "SentryNSError", + "printedName": "Sentry.SentryNSError", + "usr": "c:objc(cs)SentryNSError" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enableCoreDataTracing", + "declKind": "Constructor", + "usr": "c:objc(cs)SentryNSError(im)initWithDomain:code:", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableCoreDataTracing", + "objc_name": "initWithDomain:code:", "declAttributes": [ "ObjC", "Dynamic" ], - "accessors": [ + "init_kind": "Designated" + } + ], + "declKind": "Class", + "usr": "c:objc(cs)SentryNSError", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "SentryNSError", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "superclassUsr": "c:objc(cs)NSObject", + "inheritsConvenienceInitializers": true, + "superclassNames": [ + "ObjectiveC.NSObject" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "SentrySerializable", + "printedName": "SentrySerializable", + "usr": "c:objc(pl)SentrySerializable" + }, + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" + }, + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" + }, + { + "kind": "Conformance", + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" + } + ] + }, + { + "kind": "TypeAlias", + "name": "SentryOnCrashedLastRunCallback", + "printedName": "SentryOnCrashedLastRunCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Event) -> Swift.Void", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Void", + "printedName": "()" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enableCoreDataTracing", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableCoreDataTracing", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + ] }, { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnableCoreDataTracing:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEnableCoreDataTracing:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + "kind": "TypeNominal", + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" } ] - }, + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@SentryOnCrashedLastRunCallback", + "moduleName": "Sentry" + }, + { + "kind": "TypeDecl", + "name": "SentryProfileLifecycle", + "printedName": "SentryProfileLifecycle", + "children": [ { - "kind": "Var", - "name": "configureProfiling", - "printedName": "configureProfiling", + "kind": "Constructor", + "name": "init", + "printedName": "init(rawValue:)", "children": [ { "kind": "TypeNominal", "name": "Optional", - "printedName": "Sentry.SentryProfilingConfigurationBlock?", + "printedName": "Sentry.SentryProfileLifecycle?", "children": [ { - "kind": "TypeNameAlias", - "name": "SentryProfilingConfigurationBlock", - "printedName": "Sentry.SentryProfilingConfigurationBlock", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryProfileOptions) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "SentryProfileOptions", - "printedName": "Sentry.SentryProfileOptions", - "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions" - } - ] - } - ] + "kind": "TypeNominal", + "name": "SentryProfileLifecycle", + "printedName": "Sentry.SentryProfileLifecycle", + "usr": "c:@M@Sentry@E@SentryProfileLifecycle" } ], "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)configureProfiling", + "declKind": "Constructor", + "usr": "s:So22SentryProfileLifecycleV8rawValueABSgSi_tcfc", + "mangledName": "$sSo22SentryProfileLifecycleV8rawValueABSgSi_tcfc", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "configureProfiling", - "declAttributes": [ - "ObjC", - "Dynamic" + "implicit": true, + "init_kind": "Designated" + }, + { + "kind": "Var", + "name": "rawValue", + "printedName": "rawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } ], + "declKind": "Var", + "usr": "s:So22SentryProfileLifecycleV8rawValueSivp", + "mangledName": "$sSo22SentryProfileLifecycleV8rawValueSivp", + "moduleName": "Sentry", + "implicit": true, "accessors": [ { "kind": "Accessor", @@ -20125,780 +19843,633 @@ "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryProfilingConfigurationBlock?", - "children": [ - { - "kind": "TypeNameAlias", - "name": "SentryProfilingConfigurationBlock", - "printedName": "Sentry.SentryProfilingConfigurationBlock", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryProfileOptions) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "SentryProfileOptions", - "printedName": "Sentry.SentryProfileOptions", - "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions" - } - ] - } - ] - } - ], - "usr": "s:Sq" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)configureProfiling", + "usr": "s:So22SentryProfileLifecycleV8rawValueSivg", + "mangledName": "$sSo22SentryProfileLifecycleV8rawValueSivg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "configureProfiling", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], + "implicit": true, "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryProfilingConfigurationBlock?", - "children": [ - { - "kind": "TypeNameAlias", - "name": "SentryProfilingConfigurationBlock", - "printedName": "Sentry.SentryProfilingConfigurationBlock", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryProfileOptions) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "SentryProfileOptions", - "printedName": "Sentry.SentryProfileOptions", - "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions" - } - ] - } - ] - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setConfigureProfiling:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setConfigureProfiling:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" } ] }, { - "kind": "Var", - "name": "sendClientReports", - "printedName": "sendClientReports", + "kind": "TypeAlias", + "name": "RawValue", + "printedName": "RawValue", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)sendClientReports", + "declKind": "TypeAlias", + "usr": "s:So22SentryProfileLifecycleV8RawValuea", + "mangledName": "$sSo22SentryProfileLifecycleV8RawValuea", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "sendClientReports", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ + "implicit": true + }, + { + "kind": "Var", + "name": "manual", + "printedName": "manual", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryProfileLifecycle.Type) -> Sentry.SentryProfileLifecycle", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)sendClientReports", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "sendClientReports", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ + "name": "SentryProfileLifecycle", + "printedName": "Sentry.SentryProfileLifecycle", + "usr": "c:@M@Sentry@E@SentryProfileLifecycle" + }, { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryProfileLifecycle.Type", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryProfileLifecycle", + "printedName": "Sentry.SentryProfileLifecycle", + "usr": "c:@M@Sentry@E@SentryProfileLifecycle" } ] - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setSendClientReports:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setSendClientReports:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } + ], + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryProfileLifecycle@SentryProfileLifecycleManual", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" ] }, { "kind": "Var", - "name": "enableAppHangTracking", - "printedName": "enableAppHangTracking", + "name": "trace", + "printedName": "trace", "children": [ { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enableAppHangTracking", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableAppHangTracking", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryProfileLifecycle.Type) -> Sentry.SentryProfileLifecycle", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "SentryProfileLifecycle", + "printedName": "Sentry.SentryProfileLifecycle", + "usr": "c:@M@Sentry@E@SentryProfileLifecycle" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryProfileLifecycle.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryProfileLifecycle", + "printedName": "Sentry.SentryProfileLifecycle", + "usr": "c:@M@Sentry@E@SentryProfileLifecycle" + } + ] } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enableAppHangTracking", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableAppHangTracking", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, + ] + } + ], + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryProfileLifecycle@SentryProfileLifecycleTrace", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" + ] + } + ], + "declKind": "Enum", + "usr": "c:@M@Sentry@E@SentryProfileLifecycle", + "moduleName": "Sentry", + "objc_name": "SentryProfileLifecycle", + "declAttributes": [ + "SynthesizedProtocol", + "ObjC", + "SynthesizedProtocol", + "Sendable", + "Dynamic" + ], + "enumRawTypeName": "Int", + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "RawRepresentable", + "printedName": "RawRepresentable", + "children": [ { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeWitness", + "name": "RawValue", + "printedName": "RawValue", "children": [ { "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "name": "RawValue", + "printedName": "Sentry.SentryProfileLifecycle.RawValue", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ] - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnableAppHangTracking:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEnableAppHangTracking:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } - ] + ], + "usr": "s:SY", + "mangledName": "$sSY" }, { - "kind": "Var", - "name": "appHangTimeoutInterval", - "printedName": "appHangTimeoutInterval", + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + } + ] + }, + { + "kind": "TypeDecl", + "name": "SentryReplayApi", + "printedName": "SentryReplayApi", + "children": [ + { + "kind": "Function", + "name": "maskView", + "printedName": "maskView(_:)", "children": [ { "kind": "TypeNameAlias", - "name": "TimeInterval", - "printedName": "Foundation.TimeInterval", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "Double", - "printedName": "Swift.Double", - "usr": "s:Sd" + "name": "Void", + "printedName": "()" } ] + }, + { + "kind": "TypeNominal", + "name": "UIView", + "printedName": "UIKit.UIView", + "usr": "c:objc(cs)UIView" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)appHangTimeoutInterval", + "declKind": "Func", + "usr": "c:objc(cs)SentryReplayApi(im)maskView:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "appHangTimeoutInterval", + "objc_name": "maskView:", "declAttributes": [ "ObjC", "Dynamic" ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "TimeInterval", - "printedName": "Foundation.TimeInterval", - "children": [ - { - "kind": "TypeNominal", - "name": "Double", - "printedName": "Swift.Double", - "usr": "s:Sd" - } - ] - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)appHangTimeoutInterval", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "appHangTimeoutInterval", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "unmaskView", + "printedName": "unmaskView(_:)", + "children": [ { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { - "kind": "TypeNameAlias", + "kind": "TypeNominal", "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNameAlias", - "name": "TimeInterval", - "printedName": "Foundation.TimeInterval", - "children": [ - { - "kind": "TypeNominal", - "name": "Double", - "printedName": "Swift.Double", - "usr": "s:Sd" - } - ] + "printedName": "()" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setAppHangTimeoutInterval:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setAppHangTimeoutInterval:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" - } - ] - }, - { - "kind": "Var", - "name": "enableAutoBreadcrumbTracking", - "printedName": "enableAutoBreadcrumbTracking", - "children": [ + ] + }, { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "UIView", + "printedName": "UIKit.UIView", + "usr": "c:objc(cs)UIView" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enableAutoBreadcrumbTracking", + "declKind": "Func", + "usr": "c:objc(cs)SentryReplayApi(im)unmaskView:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "enableAutoBreadcrumbTracking", + "objc_name": "unmaskView:", "declAttributes": [ "ObjC", "Dynamic" ], - "accessors": [ + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "pause", + "printedName": "pause()", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enableAutoBreadcrumbTracking", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableAutoBreadcrumbTracking", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "printedName": "()" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnableAutoBreadcrumbTracking:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEnableAutoBreadcrumbTracking:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } - ] + ], + "declKind": "Func", + "usr": "c:objc(cs)SentryReplayApi(im)pause", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "pause", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "enablePropagateTraceparent", - "printedName": "enablePropagateTraceparent", + "kind": "Function", + "name": "resume", + "printedName": "resume()", "children": [ { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enablePropagateTraceparent", + "declKind": "Func", + "usr": "c:objc(cs)SentryReplayApi(im)resume", "moduleName": "Sentry", "isOpen": true, - "objc_name": "enablePropagateTraceparent", + "objc_name": "resume", "declAttributes": [ "ObjC", "Dynamic" ], - "accessors": [ + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "start", + "printedName": "start()", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Void", + "printedName": "()" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enablePropagateTraceparent", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enablePropagateTraceparent", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, + ] + } + ], + "declKind": "Func", + "usr": "c:objc(cs)SentryReplayApi(im)start", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "start", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "stop", + "printedName": "stop()", + "children": [ { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Void", + "printedName": "()" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnablePropagateTraceparent:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEnablePropagateTraceparent:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } - ] + ], + "declKind": "Func", + "usr": "c:objc(cs)SentryReplayApi(im)stop", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "stop", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "tracePropagationTargets", - "printedName": "tracePropagationTargets", + "kind": "Function", + "name": "showMaskPreview", + "printedName": "showMaskPreview()", "children": [ { - "kind": "TypeNominal", - "name": "Array", - "printedName": "[Any]", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" + "name": "Void", + "printedName": "()" } - ], - "usr": "s:Sa" + ] } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)tracePropagationTargets", + "declKind": "Func", + "usr": "c:objc(cs)SentryReplayApi(im)showMaskPreview", "moduleName": "Sentry", "isOpen": true, - "objc_name": "tracePropagationTargets", + "objc_name": "showMaskPreview", "declAttributes": [ "ObjC", "Dynamic" ], - "accessors": [ + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "showMaskPreview", + "printedName": "showMaskPreview(_:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Any]", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "usr": "s:Sa" + "name": "Void", + "printedName": "()" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)tracePropagationTargets", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "tracePropagationTargets", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + ] }, { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeNominal", + "name": "CGFloat", + "printedName": "CoreGraphics.CGFloat", + "usr": "s:14CoreFoundation7CGFloatV" + } + ], + "declKind": "Func", + "usr": "c:objc(cs)SentryReplayApi(im)showMaskPreview:", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "showMaskPreview:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "hideMaskPreview", + "printedName": "hideMaskPreview()", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { - "kind": "TypeNameAlias", + "kind": "TypeNominal", "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Array", - "printedName": "[Any]", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "usr": "s:Sa" + "printedName": "()" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setTracePropagationTargets:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setTracePropagationTargets:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } - ] + ], + "declKind": "Func", + "usr": "c:objc(cs)SentryReplayApi(im)hideMaskPreview", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "hideMaskPreview", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "enableCaptureFailedRequests", - "printedName": "enableCaptureFailedRequests", + "kind": "Constructor", + "name": "init", + "printedName": "init()", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "SentryReplayApi", + "printedName": "Sentry.SentryReplayApi", + "usr": "c:objc(cs)SentryReplayApi" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enableCaptureFailedRequests", + "declKind": "Constructor", + "usr": "c:objc(cs)NSObject(im)init", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableCaptureFailedRequests", + "overriding": true, + "implicit": true, + "objc_name": "init", "declAttributes": [ + "Override", "ObjC", "Dynamic" ], - "accessors": [ + "init_kind": "Designated" + } + ], + "declKind": "Class", + "usr": "c:objc(cs)SentryReplayApi", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "SentryReplayApi", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "superclassUsr": "c:objc(cs)NSObject", + "inheritsConvenienceInitializers": true, + "superclassNames": [ + "ObjectiveC.NSObject" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" + }, + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" + }, + { + "kind": "Conformance", + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "SentryReplayQuality", + "printedName": "SentryReplayQuality", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(rawValue:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryReplayQuality?", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "SentryReplayQuality", + "printedName": "Sentry.SentryReplayQuality", + "usr": "c:@M@Sentry@E@SentryReplayQuality" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enableCaptureFailedRequests", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableCaptureFailedRequests", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + "usr": "s:Sq" }, { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnableCaptureFailedRequests:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEnableCaptureFailedRequests:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } - ] + ], + "declKind": "Constructor", + "usr": "s:So19SentryReplayQualityV8rawValueABSgSi_tcfc", + "mangledName": "$sSo19SentryReplayQualityV8rawValueABSgSi_tcfc", + "moduleName": "Sentry", + "implicit": true, + "init_kind": "Designated" }, { "kind": "Var", - "name": "failedRequestStatusCodes", - "printedName": "failedRequestStatusCodes", + "name": "rawValue", + "printedName": "rawValue", "children": [ { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Sentry.HttpStatusCodeRange]", - "children": [ - { - "kind": "TypeNominal", - "name": "HttpStatusCodeRange", - "printedName": "Sentry.HttpStatusCodeRange", - "usr": "c:objc(cs)SentryHttpStatusCodeRange" - } - ], - "usr": "s:Sa" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)failedRequestStatusCodes", + "usr": "s:So19SentryReplayQualityV8rawValueSivp", + "mangledName": "$sSo19SentryReplayQualityV8rawValueSivp", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "failedRequestStatusCodes", - "declAttributes": [ - "ObjC", - "Dynamic" - ], + "implicit": true, "accessors": [ { "kind": "Accessor", @@ -20907,201 +20478,290 @@ "children": [ { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Sentry.HttpStatusCodeRange]", - "children": [ - { - "kind": "TypeNominal", - "name": "HttpStatusCodeRange", - "printedName": "Sentry.HttpStatusCodeRange", - "usr": "c:objc(cs)SentryHttpStatusCodeRange" - } - ], - "usr": "s:Sa" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)failedRequestStatusCodes", + "usr": "s:So19SentryReplayQualityV8rawValueSivg", + "mangledName": "$sSo19SentryReplayQualityV8rawValueSivg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "failedRequestStatusCodes", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], + "implicit": true, "accessorKind": "get" - }, + } + ] + }, + { + "kind": "TypeAlias", + "name": "RawValue", + "printedName": "RawValue", + "children": [ { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "TypeAlias", + "usr": "s:So19SentryReplayQualityV8RawValuea", + "mangledName": "$sSo19SentryReplayQualityV8RawValuea", + "moduleName": "Sentry", + "implicit": true + }, + { + "kind": "Var", + "name": "low", + "printedName": "low", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryReplayQuality.Type) -> Sentry.SentryReplayQuality", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] + "kind": "TypeNominal", + "name": "SentryReplayQuality", + "printedName": "Sentry.SentryReplayQuality", + "usr": "c:@M@Sentry@E@SentryReplayQuality" }, { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Sentry.HttpStatusCodeRange]", + "name": "Metatype", + "printedName": "Sentry.SentryReplayQuality.Type", "children": [ { "kind": "TypeNominal", - "name": "HttpStatusCodeRange", - "printedName": "Sentry.HttpStatusCodeRange", - "usr": "c:objc(cs)SentryHttpStatusCodeRange" + "name": "SentryReplayQuality", + "printedName": "Sentry.SentryReplayQuality", + "usr": "c:@M@Sentry@E@SentryReplayQuality" } - ], - "usr": "s:Sa" + ] } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setFailedRequestStatusCodes:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setFailedRequestStatusCodes:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } + ], + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryReplayQuality@SentryReplayQualityLow", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" ] }, { "kind": "Var", - "name": "failedRequestTargets", - "printedName": "failedRequestTargets", + "name": "medium", + "printedName": "medium", "children": [ { - "kind": "TypeNominal", - "name": "Array", - "printedName": "[Any]", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryReplayQuality.Type) -> Sentry.SentryReplayQuality", "children": [ { "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" + "name": "SentryReplayQuality", + "printedName": "Sentry.SentryReplayQuality", + "usr": "c:@M@Sentry@E@SentryReplayQuality" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryReplayQuality.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryReplayQuality", + "printedName": "Sentry.SentryReplayQuality", + "usr": "c:@M@Sentry@E@SentryReplayQuality" + } + ] } - ], - "usr": "s:Sa" + ] } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)failedRequestTargets", + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryReplayQuality@SentryReplayQualityMedium", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "failedRequestTargets", "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ + "ObjC" + ] + }, + { + "kind": "Var", + "name": "high", + "printedName": "high", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryReplayQuality.Type) -> Sentry.SentryReplayQuality", "children": [ { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Any]", + "name": "SentryReplayQuality", + "printedName": "Sentry.SentryReplayQuality", + "usr": "c:@M@Sentry@E@SentryReplayQuality" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryReplayQuality.Type", "children": [ { "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" + "name": "SentryReplayQuality", + "printedName": "Sentry.SentryReplayQuality", + "usr": "c:@M@Sentry@E@SentryReplayQuality" } - ], - "usr": "s:Sa" + ] } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)failedRequestTargets", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "failedRequestTargets", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, + ] + } + ], + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryReplayQuality@SentryReplayQualityHigh", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" + ] + } + ], + "declKind": "Enum", + "usr": "c:@M@Sentry@E@SentryReplayQuality", + "moduleName": "Sentry", + "objc_name": "SentryReplayQuality", + "declAttributes": [ + "SynthesizedProtocol", + "ObjC", + "SynthesizedProtocol", + "Sendable", + "Dynamic" + ], + "enumRawTypeName": "Int", + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "RawRepresentable", + "printedName": "RawRepresentable", + "children": [ { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeWitness", + "name": "RawValue", + "printedName": "RawValue", "children": [ { "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "name": "RawValue", + "printedName": "Sentry.SentryReplayQuality.RawValue", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ] - }, - { - "kind": "TypeNominal", - "name": "Array", - "printedName": "[Any]", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "usr": "s:Sa" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setFailedRequestTargets:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setFailedRequestTargets:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } - ] + ], + "usr": "s:SY", + "mangledName": "$sSY" }, { - "kind": "Var", - "name": "enableMetricKit", - "printedName": "enableMetricKit", - "children": [ - { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + } + ] + }, + { + "kind": "TypeDecl", + "name": "SentryReplayType", + "printedName": "SentryReplayType", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(rawValue:)", + "children": [ + { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "Sentry.SentryReplayType?", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryReplayType", + "printedName": "Sentry.SentryReplayType", + "usr": "c:@M@Sentry@E@SentryReplayType" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enableMetricKit", + "declKind": "Constructor", + "usr": "s:So16SentryReplayTypeV8rawValueABSgSi_tcfc", + "mangledName": "$sSo16SentryReplayTypeV8rawValueABSgSi_tcfc", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableMetricKit", - "declAttributes": [ - "ObjC", - "Dynamic" + "implicit": true, + "init_kind": "Designated" + }, + { + "kind": "Var", + "name": "rawValue", + "printedName": "rawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } ], + "declKind": "Var", + "usr": "s:So16SentryReplayTypeV8rawValueSivp", + "mangledName": "$sSo16SentryReplayTypeV8rawValueSivp", + "moduleName": "Sentry", + "implicit": true, "accessors": [ { "kind": "Accessor", @@ -21110,78 +20770,228 @@ "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enableMetricKit", + "usr": "s:So16SentryReplayTypeV8rawValueSivg", + "mangledName": "$sSo16SentryReplayTypeV8rawValueSivg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "enableMetricKit", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], + "implicit": true, "accessorKind": "get" - }, + } + ] + }, + { + "kind": "TypeAlias", + "name": "RawValue", + "printedName": "RawValue", + "children": [ { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "TypeAlias", + "usr": "s:So16SentryReplayTypeV8RawValuea", + "mangledName": "$sSo16SentryReplayTypeV8RawValuea", + "moduleName": "Sentry", + "implicit": true + }, + { + "kind": "Var", + "name": "session", + "printedName": "session", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryReplayType.Type) -> Sentry.SentryReplayType", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "SentryReplayType", + "printedName": "Sentry.SentryReplayType", + "usr": "c:@M@Sentry@E@SentryReplayType" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryReplayType.Type", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryReplayType", + "printedName": "Sentry.SentryReplayType", + "usr": "c:@M@Sentry@E@SentryReplayType" } ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryReplayType@SentryReplayTypeSession", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" + ] + }, + { + "kind": "Var", + "name": "buffer", + "printedName": "buffer", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryReplayType.Type) -> Sentry.SentryReplayType", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryReplayType", + "printedName": "Sentry.SentryReplayType", + "usr": "c:@M@Sentry@E@SentryReplayType" }, { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Metatype", + "printedName": "Sentry.SentryReplayType.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryReplayType", + "printedName": "Sentry.SentryReplayType", + "usr": "c:@M@Sentry@E@SentryReplayType" + } + ] } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnableMetricKit:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEnableMetricKit:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } + ], + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryReplayType@SentryReplayTypeBuffer", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" ] + } + ], + "declKind": "Enum", + "usr": "c:@M@Sentry@E@SentryReplayType", + "moduleName": "Sentry", + "objc_name": "SentryReplayType", + "declAttributes": [ + "SynthesizedProtocol", + "ObjC", + "SynthesizedProtocol", + "Sendable", + "Dynamic" + ], + "enumRawTypeName": "Int", + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "RawRepresentable", + "printedName": "RawRepresentable", + "children": [ + { + "kind": "TypeWitness", + "name": "RawValue", + "printedName": "RawValue", + "children": [ + { + "kind": "TypeNameAlias", + "name": "RawValue", + "printedName": "Sentry.SentryReplayType.RawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ] + } + ] + } + ], + "usr": "s:SY", + "mangledName": "$sSY" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + } + ] + }, + { + "kind": "TypeDecl", + "name": "SentryRequest", + "printedName": "SentryRequest", + "children": [ { "kind": "Var", - "name": "enableMetricKitRawPayload", - "printedName": "enableMetricKitRawPayload", + "name": "bodySize", + "printedName": "bodySize", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enableMetricKitRawPayload", + "usr": "c:objc(cs)SentryRequest(py)bodySize", "moduleName": "Sentry", "isOpen": true, - "objc_name": "enableMetricKitRawPayload", + "objc_name": "bodySize", "declAttributes": [ + "NSCopying", "ObjC", "Dynamic" ], @@ -21193,16 +21003,24 @@ "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enableMetricKitRawPayload", + "usr": "c:objc(cs)SentryRequest(im)bodySize", "moduleName": "Sentry", "isOpen": true, - "objc_name": "enableMetricKitRawPayload", + "objc_name": "bodySize", "declAttributes": [ "DiscardableResult", "ObjC", @@ -21229,16 +21047,24 @@ }, { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnableMetricKitRawPayload:", + "usr": "c:objc(cs)SentryRequest(im)setBodySize:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setEnableMetricKitRawPayload:", + "objc_name": "setBodySize:", "declAttributes": [ "ObjC", "Dynamic" @@ -21249,21 +21075,29 @@ }, { "kind": "Var", - "name": "enableTimeToFullDisplayTracing", - "printedName": "enableTimeToFullDisplayTracing", + "name": "cookies", + "printedName": "cookies", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enableTimeToFullDisplayTracing", + "usr": "c:objc(cs)SentryRequest(py)cookies", "moduleName": "Sentry", "isOpen": true, - "objc_name": "enableTimeToFullDisplayTracing", + "objc_name": "cookies", "declAttributes": [ "ObjC", "Dynamic" @@ -21276,16 +21110,24 @@ "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enableTimeToFullDisplayTracing", + "usr": "c:objc(cs)SentryRequest(im)cookies", "moduleName": "Sentry", "isOpen": true, - "objc_name": "enableTimeToFullDisplayTracing", + "objc_name": "cookies", "declAttributes": [ "DiscardableResult", "ObjC", @@ -21312,16 +21154,24 @@ }, { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnableTimeToFullDisplayTracing:", + "usr": "c:objc(cs)SentryRequest(im)setCookies:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setEnableTimeToFullDisplayTracing:", + "objc_name": "setCookies:", "declAttributes": [ "ObjC", "Dynamic" @@ -21332,21 +21182,43 @@ }, { "kind": "Var", - "name": "swiftAsyncStacktraces", - "printedName": "swiftAsyncStacktraces", + "name": "headers", + "printedName": "headers", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "[Swift.String : Swift.String]?", + "children": [ + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Swift.String]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:SD" + } + ], + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)swiftAsyncStacktraces", + "usr": "c:objc(cs)SentryRequest(py)headers", "moduleName": "Sentry", "isOpen": true, - "objc_name": "swiftAsyncStacktraces", + "objc_name": "headers", "declAttributes": [ "ObjC", "Dynamic" @@ -21359,16 +21231,38 @@ "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "[Swift.String : Swift.String]?", + "children": [ + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Swift.String]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:SD" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)swiftAsyncStacktraces", + "usr": "c:objc(cs)SentryRequest(im)headers", "moduleName": "Sentry", "isOpen": true, - "objc_name": "swiftAsyncStacktraces", + "objc_name": "headers", "declAttributes": [ "DiscardableResult", "ObjC", @@ -21395,16 +21289,38 @@ }, { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "[Swift.String : Swift.String]?", + "children": [ + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Swift.String]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:SD" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setSwiftAsyncStacktraces:", + "usr": "c:objc(cs)SentryRequest(im)setHeaders:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setSwiftAsyncStacktraces:", + "objc_name": "setHeaders:", "declAttributes": [ "ObjC", "Dynamic" @@ -21415,21 +21331,29 @@ }, { "kind": "Var", - "name": "cacheDirectoryPath", - "printedName": "cacheDirectoryPath", + "name": "fragment", + "printedName": "fragment", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)cacheDirectoryPath", + "usr": "c:objc(cs)SentryRequest(py)fragment", "moduleName": "Sentry", "isOpen": true, - "objc_name": "cacheDirectoryPath", + "objc_name": "fragment", "declAttributes": [ "ObjC", "Dynamic" @@ -21442,16 +21366,24 @@ "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)cacheDirectoryPath", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "cacheDirectoryPath", + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryRequest(im)fragment", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "fragment", "declAttributes": [ "DiscardableResult", "ObjC", @@ -21478,16 +21410,24 @@ }, { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setCacheDirectoryPath:", + "usr": "c:objc(cs)SentryRequest(im)setFragment:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setCacheDirectoryPath:", + "objc_name": "setFragment:", "declAttributes": [ "ObjC", "Dynamic" @@ -21498,21 +21438,29 @@ }, { "kind": "Var", - "name": "enableSpotlight", - "printedName": "enableSpotlight", + "name": "method", + "printedName": "method", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)enableSpotlight", + "usr": "c:objc(cs)SentryRequest(py)method", "moduleName": "Sentry", "isOpen": true, - "objc_name": "enableSpotlight", + "objc_name": "method", "declAttributes": [ "ObjC", "Dynamic" @@ -21525,16 +21473,24 @@ "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)enableSpotlight", + "usr": "c:objc(cs)SentryRequest(im)method", "moduleName": "Sentry", "isOpen": true, - "objc_name": "enableSpotlight", + "objc_name": "method", "declAttributes": [ "DiscardableResult", "ObjC", @@ -21561,16 +21517,24 @@ }, { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setEnableSpotlight:", + "usr": "c:objc(cs)SentryRequest(im)setMethod:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setEnableSpotlight:", + "objc_name": "setMethod:", "declAttributes": [ "ObjC", "Dynamic" @@ -21581,21 +21545,29 @@ }, { "kind": "Var", - "name": "spotlightUrl", - "printedName": "spotlightUrl", + "name": "queryString", + "printedName": "queryString", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)spotlightUrl", + "usr": "c:objc(cs)SentryRequest(py)queryString", "moduleName": "Sentry", "isOpen": true, - "objc_name": "spotlightUrl", + "objc_name": "queryString", "declAttributes": [ "ObjC", "Dynamic" @@ -21608,16 +21580,24 @@ "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)spotlightUrl", + "usr": "c:objc(cs)SentryRequest(im)queryString", "moduleName": "Sentry", "isOpen": true, - "objc_name": "spotlightUrl", + "objc_name": "queryString", "declAttributes": [ "DiscardableResult", "ObjC", @@ -21644,16 +21624,24 @@ }, { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setSpotlightUrl:", + "usr": "c:objc(cs)SentryRequest(im)setQueryString:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setSpotlightUrl:", + "objc_name": "setQueryString:", "declAttributes": [ "ObjC", "Dynamic" @@ -21664,103 +21652,29 @@ }, { "kind": "Var", - "name": "_swiftExperimentalOptions", - "printedName": "_swiftExperimentalOptions", - "children": [ - { - "kind": "TypeNominal", - "name": "NSObject", - "printedName": "ObjectiveC.NSObject", - "usr": "c:objc(cs)NSObject" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)_swiftExperimentalOptions", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "_swiftExperimentalOptions", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "NSObject", - "printedName": "ObjectiveC.NSObject", - "usr": "c:objc(cs)NSObject" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)_swiftExperimentalOptions", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "_swiftExperimentalOptions", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - } - ] - }, - { - "kind": "Var", - "name": "configureUserFeedback", - "printedName": "configureUserFeedback", + "name": "url", + "printedName": "url", "children": [ { "kind": "TypeNominal", "name": "Optional", - "printedName": "Sentry.SentryUserFeedbackConfigurationBlock?", + "printedName": "Swift.String?", "children": [ { - "kind": "TypeNameAlias", - "name": "SentryUserFeedbackConfigurationBlock", - "printedName": "Sentry.SentryUserFeedbackConfigurationBlock", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryUserFeedbackConfiguration) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "SentryUserFeedbackConfiguration", - "printedName": "Sentry.SentryUserFeedbackConfiguration", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration" - } - ] - } - ] + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryOptions(py)configureUserFeedback", + "usr": "c:objc(cs)SentryRequest(py)url", "moduleName": "Sentry", "isOpen": true, - "objc_name": "configureUserFeedback", + "objc_name": "url", "declAttributes": [ "ObjC", "Dynamic" @@ -21774,49 +21688,23 @@ { "kind": "TypeNominal", "name": "Optional", - "printedName": "Sentry.SentryUserFeedbackConfigurationBlock?", + "printedName": "Swift.String?", "children": [ { - "kind": "TypeNameAlias", - "name": "SentryUserFeedbackConfigurationBlock", - "printedName": "Sentry.SentryUserFeedbackConfigurationBlock", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryUserFeedbackConfiguration) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "SentryUserFeedbackConfiguration", - "printedName": "Sentry.SentryUserFeedbackConfiguration", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration" - } - ] - } - ] + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)configureUserFeedback", + "usr": "c:objc(cs)SentryRequest(im)url", "moduleName": "Sentry", "isOpen": true, - "objc_name": "configureUserFeedback", + "objc_name": "url", "declAttributes": [ "DiscardableResult", "ObjC", @@ -21844,49 +21732,23 @@ { "kind": "TypeNominal", "name": "Optional", - "printedName": "Sentry.SentryUserFeedbackConfigurationBlock?", + "printedName": "Swift.String?", "children": [ { - "kind": "TypeNameAlias", - "name": "SentryUserFeedbackConfigurationBlock", - "printedName": "Sentry.SentryUserFeedbackConfigurationBlock", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryUserFeedbackConfiguration) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "SentryUserFeedbackConfiguration", - "printedName": "Sentry.SentryUserFeedbackConfiguration", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration" - } - ] - } - ] + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryOptions(im)setConfigureUserFeedback:", + "usr": "c:objc(cs)SentryRequest(im)setUrl:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setConfigureUserFeedback:", + "objc_name": "setUrl:", "declAttributes": [ "ObjC", "Dynamic" @@ -21902,79 +21764,30 @@ "children": [ { "kind": "TypeNominal", - "name": "Options", - "printedName": "Sentry.Options", - "usr": "c:objc(cs)SentryOptions" + "name": "SentryRequest", + "printedName": "Sentry.SentryRequest", + "usr": "c:objc(cs)SentryRequest" } ], "declKind": "Constructor", - "usr": "c:objc(cs)NSObject(im)init", + "usr": "c:objc(cs)SentryRequest(im)init", "moduleName": "Sentry", "overriding": true, - "implicit": true, "objc_name": "init", "declAttributes": [ "Override", + "Required", "ObjC", "Dynamic" ], "init_kind": "Designated" - }, - { - "kind": "Var", - "name": "experimental", - "printedName": "experimental", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryExperimentalOptions", - "printedName": "Sentry.SentryExperimentalOptions", - "usr": "c:@M@Sentry@objc(cs)SentryExperimentalOptions" - } - ], - "declKind": "Var", - "usr": "c:@CM@Sentry@@objc(cs)SentryOptions(py)experimental", - "mangledName": "$sSo13SentryOptionsC0A0E12experimentalAC0a12ExperimentalB0Cvp", - "moduleName": "Sentry", - "isOpen": true, - "declAttributes": [ - "Dynamic", - "ObjC" - ], - "isFromExtension": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryExperimentalOptions", - "printedName": "Sentry.SentryExperimentalOptions", - "usr": "c:@M@Sentry@objc(cs)SentryExperimentalOptions" - } - ], - "declKind": "Accessor", - "usr": "c:@CM@Sentry@@objc(cs)SentryOptions(im)experimental", - "mangledName": "$sSo13SentryOptionsC0A0E12experimentalAC0a12ExperimentalB0Cvg", - "moduleName": "Sentry", - "isOpen": true, - "declAttributes": [ - "Dynamic", - "ObjC" - ], - "isFromExtension": true, - "accessorKind": "get" - } - ] } ], "declKind": "Class", - "usr": "c:objc(cs)SentryOptions", + "usr": "c:objc(cs)SentryRequest", "moduleName": "Sentry", "isOpen": true, - "objc_name": "SentryOptions", + "objc_name": "SentryRequest", "declAttributes": [ "ObjC", "Dynamic" @@ -21985,6 +21798,12 @@ "ObjectiveC.NSObject" ], "conformances": [ + { + "kind": "Conformance", + "name": "SentrySerializable", + "printedName": "SentrySerializable", + "usr": "c:objc(pl)SentrySerializable" + }, { "kind": "Conformance", "name": "Copyable", @@ -22043,317 +21862,337 @@ ] }, { - "kind": "Var", - "name": "SENTRY_BAGGAGE_HEADER", - "printedName": "SENTRY_BAGGAGE_HEADER", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:@SENTRY_BAGGAGE_HEADER", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "Var", - "name": "SENTRY_TRACE_HEADER", - "printedName": "SENTRY_TRACE_HEADER", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:@SENTRY_TRACE_HEADER", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "Var", - "name": "SENTRY_TRACE_TYPE", - "printedName": "SENTRY_TRACE_TYPE", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:@SENTRY_TRACE_TYPE", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "TypeDecl", - "name": "SamplingContext", - "printedName": "SamplingContext", + "kind": "TypeAlias", + "name": "SentryRequestFinished", + "printedName": "SentryRequestFinished", "children": [ { - "kind": "Var", - "name": "transactionContext", - "printedName": "transactionContext", + "kind": "TypeFunc", + "name": "Function", + "printedName": "((any Swift.Error)?) -> Swift.Void", "children": [ { - "kind": "TypeNominal", - "name": "TransactionContext", - "printedName": "Sentry.TransactionContext", - "usr": "c:objc(cs)SentryTransactionContext" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentrySamplingContext(py)transactionContext", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "transactionContext", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "(any Swift.Error)?", "children": [ { "kind": "TypeNominal", - "name": "TransactionContext", - "printedName": "Sentry.TransactionContext", - "usr": "c:objc(cs)SentryTransactionContext" + "name": "Error", + "printedName": "any Swift.Error", + "usr": "s:s5ErrorP" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentrySamplingContext(im)transactionContext", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "transactionContext", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + "usr": "s:Sq" } ] - }, + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@SentryRequestFinished", + "moduleName": "Sentry" + }, + { + "kind": "TypeAlias", + "name": "SentryRequestOperationFinished", + "printedName": "SentryRequestOperationFinished", + "children": [ { - "kind": "Var", - "name": "customSamplingContext", - "printedName": "customSamplingContext", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Foundation.HTTPURLResponse?, (any Swift.Error)?) -> Swift.Void", "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, { "kind": "TypeNominal", - "name": "Optional", - "printedName": "[Swift.String : Any]?", + "name": "Tuple", + "printedName": "(Foundation.HTTPURLResponse?, (any Swift.Error)?)", "children": [ { "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", + "name": "Optional", + "printedName": "Foundation.HTTPURLResponse?", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" + "name": "HTTPURLResponse", + "printedName": "Foundation.HTTPURLResponse", + "usr": "c:objc(cs)NSHTTPURLResponse" } ], - "usr": "s:SD" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentrySamplingContext(py)customSamplingContext", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "customSamplingContext", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ + "usr": "s:Sq" + }, { "kind": "TypeNominal", "name": "Optional", - "printedName": "[Swift.String : Any]?", + "printedName": "(any Swift.Error)?", "children": [ { "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "usr": "s:SD" + "name": "Error", + "printedName": "any Swift.Error", + "usr": "s:s5ErrorP" } ], "usr": "s:Sq" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentrySamplingContext(im)customSamplingContext", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "customSamplingContext", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + ] } ] - }, + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@SentryRequestOperationFinished", + "moduleName": "Sentry" + }, + { + "kind": "TypeDecl", + "name": "SentrySampleDecision", + "printedName": "SentrySampleDecision", + "children": [ { "kind": "Constructor", "name": "init", - "printedName": "init(transactionContext:)", + "printedName": "init(rawValue:)", "children": [ { "kind": "TypeNominal", - "name": "SamplingContext", - "printedName": "Sentry.SamplingContext", - "usr": "c:objc(cs)SentrySamplingContext" + "name": "Optional", + "printedName": "Sentry.SentrySampleDecision?", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySampleDecision", + "printedName": "Sentry.SentrySampleDecision", + "usr": "c:@E@SentrySampleDecision" + } + ], + "usr": "s:Sq" }, { "kind": "TypeNominal", - "name": "TransactionContext", - "printedName": "Sentry.TransactionContext", - "usr": "c:objc(cs)SentryTransactionContext" + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" } ], "declKind": "Constructor", - "usr": "c:objc(cs)SentrySamplingContext(im)initWithTransactionContext:", + "usr": "s:So20SentrySampleDecisionV8rawValueABSgSu_tcfc", + "mangledName": "$sSo20SentrySampleDecisionV8rawValueABSgSu_tcfc", "moduleName": "Sentry", - "objc_name": "initWithTransactionContext:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], + "implicit": true, "init_kind": "Designated" }, { - "kind": "Constructor", - "name": "init", - "printedName": "init(transactionContext:customSamplingContext:)", + "kind": "Var", + "name": "rawValue", + "printedName": "rawValue", "children": [ { "kind": "TypeNominal", - "name": "SamplingContext", - "printedName": "Sentry.SamplingContext", - "usr": "c:objc(cs)SentrySamplingContext" - }, + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" + } + ], + "declKind": "Var", + "usr": "s:So20SentrySampleDecisionV8rawValueSuvp", + "mangledName": "$sSo20SentrySampleDecisionV8rawValueSuvp", + "moduleName": "Sentry", + "implicit": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "TransactionContext", - "printedName": "Sentry.TransactionContext", - "usr": "c:objc(cs)SentryTransactionContext" - }, + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" + } + ], + "declKind": "Accessor", + "usr": "s:So20SentrySampleDecisionV8rawValueSuvg", + "mangledName": "$sSo20SentrySampleDecisionV8rawValueSuvg", + "moduleName": "Sentry", + "implicit": true, + "accessorKind": "get" + } + ] + }, + { + "kind": "TypeAlias", + "name": "RawValue", + "printedName": "RawValue", + "children": [ { "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" + } + ], + "declKind": "TypeAlias", + "usr": "s:So20SentrySampleDecisionV8RawValuea", + "mangledName": "$sSo20SentrySampleDecisionV8RawValuea", + "moduleName": "Sentry", + "implicit": true + }, + { + "kind": "Var", + "name": "undecided", + "printedName": "undecided", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySampleDecision.Type) -> Sentry.SentrySampleDecision", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "SentrySampleDecision", + "printedName": "Sentry.SentrySampleDecision", + "usr": "c:@E@SentrySampleDecision" }, { "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" + "name": "Metatype", + "printedName": "Sentry.SentrySampleDecision.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySampleDecision", + "printedName": "Sentry.SentrySampleDecision", + "usr": "c:@E@SentrySampleDecision" + } + ] } - ], - "usr": "s:SD" + ] } ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentrySamplingContext(im)initWithTransactionContext:customSamplingContext:", + "declKind": "EnumElement", + "usr": "c:@E@SentrySampleDecision@kSentrySampleDecisionUndecided", "moduleName": "Sentry", - "objc_name": "initWithTransactionContext:customSamplingContext:", "declAttributes": [ - "ObjC", - "Dynamic" - ], - "init_kind": "Designated" + "ObjC" + ] }, { - "kind": "Constructor", - "name": "init", - "printedName": "init()", + "kind": "Var", + "name": "yes", + "printedName": "yes", "children": [ { - "kind": "TypeNominal", - "name": "SamplingContext", - "printedName": "Sentry.SamplingContext", - "usr": "c:objc(cs)SentrySamplingContext" + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySampleDecision.Type) -> Sentry.SentrySampleDecision", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySampleDecision", + "printedName": "Sentry.SentrySampleDecision", + "usr": "c:@E@SentrySampleDecision" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentrySampleDecision.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySampleDecision", + "printedName": "Sentry.SentrySampleDecision", + "usr": "c:@E@SentrySampleDecision" + } + ] + } + ] } ], - "declKind": "Constructor", - "usr": "c:objc(cs)NSObject(im)init", + "declKind": "EnumElement", + "usr": "c:@E@SentrySampleDecision@kSentrySampleDecisionYes", "moduleName": "Sentry", - "overriding": true, - "implicit": true, - "objc_name": "init", "declAttributes": [ - "Override", - "ObjC", - "Dynamic" + "ObjC" + ] + }, + { + "kind": "Var", + "name": "no", + "printedName": "no", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySampleDecision.Type) -> Sentry.SentrySampleDecision", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySampleDecision", + "printedName": "Sentry.SentrySampleDecision", + "usr": "c:@E@SentrySampleDecision" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentrySampleDecision.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySampleDecision", + "printedName": "Sentry.SentrySampleDecision", + "usr": "c:@E@SentrySampleDecision" + } + ] + } + ] + } ], - "init_kind": "Designated" + "declKind": "EnumElement", + "usr": "c:@E@SentrySampleDecision@kSentrySampleDecisionNo", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" + ] } ], - "declKind": "Class", - "usr": "c:objc(cs)SentrySamplingContext", + "declKind": "Enum", + "usr": "c:@E@SentrySampleDecision", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "SentrySamplingContext", + "objc_name": "SentrySampleDecision", "declAttributes": [ + "SynthesizedProtocol", "ObjC", + "SynthesizedProtocol", + "Sendable", "Dynamic" ], - "superclassUsr": "c:objc(cs)NSObject", - "inheritsConvenienceInitializers": true, - "superclassNames": [ - "ObjectiveC.NSObject" - ], + "enumRawTypeName": "UInt", "conformances": [ { "kind": "Conformance", @@ -22371,9 +22210,39 @@ }, { "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" + "name": "RawRepresentable", + "printedName": "RawRepresentable", + "children": [ + { + "kind": "TypeWitness", + "name": "RawValue", + "printedName": "RawValue", + "children": [ + { + "kind": "TypeNameAlias", + "name": "RawValue", + "printedName": "Sentry.SentrySampleDecision.RawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" + } + ] + } + ] + } + ], + "usr": "s:SY", + "mangledName": "$sSY" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" }, { "kind": "Conformance", @@ -22388,64 +22257,141 @@ "printedName": "Hashable", "usr": "s:SH", "mangledName": "$sSH" - }, + } + ] + }, + { + "kind": "TypeDecl", + "name": "SentrySerializable", + "printedName": "SentrySerializable", + "children": [ + { + "kind": "Function", + "name": "serialize", + "printedName": "serialize()", + "children": [ + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" + } + ], + "usr": "s:SD" + } + ], + "declKind": "Func", + "usr": "c:objc(pl)SentrySerializable(im)serialize", + "moduleName": "Sentry", + "genericSig": "", + "protocolReq": true, + "objc_name": "serialize", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Protocol", + "usr": "c:objc(pl)SentrySerializable", + "moduleName": "Sentry", + "genericSig": "", + "objc_name": "SentrySerializable", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "conformances": [ { "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" }, { "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" }, { "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" } ] }, { "kind": "TypeDecl", - "name": "Scope", - "printedName": "Scope", + "name": "SentrySessionStatus", + "printedName": "SentrySessionStatus", "children": [ { - "kind": "Var", - "name": "span", - "printedName": "span", + "kind": "Constructor", + "name": "init", + "printedName": "init(rawValue:)", "children": [ { "kind": "TypeNominal", "name": "Optional", - "printedName": "(any Sentry.Span)?", + "printedName": "Sentry.SentrySessionStatus?", "children": [ { "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" + "name": "SentrySessionStatus", + "printedName": "Sentry.SentrySessionStatus", + "usr": "c:@M@Sentry@E@SentrySessionStatus" } ], "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryScope(py)span", + "declKind": "Constructor", + "usr": "s:So19SentrySessionStatusV8rawValueABSgSu_tcfc", + "mangledName": "$sSo19SentrySessionStatusV8rawValueABSgSu_tcfc", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "span", - "declAttributes": [ - "ObjC", - "Dynamic" + "implicit": true, + "init_kind": "Designated" + }, + { + "kind": "Var", + "name": "rawValue", + "printedName": "rawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" + } ], + "declKind": "Var", + "usr": "s:So19SentrySessionStatusV8rawValueSuvp", + "mangledName": "$sSo19SentrySessionStatusV8rawValueSuvp", + "moduleName": "Sentry", + "implicit": true, "accessors": [ { "kind": "Accessor", @@ -22454,1089 +22400,1143 @@ "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "(any Sentry.Span)?", - "children": [ - { - "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" - } - ], - "usr": "s:Sq" + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryScope(im)span", + "usr": "s:So19SentrySessionStatusV8rawValueSuvg", + "mangledName": "$sSo19SentrySessionStatusV8rawValueSuvg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "span", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], + "implicit": true, "accessorKind": "get" } ] }, { - "kind": "Var", - "name": "replayId", - "printedName": "replayId", + "kind": "TypeAlias", + "name": "RawValue", + "printedName": "RawValue", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" + } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryScope(py)replayId", + "declKind": "TypeAlias", + "usr": "s:So19SentrySessionStatusV8RawValuea", + "mangledName": "$sSo19SentrySessionStatusV8RawValuea", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "replayId", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ + "implicit": true + }, + { + "kind": "Var", + "name": "ok", + "printedName": "ok", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySessionStatus.Type) -> Sentry.SentrySessionStatus", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", + "name": "SentrySessionStatus", + "printedName": "Sentry.SentrySessionStatus", + "usr": "c:@M@Sentry@E@SentrySessionStatus" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentrySessionStatus.Type", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "SentrySessionStatus", + "printedName": "Sentry.SentrySessionStatus", + "usr": "c:@M@Sentry@E@SentrySessionStatus" } - ], - "usr": "s:Sq" + ] } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryScope(im)replayId", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "replayId", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, + ] + } + ], + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentrySessionStatus@SentrySessionStatusOk", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" + ] + }, + { + "kind": "Var", + "name": "exited", + "printedName": "exited", + "children": [ { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySessionStatus.Type) -> Sentry.SentrySessionStatus", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "SentrySessionStatus", + "printedName": "Sentry.SentrySessionStatus", + "usr": "c:@M@Sentry@E@SentrySessionStatus" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentrySessionStatus.Type", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentrySessionStatus", + "printedName": "Sentry.SentrySessionStatus", + "usr": "c:@M@Sentry@E@SentrySessionStatus" } ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentrySessionStatus@SentrySessionStatusExited", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" + ] + }, + { + "kind": "Var", + "name": "crashed", + "printedName": "crashed", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySessionStatus.Type) -> Sentry.SentrySessionStatus", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySessionStatus", + "printedName": "Sentry.SentrySessionStatus", + "usr": "c:@M@Sentry@E@SentrySessionStatus" }, { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", + "name": "Metatype", + "printedName": "Sentry.SentrySessionStatus.Type", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "SentrySessionStatus", + "printedName": "Sentry.SentrySessionStatus", + "usr": "c:@M@Sentry@E@SentrySessionStatus" } - ], - "usr": "s:Sq" + ] } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryScope(im)setReplayId:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setReplayId:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + ] } + ], + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentrySessionStatus@SentrySessionStatusCrashed", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" ] }, { "kind": "Var", - "name": "tags", - "printedName": "tags", + "name": "abnormal", + "printedName": "abnormal", "children": [ { - "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Swift.String]", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySessionStatus.Type) -> Sentry.SentrySessionStatus", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "SentrySessionStatus", + "printedName": "Sentry.SentrySessionStatus", + "usr": "c:@M@Sentry@E@SentrySessionStatus" }, { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Metatype", + "printedName": "Sentry.SentrySessionStatus.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySessionStatus", + "printedName": "Sentry.SentrySessionStatus", + "usr": "c:@M@Sentry@E@SentrySessionStatus" + } + ] } - ], - "usr": "s:SD" + ] } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryScope(py)tags", + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentrySessionStatus@SentrySessionStatusAbnormal", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "tags", "declAttributes": [ - "ObjC", - "Dynamic" + "ObjC" + ] + } + ], + "declKind": "Enum", + "usr": "c:@M@Sentry@E@SentrySessionStatus", + "moduleName": "Sentry", + "objc_name": "SentrySessionStatus", + "declAttributes": [ + "SynthesizedProtocol", + "ObjC", + "SynthesizedProtocol", + "Sendable", + "Dynamic" + ], + "enumRawTypeName": "UInt", + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "RawRepresentable", + "printedName": "RawRepresentable", + "children": [ + { + "kind": "TypeWitness", + "name": "RawValue", + "printedName": "RawValue", + "children": [ + { + "kind": "TypeNameAlias", + "name": "RawValue", + "printedName": "Sentry.SentrySessionStatus.RawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" + } + ] + } + ] + } ], - "accessors": [ + "usr": "s:SY", + "mangledName": "$sSY" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + } + ] + }, + { + "kind": "TypeAlias", + "name": "SentryShouldQueueEvent", + "printedName": "SentryShouldQueueEvent", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Foundation.HTTPURLResponse?, (any Swift.Error)?) -> Swift.Bool", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + }, + { + "kind": "TypeNominal", + "name": "Tuple", + "printedName": "(Foundation.HTTPURLResponse?, (any Swift.Error)?)", "children": [ { "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Swift.String]", + "name": "Optional", + "printedName": "Foundation.HTTPURLResponse?", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, + "name": "HTTPURLResponse", + "printedName": "Foundation.HTTPURLResponse", + "usr": "c:objc(cs)NSHTTPURLResponse" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "(any Swift.Error)?", + "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Error", + "printedName": "any Swift.Error", + "usr": "s:s5ErrorP" } ], - "usr": "s:SD" + "usr": "s:Sq" } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryScope(im)tags", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "tags", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + ] } ] - }, + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@SentryShouldQueueEvent", + "moduleName": "Sentry" + }, + { + "kind": "TypeDecl", + "name": "SentrySpanStatus", + "printedName": "SentrySpanStatus", + "children": [ { "kind": "Constructor", "name": "init", - "printedName": "init(maxBreadcrumbs:)", + "printedName": "init(rawValue:)", "children": [ { "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" + "name": "Optional", + "printedName": "Sentry.SentrySpanStatus?", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + } + ], + "usr": "s:Sq" }, { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" } ], "declKind": "Constructor", - "usr": "c:objc(cs)SentryScope(im)initWithMaxBreadcrumbs:", + "usr": "s:So16SentrySpanStatusV8rawValueABSgSu_tcfc", + "mangledName": "$sSo16SentrySpanStatusV8rawValueABSgSu_tcfc", "moduleName": "Sentry", - "objc_name": "initWithMaxBreadcrumbs:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], + "implicit": true, "init_kind": "Designated" }, { - "kind": "Constructor", - "name": "init", - "printedName": "init()", + "kind": "Var", + "name": "rawValue", + "printedName": "rawValue", "children": [ { "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" } ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentryScope(im)init", + "declKind": "Var", + "usr": "s:So16SentrySpanStatusV8rawValueSuvp", + "mangledName": "$sSo16SentrySpanStatusV8rawValueSuvp", "moduleName": "Sentry", - "overriding": true, - "objc_name": "init", - "declAttributes": [ - "Override", - "Required", - "ObjC", - "Dynamic" - ], - "init_kind": "Convenience" + "implicit": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" + } + ], + "declKind": "Accessor", + "usr": "s:So16SentrySpanStatusV8rawValueSuvg", + "mangledName": "$sSo16SentrySpanStatusV8rawValueSuvg", + "moduleName": "Sentry", + "implicit": true, + "accessorKind": "get" + } + ] }, { - "kind": "Constructor", - "name": "init", - "printedName": "init(scope:)", + "kind": "TypeAlias", + "name": "RawValue", + "printedName": "RawValue", "children": [ { "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" - }, - { - "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" } ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentryScope(im)initWithScope:", + "declKind": "TypeAlias", + "usr": "s:So16SentrySpanStatusV8RawValuea", + "mangledName": "$sSo16SentrySpanStatusV8RawValuea", "moduleName": "Sentry", - "objc_name": "initWithScope:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "init_kind": "Convenience" + "implicit": true }, { - "kind": "Function", - "name": "setUser", - "printedName": "setUser(_:)", + "kind": "Var", + "name": "undefined", + "printedName": "undefined", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.User?", - "children": [ + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + }, { "kind": "TypeNominal", - "name": "User", - "printedName": "Sentry.User", - "usr": "c:objc(cs)SentryUser" + "name": "Metatype", + "printedName": "Sentry.SentrySpanStatus.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + } + ] } - ], - "usr": "s:Sq" + ] } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryScope(im)setUser:", + "declKind": "EnumElement", + "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusUndefined", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setUser:", "declAttributes": [ - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" + "ObjC" + ] }, { - "kind": "Function", - "name": "setTag", - "printedName": "setTag(value:key:)", + "kind": "Var", + "name": "ok", + "printedName": "ok", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentrySpanStatus.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + } + ] } ] - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryScope(im)setTagValue:forKey:", + "declKind": "EnumElement", + "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusOk", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setTagValue:forKey:", "declAttributes": [ - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" + "ObjC" + ] }, { - "kind": "Function", - "name": "removeTag", - "printedName": "removeTag(key:)", + "kind": "Var", + "name": "deadlineExceeded", + "printedName": "deadlineExceeded", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentrySpanStatus.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + } + ] } ] - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryScope(im)removeTagForKey:", + "declKind": "EnumElement", + "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusDeadlineExceeded", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "removeTagForKey:", "declAttributes": [ - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" + "ObjC" + ] }, { - "kind": "Function", - "name": "setTags", - "printedName": "setTags(_:)", + "kind": "Var", + "name": "unauthenticated", + "printedName": "unauthenticated", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "[Swift.String : Swift.String]?", - "children": [ + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + }, { "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Swift.String]", + "name": "Metatype", + "printedName": "Sentry.SentrySpanStatus.Type", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" } - ], - "usr": "s:SD" + ] } - ], - "usr": "s:Sq" + ] } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryScope(im)setTags:", + "declKind": "EnumElement", + "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusUnauthenticated", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setTags:", "declAttributes": [ - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" + "ObjC" + ] }, { - "kind": "Function", - "name": "setExtras", - "printedName": "setExtras(_:)", + "kind": "Var", + "name": "permissionDenied", + "printedName": "permissionDenied", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "[Swift.String : Any]?", - "children": [ + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + }, { "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", + "name": "Metatype", + "printedName": "Sentry.SentrySpanStatus.Type", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" } - ], - "usr": "s:SD" + ] } - ], - "usr": "s:Sq" + ] } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryScope(im)setExtras:", + "declKind": "EnumElement", + "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusPermissionDenied", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setExtras:", "declAttributes": [ - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" + "ObjC" + ] }, { - "kind": "Function", - "name": "setExtra", - "printedName": "setExtra(value:key:)", + "kind": "Var", + "name": "notFound", + "printedName": "notFound", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Any?", - "children": [ + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + }, { "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" + "name": "Metatype", + "printedName": "Sentry.SentrySpanStatus.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + } + ] } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + ] } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryScope(im)setExtraValue:forKey:", + "declKind": "EnumElement", + "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusNotFound", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setExtraValue:forKey:", "declAttributes": [ - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" + "ObjC" + ] }, { - "kind": "Function", - "name": "removeExtra", - "printedName": "removeExtra(key:)", + "kind": "Var", + "name": "resourceExhausted", + "printedName": "resourceExhausted", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentrySpanStatus.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + } + ] } ] - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryScope(im)removeExtraForKey:", + "declKind": "EnumElement", + "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusResourceExhausted", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "removeExtraForKey:", "declAttributes": [ - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" + "ObjC" + ] }, { - "kind": "Function", - "name": "setDist", - "printedName": "setDist(_:)", + "kind": "Var", + "name": "invalidArgument", + "printedName": "invalidArgument", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + }, { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Metatype", + "printedName": "Sentry.SentrySpanStatus.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + } + ] } - ], - "usr": "s:Sq" + ] } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryScope(im)setDist:", + "declKind": "EnumElement", + "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusInvalidArgument", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setDist:", "declAttributes": [ - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" + "ObjC" + ] }, { - "kind": "Function", - "name": "setEnvironment", - "printedName": "setEnvironment(_:)", + "kind": "Var", + "name": "unimplemented", + "printedName": "unimplemented", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + }, { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Metatype", + "printedName": "Sentry.SentrySpanStatus.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + } + ] } - ], - "usr": "s:Sq" + ] } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryScope(im)setEnvironment:", + "declKind": "EnumElement", + "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusUnimplemented", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEnvironment:", "declAttributes": [ - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" + "ObjC" + ] }, { - "kind": "Function", - "name": "setFingerprint", - "printedName": "setFingerprint(_:)", + "kind": "Var", + "name": "unavailable", + "printedName": "unavailable", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "[Swift.String]?", - "children": [ + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + }, { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.String]", + "name": "Metatype", + "printedName": "Sentry.SentrySpanStatus.Type", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" } - ], - "usr": "s:Sa" + ] } - ], - "usr": "s:Sq" + ] } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryScope(im)setFingerprint:", + "declKind": "EnumElement", + "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusUnavailable", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setFingerprint:", "declAttributes": [ - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" + "ObjC" + ] }, { - "kind": "Function", - "name": "setLevel", - "printedName": "setLevel(_:)", + "kind": "Var", + "name": "internalError", + "printedName": "internalError", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "SentryLevel", - "printedName": "Sentry.SentryLevel", - "usr": "c:@M@Sentry@E@SentryLevel" - } - ], - "declKind": "Func", - "usr": "c:objc(cs)SentryScope(im)setLevel:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setLevel:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "addBreadcrumb", - "printedName": "addBreadcrumb(_:)", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + }, { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "Metatype", + "printedName": "Sentry.SentrySpanStatus.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + } + ] } ] - }, - { - "kind": "TypeNominal", - "name": "Breadcrumb", - "printedName": "Sentry.Breadcrumb", - "usr": "c:objc(cs)SentryBreadcrumb" } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryScope(im)addBreadcrumb:", + "declKind": "EnumElement", + "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusInternalError", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "addBreadcrumb:", "declAttributes": [ - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" + "ObjC" + ] }, { - "kind": "Function", - "name": "clearBreadcrumbs", - "printedName": "clearBreadcrumbs()", + "kind": "Var", + "name": "unknownError", + "printedName": "unknownError", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentrySpanStatus.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + } + ] } ] } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryScope(im)clearBreadcrumbs", + "declKind": "EnumElement", + "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusUnknownError", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "clearBreadcrumbs", "declAttributes": [ - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" + "ObjC" + ] }, { - "kind": "Function", - "name": "serialize", - "printedName": "serialize()", + "kind": "Var", + "name": "cancelled", + "printedName": "cancelled", "children": [ { - "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" }, { "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" + "name": "Metatype", + "printedName": "Sentry.SentrySpanStatus.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + } + ] } - ], - "usr": "s:SD" + ] } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryScope(im)serialize", + "declKind": "EnumElement", + "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusCancelled", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "serialize", "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" + "ObjC" + ] }, { - "kind": "Function", - "name": "setContext", - "printedName": "setContext(value:key:)", + "kind": "Var", + "name": "alreadyExists", + "printedName": "alreadyExists", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" }, { "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" + "name": "Metatype", + "printedName": "Sentry.SentrySpanStatus.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + } + ] } - ], - "usr": "s:SD" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + ] } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryScope(im)setContextValue:forKey:", + "declKind": "EnumElement", + "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusAlreadyExists", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setContextValue:forKey:", "declAttributes": [ - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" + "ObjC" + ] }, { - "kind": "Function", - "name": "removeContext", - "printedName": "removeContext(key:)", + "kind": "Var", + "name": "failedPrecondition", + "printedName": "failedPrecondition", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentrySpanStatus.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + } + ] } ] - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryScope(im)removeContextForKey:", + "declKind": "EnumElement", + "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusFailedPrecondition", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "removeContextForKey:", "declAttributes": [ - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" + "ObjC" + ] }, { - "kind": "Function", - "name": "addAttachment", - "printedName": "addAttachment(_:)", + "kind": "Var", + "name": "aborted", + "printedName": "aborted", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentrySpanStatus.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + } + ] } ] - }, - { - "kind": "TypeNominal", - "name": "Attachment", - "printedName": "Sentry.Attachment", - "usr": "c:objc(cs)SentryAttachment" } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryScope(im)addAttachment:", + "declKind": "EnumElement", + "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusAborted", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "addAttachment:", "declAttributes": [ - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" + "ObjC" + ] }, { - "kind": "Function", - "name": "clearAttachments", - "printedName": "clearAttachments()", + "kind": "Var", + "name": "outOfRange", + "printedName": "outOfRange", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentrySpanStatus.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + } + ] } ] } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryScope(im)clearAttachments", + "declKind": "EnumElement", + "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusOutOfRange", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "clearAttachments", "declAttributes": [ - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" + "ObjC" + ] }, { - "kind": "Function", - "name": "clear", - "printedName": "clear()", + "kind": "Var", + "name": "dataLoss", + "printedName": "dataLoss", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentrySpanStatus.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" + } + ] } ] } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryScope(im)clear", + "declKind": "EnumElement", + "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusDataLoss", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "clear", "declAttributes": [ - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" + "ObjC" + ] } ], - "declKind": "Class", - "usr": "c:objc(cs)SentryScope", + "declKind": "Enum", + "usr": "c:@E@SentrySpanStatus", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "SentryScope", + "objc_name": "SentrySpanStatus", "declAttributes": [ + "SynthesizedProtocol", "ObjC", + "SynthesizedProtocol", + "Sendable", "Dynamic" ], - "superclassUsr": "c:objc(cs)NSObject", - "inheritsConvenienceInitializers": true, - "superclassNames": [ - "ObjectiveC.NSObject" - ], + "enumRawTypeName": "UInt", "conformances": [ - { - "kind": "Conformance", - "name": "SentrySerializable", - "printedName": "SentrySerializable", - "usr": "c:objc(pl)SentrySerializable" - }, { "kind": "Conformance", "name": "Copyable", @@ -23553,9 +23553,39 @@ }, { "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" + "name": "RawRepresentable", + "printedName": "RawRepresentable", + "children": [ + { + "kind": "TypeWitness", + "name": "RawValue", + "printedName": "RawValue", + "children": [ + { + "kind": "TypeNameAlias", + "name": "RawValue", + "printedName": "Sentry.SentrySpanStatus.RawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" + } + ] + } + ] + } + ], + "usr": "s:SY", + "mangledName": "$sSY" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" }, { "kind": "Conformance", @@ -23570,85 +23600,43 @@ "printedName": "Hashable", "usr": "s:SH", "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" } ] }, { "kind": "TypeDecl", - "name": "SentryANRType", - "printedName": "SentryANRType", + "name": "SentryStacktrace", + "printedName": "SentryStacktrace", "children": [ { - "kind": "Constructor", - "name": "init", - "printedName": "init(rawValue:)", + "kind": "Var", + "name": "frames", + "printedName": "frames", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryANRType?", + "name": "Array", + "printedName": "[Sentry.Frame]", "children": [ { "kind": "TypeNominal", - "name": "SentryANRType", - "printedName": "Sentry.SentryANRType", - "usr": "c:@M@Sentry@E@SentryANRType" + "name": "Frame", + "printedName": "Sentry.Frame", + "usr": "c:objc(cs)SentryFrame" } ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "usr": "s:Sa" } ], - "declKind": "Constructor", - "usr": "s:So13SentryANRTypeV8rawValueABSgSi_tcfc", - "mangledName": "$sSo13SentryANRTypeV8rawValueABSgSi_tcfc", + "declKind": "Var", + "usr": "c:objc(cs)SentryStacktrace(py)frames", "moduleName": "Sentry", - "implicit": true, - "init_kind": "Designated" - }, - { - "kind": "Var", - "name": "rawValue", - "printedName": "rawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } + "isOpen": true, + "objc_name": "frames", + "declAttributes": [ + "ObjC", + "Dynamic" ], - "declKind": "Var", - "usr": "s:So13SentryANRTypeV8rawValueSivp", - "mangledName": "$sSo13SentryANRTypeV8rawValueSivp", - "moduleName": "Sentry", - "implicit": true, "accessors": [ { "kind": "Accessor", @@ -23657,247 +23645,416 @@ "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "Array", + "printedName": "[Sentry.Frame]", + "children": [ + { + "kind": "TypeNominal", + "name": "Frame", + "printedName": "Sentry.Frame", + "usr": "c:objc(cs)SentryFrame" + } + ], + "usr": "s:Sa" } ], "declKind": "Accessor", - "usr": "s:So13SentryANRTypeV8rawValueSivg", - "mangledName": "$sSo13SentryANRTypeV8rawValueSivg", + "usr": "c:objc(cs)SentryStacktrace(im)frames", "moduleName": "Sentry", - "implicit": true, + "isOpen": true, + "objc_name": "frames", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "Array", + "printedName": "[Sentry.Frame]", + "children": [ + { + "kind": "TypeNominal", + "name": "Frame", + "printedName": "Sentry.Frame", + "usr": "c:objc(cs)SentryFrame" + } + ], + "usr": "s:Sa" + } + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryStacktrace(im)setFrames:", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "setFrames:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessorKind": "set" } ] }, { - "kind": "TypeAlias", - "name": "RawValue", - "printedName": "RawValue", + "kind": "Var", + "name": "registers", + "printedName": "registers", "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "Dictionary", + "printedName": "[Swift.String : Swift.String]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:SD" } ], - "declKind": "TypeAlias", - "usr": "s:So13SentryANRTypeV8RawValuea", - "mangledName": "$sSo13SentryANRTypeV8RawValuea", + "declKind": "Var", + "usr": "c:objc(cs)SentryStacktrace(py)registers", "moduleName": "Sentry", - "implicit": true - }, - { - "kind": "Var", - "name": "fatalFullyBlocking", - "printedName": "fatalFullyBlocking", - "children": [ + "isOpen": true, + "objc_name": "registers", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessors": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryANRType.Type) -> Sentry.SentryANRType", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "SentryANRType", - "printedName": "Sentry.SentryANRType", - "usr": "c:@M@Sentry@E@SentryANRType" + "name": "Dictionary", + "printedName": "[Swift.String : Swift.String]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:SD" + } + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryStacktrace(im)registers", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "registers", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] }, { "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryANRType.Type", + "name": "Dictionary", + "printedName": "[Swift.String : Swift.String]", "children": [ { "kind": "TypeNominal", - "name": "SentryANRType", - "printedName": "Sentry.SentryANRType", - "usr": "c:@M@Sentry@E@SentryANRType" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } - ] + ], + "usr": "s:SD" } - ] + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryStacktrace(im)setRegisters:", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "setRegisters:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessorKind": "set" } - ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryANRType@SentryANRTypeFatalFullyBlocking", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" ] }, { "kind": "Var", - "name": "fatalNonFullyBlocking", - "printedName": "fatalNonFullyBlocking", + "name": "snapshot", + "printedName": "snapshot", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryANRType.Type) -> Sentry.SentryANRType", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.NSNumber?", "children": [ { "kind": "TypeNominal", - "name": "SentryANRType", - "printedName": "Sentry.SentryANRType", - "usr": "c:@M@Sentry@E@SentryANRType" - }, + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Var", + "usr": "c:objc(cs)SentryStacktrace(py)snapshot", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "snapshot", + "declAttributes": [ + "NSCopying", + "ObjC", + "Dynamic" + ], + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ { "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryANRType.Type", + "name": "Optional", + "printedName": "Foundation.NSNumber?", "children": [ { "kind": "TypeNominal", - "name": "SentryANRType", - "printedName": "Sentry.SentryANRType", - "usr": "c:@M@Sentry@E@SentryANRType" + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" } - ] + ], + "usr": "s:Sq" } - ] - } - ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryANRType@SentryANRTypeFatalNonFullyBlocking", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - }, - { - "kind": "Var", - "name": "fullyBlocking", - "printedName": "fullyBlocking", - "children": [ + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryStacktrace(im)snapshot", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "snapshot", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "accessorKind": "get" + }, { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryANRType.Type) -> Sentry.SentryANRType", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { - "kind": "TypeNominal", - "name": "SentryANRType", - "printedName": "Sentry.SentryANRType", - "usr": "c:@M@Sentry@E@SentryANRType" + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] }, { "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryANRType.Type", + "name": "Optional", + "printedName": "Foundation.NSNumber?", "children": [ { "kind": "TypeNominal", - "name": "SentryANRType", - "printedName": "Sentry.SentryANRType", - "usr": "c:@M@Sentry@E@SentryANRType" + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" } - ] + ], + "usr": "s:Sq" } - ] + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryStacktrace(im)setSnapshot:", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "setSnapshot:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessorKind": "set" } - ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryANRType@SentryANRTypeFullyBlocking", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" ] }, { - "kind": "Var", - "name": "nonFullyBlocking", - "printedName": "nonFullyBlocking", + "kind": "Constructor", + "name": "init", + "printedName": "init(frames:registers:)", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryANRType.Type) -> Sentry.SentryANRType", + "kind": "TypeNominal", + "name": "SentryStacktrace", + "printedName": "Sentry.SentryStacktrace", + "usr": "c:objc(cs)SentryStacktrace" + }, + { + "kind": "TypeNominal", + "name": "Array", + "printedName": "[Sentry.Frame]", "children": [ { "kind": "TypeNominal", - "name": "SentryANRType", - "printedName": "Sentry.SentryANRType", - "usr": "c:@M@Sentry@E@SentryANRType" + "name": "Frame", + "printedName": "Sentry.Frame", + "usr": "c:objc(cs)SentryFrame" + } + ], + "usr": "s:Sa" + }, + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Swift.String]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" }, { "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryANRType.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryANRType", - "printedName": "Sentry.SentryANRType", - "usr": "c:@M@Sentry@E@SentryANRType" - } - ] + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } - ] + ], + "usr": "s:SD" } ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryANRType@SentryANRTypeNonFullyBlocking", + "declKind": "Constructor", + "usr": "c:objc(cs)SentryStacktrace(im)initWithFrames:registers:", "moduleName": "Sentry", + "objc_name": "initWithFrames:registers:", "declAttributes": [ - "ObjC" - ] + "ObjC", + "Dynamic" + ], + "init_kind": "Designated" }, { - "kind": "Var", - "name": "unknown", - "printedName": "unknown", + "kind": "Function", + "name": "fixDuplicateFrames", + "printedName": "fixDuplicateFrames()", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryANRType.Type) -> Sentry.SentryANRType", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "SentryANRType", - "printedName": "Sentry.SentryANRType", - "usr": "c:@M@Sentry@E@SentryANRType" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryANRType.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryANRType", - "printedName": "Sentry.SentryANRType", - "usr": "c:@M@Sentry@E@SentryANRType" - } - ] + "name": "Void", + "printedName": "()" } ] } ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryANRType@SentryANRTypeUnknown", + "declKind": "Func", + "usr": "c:objc(cs)SentryStacktrace(im)fixDuplicateFrames", "moduleName": "Sentry", + "isOpen": true, + "objc_name": "fixDuplicateFrames", "declAttributes": [ - "ObjC" - ] + "ObjC", + "Dynamic" + ], + "funcSelfKind": "NonMutating" } ], - "declKind": "Enum", - "usr": "c:@M@Sentry@E@SentryANRType", + "declKind": "Class", + "usr": "c:objc(cs)SentryStacktrace", "moduleName": "Sentry", - "objc_name": "SentryANRType", + "isOpen": true, + "objc_name": "SentryStacktrace", "declAttributes": [ - "SynthesizedProtocol", "ObjC", - "SynthesizedProtocol", - "Sendable", "Dynamic" ], - "enumRawTypeName": "Int", + "superclassUsr": "c:objc(cs)NSObject", + "inheritsConvenienceInitializers": true, + "superclassNames": [ + "ObjectiveC.NSObject" + ], "conformances": [ + { + "kind": "Conformance", + "name": "SentrySerializable", + "printedName": "SentrySerializable", + "usr": "c:objc(pl)SentrySerializable" + }, { "kind": "Conformance", "name": "Copyable", @@ -23914,39 +24071,9 @@ }, { "kind": "Conformance", - "name": "RawRepresentable", - "printedName": "RawRepresentable", - "children": [ - { - "kind": "TypeWitness", - "name": "RawValue", - "printedName": "RawValue", - "children": [ - { - "kind": "TypeNameAlias", - "name": "RawValue", - "printedName": "Sentry.SentryANRType.RawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ] - } - ] - } - ], - "usr": "s:SY", - "mangledName": "$sSY" - }, - { - "kind": "Conformance", - "name": "Sendable", - "printedName": "Sendable", - "usr": "s:s8SendableP", - "mangledName": "$ss8SendableP" + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" }, { "kind": "Conformance", @@ -23961,64 +24088,65 @@ "printedName": "Hashable", "usr": "s:SH", "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" + }, + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" + }, + { + "kind": "Conformance", + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" } ] }, { "kind": "TypeDecl", - "name": "SentryAttachmentType", - "printedName": "SentryAttachmentType", + "name": "SentryThread", + "printedName": "SentryThread", "children": [ { - "kind": "Constructor", - "name": "init", - "printedName": "init(rawValue:)", + "kind": "Var", + "name": "threadId", + "printedName": "threadId", "children": [ { "kind": "TypeNominal", "name": "Optional", - "printedName": "Sentry.SentryAttachmentType?", + "printedName": "Foundation.NSNumber?", "children": [ { "kind": "TypeNominal", - "name": "SentryAttachmentType", - "printedName": "Sentry.SentryAttachmentType", - "usr": "c:@E@SentryAttachmentType" + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" } ], "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Constructor", - "usr": "s:So20SentryAttachmentTypeV8rawValueABSgSi_tcfc", - "mangledName": "$sSo20SentryAttachmentTypeV8rawValueABSgSi_tcfc", - "moduleName": "Sentry", - "implicit": true, - "init_kind": "Designated" - }, - { - "kind": "Var", - "name": "rawValue", - "printedName": "rawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" } ], "declKind": "Var", - "usr": "s:So20SentryAttachmentTypeV8rawValueSivp", - "mangledName": "$sSo20SentryAttachmentTypeV8rawValueSivp", + "usr": "c:objc(cs)SentryThread(py)threadId", "moduleName": "Sentry", - "implicit": true, + "isOpen": true, + "objc_name": "threadId", + "declAttributes": [ + "NSCopying", + "ObjC", + "Dynamic" + ], "accessors": [ { "kind": "Accessor", @@ -24027,425 +24155,533 @@ "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "s:So20SentryAttachmentTypeV8rawValueSivg", - "mangledName": "$sSo20SentryAttachmentTypeV8rawValueSivg", + "usr": "c:objc(cs)SentryThread(im)threadId", "moduleName": "Sentry", - "implicit": true, + "isOpen": true, + "objc_name": "threadId", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryThread(im)setThreadId:", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "setThreadId:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessorKind": "set" } ] }, { - "kind": "TypeAlias", - "name": "RawValue", - "printedName": "RawValue", + "kind": "Var", + "name": "name", + "printedName": "name", "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" } ], - "declKind": "TypeAlias", - "usr": "s:So20SentryAttachmentTypeV8RawValuea", - "mangledName": "$sSo20SentryAttachmentTypeV8RawValuea", + "declKind": "Var", + "usr": "c:objc(cs)SentryThread(py)name", "moduleName": "Sentry", - "implicit": true - }, - { - "kind": "Var", - "name": "eventAttachment", - "printedName": "eventAttachment", - "children": [ + "isOpen": true, + "objc_name": "name", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessors": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryAttachmentType.Type) -> Sentry.SentryAttachmentType", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "SentryAttachmentType", - "printedName": "Sentry.SentryAttachmentType", - "usr": "c:@E@SentryAttachmentType" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryThread(im)name", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "name", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] }, { "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryAttachmentType.Type", + "name": "Optional", + "printedName": "Swift.String?", "children": [ { "kind": "TypeNominal", - "name": "SentryAttachmentType", - "printedName": "Sentry.SentryAttachmentType", - "usr": "c:@E@SentryAttachmentType" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } - ] + ], + "usr": "s:Sq" } - ] + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryThread(im)setName:", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "setName:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessorKind": "set" } - ], - "declKind": "EnumElement", - "usr": "c:@E@SentryAttachmentType@kSentryAttachmentTypeEventAttachment", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" ] }, { "kind": "Var", - "name": "viewHierarchy", - "printedName": "viewHierarchy", + "name": "stacktrace", + "printedName": "stacktrace", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryAttachmentType.Type) -> Sentry.SentryAttachmentType", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryStacktrace?", "children": [ { "kind": "TypeNominal", - "name": "SentryAttachmentType", - "printedName": "Sentry.SentryAttachmentType", - "usr": "c:@E@SentryAttachmentType" - }, + "name": "SentryStacktrace", + "printedName": "Sentry.SentryStacktrace", + "usr": "c:objc(cs)SentryStacktrace" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Var", + "usr": "c:objc(cs)SentryThread(py)stacktrace", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "stacktrace", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ { "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryAttachmentType.Type", + "name": "Optional", + "printedName": "Sentry.SentryStacktrace?", "children": [ { "kind": "TypeNominal", - "name": "SentryAttachmentType", - "printedName": "Sentry.SentryAttachmentType", - "usr": "c:@E@SentryAttachmentType" + "name": "SentryStacktrace", + "printedName": "Sentry.SentryStacktrace", + "usr": "c:objc(cs)SentryStacktrace" } - ] + ], + "usr": "s:Sq" } - ] - } - ], - "declKind": "EnumElement", - "usr": "c:@E@SentryAttachmentType@kSentryAttachmentTypeViewHierarchy", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - } - ], - "declKind": "Enum", - "usr": "c:@E@SentryAttachmentType", - "moduleName": "Sentry", - "objc_name": "SentryAttachmentType", - "declAttributes": [ - "SynthesizedProtocol", - "ObjC", - "SynthesizedProtocol", - "Sendable", - "Dynamic" - ], - "enumRawTypeName": "Int", - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "RawRepresentable", - "printedName": "RawRepresentable", - "children": [ + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryThread(im)stacktrace", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "stacktrace", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "accessorKind": "get" + }, { - "kind": "TypeWitness", - "name": "RawValue", - "printedName": "RawValue", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { "kind": "TypeNameAlias", - "name": "RawValue", - "printedName": "Sentry.SentryAttachmentType.RawValue", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "Void", + "printedName": "()" } ] + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryStacktrace?", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryStacktrace", + "printedName": "Sentry.SentryStacktrace", + "usr": "c:objc(cs)SentryStacktrace" + } + ], + "usr": "s:Sq" } - ] + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryThread(im)setStacktrace:", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "setStacktrace:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessorKind": "set" } - ], - "usr": "s:SY", - "mangledName": "$sSY" - }, - { - "kind": "Conformance", - "name": "Sendable", - "printedName": "Sendable", - "usr": "s:s8SendableP", - "mangledName": "$ss8SendableP" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" + ] }, { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - } - ] - }, - { - "kind": "TypeAlias", - "name": "SentryBeforeBreadcrumbCallback", - "printedName": "SentryBeforeBreadcrumbCallback", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Breadcrumb) -> Sentry.Breadcrumb?", + "kind": "Var", + "name": "crashed", + "printedName": "crashed", "children": [ { "kind": "TypeNominal", "name": "Optional", - "printedName": "Sentry.Breadcrumb?", + "printedName": "Foundation.NSNumber?", "children": [ { "kind": "TypeNominal", - "name": "Breadcrumb", - "printedName": "Sentry.Breadcrumb", - "usr": "c:objc(cs)SentryBreadcrumb" + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" } ], "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Breadcrumb", - "printedName": "Sentry.Breadcrumb", - "usr": "c:objc(cs)SentryBreadcrumb" } - ] - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@SentryBeforeBreadcrumbCallback", - "moduleName": "Sentry" - }, - { - "kind": "TypeAlias", - "name": "SentryBeforeCaptureScreenshotCallback", - "printedName": "SentryBeforeCaptureScreenshotCallback", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Event) -> Swift.Bool", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - }, + ], + "declKind": "Var", + "usr": "c:objc(cs)SentryThread(py)crashed", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "crashed", + "declAttributes": [ + "NSCopying", + "ObjC", + "Dynamic" + ], + "accessors": [ { - "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" - } - ] - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@SentryBeforeCaptureScreenshotCallback", - "moduleName": "Sentry" - }, - { - "kind": "TypeAlias", - "name": "SentryBeforeCaptureViewHierarchyCallback", - "printedName": "SentryBeforeCaptureViewHierarchyCallback", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Event) -> Swift.Bool", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryThread(im)crashed", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "crashed", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "accessorKind": "get" }, { - "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryThread(im)setCrashed:", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "setCrashed:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessorKind": "set" } ] - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@SentryBeforeCaptureViewHierarchyCallback", - "moduleName": "Sentry" - }, - { - "kind": "TypeAlias", - "name": "SentryBeforeSendEventCallback", - "printedName": "SentryBeforeSendEventCallback", - "children": [ + }, { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Event) -> Sentry.Event?", + "kind": "Var", + "name": "current", + "printedName": "current", "children": [ { "kind": "TypeNominal", "name": "Optional", - "printedName": "Sentry.Event?", + "printedName": "Foundation.NSNumber?", "children": [ { "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" } ], "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" } - ] - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@SentryBeforeSendEventCallback", - "moduleName": "Sentry" - }, - { - "kind": "TypeAlias", - "name": "SentryBeforeSendLogCallback", - "printedName": "SentryBeforeSendLogCallback", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryLog) -> Sentry.SentryLog?", - "children": [ + ], + "declKind": "Var", + "usr": "c:objc(cs)SentryThread(py)current", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "current", + "declAttributes": [ + "NSCopying", + "ObjC", + "Dynamic" + ], + "accessors": [ { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryLog?", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "SentryLog", - "printedName": "Sentry.SentryLog", - "usr": "c:@M@Sentry@objc(cs)SentryLog" + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" } ], - "usr": "s:Sq" + "declKind": "Accessor", + "usr": "c:objc(cs)SentryThread(im)current", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "current", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "accessorKind": "get" }, { - "kind": "TypeNominal", - "name": "SentryLog", - "printedName": "Sentry.SentryLog", - "usr": "c:@M@Sentry@objc(cs)SentryLog" + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryThread(im)setCurrent:", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "setCurrent:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessorKind": "set" } ] - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@SentryBeforeSendLogCallback", - "moduleName": "Sentry" - }, - { - "kind": "TypeAlias", - "name": "SentryBeforeSendSpanCallback", - "printedName": "SentryBeforeSendSpanCallback", - "children": [ + }, { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(any Sentry.Span) -> (any Sentry.Span)?", + "kind": "Var", + "name": "isMain", + "printedName": "isMain", "children": [ { "kind": "TypeNominal", "name": "Optional", - "printedName": "(any Sentry.Span)?", + "printedName": "Foundation.NSNumber?", "children": [ { "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" } ], "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" - } - ] - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@SentryBeforeSendSpanCallback", - "moduleName": "Sentry" - }, - { - "kind": "TypeDecl", - "name": "SentryDsn", - "printedName": "SentryDsn", - "children": [ - { - "kind": "Var", - "name": "url", - "printedName": "url", - "children": [ - { - "kind": "TypeNominal", - "name": "URL", - "printedName": "Foundation.URL", - "usr": "s:10Foundation3URLV" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryDsn(py)url", + "usr": "c:objc(cs)SentryThread(py)isMain", "moduleName": "Sentry", "isOpen": true, - "objc_name": "url", + "objc_name": "isMain", "declAttributes": [ + "NSCopying", "ObjC", "Dynamic" ], @@ -24457,98 +24693,107 @@ "children": [ { "kind": "TypeNominal", - "name": "URL", - "printedName": "Foundation.URL", - "usr": "s:10Foundation3URLV" + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryDsn(im)url", + "usr": "c:objc(cs)SentryThread(im)isMain", "moduleName": "Sentry", "isOpen": true, - "objc_name": "url", + "objc_name": "isMain", "declAttributes": [ "DiscardableResult", "ObjC", "Dynamic" ], "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryThread(im)setIsMain:", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "setIsMain:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessorKind": "set" } ] }, { "kind": "Constructor", "name": "init", - "printedName": "init(string:)", + "printedName": "init(threadId:)", "children": [ { "kind": "TypeNominal", - "name": "SentryDsn", - "printedName": "Sentry.SentryDsn", - "usr": "c:objc(cs)SentryDsn" + "name": "SentryThread", + "printedName": "Sentry.SentryThread", + "usr": "c:objc(cs)SentryThread" }, { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentryDsn(im)initWithString:didFailWithError:", - "moduleName": "Sentry", - "objc_name": "initWithString:didFailWithError:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "throwing": true, - "init_kind": "Designated" - }, - { - "kind": "Function", - "name": "getEnvelopeEndpoint", - "printedName": "getEnvelopeEndpoint()", - "children": [ - { - "kind": "TypeNominal", - "name": "URL", - "printedName": "Foundation.URL", - "usr": "s:10Foundation3URLV" - } - ], - "declKind": "Func", - "usr": "c:objc(cs)SentryDsn(im)getEnvelopeEndpoint", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "getEnvelopeEndpoint", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init()", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryDsn", - "printedName": "Sentry.SentryDsn", - "usr": "c:objc(cs)SentryDsn" + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" } ], "declKind": "Constructor", - "usr": "c:objc(cs)NSObject(im)init", + "usr": "c:objc(cs)SentryThread(im)initWithThreadId:", "moduleName": "Sentry", - "overriding": true, - "implicit": true, - "objc_name": "init", + "objc_name": "initWithThreadId:", "declAttributes": [ - "Override", "ObjC", "Dynamic" ], @@ -24556,10 +24801,10 @@ } ], "declKind": "Class", - "usr": "c:objc(cs)SentryDsn", + "usr": "c:objc(cs)SentryThread", "moduleName": "Sentry", "isOpen": true, - "objc_name": "SentryDsn", + "objc_name": "SentryThread", "declAttributes": [ "ObjC", "Dynamic" @@ -24570,6 +24815,12 @@ "ObjectiveC.NSObject" ], "conformances": [ + { + "kind": "Conformance", + "name": "SentrySerializable", + "printedName": "SentrySerializable", + "usr": "c:objc(pl)SentrySerializable" + }, { "kind": "Conformance", "name": "Copyable", @@ -24628,188 +24879,216 @@ ] }, { - "kind": "TypeDecl", - "name": "SentryEnvelopeItemHeader", - "printedName": "SentryEnvelopeItemHeader", + "kind": "TypeAlias", + "name": "SentryTracesSamplerCallback", + "printedName": "SentryTracesSamplerCallback", "children": [ { - "kind": "Constructor", - "name": "init", - "printedName": "init(type:length:)", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SamplingContext) -> Foundation.NSNumber?", "children": [ { "kind": "TypeNominal", - "name": "SentryEnvelopeItemHeader", - "printedName": "Sentry.SentryEnvelopeItemHeader", - "usr": "c:objc(cs)SentryEnvelopeItemHeader" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" }, { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "SamplingContext", + "printedName": "Sentry.SamplingContext", + "usr": "c:objc(cs)SentrySamplingContext" } - ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentryEnvelopeItemHeader(im)initWithType:length:", - "moduleName": "Sentry", - "objc_name": "initWithType:length:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "init_kind": "Designated" - }, + ] + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@SentryTracesSamplerCallback", + "moduleName": "Sentry" + }, + { + "kind": "TypeAlias", + "name": "SentryUserFeedbackConfigurationBlock", + "printedName": "SentryUserFeedbackConfigurationBlock", + "children": [ { - "kind": "Constructor", - "name": "init", - "printedName": "init(type:length:contentType:)", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryUserFeedbackConfiguration) -> Swift.Void", "children": [ { - "kind": "TypeNominal", - "name": "SentryEnvelopeItemHeader", - "printedName": "Sentry.SentryEnvelopeItemHeader", - "usr": "c:objc(cs)SentryEnvelopeItemHeader" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] }, { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - }, + "name": "SentryUserFeedbackConfiguration", + "printedName": "Sentry.SentryUserFeedbackConfiguration", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration" + } + ] + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@SentryUserFeedbackConfigurationBlock", + "moduleName": "Sentry" + }, + { + "kind": "Var", + "name": "SentryVersionNumber", + "printedName": "SentryVersionNumber", + "children": [ + { + "kind": "TypeNominal", + "name": "Double", + "printedName": "Swift.Double", + "usr": "s:Sd" + } + ], + "declKind": "Var", + "usr": "c:@SentryVersionNumber", + "moduleName": "Sentry", + "hasStorage": true + }, + { + "kind": "Var", + "name": "SentryVersionString", + "printedName": "SentryVersionString", + "children": [ + { + "kind": "TypeNominal", + "name": "Error", + "printedName": "<>" + } + ], + "declKind": "Var", + "usr": "c:@SentryVersionString", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "TypeDecl", + "name": "Span", + "printedName": "Span", + "children": [ + { + "kind": "Var", + "name": "traceId", + "printedName": "traceId", + "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" } ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentryEnvelopeItemHeader(im)initWithType:length:contentType:", + "declKind": "Var", + "usr": "c:objc(pl)SentrySpan(py)traceId", "moduleName": "Sentry", - "objc_name": "initWithType:length:contentType:", + "protocolReq": true, + "objc_name": "traceId", "declAttributes": [ "ObjC", "Dynamic" - ], - "init_kind": "Convenience" + ] }, { - "kind": "Constructor", - "name": "init", - "printedName": "init(type:length:filenname:contentType:)", + "kind": "Var", + "name": "spanId", + "printedName": "spanId", "children": [ { "kind": "TypeNominal", - "name": "SentryEnvelopeItemHeader", - "printedName": "Sentry.SentryEnvelopeItemHeader", - "usr": "c:objc(cs)SentryEnvelopeItemHeader" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "SpanId", + "printedName": "Sentry.SpanId", + "usr": "c:objc(cs)SentrySpanId" } ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentryEnvelopeItemHeader(im)initWithType:length:filenname:contentType:", + "declKind": "Var", + "usr": "c:objc(pl)SentrySpan(py)spanId", "moduleName": "Sentry", - "objc_name": "initWithType:length:filenname:contentType:", + "protocolReq": true, + "objc_name": "spanId", "declAttributes": [ "ObjC", "Dynamic" - ], - "init_kind": "Convenience" + ] }, { - "kind": "Constructor", - "name": "init", - "printedName": "init(type:length:contentType:itemCount:)", + "kind": "Var", + "name": "parentSpanId", + "printedName": "parentSpanId", "children": [ - { - "kind": "TypeNominal", - "name": "SentryEnvelopeItemHeader", - "printedName": "Sentry.SentryEnvelopeItemHeader", - "usr": "c:objc(cs)SentryEnvelopeItemHeader" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - }, { "kind": "TypeNominal", "name": "Optional", - "printedName": "Swift.String?", + "printedName": "Sentry.SpanId?", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "SpanId", + "printedName": "Sentry.SpanId", + "usr": "c:objc(cs)SentrySpanId" } ], "usr": "s:Sq" - }, + } + ], + "declKind": "Var", + "usr": "c:objc(pl)SentrySpan(py)parentSpanId", + "moduleName": "Sentry", + "protocolReq": true, + "objc_name": "parentSpanId", + "declAttributes": [ + "ObjC", + "Dynamic" + ] + }, + { + "kind": "Var", + "name": "sampled", + "printedName": "sampled", + "children": [ { "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" + "name": "SentrySampleDecision", + "printedName": "Sentry.SentrySampleDecision", + "usr": "c:@E@SentrySampleDecision" } ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentryEnvelopeItemHeader(im)initWithType:length:contentType:itemCount:", + "declKind": "Var", + "usr": "c:objc(pl)SentrySpan(py)sampled", "moduleName": "Sentry", - "objc_name": "initWithType:length:contentType:itemCount:", + "protocolReq": true, + "objc_name": "sampled", "declAttributes": [ "ObjC", "Dynamic" - ], - "init_kind": "Convenience" + ] }, { "kind": "Var", - "name": "type", - "printedName": "type", + "name": "operation", + "printedName": "operation", "children": [ { "kind": "TypeNominal", @@ -24819,93 +25098,41 @@ } ], "declKind": "Var", - "usr": "c:objc(cs)SentryEnvelopeItemHeader(py)type", + "usr": "c:objc(pl)SentrySpan(py)operation", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "type", + "protocolReq": true, + "objc_name": "operation", "declAttributes": [ "ObjC", "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryEnvelopeItemHeader(im)type", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "type", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - } ] }, { "kind": "Var", - "name": "length", - "printedName": "length", + "name": "origin", + "printedName": "origin", "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryEnvelopeItemHeader(py)length", + "usr": "c:objc(pl)SentrySpan(py)origin", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "length", + "protocolReq": true, + "objc_name": "origin", "declAttributes": [ "ObjC", "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryEnvelopeItemHeader(im)length", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "length", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - } ] }, { "kind": "Var", - "name": "filename", - "printedName": "filename", + "name": "spanDescription", + "printedName": "spanDescription", "children": [ { "kind": "TypeNominal", @@ -24923,188 +25150,152 @@ } ], "declKind": "Var", - "usr": "c:objc(cs)SentryEnvelopeItemHeader(py)filename", + "usr": "c:objc(pl)SentrySpan(py)spanDescription", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "filename", + "protocolReq": true, + "objc_name": "spanDescription", "declAttributes": [ "ObjC", "Dynamic" - ], - "accessors": [ + ] + }, + { + "kind": "Var", + "name": "status", + "printedName": "status", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryEnvelopeItemHeader(im)filename", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "filename", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + "kind": "TypeNominal", + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" } + ], + "declKind": "Var", + "usr": "c:objc(pl)SentrySpan(py)status", + "moduleName": "Sentry", + "protocolReq": true, + "objc_name": "status", + "declAttributes": [ + "ObjC", + "Dynamic" ] }, { "kind": "Var", - "name": "contentType", - "printedName": "contentType", + "name": "timestamp", + "printedName": "timestamp", "children": [ { "kind": "TypeNominal", "name": "Optional", - "printedName": "Swift.String?", + "printedName": "Foundation.Date?", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Date", + "printedName": "Foundation.Date", + "usr": "s:10Foundation4DateV" } ], "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryEnvelopeItemHeader(py)contentType", + "usr": "c:objc(pl)SentrySpan(py)timestamp", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "contentType", + "protocolReq": true, + "intro_iOS": "8.0", + "objc_name": "timestamp", "declAttributes": [ + "Available", "ObjC", "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryEnvelopeItemHeader(im)contentType", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "contentType", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - } ] }, { "kind": "Var", - "name": "itemCount", - "printedName": "itemCount", + "name": "startTimestamp", + "printedName": "startTimestamp", "children": [ { "kind": "TypeNominal", "name": "Optional", - "printedName": "Foundation.NSNumber?", + "printedName": "Foundation.Date?", "children": [ { "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" + "name": "Date", + "printedName": "Foundation.Date", + "usr": "s:10Foundation4DateV" } ], "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryEnvelopeItemHeader(py)itemCount", + "usr": "c:objc(pl)SentrySpan(py)startTimestamp", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "itemCount", + "protocolReq": true, + "intro_iOS": "8.0", + "objc_name": "startTimestamp", "declAttributes": [ - "NSCopying", + "Available", "ObjC", "Dynamic" - ], - "accessors": [ + ] + }, + { + "kind": "Var", + "name": "data", + "printedName": "data", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryEnvelopeItemHeader(im)itemCount", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "itemCount", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + "usr": "s:SD" } + ], + "declKind": "Var", + "usr": "c:objc(pl)SentrySpan(py)data", + "moduleName": "Sentry", + "protocolReq": true, + "objc_name": "data", + "declAttributes": [ + "ObjC", + "Dynamic" ] }, { "kind": "Var", - "name": "platform", - "printedName": "platform", + "name": "tags", + "printedName": "tags", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", + "name": "Dictionary", + "printedName": "[Swift.String : Swift.String]", "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, { "kind": "TypeNominal", "name": "String", @@ -25112,720 +25303,586 @@ "usr": "s:SS" } ], - "usr": "s:Sq" + "usr": "s:SD" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryEnvelopeItemHeader(py)platform", + "usr": "c:objc(pl)SentrySpan(py)tags", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "platform", + "protocolReq": true, + "objc_name": "tags", "declAttributes": [ "ObjC", "Dynamic" - ], - "accessors": [ + ] + }, + { + "kind": "Var", + "name": "isFinished", + "printedName": "isFinished", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryEnvelopeItemHeader(im)platform", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "platform", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryEnvelopeItemHeader(im)setPlatform:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setPlatform:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } + ], + "declKind": "Var", + "usr": "c:objc(pl)SentrySpan(py)isFinished", + "moduleName": "Sentry", + "protocolReq": true, + "objc_name": "isFinished", + "declAttributes": [ + "ObjC", + "Dynamic" ] - } - ], - "declKind": "Class", - "usr": "c:objc(cs)SentryEnvelopeItemHeader", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "SentryEnvelopeItemHeader", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "superclassUsr": "c:objc(cs)NSObject", - "inheritsConvenienceInitializers": true, - "superclassNames": [ - "ObjectiveC.NSObject" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "SentrySerializable", - "printedName": "SentrySerializable", - "usr": "c:objc(pl)SentrySerializable" - }, - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" }, { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - } - ] - }, - { - "kind": "TypeDecl", - "name": "SentryError", - "printedName": "SentryError", - "children": [ - { - "kind": "Constructor", - "name": "init", - "printedName": "init(rawValue:)", + "kind": "Var", + "name": "traceContext", + "printedName": "traceContext", "children": [ { "kind": "TypeNominal", "name": "Optional", - "printedName": "Sentry.SentryError?", + "printedName": "Sentry.TraceContext?", "children": [ { "kind": "TypeNominal", - "name": "SentryError", - "printedName": "Sentry.SentryError", - "usr": "c:@E@SentryError" + "name": "TraceContext", + "printedName": "Sentry.TraceContext", + "usr": "c:objc(cs)SentryTraceContext" } ], "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" } ], - "declKind": "Constructor", - "usr": "s:So11SentryErrorV8rawValueABSgSi_tcfc", - "mangledName": "$sSo11SentryErrorV8rawValueABSgSi_tcfc", + "declKind": "Var", + "usr": "c:objc(pl)SentrySpan(py)traceContext", "moduleName": "Sentry", - "implicit": true, - "init_kind": "Designated" + "protocolReq": true, + "objc_name": "traceContext", + "declAttributes": [ + "ObjC", + "Dynamic" + ] }, { - "kind": "Var", - "name": "rawValue", - "printedName": "rawValue", + "kind": "Function", + "name": "startChild", + "printedName": "startChild(operation:)", "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], - "declKind": "Var", - "usr": "s:So11SentryErrorV8rawValueSivp", - "mangledName": "$sSo11SentryErrorV8rawValueSivp", + "declKind": "Func", + "usr": "c:objc(pl)SentrySpan(im)startChildWithOperation:", "moduleName": "Sentry", - "implicit": true, - "accessors": [ + "genericSig": "", + "protocolReq": true, + "objc_name": "startChildWithOperation:", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "startChild", + "printedName": "startChild(operation:description:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNominal", + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], - "declKind": "Accessor", - "usr": "s:So11SentryErrorV8rawValueSivg", - "mangledName": "$sSo11SentryErrorV8rawValueSivg", - "moduleName": "Sentry", - "implicit": true, - "accessorKind": "get" - } - ] - }, - { - "kind": "TypeAlias", - "name": "RawValue", - "printedName": "RawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "usr": "s:Sq" } ], - "declKind": "TypeAlias", - "usr": "s:So11SentryErrorV8RawValuea", - "mangledName": "$sSo11SentryErrorV8RawValuea", + "declKind": "Func", + "usr": "c:objc(pl)SentrySpan(im)startChildWithOperation:description:", "moduleName": "Sentry", - "implicit": true + "genericSig": "", + "protocolReq": true, + "objc_name": "startChildWithOperation:description:", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "unknownError", - "printedName": "unknownError", + "kind": "Function", + "name": "setData", + "printedName": "setData(value:key:)", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryError.Type) -> Sentry.SentryError", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "SentryError", - "printedName": "Sentry.SentryError", - "usr": "c:@E@SentryError" - }, + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Any?", + "children": [ { "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryError.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryError", - "printedName": "Sentry.SentryError", - "usr": "c:@E@SentryError" - } - ] + "name": "ProtocolComposition", + "printedName": "Any" } - ] + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], - "declKind": "EnumElement", - "usr": "c:@E@SentryError@kSentryErrorUnknownError", + "declKind": "Func", + "usr": "c:objc(pl)SentrySpan(im)setDataValue:forKey:", "moduleName": "Sentry", + "genericSig": "", + "protocolReq": true, + "objc_name": "setDataValue:forKey:", "declAttributes": [ - "ObjC" - ] + "ObjC", + "Dynamic" + ], + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "invalidDsnError", - "printedName": "invalidDsnError", + "kind": "Function", + "name": "removeData", + "printedName": "removeData(key:)", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryError.Type) -> Sentry.SentryError", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "SentryError", - "printedName": "Sentry.SentryError", - "usr": "c:@E@SentryError" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryError.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryError", - "printedName": "Sentry.SentryError", - "usr": "c:@E@SentryError" - } - ] + "name": "Void", + "printedName": "()" } ] + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], - "declKind": "EnumElement", - "usr": "c:@E@SentryError@kSentryErrorInvalidDsnError", + "declKind": "Func", + "usr": "c:objc(pl)SentrySpan(im)removeDataForKey:", "moduleName": "Sentry", + "genericSig": "", + "protocolReq": true, + "objc_name": "removeDataForKey:", "declAttributes": [ - "ObjC" - ] + "ObjC", + "Dynamic" + ], + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "sentryCrashNotInstalledError", - "printedName": "sentryCrashNotInstalledError", + "kind": "Function", + "name": "setTag", + "printedName": "setTag(value:key:)", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryError.Type) -> Sentry.SentryError", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "SentryError", - "printedName": "Sentry.SentryError", - "usr": "c:@E@SentryError" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryError.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryError", - "printedName": "Sentry.SentryError", - "usr": "c:@E@SentryError" - } - ] + "name": "Void", + "printedName": "()" } ] + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], - "declKind": "EnumElement", - "usr": "c:@E@SentryError@kSentryErrorSentryCrashNotInstalledError", + "declKind": "Func", + "usr": "c:objc(pl)SentrySpan(im)setTagValue:forKey:", "moduleName": "Sentry", + "genericSig": "", + "protocolReq": true, + "objc_name": "setTagValue:forKey:", "declAttributes": [ - "ObjC" - ] + "ObjC", + "Dynamic" + ], + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "invalidCrashReportError", - "printedName": "invalidCrashReportError", + "kind": "Function", + "name": "removeTag", + "printedName": "removeTag(key:)", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryError.Type) -> Sentry.SentryError", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "SentryError", - "printedName": "Sentry.SentryError", - "usr": "c:@E@SentryError" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryError.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryError", - "printedName": "Sentry.SentryError", - "usr": "c:@E@SentryError" - } - ] + "name": "Void", + "printedName": "()" } ] + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], - "declKind": "EnumElement", - "usr": "c:@E@SentryError@kSentryErrorInvalidCrashReportError", + "declKind": "Func", + "usr": "c:objc(pl)SentrySpan(im)removeTagForKey:", "moduleName": "Sentry", + "genericSig": "", + "protocolReq": true, + "objc_name": "removeTagForKey:", "declAttributes": [ - "ObjC" - ] + "ObjC", + "Dynamic" + ], + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "compressionError", - "printedName": "compressionError", + "kind": "Function", + "name": "setMeasurement", + "printedName": "setMeasurement(name:value:)", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryError.Type) -> Sentry.SentryError", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "SentryError", - "printedName": "Sentry.SentryError", - "usr": "c:@E@SentryError" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryError.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryError", - "printedName": "Sentry.SentryError", - "usr": "c:@E@SentryError" - } - ] + "name": "Void", + "printedName": "()" } ] + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" } ], - "declKind": "EnumElement", - "usr": "c:@E@SentryError@kSentryErrorCompressionError", + "declKind": "Func", + "usr": "c:objc(pl)SentrySpan(im)setMeasurement:value:", "moduleName": "Sentry", + "genericSig": "", + "protocolReq": true, + "objc_name": "setMeasurement:value:", "declAttributes": [ - "ObjC" - ] + "ObjC", + "Dynamic" + ], + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "jsonConversionError", - "printedName": "jsonConversionError", + "kind": "Function", + "name": "setMeasurement", + "printedName": "setMeasurement(name:value:unit:)", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryError.Type) -> Sentry.SentryError", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "SentryError", - "printedName": "Sentry.SentryError", - "usr": "c:@E@SentryError" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryError.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryError", - "printedName": "Sentry.SentryError", - "usr": "c:@E@SentryError" - } - ] + "name": "Void", + "printedName": "()" } ] + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + }, + { + "kind": "TypeNominal", + "name": "MeasurementUnit", + "printedName": "Sentry.MeasurementUnit", + "usr": "c:objc(cs)SentryMeasurementUnit" } ], - "declKind": "EnumElement", - "usr": "c:@E@SentryError@kSentryErrorJsonConversionError", + "declKind": "Func", + "usr": "c:objc(pl)SentrySpan(im)setMeasurement:value:unit:", "moduleName": "Sentry", + "genericSig": "", + "protocolReq": true, + "objc_name": "setMeasurement:value:unit:", "declAttributes": [ - "ObjC" - ] + "ObjC", + "Dynamic" + ], + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "couldNotFindDirectory", - "printedName": "couldNotFindDirectory", + "kind": "Function", + "name": "finish", + "printedName": "finish()", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryError.Type) -> Sentry.SentryError", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "SentryError", - "printedName": "Sentry.SentryError", - "usr": "c:@E@SentryError" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryError.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryError", - "printedName": "Sentry.SentryError", - "usr": "c:@E@SentryError" - } - ] + "name": "Void", + "printedName": "()" } ] } ], - "declKind": "EnumElement", - "usr": "c:@E@SentryError@kSentryErrorCouldNotFindDirectory", + "declKind": "Func", + "usr": "c:objc(pl)SentrySpan(im)finish", "moduleName": "Sentry", + "genericSig": "", + "protocolReq": true, + "objc_name": "finish", "declAttributes": [ - "ObjC" - ] + "ObjC", + "Dynamic" + ], + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "requestError", - "printedName": "requestError", + "kind": "Function", + "name": "finish", + "printedName": "finish(status:)", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryError.Type) -> Sentry.SentryError", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "SentryError", - "printedName": "Sentry.SentryError", - "usr": "c:@E@SentryError" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryError.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryError", - "printedName": "Sentry.SentryError", - "usr": "c:@E@SentryError" - } - ] + "name": "Void", + "printedName": "()" } ] + }, + { + "kind": "TypeNominal", + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" } ], - "declKind": "EnumElement", - "usr": "c:@E@SentryError@kSentryErrorRequestError", + "declKind": "Func", + "usr": "c:objc(pl)SentrySpan(im)finishWithStatus:", "moduleName": "Sentry", + "genericSig": "", + "protocolReq": true, + "objc_name": "finishWithStatus:", "declAttributes": [ - "ObjC" - ] + "ObjC", + "Dynamic" + ], + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "eventNotSent", - "printedName": "eventNotSent", + "kind": "Function", + "name": "toTraceHeader", + "printedName": "toTraceHeader()", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryError.Type) -> Sentry.SentryError", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryError", - "printedName": "Sentry.SentryError", - "usr": "c:@E@SentryError" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryError.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryError", - "printedName": "Sentry.SentryError", - "usr": "c:@E@SentryError" - } - ] - } - ] + "kind": "TypeNominal", + "name": "TraceHeader", + "printedName": "Sentry.TraceHeader", + "usr": "c:objc(cs)SentryTraceHeader" } ], - "declKind": "EnumElement", - "usr": "c:@E@SentryError@kSentryErrorEventNotSent", + "declKind": "Func", + "usr": "c:objc(pl)SentrySpan(im)toTraceHeader", "moduleName": "Sentry", + "genericSig": "", + "protocolReq": true, + "objc_name": "toTraceHeader", "declAttributes": [ - "ObjC" - ] + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "fileIO", - "printedName": "fileIO", + "kind": "Function", + "name": "baggageHttpHeader", + "printedName": "baggageHttpHeader()", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryError.Type) -> Sentry.SentryError", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", "children": [ { "kind": "TypeNominal", - "name": "SentryError", - "printedName": "Sentry.SentryError", - "usr": "c:@E@SentryError" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryError.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryError", - "printedName": "Sentry.SentryError", - "usr": "c:@E@SentryError" - } - ] + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } - ] + ], + "usr": "s:Sq" } ], - "declKind": "EnumElement", - "usr": "c:@E@SentryError@kSentryErrorFileIO", + "declKind": "Func", + "usr": "c:objc(pl)SentrySpan(im)baggageHttpHeader", "moduleName": "Sentry", + "genericSig": "", + "protocolReq": true, + "objc_name": "baggageHttpHeader", "declAttributes": [ - "ObjC" - ] + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "kernel", - "printedName": "kernel", + "kind": "Function", + "name": "serialize", + "printedName": "serialize()", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryError.Type) -> Sentry.SentryError", + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", "children": [ { "kind": "TypeNominal", - "name": "SentryError", - "printedName": "Sentry.SentryError", - "usr": "c:@E@SentryError" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" }, { "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryError.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryError", - "printedName": "Sentry.SentryError", - "usr": "c:@E@SentryError" - } - ] + "name": "ProtocolComposition", + "printedName": "Any" } - ] + ], + "usr": "s:SD" } ], - "declKind": "EnumElement", - "usr": "c:@E@SentryError@kSentryErrorKernel", + "declKind": "Func", + "usr": "c:objc(pl)SentrySpan(im)serialize", "moduleName": "Sentry", + "genericSig": "", + "protocolReq": true, + "objc_name": "serialize", "declAttributes": [ - "ObjC" - ] + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" } ], - "declKind": "Enum", - "usr": "c:@E@SentryError", + "declKind": "Protocol", + "usr": "c:objc(pl)SentrySpan", "moduleName": "Sentry", - "objc_name": "SentryError", + "genericSig": "", + "objc_name": "SentrySpan", "declAttributes": [ - "SynthesizedProtocol", "ObjC", - "SynthesizedProtocol", - "Sendable", "Dynamic" ], - "enumRawTypeName": "Int", "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, { "kind": "Conformance", "name": "Escapable", @@ -25835,290 +25892,99 @@ }, { "kind": "Conformance", - "name": "RawRepresentable", - "printedName": "RawRepresentable", - "children": [ - { - "kind": "TypeWitness", - "name": "RawValue", - "printedName": "RawValue", - "children": [ - { - "kind": "TypeNameAlias", - "name": "RawValue", - "printedName": "Sentry.SentryError.RawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ] - } - ] - } - ], - "usr": "s:SY", - "mangledName": "$sSY" - }, - { - "kind": "Conformance", - "name": "Sendable", - "printedName": "Sendable", - "usr": "s:s8SendableP", - "mangledName": "$ss8SendableP" + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" }, { "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" + "name": "SentrySerializable", + "printedName": "SentrySerializable", + "usr": "c:objc(pl)SentrySerializable" }, { "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" } ] }, - { - "kind": "Var", - "name": "SentryErrorDomain", - "printedName": "SentryErrorDomain", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:@SentryErrorDomain", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, { "kind": "TypeDecl", - "name": "SentryFeedbackAPI", - "printedName": "SentryFeedbackAPI", + "name": "SpanContext", + "printedName": "SpanContext", "children": [ { - "kind": "Function", - "name": "showWidget", - "printedName": "showWidget()", + "kind": "Var", + "name": "traceId", + "printedName": "traceId", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] + "kind": "TypeNominal", + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryFeedbackAPI(im)showWidget", + "declKind": "Var", + "usr": "c:objc(cs)SentrySpanContext(py)traceId", "moduleName": "Sentry", "isOpen": true, - "objc_name": "showWidget", + "objc_name": "traceId", "declAttributes": [ "ObjC", "Dynamic" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "hideWidget", - "printedName": "hideWidget()", - "children": [ + "accessors": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" } - ] + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentrySpanContext(im)traceId", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "traceId", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "accessorKind": "get" } - ], - "declKind": "Func", - "usr": "c:objc(cs)SentryFeedbackAPI(im)hideWidget", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "hideWidget", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" + ] }, { - "kind": "Constructor", - "name": "init", - "printedName": "init()", + "kind": "Var", + "name": "spanId", + "printedName": "spanId", "children": [ { "kind": "TypeNominal", - "name": "SentryFeedbackAPI", - "printedName": "Sentry.SentryFeedbackAPI", - "usr": "c:objc(cs)SentryFeedbackAPI" + "name": "SpanId", + "printedName": "Sentry.SpanId", + "usr": "c:objc(cs)SentrySpanId" } ], - "declKind": "Constructor", - "usr": "c:objc(cs)NSObject(im)init", + "declKind": "Var", + "usr": "c:objc(cs)SentrySpanContext(py)spanId", "moduleName": "Sentry", - "overriding": true, - "implicit": true, - "objc_name": "init", + "isOpen": true, + "objc_name": "spanId", "declAttributes": [ - "Override", "ObjC", "Dynamic" ], - "init_kind": "Designated" - } - ], - "declKind": "Class", - "usr": "c:objc(cs)SentryFeedbackAPI", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "SentryFeedbackAPI", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "superclassUsr": "c:objc(cs)NSObject", - "inheritsConvenienceInitializers": true, - "superclassNames": [ - "ObjectiveC.NSObject" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - } - ] - }, - { - "kind": "TypeDecl", - "name": "SentryFeedbackSource", - "printedName": "SentryFeedbackSource", - "children": [ - { - "kind": "Constructor", - "name": "init", - "printedName": "init(rawValue:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryFeedbackSource?", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryFeedbackSource", - "printedName": "Sentry.SentryFeedbackSource", - "usr": "c:@M@Sentry@E@SentryFeedbackSource" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Constructor", - "usr": "s:So20SentryFeedbackSourceV8rawValueABSgSi_tcfc", - "mangledName": "$sSo20SentryFeedbackSourceV8rawValueABSgSi_tcfc", - "moduleName": "Sentry", - "implicit": true, - "init_kind": "Designated" - }, - { - "kind": "Var", - "name": "rawValue", - "printedName": "rawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Var", - "usr": "s:So20SentryFeedbackSourceV8rawValueSivp", - "mangledName": "$sSo20SentryFeedbackSourceV8rawValueSivp", - "moduleName": "Sentry", - "implicit": true, "accessors": [ { "kind": "Accessor", @@ -26127,219 +25993,106 @@ "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "SpanId", + "printedName": "Sentry.SpanId", + "usr": "c:objc(cs)SentrySpanId" } ], "declKind": "Accessor", - "usr": "s:So20SentryFeedbackSourceV8rawValueSivg", - "mangledName": "$sSo20SentryFeedbackSourceV8rawValueSivg", + "usr": "c:objc(cs)SentrySpanContext(im)spanId", "moduleName": "Sentry", - "implicit": true, + "isOpen": true, + "objc_name": "spanId", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], "accessorKind": "get" } ] }, - { - "kind": "TypeAlias", - "name": "RawValue", - "printedName": "RawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "TypeAlias", - "usr": "s:So20SentryFeedbackSourceV8RawValuea", - "mangledName": "$sSo20SentryFeedbackSourceV8RawValuea", - "moduleName": "Sentry", - "implicit": true - }, { "kind": "Var", - "name": "widget", - "printedName": "widget", + "name": "parentSpanId", + "printedName": "parentSpanId", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryFeedbackSource.Type) -> Sentry.SentryFeedbackSource", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SpanId?", "children": [ { "kind": "TypeNominal", - "name": "SentryFeedbackSource", - "printedName": "Sentry.SentryFeedbackSource", - "usr": "c:@M@Sentry@E@SentryFeedbackSource" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryFeedbackSource.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryFeedbackSource", - "printedName": "Sentry.SentryFeedbackSource", - "usr": "c:@M@Sentry@E@SentryFeedbackSource" - } - ] + "name": "SpanId", + "printedName": "Sentry.SpanId", + "usr": "c:objc(cs)SentrySpanId" } - ] + ], + "usr": "s:Sq" } ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryFeedbackSource@SentryFeedbackSourceWidget", + "declKind": "Var", + "usr": "c:objc(cs)SentrySpanContext(py)parentSpanId", "moduleName": "Sentry", + "isOpen": true, + "objc_name": "parentSpanId", "declAttributes": [ - "ObjC" - ] - }, - { - "kind": "Var", - "name": "custom", - "printedName": "custom", - "children": [ + "ObjC", + "Dynamic" + ], + "accessors": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryFeedbackSource.Type) -> Sentry.SentryFeedbackSource", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "SentryFeedbackSource", - "printedName": "Sentry.SentryFeedbackSource", - "usr": "c:@M@Sentry@E@SentryFeedbackSource" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryFeedbackSource.Type", + "name": "Optional", + "printedName": "Sentry.SpanId?", "children": [ { "kind": "TypeNominal", - "name": "SentryFeedbackSource", - "printedName": "Sentry.SentryFeedbackSource", - "usr": "c:@M@Sentry@E@SentryFeedbackSource" + "name": "SpanId", + "printedName": "Sentry.SpanId", + "usr": "c:objc(cs)SentrySpanId" } - ] + ], + "usr": "s:Sq" } - ] + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentrySpanContext(im)parentSpanId", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "parentSpanId", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "accessorKind": "get" } - ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryFeedbackSource@SentryFeedbackSourceCustom", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" ] - } - ], - "declKind": "Enum", - "usr": "c:@M@Sentry@E@SentryFeedbackSource", - "moduleName": "Sentry", - "objc_name": "SentryFeedbackSource", - "declAttributes": [ - "SynthesizedProtocol", - "ObjC", - "SynthesizedProtocol", - "Sendable", - "Dynamic" - ], - "enumRawTypeName": "Int", - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "RawRepresentable", - "printedName": "RawRepresentable", - "children": [ - { - "kind": "TypeWitness", - "name": "RawValue", - "printedName": "RawValue", - "children": [ - { - "kind": "TypeNameAlias", - "name": "RawValue", - "printedName": "Sentry.SentryFeedbackSource.RawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ] - } - ] - } - ], - "usr": "s:SY", - "mangledName": "$sSY" - }, - { - "kind": "Conformance", - "name": "Sendable", - "printedName": "Sendable", - "usr": "s:s8SendableP", - "mangledName": "$ss8SendableP" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - } - ] - }, - { - "kind": "TypeDecl", - "name": "SentryId", - "printedName": "SentryId", - "children": [ { "kind": "Var", - "name": "empty", - "printedName": "empty", + "name": "sampled", + "printedName": "sampled", "children": [ { "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" + "name": "SentrySampleDecision", + "printedName": "Sentry.SentrySampleDecision", + "usr": "c:@E@SentrySampleDecision" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryId(cpy)empty", + "usr": "c:objc(cs)SentrySpanContext(py)sampled", "moduleName": "Sentry", - "static": true, "isOpen": true, - "objc_name": "empty", + "objc_name": "sampled", "declAttributes": [ "ObjC", "Dynamic" @@ -26352,18 +26105,18 @@ "children": [ { "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" + "name": "SentrySampleDecision", + "printedName": "Sentry.SentrySampleDecision", + "usr": "c:@E@SentrySampleDecision" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryId(cm)empty", + "usr": "c:objc(cs)SentrySpanContext(im)sampled", "moduleName": "Sentry", - "static": true, "isOpen": true, - "objc_name": "empty", + "objc_name": "sampled", "declAttributes": [ + "DiscardableResult", "ObjC", "Dynamic" ], @@ -26373,8 +26126,8 @@ }, { "kind": "Var", - "name": "sentryIdString", - "printedName": "sentryIdString", + "name": "operation", + "printedName": "operation", "children": [ { "kind": "TypeNominal", @@ -26384,10 +26137,10 @@ } ], "declKind": "Var", - "usr": "c:objc(cs)SentryId(py)sentryIdString", + "usr": "c:objc(cs)SentrySpanContext(py)operation", "moduleName": "Sentry", "isOpen": true, - "objc_name": "sentryIdString", + "objc_name": "operation", "declAttributes": [ "ObjC", "Dynamic" @@ -26406,10 +26159,10 @@ } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryId(im)sentryIdString", + "usr": "c:objc(cs)SentrySpanContext(im)operation", "moduleName": "Sentry", "isOpen": true, - "objc_name": "sentryIdString", + "objc_name": "operation", "declAttributes": [ "DiscardableResult", "ObjC", @@ -26420,68 +26173,163 @@ ] }, { - "kind": "Constructor", - "name": "init", - "printedName": "init()", + "kind": "Var", + "name": "spanDescription", + "printedName": "spanDescription", "children": [ { "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" } ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentryId(im)init", + "declKind": "Var", + "usr": "c:objc(cs)SentrySpanContext(py)spanDescription", "moduleName": "Sentry", - "overriding": true, - "objc_name": "init", + "isOpen": true, + "objc_name": "spanDescription", "declAttributes": [ - "Override", "ObjC", "Dynamic" ], - "init_kind": "Designated" + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentrySpanContext(im)spanDescription", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "spanDescription", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "accessorKind": "get" + } + ] }, { - "kind": "Constructor", - "name": "init", - "printedName": "init(uuid:)", + "kind": "Var", + "name": "origin", + "printedName": "origin", "children": [ { "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, - { - "kind": "TypeNominal", - "name": "UUID", - "printedName": "Foundation.UUID", - "usr": "s:10Foundation4UUIDV" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentryId(im)initWithUuid:", + "declKind": "Var", + "usr": "c:objc(cs)SentrySpanContext(py)origin", "moduleName": "Sentry", - "objc_name": "initWithUuid:", + "isOpen": true, + "objc_name": "origin", "declAttributes": [ "ObjC", "Dynamic" ], - "init_kind": "Designated" - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(uuidString:)", - "children": [ + "accessors": [ { - "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentrySpanContext(im)origin", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "origin", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentrySpanContext(im)setOrigin:", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "setOrigin:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessorKind": "set" + } + ] + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(operation:)", + "children": [ + { + "kind": "TypeNominal", + "name": "SpanContext", + "printedName": "Sentry.SpanContext", + "usr": "c:objc(cs)SentrySpanContext" + }, { "kind": "TypeNominal", "name": "String", @@ -26490,9 +26338,9 @@ } ], "declKind": "Constructor", - "usr": "c:objc(cs)SentryId(im)initWithUUIDString:", + "usr": "c:objc(cs)SentrySpanContext(im)initWithOperation:", "moduleName": "Sentry", - "objc_name": "initWithUUIDString:", + "objc_name": "initWithOperation:", "declAttributes": [ "ObjC", "Dynamic" @@ -26500,49 +26348,179 @@ "init_kind": "Designated" }, { - "kind": "Function", - "name": "isEqual", - "printedName": "isEqual(_:)", + "kind": "Constructor", + "name": "init", + "printedName": "init(operation:sampled:)", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "SpanContext", + "printedName": "Sentry.SpanContext", + "usr": "c:objc(cs)SentrySpanContext" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "SentrySampleDecision", + "printedName": "Sentry.SentrySampleDecision", + "usr": "c:@E@SentrySampleDecision" + } + ], + "declKind": "Constructor", + "usr": "c:objc(cs)SentrySpanContext(im)initWithOperation:sampled:", + "moduleName": "Sentry", + "objc_name": "initWithOperation:sampled:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "init_kind": "Designated" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(trace:spanId:parentId:operation:sampled:)", + "children": [ + { + "kind": "TypeNominal", + "name": "SpanContext", + "printedName": "Sentry.SpanContext", + "usr": "c:objc(cs)SentrySpanContext" + }, + { + "kind": "TypeNominal", + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" + }, + { + "kind": "TypeNominal", + "name": "SpanId", + "printedName": "Sentry.SpanId", + "usr": "c:objc(cs)SentrySpanId" }, { "kind": "TypeNominal", "name": "Optional", - "printedName": "Any?", + "printedName": "Sentry.SpanId?", "children": [ { "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" + "name": "SpanId", + "printedName": "Sentry.SpanId", + "usr": "c:objc(cs)SentrySpanId" } ], "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "SentrySampleDecision", + "printedName": "Sentry.SentrySampleDecision", + "usr": "c:@E@SentrySampleDecision" } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryId(im)isEqual:", + "declKind": "Constructor", + "usr": "c:objc(cs)SentrySpanContext(im)initWithTraceId:spanId:parentId:operation:sampled:", "moduleName": "Sentry", - "overriding": true, - "isOpen": true, - "objc_name": "isEqual:", + "objc_name": "initWithTraceId:spanId:parentId:operation:sampled:", "declAttributes": [ - "Override", "ObjC", "Dynamic" ], - "funcSelfKind": "NonMutating" + "init_kind": "Designated" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(trace:spanId:parentId:operation:spanDescription:sampled:)", + "children": [ + { + "kind": "TypeNominal", + "name": "SpanContext", + "printedName": "Sentry.SpanContext", + "usr": "c:objc(cs)SentrySpanContext" + }, + { + "kind": "TypeNominal", + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" + }, + { + "kind": "TypeNominal", + "name": "SpanId", + "printedName": "Sentry.SpanId", + "usr": "c:objc(cs)SentrySpanId" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SpanId?", + "children": [ + { + "kind": "TypeNominal", + "name": "SpanId", + "printedName": "Sentry.SpanId", + "usr": "c:objc(cs)SentrySpanId" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "SentrySampleDecision", + "printedName": "Sentry.SentrySampleDecision", + "usr": "c:@E@SentrySampleDecision" + } + ], + "declKind": "Constructor", + "usr": "c:objc(cs)SentrySpanContext(im)initWithTraceId:spanId:parentId:operation:spanDescription:sampled:", + "moduleName": "Sentry", + "objc_name": "initWithTraceId:spanId:parentId:operation:spanDescription:sampled:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "init_kind": "Designated" } ], "declKind": "Class", - "usr": "c:objc(cs)SentryId", + "usr": "c:objc(cs)SentrySpanContext", "moduleName": "Sentry", "isOpen": true, - "objc_name": "SentryId", + "objc_name": "SentrySpanContext", "declAttributes": [ "ObjC", "Dynamic" @@ -26553,6 +26531,12 @@ "ObjectiveC.NSObject" ], "conformances": [ + { + "kind": "Conformance", + "name": "SentrySerializable", + "printedName": "SentrySerializable", + "usr": "c:objc(pl)SentrySerializable" + }, { "kind": "Conformance", "name": "Copyable", @@ -26612,19 +26596,71 @@ }, { "kind": "TypeDecl", - "name": "SentryMessage", - "printedName": "SentryMessage", + "name": "SpanId", + "printedName": "SpanId", "children": [ { "kind": "Constructor", "name": "init", - "printedName": "init(formatted:)", + "printedName": "init()", "children": [ { "kind": "TypeNominal", - "name": "SentryMessage", - "printedName": "Sentry.SentryMessage", - "usr": "c:objc(cs)SentryMessage" + "name": "SpanId", + "printedName": "Sentry.SpanId", + "usr": "c:objc(cs)SentrySpanId" + } + ], + "declKind": "Constructor", + "usr": "c:objc(cs)SentrySpanId(im)init", + "moduleName": "Sentry", + "overriding": true, + "objc_name": "init", + "declAttributes": [ + "Override", + "ObjC", + "Dynamic" + ], + "init_kind": "Designated" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(uuid:)", + "children": [ + { + "kind": "TypeNominal", + "name": "SpanId", + "printedName": "Sentry.SpanId", + "usr": "c:objc(cs)SentrySpanId" + }, + { + "kind": "TypeNominal", + "name": "UUID", + "printedName": "Foundation.UUID", + "usr": "s:10Foundation4UUIDV" + } + ], + "declKind": "Constructor", + "usr": "c:objc(cs)SentrySpanId(im)initWithUUID:", + "moduleName": "Sentry", + "objc_name": "initWithUUID:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "init_kind": "Designated" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(value:)", + "children": [ + { + "kind": "TypeNominal", + "name": "SpanId", + "printedName": "Sentry.SpanId", + "usr": "c:objc(cs)SentrySpanId" }, { "kind": "TypeNominal", @@ -26634,9 +26670,9 @@ } ], "declKind": "Constructor", - "usr": "c:objc(cs)SentryMessage(im)initWithFormatted:", + "usr": "c:objc(cs)SentrySpanId(im)initWithValue:", "moduleName": "Sentry", - "objc_name": "initWithFormatted:", + "objc_name": "initWithValue:", "declAttributes": [ "ObjC", "Dynamic" @@ -26645,8 +26681,8 @@ }, { "kind": "Var", - "name": "formatted", - "printedName": "formatted", + "name": "sentrySpanIdString", + "printedName": "sentrySpanIdString", "children": [ { "kind": "TypeNominal", @@ -26656,10 +26692,10 @@ } ], "declKind": "Var", - "usr": "c:objc(cs)SentryMessage(py)formatted", + "usr": "c:objc(cs)SentrySpanId(py)sentrySpanIdString", "moduleName": "Sentry", "isOpen": true, - "objc_name": "formatted", + "objc_name": "sentrySpanIdString", "declAttributes": [ "ObjC", "Dynamic" @@ -26678,10 +26714,10 @@ } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryMessage(im)formatted", + "usr": "c:objc(cs)SentrySpanId(im)sentrySpanIdString", "moduleName": "Sentry", "isOpen": true, - "objc_name": "formatted", + "objc_name": "sentrySpanIdString", "declAttributes": [ "DiscardableResult", "ObjC", @@ -26693,29 +26729,22 @@ }, { "kind": "Var", - "name": "message", - "printedName": "message", + "name": "empty", + "printedName": "empty", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" + "name": "SpanId", + "printedName": "Sentry.SpanId", + "usr": "c:objc(cs)SentrySpanId" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryMessage(py)message", + "usr": "c:objc(cs)SentrySpanId(cpy)empty", "moduleName": "Sentry", + "static": true, "isOpen": true, - "objc_name": "message", + "objc_name": "empty", "declAttributes": [ "ObjC", "Dynamic" @@ -26728,109 +26757,231 @@ "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" + "name": "SpanId", + "printedName": "Sentry.SpanId", + "usr": "c:objc(cs)SentrySpanId" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryMessage(im)message", + "usr": "c:objc(cs)SentrySpanId(cm)empty", "moduleName": "Sentry", + "static": true, "isOpen": true, - "objc_name": "message", + "objc_name": "empty", "declAttributes": [ "DiscardableResult", "ObjC", "Dynamic" ], "accessorKind": "get" - }, + } + ] + } + ], + "declKind": "Class", + "usr": "c:objc(cs)SentrySpanId", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "SentrySpanId", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "superclassUsr": "c:objc(cs)NSObject", + "inheritsConvenienceInitializers": true, + "superclassNames": [ + "ObjectiveC.NSObject" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "NSCopying", + "printedName": "NSCopying", + "usr": "c:objc(pl)NSCopying" + }, + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" + }, + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" + }, + { + "kind": "Conformance", + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "TraceContext", + "printedName": "TraceContext", + "children": [ + { + "kind": "Var", + "name": "traceId", + "printedName": "traceId", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" + } + ], + "declKind": "Var", + "usr": "c:objc(cs)SentryTraceContext(py)traceId", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "traceId", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessors": [ { "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "name": "Get", + "printedName": "Get()", "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryMessage(im)setMessage:", + "usr": "c:objc(cs)SentryTraceContext(im)traceId", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setMessage:", + "objc_name": "traceId", "declAttributes": [ + "DiscardableResult", "ObjC", "Dynamic" ], - "accessorKind": "set" + "accessorKind": "get" } ] }, { "kind": "Var", - "name": "params", - "printedName": "params", + "name": "publicKey", + "printedName": "publicKey", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:objc(cs)SentryTraceContext(py)publicKey", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "publicKey", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryTraceContext(im)publicKey", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "publicKey", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "accessorKind": "get" + } + ] + }, + { + "kind": "Var", + "name": "releaseName", + "printedName": "releaseName", "children": [ { "kind": "TypeNominal", "name": "Optional", - "printedName": "[Swift.String]?", + "printedName": "Swift.String?", "children": [ { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.String]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sa" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryMessage(py)params", + "usr": "c:objc(cs)SentryTraceContext(py)releaseName", "moduleName": "Sentry", "isOpen": true, - "objc_name": "params", + "objc_name": "releaseName", "declAttributes": [ "ObjC", "Dynamic" @@ -26844,192 +26995,121 @@ { "kind": "TypeNominal", "name": "Optional", - "printedName": "[Swift.String]?", + "printedName": "Swift.String?", "children": [ { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.String]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sa" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryMessage(im)params", + "usr": "c:objc(cs)SentryTraceContext(im)releaseName", "moduleName": "Sentry", "isOpen": true, - "objc_name": "params", + "objc_name": "releaseName", "declAttributes": [ "DiscardableResult", "ObjC", "Dynamic" ], "accessorKind": "get" - }, + } + ] + }, + { + "kind": "Var", + "name": "environment", + "printedName": "environment", + "children": [ { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Var", + "usr": "c:objc(cs)SentryTraceContext(py)environment", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "environment", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ { "kind": "TypeNominal", "name": "Optional", - "printedName": "[Swift.String]?", + "printedName": "Swift.String?", "children": [ { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.String]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sa" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryMessage(im)setParams:", + "usr": "c:objc(cs)SentryTraceContext(im)environment", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setParams:", + "objc_name": "environment", "declAttributes": [ + "DiscardableResult", "ObjC", "Dynamic" ], - "accessorKind": "set" + "accessorKind": "get" } ] - } - ], - "declKind": "Class", - "usr": "c:objc(cs)SentryMessage", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "SentryMessage", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "superclassUsr": "c:objc(cs)NSObject", - "inheritsConvenienceInitializers": true, - "superclassNames": [ - "ObjectiveC.NSObject" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "SentrySerializable", - "printedName": "SentrySerializable", - "usr": "c:objc(pl)SentrySerializable" - }, - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - } - ] - }, - { - "kind": "TypeDecl", - "name": "SentryNSError", - "printedName": "SentryNSError", - "children": [ { "kind": "Var", - "name": "domain", - "printedName": "domain", + "name": "transaction", + "printedName": "transaction", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryNSError(py)domain", + "usr": "c:objc(cs)SentryTraceContext(py)transaction", "moduleName": "Sentry", "isOpen": true, - "objc_name": "domain", + "objc_name": "transaction", "declAttributes": [ "ObjC", "Dynamic" @@ -27042,77 +27122,122 @@ "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryNSError(im)domain", + "usr": "c:objc(cs)SentryTraceContext(im)transaction", "moduleName": "Sentry", "isOpen": true, - "objc_name": "domain", + "objc_name": "transaction", "declAttributes": [ "DiscardableResult", "ObjC", "Dynamic" ], "accessorKind": "get" - }, + } + ] + }, + { + "kind": "Var", + "name": "sampleRate", + "printedName": "sampleRate", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Var", + "usr": "c:objc(cs)SentryTraceContext(py)sampleRate", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "sampleRate", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessors": [ { "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "name": "Get", + "printedName": "Get()", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } - ] - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryNSError(im)setDomain:", + "usr": "c:objc(cs)SentryTraceContext(im)sampleRate", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setDomain:", + "objc_name": "sampleRate", "declAttributes": [ + "DiscardableResult", "ObjC", "Dynamic" ], - "accessorKind": "set" + "accessorKind": "get" } ] }, { "kind": "Var", - "name": "code", - "printedName": "code", + "name": "sampleRand", + "printedName": "sampleRand", "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryNSError(py)code", + "usr": "c:objc(cs)SentryTraceContext(py)sampleRand", "moduleName": "Sentry", "isOpen": true, - "objc_name": "code", + "objc_name": "sampleRand", "declAttributes": [ "ObjC", "Dynamic" @@ -27125,102 +27250,218 @@ "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryNSError(im)code", + "usr": "c:objc(cs)SentryTraceContext(im)sampleRand", "moduleName": "Sentry", "isOpen": true, - "objc_name": "code", + "objc_name": "sampleRand", "declAttributes": [ "DiscardableResult", "ObjC", "Dynamic" ], "accessorKind": "get" - }, + } + ] + }, + { + "kind": "Var", + "name": "sampled", + "printedName": "sampled", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Var", + "usr": "c:objc(cs)SentryTraceContext(py)sampled", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "sampled", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessors": [ { "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "name": "Get", + "printedName": "Get()", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } - ] - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryNSError(im)setCode:", + "usr": "c:objc(cs)SentryTraceContext(im)sampled", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setCode:", + "objc_name": "sampled", "declAttributes": [ + "DiscardableResult", "ObjC", "Dynamic" ], - "accessorKind": "set" + "accessorKind": "get" } ] }, { - "kind": "Constructor", - "name": "init", - "printedName": "init(domain:code:)", + "kind": "Var", + "name": "replayId", + "printedName": "replayId", "children": [ { "kind": "TypeNominal", - "name": "SentryNSError", - "printedName": "Sentry.SentryNSError", - "usr": "c:objc(cs)SentryNSError" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" } ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentryNSError(im)initWithDomain:code:", + "declKind": "Var", + "usr": "c:objc(cs)SentryTraceContext(py)replayId", "moduleName": "Sentry", - "objc_name": "initWithDomain:code:", + "isOpen": true, + "objc_name": "replayId", "declAttributes": [ "ObjC", "Dynamic" ], - "init_kind": "Designated" - } - ], - "declKind": "Class", - "usr": "c:objc(cs)SentryNSError", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "SentryNSError", - "declAttributes": [ - "ObjC", + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryTraceContext(im)replayId", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "replayId", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "accessorKind": "get" + } + ] + }, + { + "kind": "Function", + "name": "toBaggage", + "printedName": "toBaggage()", + "children": [ + { + "kind": "TypeNominal", + "name": "Baggage", + "printedName": "Sentry.Baggage", + "usr": "c:objc(cs)SentryBaggage" + } + ], + "declKind": "Func", + "usr": "c:objc(cs)SentryTraceContext(im)toBaggage", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "toBaggage", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init()", + "children": [ + { + "kind": "TypeNominal", + "name": "TraceContext", + "printedName": "Sentry.TraceContext", + "usr": "c:objc(cs)SentryTraceContext" + } + ], + "declKind": "Constructor", + "usr": "c:objc(cs)NSObject(im)init", + "moduleName": "Sentry", + "overriding": true, + "implicit": true, + "objc_name": "init", + "declAttributes": [ + "Override", + "ObjC", + "Dynamic" + ], + "init_kind": "Designated" + } + ], + "declKind": "Class", + "usr": "c:objc(cs)SentryTraceContext", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "SentryTraceContext", + "declAttributes": [ + "ObjC", "Dynamic" ], "superclassUsr": "c:objc(cs)NSObject", @@ -27293,95 +27534,79 @@ ] }, { - "kind": "TypeAlias", - "name": "SentryOnCrashedLastRunCallback", - "printedName": "SentryOnCrashedLastRunCallback", + "kind": "TypeDecl", + "name": "TraceHeader", + "printedName": "TraceHeader", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Event) -> Swift.Void", + "kind": "Var", + "name": "traceId", + "printedName": "traceId", "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, { "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" } - ] - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@SentryOnCrashedLastRunCallback", - "moduleName": "Sentry" - }, - { - "kind": "TypeDecl", - "name": "SentryProfileLifecycle", - "printedName": "SentryProfileLifecycle", - "children": [ - { - "kind": "Constructor", - "name": "init", - "printedName": "init(rawValue:)", - "children": [ + ], + "declKind": "Var", + "usr": "c:objc(cs)SentryTraceHeader(py)traceId", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "traceId", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessors": [ { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryProfileLifecycle?", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "SentryProfileLifecycle", - "printedName": "Sentry.SentryProfileLifecycle", - "usr": "c:@M@Sentry@E@SentryProfileLifecycle" + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" } ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "declKind": "Accessor", + "usr": "c:objc(cs)SentryTraceHeader(im)traceId", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "traceId", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "accessorKind": "get" } - ], - "declKind": "Constructor", - "usr": "s:So22SentryProfileLifecycleV8rawValueABSgSi_tcfc", - "mangledName": "$sSo22SentryProfileLifecycleV8rawValueABSgSi_tcfc", - "moduleName": "Sentry", - "implicit": true, - "init_kind": "Designated" + ] }, { "kind": "Var", - "name": "rawValue", - "printedName": "rawValue", + "name": "spanId", + "printedName": "spanId", "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "SpanId", + "printedName": "Sentry.SpanId", + "usr": "c:objc(cs)SentrySpanId" } ], "declKind": "Var", - "usr": "s:So22SentryProfileLifecycleV8rawValueSivp", - "mangledName": "$sSo22SentryProfileLifecycleV8rawValueSivp", + "usr": "c:objc(cs)SentryTraceHeader(py)spanId", "moduleName": "Sentry", - "implicit": true, + "isOpen": true, + "objc_name": "spanId", + "declAttributes": [ + "ObjC", + "Dynamic" + ], "accessors": [ { "kind": "Accessor", @@ -27390,129 +27615,152 @@ "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "SpanId", + "printedName": "Sentry.SpanId", + "usr": "c:objc(cs)SentrySpanId" } ], "declKind": "Accessor", - "usr": "s:So22SentryProfileLifecycleV8rawValueSivg", - "mangledName": "$sSo22SentryProfileLifecycleV8rawValueSivg", + "usr": "c:objc(cs)SentryTraceHeader(im)spanId", "moduleName": "Sentry", - "implicit": true, + "isOpen": true, + "objc_name": "spanId", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], "accessorKind": "get" } ] }, { - "kind": "TypeAlias", - "name": "RawValue", - "printedName": "RawValue", + "kind": "Var", + "name": "sampled", + "printedName": "sampled", "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "SentrySampleDecision", + "printedName": "Sentry.SentrySampleDecision", + "usr": "c:@E@SentrySampleDecision" } ], - "declKind": "TypeAlias", - "usr": "s:So22SentryProfileLifecycleV8RawValuea", - "mangledName": "$sSo22SentryProfileLifecycleV8RawValuea", + "declKind": "Var", + "usr": "c:objc(cs)SentryTraceHeader(py)sampled", "moduleName": "Sentry", - "implicit": true - }, - { - "kind": "Var", - "name": "manual", - "printedName": "manual", - "children": [ + "isOpen": true, + "objc_name": "sampled", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessors": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryProfileLifecycle.Type) -> Sentry.SentryProfileLifecycle", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "SentryProfileLifecycle", - "printedName": "Sentry.SentryProfileLifecycle", - "usr": "c:@M@Sentry@E@SentryProfileLifecycle" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryProfileLifecycle.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryProfileLifecycle", - "printedName": "Sentry.SentryProfileLifecycle", - "usr": "c:@M@Sentry@E@SentryProfileLifecycle" - } - ] + "name": "SentrySampleDecision", + "printedName": "Sentry.SentrySampleDecision", + "usr": "c:@E@SentrySampleDecision" } - ] + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryTraceHeader(im)sampled", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "sampled", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "accessorKind": "get" + } + ] + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(trace:spanId:sampled:)", + "children": [ + { + "kind": "TypeNominal", + "name": "TraceHeader", + "printedName": "Sentry.TraceHeader", + "usr": "c:objc(cs)SentryTraceHeader" + }, + { + "kind": "TypeNominal", + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" + }, + { + "kind": "TypeNominal", + "name": "SpanId", + "printedName": "Sentry.SpanId", + "usr": "c:objc(cs)SentrySpanId" + }, + { + "kind": "TypeNominal", + "name": "SentrySampleDecision", + "printedName": "Sentry.SentrySampleDecision", + "usr": "c:@E@SentrySampleDecision" } ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryProfileLifecycle@SentryProfileLifecycleManual", + "declKind": "Constructor", + "usr": "c:objc(cs)SentryTraceHeader(im)initWithTraceId:spanId:sampled:", "moduleName": "Sentry", + "objc_name": "initWithTraceId:spanId:sampled:", "declAttributes": [ - "ObjC" - ] + "ObjC", + "Dynamic" + ], + "init_kind": "Designated" }, { - "kind": "Var", - "name": "trace", - "printedName": "trace", + "kind": "Function", + "name": "value", + "printedName": "value()", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryProfileLifecycle.Type) -> Sentry.SentryProfileLifecycle", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryProfileLifecycle", - "printedName": "Sentry.SentryProfileLifecycle", - "usr": "c:@M@Sentry@E@SentryProfileLifecycle" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryProfileLifecycle.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryProfileLifecycle", - "printedName": "Sentry.SentryProfileLifecycle", - "usr": "c:@M@Sentry@E@SentryProfileLifecycle" - } - ] - } - ] + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryProfileLifecycle@SentryProfileLifecycleTrace", + "declKind": "Func", + "usr": "c:objc(cs)SentryTraceHeader(im)value", "moduleName": "Sentry", + "isOpen": true, + "objc_name": "value", "declAttributes": [ - "ObjC" - ] + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "funcSelfKind": "NonMutating" } ], - "declKind": "Enum", - "usr": "c:@M@Sentry@E@SentryProfileLifecycle", + "declKind": "Class", + "usr": "c:objc(cs)SentryTraceHeader", "moduleName": "Sentry", - "objc_name": "SentryProfileLifecycle", + "isOpen": true, + "objc_name": "SentryTraceHeader", "declAttributes": [ - "SynthesizedProtocol", "ObjC", - "SynthesizedProtocol", - "Sendable", "Dynamic" ], - "enumRawTypeName": "Int", + "superclassUsr": "c:objc(cs)NSObject", + "inheritsConvenienceInitializers": true, + "superclassNames": [ + "ObjectiveC.NSObject" + ], "conformances": [ { "kind": "Conformance", @@ -27530,39 +27778,9 @@ }, { "kind": "Conformance", - "name": "RawRepresentable", - "printedName": "RawRepresentable", - "children": [ - { - "kind": "TypeWitness", - "name": "RawValue", - "printedName": "RawValue", - "children": [ - { - "kind": "TypeNameAlias", - "name": "RawValue", - "printedName": "Sentry.SentryProfileLifecycle.RawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ] - } - ] - } - ], - "usr": "s:SY", - "mangledName": "$sSY" - }, - { - "kind": "Conformance", - "name": "Sendable", - "printedName": "Sendable", - "usr": "s:s8SendableP", - "mangledName": "$ss8SendableP" + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" }, { "kind": "Conformance", @@ -27577,482 +27795,458 @@ "printedName": "Hashable", "usr": "s:SH", "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" + }, + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" + }, + { + "kind": "Conformance", + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" } ] }, { - "kind": "TypeAlias", - "name": "SentryProfilingConfigurationBlock", - "printedName": "SentryProfilingConfigurationBlock", + "kind": "TypeDecl", + "name": "TransactionContext", + "printedName": "TransactionContext", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryProfileOptions) -> Swift.Void", + "kind": "Var", + "name": "name", + "printedName": "name", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:objc(cs)SentryTransactionContext(py)name", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "name", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } - ] - }, - { - "kind": "TypeNominal", - "name": "SentryProfileOptions", - "printedName": "Sentry.SentryProfileOptions", - "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions" + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryTransactionContext(im)name", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "name", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "accessorKind": "get" } ] - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@SentryProfilingConfigurationBlock", - "moduleName": "Sentry" - }, - { - "kind": "TypeDecl", - "name": "SentryReplayApi", - "printedName": "SentryReplayApi", - "children": [ + }, { - "kind": "Function", - "name": "maskView", - "printedName": "maskView(_:)", + "kind": "Var", + "name": "nameSource", + "printedName": "nameSource", "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, { "kind": "TypeNominal", - "name": "UIView", - "printedName": "UIKit.UIView", - "usr": "c:objc(cs)UIView" + "name": "SentryTransactionNameSource", + "printedName": "Sentry.SentryTransactionNameSource", + "usr": "c:@M@Sentry@E@SentryTransactionNameSource" } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryReplayApi(im)maskView:", + "declKind": "Var", + "usr": "c:objc(cs)SentryTransactionContext(py)nameSource", "moduleName": "Sentry", "isOpen": true, - "objc_name": "maskView:", + "objc_name": "nameSource", "declAttributes": [ "ObjC", "Dynamic" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "unmaskView", - "printedName": "unmaskView(_:)", - "children": [ + "accessors": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryTransactionNameSource", + "printedName": "Sentry.SentryTransactionNameSource", + "usr": "c:@M@Sentry@E@SentryTransactionNameSource" } - ] - }, - { - "kind": "TypeNominal", - "name": "UIView", - "printedName": "UIKit.UIView", - "usr": "c:objc(cs)UIView" + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryTransactionContext(im)nameSource", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "nameSource", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "accessorKind": "get" } - ], - "declKind": "Func", - "usr": "c:objc(cs)SentryReplayApi(im)unmaskView:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "unmaskView:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" + ] }, { - "kind": "Function", - "name": "pause", - "printedName": "pause()", + "kind": "Var", + "name": "sampleRate", + "printedName": "sampleRate", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.NSNumber?", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" } - ] + ], + "usr": "s:Sq" } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryReplayApi(im)pause", + "declKind": "Var", + "usr": "c:objc(cs)SentryTransactionContext(py)sampleRate", "moduleName": "Sentry", "isOpen": true, - "objc_name": "pause", + "objc_name": "sampleRate", "declAttributes": [ "ObjC", "Dynamic" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "resume", - "printedName": "resume()", - "children": [ + "accessors": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryTransactionContext(im)sampleRate", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "sampleRate", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNameAlias", "name": "Void", - "printedName": "()" + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" } - ] + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryTransactionContext(im)setSampleRate:", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "setSampleRate:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessorKind": "set" } - ], - "declKind": "Func", - "usr": "c:objc(cs)SentryReplayApi(im)resume", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "resume", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" + ] }, { - "kind": "Function", - "name": "start", - "printedName": "start()", + "kind": "Var", + "name": "sampleRand", + "printedName": "sampleRand", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.NSNumber?", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" } - ] + ], + "usr": "s:Sq" } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryReplayApi(im)start", + "declKind": "Var", + "usr": "c:objc(cs)SentryTransactionContext(py)sampleRand", "moduleName": "Sentry", "isOpen": true, - "objc_name": "start", + "objc_name": "sampleRand", "declAttributes": [ "ObjC", "Dynamic" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "stop", - "printedName": "stop()", - "children": [ + "accessors": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryTransactionContext(im)sampleRand", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "sampleRand", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNameAlias", "name": "Void", - "printedName": "()" + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" } - ] + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryTransactionContext(im)setSampleRand:", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "setSampleRand:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessorKind": "set" } - ], - "declKind": "Func", - "usr": "c:objc(cs)SentryReplayApi(im)stop", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "stop", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" + ] }, { - "kind": "Function", - "name": "showMaskPreview", - "printedName": "showMaskPreview()", + "kind": "Var", + "name": "parentSampled", + "printedName": "parentSampled", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] + "kind": "TypeNominal", + "name": "SentrySampleDecision", + "printedName": "Sentry.SentrySampleDecision", + "usr": "c:@E@SentrySampleDecision" } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryReplayApi(im)showMaskPreview", + "declKind": "Var", + "usr": "c:objc(cs)SentryTransactionContext(py)parentSampled", "moduleName": "Sentry", "isOpen": true, - "objc_name": "showMaskPreview", + "objc_name": "parentSampled", "declAttributes": [ "ObjC", "Dynamic" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "showMaskPreview", - "printedName": "showMaskPreview(_:)", - "children": [ + "accessors": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentrySampleDecision", + "printedName": "Sentry.SentrySampleDecision", + "usr": "c:@E@SentrySampleDecision" } - ] + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryTransactionContext(im)parentSampled", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "parentSampled", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "accessorKind": "get" }, { - "kind": "TypeNominal", - "name": "CGFloat", - "printedName": "CoreGraphics.CGFloat", - "usr": "s:14CoreFoundation7CGFloatV" + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "SentrySampleDecision", + "printedName": "Sentry.SentrySampleDecision", + "usr": "c:@E@SentrySampleDecision" + } + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryTransactionContext(im)setParentSampled:", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "setParentSampled:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessorKind": "set" } - ], - "declKind": "Func", - "usr": "c:objc(cs)SentryReplayApi(im)showMaskPreview:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "showMaskPreview:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" + ] }, { - "kind": "Function", - "name": "hideMaskPreview", - "printedName": "hideMaskPreview()", + "kind": "Var", + "name": "parentSampleRate", + "printedName": "parentSampleRate", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.NSNumber?", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" } - ] + ], + "usr": "s:Sq" } ], - "declKind": "Func", - "usr": "c:objc(cs)SentryReplayApi(im)hideMaskPreview", + "declKind": "Var", + "usr": "c:objc(cs)SentryTransactionContext(py)parentSampleRate", "moduleName": "Sentry", "isOpen": true, - "objc_name": "hideMaskPreview", + "objc_name": "parentSampleRate", "declAttributes": [ "ObjC", "Dynamic" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init()", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryReplayApi", - "printedName": "Sentry.SentryReplayApi", - "usr": "c:objc(cs)SentryReplayApi" - } - ], - "declKind": "Constructor", - "usr": "c:objc(cs)NSObject(im)init", - "moduleName": "Sentry", - "overriding": true, - "implicit": true, - "objc_name": "init", - "declAttributes": [ - "Override", - "ObjC", - "Dynamic" - ], - "init_kind": "Designated" - } - ], - "declKind": "Class", - "usr": "c:objc(cs)SentryReplayApi", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "SentryReplayApi", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "superclassUsr": "c:objc(cs)NSObject", - "inheritsConvenienceInitializers": true, - "superclassNames": [ - "ObjectiveC.NSObject" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - } - ] - }, - { - "kind": "TypeDecl", - "name": "SentryReplayQuality", - "printedName": "SentryReplayQuality", - "children": [ - { - "kind": "Constructor", - "name": "init", - "printedName": "init(rawValue:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryReplayQuality?", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryReplayQuality", - "printedName": "Sentry.SentryReplayQuality", - "usr": "c:@M@Sentry@E@SentryReplayQuality" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Constructor", - "usr": "s:So19SentryReplayQualityV8rawValueABSgSi_tcfc", - "mangledName": "$sSo19SentryReplayQualityV8rawValueABSgSi_tcfc", - "moduleName": "Sentry", - "implicit": true, - "init_kind": "Designated" - }, - { - "kind": "Var", - "name": "rawValue", - "printedName": "rawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Var", - "usr": "s:So19SentryReplayQualityV8rawValueSivp", - "mangledName": "$sSo19SentryReplayQualityV8rawValueSivp", - "moduleName": "Sentry", - "implicit": true, - "accessors": [ + "accessors": [ { "kind": "Accessor", "name": "Get", @@ -28060,290 +28254,204 @@ "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "s:So19SentryReplayQualityV8rawValueSivg", - "mangledName": "$sSo19SentryReplayQualityV8rawValueSivg", + "usr": "c:objc(cs)SentryTransactionContext(im)parentSampleRate", "moduleName": "Sentry", - "implicit": true, + "isOpen": true, + "objc_name": "parentSampleRate", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], "accessorKind": "get" - } - ] - }, - { - "kind": "TypeAlias", - "name": "RawValue", - "printedName": "RawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "TypeAlias", - "usr": "s:So19SentryReplayQualityV8RawValuea", - "mangledName": "$sSo19SentryReplayQualityV8RawValuea", - "moduleName": "Sentry", - "implicit": true - }, - { - "kind": "Var", - "name": "low", - "printedName": "low", - "children": [ + }, { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryReplayQuality.Type) -> Sentry.SentryReplayQuality", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { - "kind": "TypeNominal", - "name": "SentryReplayQuality", - "printedName": "Sentry.SentryReplayQuality", - "usr": "c:@M@Sentry@E@SentryReplayQuality" + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] }, { "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryReplayQuality.Type", + "name": "Optional", + "printedName": "Foundation.NSNumber?", "children": [ { "kind": "TypeNominal", - "name": "SentryReplayQuality", - "printedName": "Sentry.SentryReplayQuality", - "usr": "c:@M@Sentry@E@SentryReplayQuality" + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" } - ] + ], + "usr": "s:Sq" } - ] + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryTransactionContext(im)setParentSampleRate:", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "setParentSampleRate:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessorKind": "set" } - ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryReplayQuality@SentryReplayQualityLow", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" ] }, { "kind": "Var", - "name": "medium", - "printedName": "medium", + "name": "parentSampleRand", + "printedName": "parentSampleRand", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryReplayQuality.Type) -> Sentry.SentryReplayQuality", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.NSNumber?", "children": [ { "kind": "TypeNominal", - "name": "SentryReplayQuality", - "printedName": "Sentry.SentryReplayQuality", - "usr": "c:@M@Sentry@E@SentryReplayQuality" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryReplayQuality.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryReplayQuality", - "printedName": "Sentry.SentryReplayQuality", - "usr": "c:@M@Sentry@E@SentryReplayQuality" - } - ] + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" } - ] + ], + "usr": "s:Sq" } ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryReplayQuality@SentryReplayQualityMedium", + "declKind": "Var", + "usr": "c:objc(cs)SentryTransactionContext(py)parentSampleRand", "moduleName": "Sentry", + "isOpen": true, + "objc_name": "parentSampleRand", "declAttributes": [ - "ObjC" - ] - }, - { - "kind": "Var", - "name": "high", - "printedName": "high", - "children": [ + "ObjC", + "Dynamic" + ], + "accessors": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryReplayQuality.Type) -> Sentry.SentryReplayQuality", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "SentryReplayQuality", - "printedName": "Sentry.SentryReplayQuality", - "usr": "c:@M@Sentry@E@SentryReplayQuality" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryReplayQuality.Type", + "name": "Optional", + "printedName": "Foundation.NSNumber?", "children": [ { "kind": "TypeNominal", - "name": "SentryReplayQuality", - "printedName": "Sentry.SentryReplayQuality", - "usr": "c:@M@Sentry@E@SentryReplayQuality" + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" } - ] + ], + "usr": "s:Sq" } - ] - } - ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryReplayQuality@SentryReplayQualityHigh", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - } - ], - "declKind": "Enum", - "usr": "c:@M@Sentry@E@SentryReplayQuality", - "moduleName": "Sentry", - "objc_name": "SentryReplayQuality", - "declAttributes": [ - "SynthesizedProtocol", - "ObjC", - "SynthesizedProtocol", - "Sendable", - "Dynamic" - ], - "enumRawTypeName": "Int", - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "RawRepresentable", - "printedName": "RawRepresentable", - "children": [ + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryTransactionContext(im)parentSampleRand", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "parentSampleRand", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "accessorKind": "get" + }, { - "kind": "TypeWitness", - "name": "RawValue", - "printedName": "RawValue", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { "kind": "TypeNameAlias", - "name": "RawValue", - "printedName": "Sentry.SentryReplayQuality.RawValue", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "Void", + "printedName": "()" } ] - } - ] - } - ], - "usr": "s:SY", - "mangledName": "$sSY" - }, - { - "kind": "Conformance", - "name": "Sendable", - "printedName": "Sendable", - "usr": "s:s8SendableP", - "mangledName": "$ss8SendableP" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - } - ] - }, - { - "kind": "TypeDecl", - "name": "SentryReplayType", - "printedName": "SentryReplayType", - "children": [ - { - "kind": "Constructor", - "name": "init", - "printedName": "init(rawValue:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryReplayType?", - "children": [ + }, { "kind": "TypeNominal", - "name": "SentryReplayType", - "printedName": "Sentry.SentryReplayType", - "usr": "c:@M@Sentry@E@SentryReplayType" + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" } ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "declKind": "Accessor", + "usr": "c:objc(cs)SentryTransactionContext(im)setParentSampleRand:", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "setParentSampleRand:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessorKind": "set" } - ], - "declKind": "Constructor", - "usr": "s:So16SentryReplayTypeV8rawValueABSgSi_tcfc", - "mangledName": "$sSo16SentryReplayTypeV8rawValueABSgSi_tcfc", - "moduleName": "Sentry", - "implicit": true, - "init_kind": "Designated" + ] }, { "kind": "Var", - "name": "rawValue", - "printedName": "rawValue", + "name": "forNextAppLaunch", + "printedName": "forNextAppLaunch", "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Var", - "usr": "s:So16SentryReplayTypeV8rawValueSivp", - "mangledName": "$sSo16SentryReplayTypeV8rawValueSivp", + "usr": "c:objc(cs)SentryTransactionContext(py)forNextAppLaunch", "moduleName": "Sentry", - "implicit": true, + "isOpen": true, + "objc_name": "forNextAppLaunch", + "declAttributes": [ + "ObjC", + "Dynamic" + ], "accessors": [ { "kind": "Accessor", @@ -28352,206 +28460,137 @@ "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Accessor", - "usr": "s:So16SentryReplayTypeV8rawValueSivg", - "mangledName": "$sSo16SentryReplayTypeV8rawValueSivg", + "usr": "c:objc(cs)SentryTransactionContext(im)forNextAppLaunch", "moduleName": "Sentry", - "implicit": true, + "isOpen": true, + "objc_name": "forNextAppLaunch", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], "accessorKind": "get" - } - ] - }, - { - "kind": "TypeAlias", - "name": "RawValue", - "printedName": "RawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "TypeAlias", - "usr": "s:So16SentryReplayTypeV8RawValuea", - "mangledName": "$sSo16SentryReplayTypeV8RawValuea", - "moduleName": "Sentry", - "implicit": true - }, - { - "kind": "Var", - "name": "session", - "printedName": "session", - "children": [ + }, { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryReplayType.Type) -> Sentry.SentryReplayType", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { - "kind": "TypeNominal", - "name": "SentryReplayType", - "printedName": "Sentry.SentryReplayType", - "usr": "c:@M@Sentry@E@SentryReplayType" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryReplayType.Type", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "SentryReplayType", - "printedName": "Sentry.SentryReplayType", - "usr": "c:@M@Sentry@E@SentryReplayType" + "name": "Void", + "printedName": "()" } ] + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } - ] + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryTransactionContext(im)setForNextAppLaunch:", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "setForNextAppLaunch:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessorKind": "set" } - ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryReplayType@SentryReplayTypeSession", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" ] }, { - "kind": "Var", - "name": "buffer", - "printedName": "buffer", + "kind": "Constructor", + "name": "init", + "printedName": "init(name:operation:)", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryReplayType.Type) -> Sentry.SentryReplayType", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryReplayType", - "printedName": "Sentry.SentryReplayType", - "usr": "c:@M@Sentry@E@SentryReplayType" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryReplayType.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryReplayType", - "printedName": "Sentry.SentryReplayType", - "usr": "c:@M@Sentry@E@SentryReplayType" - } - ] - } - ] + "kind": "TypeNominal", + "name": "TransactionContext", + "printedName": "Sentry.TransactionContext", + "usr": "c:objc(cs)SentryTransactionContext" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryReplayType@SentryReplayTypeBuffer", + "declKind": "Constructor", + "usr": "c:objc(cs)SentryTransactionContext(im)initWithName:operation:", "moduleName": "Sentry", + "objc_name": "initWithName:operation:", "declAttributes": [ - "ObjC" - ] - } - ], - "declKind": "Enum", - "usr": "c:@M@Sentry@E@SentryReplayType", - "moduleName": "Sentry", - "objc_name": "SentryReplayType", - "declAttributes": [ - "SynthesizedProtocol", - "ObjC", - "SynthesizedProtocol", - "Sendable", - "Dynamic" - ], - "enumRawTypeName": "Int", - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" + "ObjC", + "Dynamic" + ], + "init_kind": "Designated" }, { - "kind": "Conformance", - "name": "RawRepresentable", - "printedName": "RawRepresentable", + "kind": "Constructor", + "name": "init", + "printedName": "init(name:operation:sampled:sampleRate:sampleRand:)", "children": [ { - "kind": "TypeWitness", - "name": "RawValue", - "printedName": "RawValue", + "kind": "TypeNominal", + "name": "TransactionContext", + "printedName": "Sentry.TransactionContext", + "usr": "c:objc(cs)SentryTransactionContext" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "SentrySampleDecision", + "printedName": "Sentry.SentrySampleDecision", + "usr": "c:@E@SentrySampleDecision" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.NSNumber?", "children": [ { - "kind": "TypeNameAlias", - "name": "RawValue", - "printedName": "Sentry.SentryReplayType.RawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ] + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" } - ] - } - ], - "usr": "s:SY", - "mangledName": "$sSY" - }, - { - "kind": "Conformance", - "name": "Sendable", - "printedName": "Sendable", - "usr": "s:s8SendableP", - "mangledName": "$ss8SendableP" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - } - ] - }, - { - "kind": "TypeDecl", - "name": "SentryRequest", - "printedName": "SentryRequest", - "children": [ - { - "kind": "Var", - "name": "bodySize", - "printedName": "bodySize", - "children": [ + ], + "usr": "s:Sq" + }, { "kind": "TypeNominal", "name": "Optional", @@ -28567,284 +28606,458 @@ "usr": "s:Sq" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryRequest(py)bodySize", + "declKind": "Constructor", + "usr": "c:objc(cs)SentryTransactionContext(im)initWithName:operation:sampled:sampleRate:sampleRand:", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "bodySize", + "objc_name": "initWithName:operation:sampled:sampleRate:sampleRand:", "declAttributes": [ - "NSCopying", "ObjC", "Dynamic" ], - "accessors": [ + "init_kind": "Designated" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(name:operation:trace:spanId:parentSpanId:parentSampled:parentSampleRate:parentSampleRand:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNominal", + "name": "TransactionContext", + "printedName": "Sentry.TransactionContext", + "usr": "c:objc(cs)SentryTransactionContext" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" + }, + { + "kind": "TypeNominal", + "name": "SpanId", + "printedName": "Sentry.SpanId", + "usr": "c:objc(cs)SentrySpanId" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SpanId?", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" + "name": "SpanId", + "printedName": "Sentry.SpanId", + "usr": "c:objc(cs)SentrySpanId" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryRequest(im)bodySize", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "bodySize", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + "usr": "s:Sq" }, { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeNominal", + "name": "SentrySampleDecision", + "printedName": "Sentry.SentrySampleDecision", + "usr": "c:@E@SentrySampleDecision" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.NSNumber?", "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryRequest(im)setBodySize:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setBodySize:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" - } - ] - }, - { - "kind": "Var", - "name": "cookies", - "printedName": "cookies", - "children": [ + "usr": "s:Sq" + }, { "kind": "TypeNominal", "name": "Optional", - "printedName": "Swift.String?", + "printedName": "Foundation.NSNumber?", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" } ], "usr": "s:Sq" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryRequest(py)cookies", + "declKind": "Constructor", + "usr": "c:objc(cs)SentryTransactionContext(im)initWithName:operation:traceId:spanId:parentSpanId:parentSampled:parentSampleRate:parentSampleRand:", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "cookies", + "objc_name": "initWithName:operation:traceId:spanId:parentSpanId:parentSampled:parentSampleRate:parentSampleRand:", "declAttributes": [ "ObjC", "Dynamic" ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryRequest(im)cookies", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "cookies", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryRequest(im)setCookies:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setCookies:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" - } - ] + "init_kind": "Designated" }, { - "kind": "Var", - "name": "headers", - "printedName": "headers", + "kind": "Constructor", + "name": "init", + "printedName": "init(operation:)", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "[Swift.String : Swift.String]?", - "children": [ - { - "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Swift.String]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:SD" - } - ], - "usr": "s:Sq" + "name": "TransactionContext", + "printedName": "Sentry.TransactionContext", + "usr": "c:objc(cs)SentryTransactionContext" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryRequest(py)headers", + "declKind": "Constructor", + "usr": "c:objc(cs)SentrySpanContext(im)initWithOperation:", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "headers", + "overriding": true, + "implicit": true, + "objc_name": "initWithOperation:", "declAttributes": [ + "Override", "ObjC", "Dynamic" ], - "accessors": [ + "init_kind": "Designated" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(operation:sampled:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "[Swift.String : Swift.String]?", + "kind": "TypeNominal", + "name": "TransactionContext", + "printedName": "Sentry.TransactionContext", + "usr": "c:objc(cs)SentryTransactionContext" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "SentrySampleDecision", + "printedName": "Sentry.SentrySampleDecision", + "usr": "c:@E@SentrySampleDecision" + } + ], + "declKind": "Constructor", + "usr": "c:objc(cs)SentrySpanContext(im)initWithOperation:sampled:", + "moduleName": "Sentry", + "overriding": true, + "implicit": true, + "objc_name": "initWithOperation:sampled:", + "declAttributes": [ + "Override", + "ObjC", + "Dynamic" + ], + "init_kind": "Designated" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(trace:spanId:parentId:operation:sampled:)", + "children": [ + { + "kind": "TypeNominal", + "name": "TransactionContext", + "printedName": "Sentry.TransactionContext", + "usr": "c:objc(cs)SentryTransactionContext" + }, + { + "kind": "TypeNominal", + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" + }, + { + "kind": "TypeNominal", + "name": "SpanId", + "printedName": "Sentry.SpanId", + "usr": "c:objc(cs)SentrySpanId" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SpanId?", + "children": [ + { + "kind": "TypeNominal", + "name": "SpanId", + "printedName": "Sentry.SpanId", + "usr": "c:objc(cs)SentrySpanId" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "SentrySampleDecision", + "printedName": "Sentry.SentrySampleDecision", + "usr": "c:@E@SentrySampleDecision" + } + ], + "declKind": "Constructor", + "usr": "c:objc(cs)SentrySpanContext(im)initWithTraceId:spanId:parentId:operation:sampled:", + "moduleName": "Sentry", + "overriding": true, + "implicit": true, + "objc_name": "initWithTraceId:spanId:parentId:operation:sampled:", + "declAttributes": [ + "Override", + "ObjC", + "Dynamic" + ], + "init_kind": "Designated" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(trace:spanId:parentId:operation:spanDescription:sampled:)", + "children": [ + { + "kind": "TypeNominal", + "name": "TransactionContext", + "printedName": "Sentry.TransactionContext", + "usr": "c:objc(cs)SentryTransactionContext" + }, + { + "kind": "TypeNominal", + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" + }, + { + "kind": "TypeNominal", + "name": "SpanId", + "printedName": "Sentry.SpanId", + "usr": "c:objc(cs)SentrySpanId" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SpanId?", + "children": [ + { + "kind": "TypeNominal", + "name": "SpanId", + "printedName": "Sentry.SpanId", + "usr": "c:objc(cs)SentrySpanId" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "SentrySampleDecision", + "printedName": "Sentry.SentrySampleDecision", + "usr": "c:@E@SentrySampleDecision" + } + ], + "declKind": "Constructor", + "usr": "c:objc(cs)SentrySpanContext(im)initWithTraceId:spanId:parentId:operation:spanDescription:sampled:", + "moduleName": "Sentry", + "overriding": true, + "implicit": true, + "objc_name": "initWithTraceId:spanId:parentId:operation:spanDescription:sampled:", + "declAttributes": [ + "Override", + "ObjC", + "Dynamic" + ], + "init_kind": "Designated" + } + ], + "declKind": "Class", + "usr": "c:objc(cs)SentryTransactionContext", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "SentryTransactionContext", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "superclassUsr": "c:objc(cs)SentrySpanContext", + "inheritsConvenienceInitializers": true, + "superclassNames": [ + "Sentry.SpanContext", + "ObjectiveC.NSObject" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "SentrySerializable", + "printedName": "SentrySerializable", + "usr": "c:objc(pl)SentrySerializable" + }, + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" + }, + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" + }, + { + "kind": "Conformance", + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "User", + "printedName": "User", + "children": [ + { + "kind": "Var", + "name": "userId", + "printedName": "userId", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Var", + "usr": "c:objc(cs)SentryUser(py)userId", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "userId", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", "children": [ { "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Swift.String]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:SD" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryRequest(im)headers", + "usr": "c:objc(cs)SentryUser(im)userId", "moduleName": "Sentry", "isOpen": true, - "objc_name": "headers", + "objc_name": "userId", "declAttributes": [ "DiscardableResult", "ObjC", @@ -28872,37 +29085,23 @@ { "kind": "TypeNominal", "name": "Optional", - "printedName": "[Swift.String : Swift.String]?", + "printedName": "Swift.String?", "children": [ { "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Swift.String]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:SD" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryRequest(im)setHeaders:", + "usr": "c:objc(cs)SentryUser(im)setUserId:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setHeaders:", + "objc_name": "setUserId:", "declAttributes": [ "ObjC", "Dynamic" @@ -28913,8 +29112,8 @@ }, { "kind": "Var", - "name": "fragment", - "printedName": "fragment", + "name": "email", + "printedName": "email", "children": [ { "kind": "TypeNominal", @@ -28932,10 +29131,10 @@ } ], "declKind": "Var", - "usr": "c:objc(cs)SentryRequest(py)fragment", + "usr": "c:objc(cs)SentryUser(py)email", "moduleName": "Sentry", "isOpen": true, - "objc_name": "fragment", + "objc_name": "email", "declAttributes": [ "ObjC", "Dynamic" @@ -28962,10 +29161,10 @@ } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryRequest(im)fragment", + "usr": "c:objc(cs)SentryUser(im)email", "moduleName": "Sentry", "isOpen": true, - "objc_name": "fragment", + "objc_name": "email", "declAttributes": [ "DiscardableResult", "ObjC", @@ -29006,10 +29205,10 @@ } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryRequest(im)setFragment:", + "usr": "c:objc(cs)SentryUser(im)setEmail:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setFragment:", + "objc_name": "setEmail:", "declAttributes": [ "ObjC", "Dynamic" @@ -29020,8 +29219,8 @@ }, { "kind": "Var", - "name": "method", - "printedName": "method", + "name": "username", + "printedName": "username", "children": [ { "kind": "TypeNominal", @@ -29039,10 +29238,10 @@ } ], "declKind": "Var", - "usr": "c:objc(cs)SentryRequest(py)method", + "usr": "c:objc(cs)SentryUser(py)username", "moduleName": "Sentry", "isOpen": true, - "objc_name": "method", + "objc_name": "username", "declAttributes": [ "ObjC", "Dynamic" @@ -29069,10 +29268,10 @@ } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryRequest(im)method", + "usr": "c:objc(cs)SentryUser(im)username", "moduleName": "Sentry", "isOpen": true, - "objc_name": "method", + "objc_name": "username", "declAttributes": [ "DiscardableResult", "ObjC", @@ -29113,10 +29312,10 @@ } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryRequest(im)setMethod:", + "usr": "c:objc(cs)SentryUser(im)setUsername:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setMethod:", + "objc_name": "setUsername:", "declAttributes": [ "ObjC", "Dynamic" @@ -29127,8 +29326,8 @@ }, { "kind": "Var", - "name": "queryString", - "printedName": "queryString", + "name": "ipAddress", + "printedName": "ipAddress", "children": [ { "kind": "TypeNominal", @@ -29146,10 +29345,10 @@ } ], "declKind": "Var", - "usr": "c:objc(cs)SentryRequest(py)queryString", + "usr": "c:objc(cs)SentryUser(py)ipAddress", "moduleName": "Sentry", "isOpen": true, - "objc_name": "queryString", + "objc_name": "ipAddress", "declAttributes": [ "ObjC", "Dynamic" @@ -29176,10 +29375,10 @@ } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryRequest(im)queryString", + "usr": "c:objc(cs)SentryUser(im)ipAddress", "moduleName": "Sentry", "isOpen": true, - "objc_name": "queryString", + "objc_name": "ipAddress", "declAttributes": [ "DiscardableResult", "ObjC", @@ -29220,10 +29419,10 @@ } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryRequest(im)setQueryString:", + "usr": "c:objc(cs)SentryUser(im)setIpAddress:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setQueryString:", + "objc_name": "setIpAddress:", "declAttributes": [ "ObjC", "Dynamic" @@ -29234,8 +29433,8 @@ }, { "kind": "Var", - "name": "url", - "printedName": "url", + "name": "name", + "printedName": "name", "children": [ { "kind": "TypeNominal", @@ -29253,10 +29452,10 @@ } ], "declKind": "Var", - "usr": "c:objc(cs)SentryRequest(py)url", + "usr": "c:objc(cs)SentryUser(py)name", "moduleName": "Sentry", "isOpen": true, - "objc_name": "url", + "objc_name": "name", "declAttributes": [ "ObjC", "Dynamic" @@ -29283,10 +29482,10 @@ } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryRequest(im)url", + "usr": "c:objc(cs)SentryUser(im)name", "moduleName": "Sentry", "isOpen": true, - "objc_name": "url", + "objc_name": "name", "declAttributes": [ "DiscardableResult", "ObjC", @@ -29327,10 +29526,10 @@ } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryRequest(im)setUrl:", + "usr": "c:objc(cs)SentryUser(im)setName:", "moduleName": "Sentry", "isOpen": true, - "objc_name": "setUrl:", + "objc_name": "setName:", "declAttributes": [ "ObjC", "Dynamic" @@ -29340,442 +29539,432 @@ ] }, { - "kind": "Constructor", - "name": "init", - "printedName": "init()", + "kind": "Var", + "name": "geo", + "printedName": "geo", "children": [ { "kind": "TypeNominal", - "name": "SentryRequest", - "printedName": "Sentry.SentryRequest", - "usr": "c:objc(cs)SentryRequest" + "name": "Optional", + "printedName": "Sentry.Geo?", + "children": [ + { + "kind": "TypeNominal", + "name": "Geo", + "printedName": "Sentry.Geo", + "usr": "c:objc(cs)SentryGeo" + } + ], + "usr": "s:Sq" } ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentryRequest(im)init", + "declKind": "Var", + "usr": "c:objc(cs)SentryUser(py)geo", "moduleName": "Sentry", - "overriding": true, - "objc_name": "init", + "isOpen": true, + "objc_name": "geo", "declAttributes": [ - "Override", - "Required", "ObjC", "Dynamic" ], - "init_kind": "Designated" - } - ], - "declKind": "Class", - "usr": "c:objc(cs)SentryRequest", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "SentryRequest", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "superclassUsr": "c:objc(cs)NSObject", - "inheritsConvenienceInitializers": true, - "superclassNames": [ - "ObjectiveC.NSObject" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "SentrySerializable", - "printedName": "SentrySerializable", - "usr": "c:objc(pl)SentrySerializable" - }, - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - } - ] - }, - { - "kind": "TypeAlias", - "name": "SentryRequestFinished", - "printedName": "SentryRequestFinished", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "((any Swift.Error)?) -> Swift.Void", - "children": [ + "accessors": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "Optional", + "printedName": "Sentry.Geo?", + "children": [ + { + "kind": "TypeNominal", + "name": "Geo", + "printedName": "Sentry.Geo", + "usr": "c:objc(cs)SentryGeo" + } + ], + "usr": "s:Sq" } - ] + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryUser(im)geo", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "geo", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "accessorKind": "get" }, { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "(any Swift.Error)?", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, { "kind": "TypeNominal", - "name": "Error", - "printedName": "any Swift.Error", - "usr": "s:s5ErrorP" + "name": "Optional", + "printedName": "Sentry.Geo?", + "children": [ + { + "kind": "TypeNominal", + "name": "Geo", + "printedName": "Sentry.Geo", + "usr": "c:objc(cs)SentryGeo" + } + ], + "usr": "s:Sq" } ], - "usr": "s:Sq" + "declKind": "Accessor", + "usr": "c:objc(cs)SentryUser(im)setGeo:", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "setGeo:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessorKind": "set" } ] - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@SentryRequestFinished", - "moduleName": "Sentry" - }, - { - "kind": "TypeAlias", - "name": "SentryRequestOperationFinished", - "printedName": "SentryRequestOperationFinished", - "children": [ + }, { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Foundation.HTTPURLResponse?, (any Swift.Error)?) -> Swift.Void", + "kind": "Var", + "name": "data", + "printedName": "data", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "[Swift.String : Any]?", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "Dictionary", + "printedName": "[Swift.String : Any]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" + } + ], + "usr": "s:SD" } - ] - }, + ], + "usr": "s:Sq" + } + ], + "declKind": "Var", + "usr": "c:objc(cs)SentryUser(py)data", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "data", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessors": [ { - "kind": "TypeNominal", - "name": "Tuple", - "printedName": "(Foundation.HTTPURLResponse?, (any Swift.Error)?)", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", "name": "Optional", - "printedName": "Foundation.HTTPURLResponse?", + "printedName": "[Swift.String : Any]?", "children": [ { "kind": "TypeNominal", - "name": "HTTPURLResponse", - "printedName": "Foundation.HTTPURLResponse", - "usr": "c:objc(cs)NSHTTPURLResponse" + "name": "Dictionary", + "printedName": "[Swift.String : Any]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" + } + ], + "usr": "s:SD" } ], "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryUser(im)data", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "data", + "declAttributes": [ + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] }, { "kind": "TypeNominal", "name": "Optional", - "printedName": "(any Swift.Error)?", + "printedName": "[Swift.String : Any]?", "children": [ { "kind": "TypeNominal", - "name": "Error", - "printedName": "any Swift.Error", - "usr": "s:s5ErrorP" + "name": "Dictionary", + "printedName": "[Swift.String : Any]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" + } + ], + "usr": "s:SD" } ], "usr": "s:Sq" } - ] + ], + "declKind": "Accessor", + "usr": "c:objc(cs)SentryUser(im)setData:", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "setData:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], + "accessorKind": "set" } ] - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@SentryRequestOperationFinished", - "moduleName": "Sentry" - }, - { - "kind": "TypeDecl", - "name": "SentrySampleDecision", - "printedName": "SentrySampleDecision", - "children": [ + }, { "kind": "Constructor", "name": "init", - "printedName": "init(rawValue:)", + "printedName": "init(userId:)", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentrySampleDecision?", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySampleDecision", - "printedName": "Sentry.SentrySampleDecision", - "usr": "c:@E@SentrySampleDecision" - } - ], - "usr": "s:Sq" + "name": "User", + "printedName": "Sentry.User", + "usr": "c:objc(cs)SentryUser" }, { "kind": "TypeNominal", - "name": "UInt", - "printedName": "Swift.UInt", - "usr": "s:Su" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "declKind": "Constructor", - "usr": "s:So20SentrySampleDecisionV8rawValueABSgSu_tcfc", - "mangledName": "$sSo20SentrySampleDecisionV8rawValueABSgSu_tcfc", + "usr": "c:objc(cs)SentryUser(im)initWithUserId:", "moduleName": "Sentry", - "implicit": true, + "objc_name": "initWithUserId:", + "declAttributes": [ + "ObjC", + "Dynamic" + ], "init_kind": "Designated" }, { - "kind": "Var", - "name": "rawValue", - "printedName": "rawValue", + "kind": "Constructor", + "name": "init", + "printedName": "init()", "children": [ { "kind": "TypeNominal", - "name": "UInt", - "printedName": "Swift.UInt", - "usr": "s:Su" + "name": "User", + "printedName": "Sentry.User", + "usr": "c:objc(cs)SentryUser" } ], - "declKind": "Var", - "usr": "s:So20SentrySampleDecisionV8rawValueSuvp", - "mangledName": "$sSo20SentrySampleDecisionV8rawValueSuvp", + "declKind": "Constructor", + "usr": "c:objc(cs)SentryUser(im)init", "moduleName": "Sentry", - "implicit": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "UInt", - "printedName": "Swift.UInt", - "usr": "s:Su" - } - ], - "declKind": "Accessor", - "usr": "s:So20SentrySampleDecisionV8rawValueSuvg", - "mangledName": "$sSo20SentrySampleDecisionV8rawValueSuvg", - "moduleName": "Sentry", - "implicit": true, - "accessorKind": "get" - } - ] + "overriding": true, + "objc_name": "init", + "declAttributes": [ + "Override", + "Required", + "ObjC", + "Dynamic" + ], + "init_kind": "Designated" }, { - "kind": "TypeAlias", - "name": "RawValue", - "printedName": "RawValue", + "kind": "Function", + "name": "isEqual", + "printedName": "isEqual(_:)", "children": [ { "kind": "TypeNominal", - "name": "UInt", - "printedName": "Swift.UInt", - "usr": "s:Su" - } - ], - "declKind": "TypeAlias", - "usr": "s:So20SentrySampleDecisionV8RawValuea", - "mangledName": "$sSo20SentrySampleDecisionV8RawValuea", - "moduleName": "Sentry", - "implicit": true - }, - { - "kind": "Var", - "name": "undecided", - "printedName": "undecided", - "children": [ + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + }, { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySampleDecision.Type) -> Sentry.SentrySampleDecision", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Any?", "children": [ { "kind": "TypeNominal", - "name": "SentrySampleDecision", - "printedName": "Sentry.SentrySampleDecision", - "usr": "c:@E@SentrySampleDecision" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySampleDecision.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySampleDecision", - "printedName": "Sentry.SentrySampleDecision", - "usr": "c:@E@SentrySampleDecision" - } - ] + "name": "ProtocolComposition", + "printedName": "Any" } - ] + ], + "usr": "s:Sq" } ], - "declKind": "EnumElement", - "usr": "c:@E@SentrySampleDecision@kSentrySampleDecisionUndecided", + "declKind": "Func", + "usr": "c:objc(cs)SentryUser(im)isEqual:", "moduleName": "Sentry", + "overriding": true, + "isOpen": true, + "objc_name": "isEqual:", "declAttributes": [ - "ObjC" - ] + "DiscardableResult", + "Override", + "ObjC", + "Dynamic" + ], + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "yes", - "printedName": "yes", + "kind": "Function", + "name": "isEqual", + "printedName": "isEqual(to:)", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySampleDecision.Type) -> Sentry.SentrySampleDecision", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySampleDecision", - "printedName": "Sentry.SentrySampleDecision", - "usr": "c:@E@SentrySampleDecision" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySampleDecision.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySampleDecision", - "printedName": "Sentry.SentrySampleDecision", - "usr": "c:@E@SentrySampleDecision" - } - ] - } - ] + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + }, + { + "kind": "TypeNominal", + "name": "User", + "printedName": "Sentry.User", + "usr": "c:objc(cs)SentryUser" } ], - "declKind": "EnumElement", - "usr": "c:@E@SentrySampleDecision@kSentrySampleDecisionYes", + "declKind": "Func", + "usr": "c:objc(cs)SentryUser(im)isEqualToUser:", "moduleName": "Sentry", + "isOpen": true, + "objc_name": "isEqualToUser:", "declAttributes": [ - "ObjC" - ] + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "no", - "printedName": "no", + "kind": "Function", + "name": "hash", + "printedName": "hash()", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySampleDecision.Type) -> Sentry.SentrySampleDecision", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySampleDecision", - "printedName": "Sentry.SentrySampleDecision", - "usr": "c:@E@SentrySampleDecision" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySampleDecision.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySampleDecision", - "printedName": "Sentry.SentrySampleDecision", - "usr": "c:@E@SentrySampleDecision" - } - ] - } - ] + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], - "declKind": "EnumElement", - "usr": "c:@E@SentrySampleDecision@kSentrySampleDecisionNo", + "declKind": "Func", + "usr": "c:objc(cs)SentryUser(im)hash", "moduleName": "Sentry", + "isOpen": true, + "objc_name": "hash", "declAttributes": [ - "ObjC" - ] + "DiscardableResult", + "ObjC", + "Dynamic" + ], + "funcSelfKind": "NonMutating" } ], - "declKind": "Enum", - "usr": "c:@E@SentrySampleDecision", + "declKind": "Class", + "usr": "c:objc(cs)SentryUser", "moduleName": "Sentry", - "objc_name": "SentrySampleDecision", + "isOpen": true, + "objc_name": "SentryUser", "declAttributes": [ - "SynthesizedProtocol", "ObjC", - "SynthesizedProtocol", - "Sendable", "Dynamic" ], - "enumRawTypeName": "UInt", + "superclassUsr": "c:objc(cs)NSObject", + "inheritsConvenienceInitializers": true, + "superclassNames": [ + "ObjectiveC.NSObject" + ], "conformances": [ + { + "kind": "Conformance", + "name": "SentrySerializable", + "printedName": "SentrySerializable", + "usr": "c:objc(pl)SentrySerializable" + }, + { + "kind": "Conformance", + "name": "NSCopying", + "printedName": "NSCopying", + "usr": "c:objc(pl)NSCopying" + }, { "kind": "Conformance", "name": "Copyable", @@ -29792,39 +29981,9 @@ }, { "kind": "Conformance", - "name": "RawRepresentable", - "printedName": "RawRepresentable", - "children": [ - { - "kind": "TypeWitness", - "name": "RawValue", - "printedName": "RawValue", - "children": [ - { - "kind": "TypeNameAlias", - "name": "RawValue", - "printedName": "Sentry.SentrySampleDecision.RawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "UInt", - "printedName": "Swift.UInt", - "usr": "s:Su" - } - ] - } - ] - } - ], - "usr": "s:SY", - "mangledName": "$sSY" - }, - { - "kind": "Conformance", - "name": "Sendable", - "printedName": "Sendable", - "usr": "s:s8SendableP", - "mangledName": "$ss8SendableP" + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" }, { "kind": "Conformance", @@ -29839,1386 +29998,1483 @@ "printedName": "Hashable", "usr": "s:SH", "mangledName": "$sSH" - } - ] - }, - { - "kind": "TypeDecl", - "name": "SentrySerializable", - "printedName": "SentrySerializable", - "children": [ - { - "kind": "Function", - "name": "serialize", - "printedName": "serialize()", - "children": [ - { - "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "usr": "s:SD" - } - ], - "declKind": "Func", - "usr": "c:objc(pl)SentrySerializable(im)serialize", - "moduleName": "Sentry", - "genericSig": "", - "protocolReq": true, - "objc_name": "serialize", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "reqNewWitnessTableEntry": true, - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Protocol", - "usr": "c:objc(pl)SentrySerializable", - "moduleName": "Sentry", - "genericSig": "", - "objc_name": "SentrySerializable", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "conformances": [ + }, { "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" }, { "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" }, { "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" } ] }, { - "kind": "TypeDecl", - "name": "SentrySessionStatus", - "printedName": "SentrySessionStatus", + "kind": "TypeAlias", + "name": "__NSConstantString", + "printedName": "__NSConstantString", "children": [ { - "kind": "Constructor", - "name": "init", - "printedName": "init(rawValue:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentrySessionStatus?", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySessionStatus", - "printedName": "Sentry.SentrySessionStatus", - "usr": "c:@M@Sentry@E@SentrySessionStatus" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "UInt", - "printedName": "Swift.UInt", - "usr": "s:Su" - } - ], - "declKind": "Constructor", - "usr": "s:So19SentrySessionStatusV8rawValueABSgSu_tcfc", - "mangledName": "$sSo19SentrySessionStatusV8rawValueABSgSu_tcfc", - "moduleName": "Sentry", - "implicit": true, - "init_kind": "Designated" - }, - { - "kind": "Var", - "name": "rawValue", - "printedName": "rawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "UInt", - "printedName": "Swift.UInt", - "usr": "s:Su" - } - ], - "declKind": "Var", - "usr": "s:So19SentrySessionStatusV8rawValueSuvp", - "mangledName": "$sSo19SentrySessionStatusV8rawValueSuvp", - "moduleName": "Sentry", - "implicit": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "UInt", - "printedName": "Swift.UInt", - "usr": "s:Su" - } - ], - "declKind": "Accessor", - "usr": "s:So19SentrySessionStatusV8rawValueSuvg", - "mangledName": "$sSo19SentrySessionStatusV8rawValueSuvg", - "moduleName": "Sentry", - "implicit": true, - "accessorKind": "get" - } - ] - }, - { - "kind": "TypeAlias", - "name": "RawValue", - "printedName": "RawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "UInt", - "printedName": "Swift.UInt", - "usr": "s:Su" - } - ], - "declKind": "TypeAlias", - "usr": "s:So19SentrySessionStatusV8RawValuea", - "mangledName": "$sSo19SentrySessionStatusV8RawValuea", - "moduleName": "Sentry", - "implicit": true - }, + "kind": "TypeNominal", + "name": "__NSConstantString_tag", + "printedName": "__ObjC.__NSConstantString_tag", + "usr": "c:@S@__NSConstantString_tag" + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@__NSConstantString", + "moduleName": "__ObjC" + }, + { + "kind": "TypeAlias", + "name": "__builtin_ms_va_list", + "printedName": "__builtin_ms_va_list", + "children": [ { - "kind": "Var", - "name": "ok", - "printedName": "ok", + "kind": "TypeNominal", + "name": "UnsafeMutablePointer", + "printedName": "Swift.UnsafeMutablePointer", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySessionStatus.Type) -> Sentry.SentrySessionStatus", + "kind": "TypeNameAlias", + "name": "CChar", + "printedName": "Swift.CChar", "children": [ { "kind": "TypeNominal", - "name": "SentrySessionStatus", - "printedName": "Sentry.SentrySessionStatus", - "usr": "c:@M@Sentry@E@SentrySessionStatus" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySessionStatus.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySessionStatus", - "printedName": "Sentry.SentrySessionStatus", - "usr": "c:@M@Sentry@E@SentrySessionStatus" - } - ] + "name": "Int8", + "printedName": "Swift.Int8", + "usr": "s:s4Int8V" } ] } ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentrySessionStatus@SentrySessionStatusOk", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - }, + "usr": "s:Sp" + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@__builtin_ms_va_list", + "moduleName": "__ObjC" + }, + { + "kind": "TypeAlias", + "name": "__builtin_va_list", + "printedName": "__builtin_va_list", + "children": [ { - "kind": "Var", - "name": "exited", - "printedName": "exited", + "kind": "TypeNominal", + "name": "UnsafeMutablePointer", + "printedName": "Swift.UnsafeMutablePointer", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySessionStatus.Type) -> Sentry.SentrySessionStatus", + "kind": "TypeNameAlias", + "name": "CChar", + "printedName": "Swift.CChar", "children": [ { "kind": "TypeNominal", - "name": "SentrySessionStatus", - "printedName": "Sentry.SentrySessionStatus", - "usr": "c:@M@Sentry@E@SentrySessionStatus" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySessionStatus.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySessionStatus", - "printedName": "Sentry.SentrySessionStatus", - "usr": "c:@M@Sentry@E@SentrySessionStatus" - } - ] + "name": "Int8", + "printedName": "Swift.Int8", + "usr": "s:s4Int8V" } ] } ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentrySessionStatus@SentrySessionStatusExited", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - }, + "usr": "s:Sp" + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@__builtin_va_list", + "moduleName": "__ObjC" + }, + { + "kind": "TypeAlias", + "name": "char16_t", + "printedName": "char16_t", + "children": [ { - "kind": "Var", - "name": "crashed", - "printedName": "crashed", + "kind": "TypeNameAlias", + "name": "uint_least16_t", + "printedName": "_stdint.uint_least16_t", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySessionStatus.Type) -> Sentry.SentrySessionStatus", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySessionStatus", - "printedName": "Sentry.SentrySessionStatus", - "usr": "c:@M@Sentry@E@SentrySessionStatus" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySessionStatus.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySessionStatus", - "printedName": "Sentry.SentrySessionStatus", - "usr": "c:@M@Sentry@E@SentrySessionStatus" - } - ] - } - ] + "kind": "TypeNominal", + "name": "UInt16", + "printedName": "Swift.UInt16", + "usr": "s:s6UInt16V" } - ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentrySessionStatus@SentrySessionStatusCrashed", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" ] - }, + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@char16_t", + "moduleName": "Sentry" + }, + { + "kind": "TypeAlias", + "name": "char32_t", + "printedName": "char32_t", + "children": [ { - "kind": "Var", - "name": "abnormal", - "printedName": "abnormal", + "kind": "TypeNameAlias", + "name": "uint_least32_t", + "printedName": "_stdint.uint_least32_t", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySessionStatus.Type) -> Sentry.SentrySessionStatus", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySessionStatus", - "printedName": "Sentry.SentrySessionStatus", - "usr": "c:@M@Sentry@E@SentrySessionStatus" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySessionStatus.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySessionStatus", - "printedName": "Sentry.SentrySessionStatus", - "usr": "c:@M@Sentry@E@SentrySessionStatus" - } - ] - } - ] + "kind": "TypeNominal", + "name": "UInt32", + "printedName": "Swift.UInt32", + "usr": "s:s6UInt32V" } - ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentrySessionStatus@SentrySessionStatusAbnormal", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" ] } ], - "declKind": "Enum", - "usr": "c:@M@Sentry@E@SentrySessionStatus", - "moduleName": "Sentry", - "objc_name": "SentrySessionStatus", - "declAttributes": [ - "SynthesizedProtocol", - "ObjC", - "SynthesizedProtocol", - "Sendable", - "Dynamic" - ], - "enumRawTypeName": "UInt", - "conformances": [ + "declKind": "TypeAlias", + "usr": "c:@T@char32_t", + "moduleName": "Sentry" + }, + { + "kind": "TypeAlias", + "name": "char8_t", + "printedName": "char8_t", + "children": [ { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, + "kind": "TypeNominal", + "name": "UInt8", + "printedName": "Swift.UInt8", + "usr": "s:s5UInt8V" + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@char8_t", + "moduleName": "Sentry" + }, + { + "kind": "Var", + "name": "defaultMaxBreadcrumbs", + "printedName": "defaultMaxBreadcrumbs", + "children": [ { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Var", + "usr": "c:@defaultMaxBreadcrumbs", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "Var", + "name": "kSentryFalseString", + "printedName": "kSentryFalseString", + "children": [ { - "kind": "Conformance", - "name": "RawRepresentable", - "printedName": "RawRepresentable", - "children": [ - { - "kind": "TypeWitness", - "name": "RawValue", - "printedName": "RawValue", - "children": [ - { - "kind": "TypeNameAlias", - "name": "RawValue", - "printedName": "Sentry.SentrySessionStatus.RawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "UInt", - "printedName": "Swift.UInt", - "usr": "s:Su" - } - ] - } - ] - } - ], - "usr": "s:SY", - "mangledName": "$sSY" - }, + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@kSentryFalseString", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "Var", + "name": "kSentrySpanStatusNameAborted", + "printedName": "kSentrySpanStatusNameAborted", + "children": [ { - "kind": "Conformance", - "name": "Sendable", - "printedName": "Sendable", - "usr": "s:s8SendableP", - "mangledName": "$ss8SendableP" - }, + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@kSentrySpanStatusNameAborted", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "Var", + "name": "kSentrySpanStatusNameAlreadyExists", + "printedName": "kSentrySpanStatusNameAlreadyExists", + "children": [ { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@kSentrySpanStatusNameAlreadyExists", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "Var", + "name": "kSentrySpanStatusNameCancelled", + "printedName": "kSentrySpanStatusNameCancelled", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@kSentrySpanStatusNameCancelled", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "Var", + "name": "kSentrySpanStatusNameDataLoss", + "printedName": "kSentrySpanStatusNameDataLoss", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@kSentrySpanStatusNameDataLoss", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "Var", + "name": "kSentrySpanStatusNameDeadlineExceeded", + "printedName": "kSentrySpanStatusNameDeadlineExceeded", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@kSentrySpanStatusNameDeadlineExceeded", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "Var", + "name": "kSentrySpanStatusNameFailedPrecondition", + "printedName": "kSentrySpanStatusNameFailedPrecondition", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@kSentrySpanStatusNameFailedPrecondition", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "Var", + "name": "kSentrySpanStatusNameInternalError", + "printedName": "kSentrySpanStatusNameInternalError", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@kSentrySpanStatusNameInternalError", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "Var", + "name": "kSentrySpanStatusNameInvalidArgument", + "printedName": "kSentrySpanStatusNameInvalidArgument", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@kSentrySpanStatusNameInvalidArgument", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "Var", + "name": "kSentrySpanStatusNameNotFound", + "printedName": "kSentrySpanStatusNameNotFound", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@kSentrySpanStatusNameNotFound", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "Var", + "name": "kSentrySpanStatusNameOk", + "printedName": "kSentrySpanStatusNameOk", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@kSentrySpanStatusNameOk", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "Var", + "name": "kSentrySpanStatusNameOutOfRange", + "printedName": "kSentrySpanStatusNameOutOfRange", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@kSentrySpanStatusNameOutOfRange", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "Var", + "name": "kSentrySpanStatusNamePermissionDenied", + "printedName": "kSentrySpanStatusNamePermissionDenied", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@kSentrySpanStatusNamePermissionDenied", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "Var", + "name": "kSentrySpanStatusNameResourceExhausted", + "printedName": "kSentrySpanStatusNameResourceExhausted", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@kSentrySpanStatusNameResourceExhausted", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "Var", + "name": "kSentrySpanStatusNameUnauthenticated", + "printedName": "kSentrySpanStatusNameUnauthenticated", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@kSentrySpanStatusNameUnauthenticated", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "Var", + "name": "kSentrySpanStatusNameUnavailable", + "printedName": "kSentrySpanStatusNameUnavailable", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@kSentrySpanStatusNameUnavailable", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "Var", + "name": "kSentrySpanStatusNameUndefined", + "printedName": "kSentrySpanStatusNameUndefined", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@kSentrySpanStatusNameUndefined", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "Var", + "name": "kSentrySpanStatusNameUnimplemented", + "printedName": "kSentrySpanStatusNameUnimplemented", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@kSentrySpanStatusNameUnimplemented", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "Var", + "name": "kSentrySpanStatusNameUnknownError", + "printedName": "kSentrySpanStatusNameUnknownError", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@kSentrySpanStatusNameUnknownError", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "Var", + "name": "kSentryTrueString", + "printedName": "kSentryTrueString", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@kSentryTrueString", + "moduleName": "Sentry", + "isLet": true, + "hasStorage": true + }, + { + "kind": "Function", + "name": "nameForSentrySpanStatus", + "printedName": "nameForSentrySpanStatus(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" }, { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" + "kind": "TypeNominal", + "name": "SentrySpanStatus", + "printedName": "Sentry.SentrySpanStatus", + "usr": "c:@E@SentrySpanStatus" } - ] + ], + "declKind": "Func", + "usr": "c:@F@nameForSentrySpanStatus", + "moduleName": "Sentry", + "declAttributes": [ + "DiscardableResult" + ], + "funcSelfKind": "NonMutating" }, { "kind": "TypeAlias", - "name": "SentryShouldQueueEvent", - "printedName": "SentryShouldQueueEvent", + "name": "swift_double2", + "printedName": "swift_double2", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Foundation.HTTPURLResponse?, (any Swift.Error)?) -> Swift.Bool", + "kind": "TypeNominal", + "name": "SIMD2", + "printedName": "Swift.SIMD2", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - }, - { - "kind": "TypeNominal", - "name": "Tuple", - "printedName": "(Foundation.HTTPURLResponse?, (any Swift.Error)?)", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.HTTPURLResponse?", - "children": [ - { - "kind": "TypeNominal", - "name": "HTTPURLResponse", - "printedName": "Foundation.HTTPURLResponse", - "usr": "c:objc(cs)NSHTTPURLResponse" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "(any Swift.Error)?", - "children": [ - { - "kind": "TypeNominal", - "name": "Error", - "printedName": "any Swift.Error", - "usr": "s:s5ErrorP" - } - ], - "usr": "s:Sq" - } - ] + "name": "Double", + "printedName": "Swift.Double", + "usr": "s:Sd" } - ] + ], + "usr": "s:s5SIMD2V" } ], "declKind": "TypeAlias", - "usr": "c:@T@SentryShouldQueueEvent", + "usr": "c:@T@swift_double2", "moduleName": "Sentry" }, { - "kind": "TypeDecl", - "name": "SentrySpanStatus", - "printedName": "SentrySpanStatus", + "kind": "TypeAlias", + "name": "swift_double3", + "printedName": "swift_double3", "children": [ { - "kind": "Constructor", - "name": "init", - "printedName": "init(rawValue:)", + "kind": "TypeNominal", + "name": "SIMD3", + "printedName": "Swift.SIMD3", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentrySpanStatus?", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "UInt", - "printedName": "Swift.UInt", - "usr": "s:Su" + "name": "Double", + "printedName": "Swift.Double", + "usr": "s:Sd" } ], - "declKind": "Constructor", - "usr": "s:So16SentrySpanStatusV8rawValueABSgSu_tcfc", - "mangledName": "$sSo16SentrySpanStatusV8rawValueABSgSu_tcfc", - "moduleName": "Sentry", - "implicit": true, - "init_kind": "Designated" - }, - { - "kind": "Var", - "name": "rawValue", - "printedName": "rawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "UInt", - "printedName": "Swift.UInt", - "usr": "s:Su" - } - ], - "declKind": "Var", - "usr": "s:So16SentrySpanStatusV8rawValueSuvp", - "mangledName": "$sSo16SentrySpanStatusV8rawValueSuvp", - "moduleName": "Sentry", - "implicit": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "UInt", - "printedName": "Swift.UInt", - "usr": "s:Su" - } - ], - "declKind": "Accessor", - "usr": "s:So16SentrySpanStatusV8rawValueSuvg", - "mangledName": "$sSo16SentrySpanStatusV8rawValueSuvg", - "moduleName": "Sentry", - "implicit": true, - "accessorKind": "get" - } - ] - }, + "usr": "s:s5SIMD3V" + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@swift_double3", + "moduleName": "Sentry" + }, + { + "kind": "TypeAlias", + "name": "swift_double4", + "printedName": "swift_double4", + "children": [ { - "kind": "TypeAlias", - "name": "RawValue", - "printedName": "RawValue", + "kind": "TypeNominal", + "name": "SIMD4", + "printedName": "Swift.SIMD4", "children": [ { "kind": "TypeNominal", - "name": "UInt", - "printedName": "Swift.UInt", - "usr": "s:Su" + "name": "Double", + "printedName": "Swift.Double", + "usr": "s:Sd" } ], - "declKind": "TypeAlias", - "usr": "s:So16SentrySpanStatusV8RawValuea", - "mangledName": "$sSo16SentrySpanStatusV8RawValuea", - "moduleName": "Sentry", - "implicit": true - }, + "usr": "s:s5SIMD4V" + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@swift_double4", + "moduleName": "Sentry" + }, + { + "kind": "TypeAlias", + "name": "swift_float2", + "printedName": "swift_float2", + "children": [ { - "kind": "Var", - "name": "undefined", - "printedName": "undefined", + "kind": "TypeNominal", + "name": "SIMD2", + "printedName": "Swift.SIMD2", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySpanStatus.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - } - ] - } - ] + "kind": "TypeNominal", + "name": "Float", + "printedName": "Swift.Float", + "usr": "s:Sf" } ], - "declKind": "EnumElement", - "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusUndefined", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - }, + "usr": "s:s5SIMD2V" + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@swift_float2", + "moduleName": "Sentry" + }, + { + "kind": "TypeAlias", + "name": "swift_float3", + "printedName": "swift_float3", + "children": [ { - "kind": "Var", - "name": "ok", - "printedName": "ok", + "kind": "TypeNominal", + "name": "SIMD3", + "printedName": "Swift.SIMD3", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySpanStatus.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - } - ] - } - ] + "kind": "TypeNominal", + "name": "Float", + "printedName": "Swift.Float", + "usr": "s:Sf" } ], - "declKind": "EnumElement", - "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusOk", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - }, + "usr": "s:s5SIMD3V" + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@swift_float3", + "moduleName": "Sentry" + }, + { + "kind": "TypeAlias", + "name": "swift_float4", + "printedName": "swift_float4", + "children": [ { - "kind": "Var", - "name": "deadlineExceeded", - "printedName": "deadlineExceeded", + "kind": "TypeNominal", + "name": "SIMD4", + "printedName": "Swift.SIMD4", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySpanStatus.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - } - ] - } - ] + "kind": "TypeNominal", + "name": "Float", + "printedName": "Swift.Float", + "usr": "s:Sf" } ], - "declKind": "EnumElement", - "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusDeadlineExceeded", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - }, + "usr": "s:s5SIMD4V" + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@swift_float4", + "moduleName": "Sentry" + }, + { + "kind": "TypeAlias", + "name": "swift_int2", + "printedName": "swift_int2", + "children": [ { - "kind": "Var", - "name": "unauthenticated", - "printedName": "unauthenticated", + "kind": "TypeNominal", + "name": "SIMD2", + "printedName": "Swift.SIMD2", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySpanStatus.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - } - ] - } - ] + "kind": "TypeNominal", + "name": "Int32", + "printedName": "Swift.Int32", + "usr": "s:s5Int32V" } ], - "declKind": "EnumElement", - "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusUnauthenticated", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - }, + "usr": "s:s5SIMD2V" + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@swift_int2", + "moduleName": "Sentry" + }, + { + "kind": "TypeAlias", + "name": "swift_int3", + "printedName": "swift_int3", + "children": [ { - "kind": "Var", - "name": "permissionDenied", - "printedName": "permissionDenied", + "kind": "TypeNominal", + "name": "SIMD3", + "printedName": "Swift.SIMD3", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySpanStatus.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - } - ] - } - ] + "kind": "TypeNominal", + "name": "Int32", + "printedName": "Swift.Int32", + "usr": "s:s5Int32V" } ], - "declKind": "EnumElement", - "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusPermissionDenied", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - }, + "usr": "s:s5SIMD3V" + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@swift_int3", + "moduleName": "Sentry" + }, + { + "kind": "TypeAlias", + "name": "swift_int4", + "printedName": "swift_int4", + "children": [ { - "kind": "Var", - "name": "notFound", - "printedName": "notFound", + "kind": "TypeNominal", + "name": "SIMD4", + "printedName": "Swift.SIMD4", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySpanStatus.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - } - ] - } - ] + "kind": "TypeNominal", + "name": "Int32", + "printedName": "Swift.Int32", + "usr": "s:s5Int32V" } ], - "declKind": "EnumElement", - "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusNotFound", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - }, + "usr": "s:s5SIMD4V" + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@swift_int4", + "moduleName": "Sentry" + }, + { + "kind": "TypeAlias", + "name": "swift_uint2", + "printedName": "swift_uint2", + "children": [ { - "kind": "Var", - "name": "resourceExhausted", - "printedName": "resourceExhausted", + "kind": "TypeNominal", + "name": "SIMD2", + "printedName": "Swift.SIMD2", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySpanStatus.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - } - ] - } - ] + "kind": "TypeNominal", + "name": "UInt32", + "printedName": "Swift.UInt32", + "usr": "s:s6UInt32V" } ], - "declKind": "EnumElement", - "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusResourceExhausted", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - }, + "usr": "s:s5SIMD2V" + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@swift_uint2", + "moduleName": "Sentry" + }, + { + "kind": "TypeAlias", + "name": "swift_uint3", + "printedName": "swift_uint3", + "children": [ { - "kind": "Var", - "name": "invalidArgument", - "printedName": "invalidArgument", + "kind": "TypeNominal", + "name": "SIMD3", + "printedName": "Swift.SIMD3", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySpanStatus.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - } - ] - } - ] + "kind": "TypeNominal", + "name": "UInt32", + "printedName": "Swift.UInt32", + "usr": "s:s6UInt32V" } ], - "declKind": "EnumElement", - "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusInvalidArgument", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - }, + "usr": "s:s5SIMD3V" + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@swift_uint3", + "moduleName": "Sentry" + }, + { + "kind": "TypeAlias", + "name": "swift_uint4", + "printedName": "swift_uint4", + "children": [ { - "kind": "Var", - "name": "unimplemented", - "printedName": "unimplemented", + "kind": "TypeNominal", + "name": "SIMD4", + "printedName": "Swift.SIMD4", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySpanStatus.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - } - ] - } - ] + "kind": "TypeNominal", + "name": "UInt32", + "printedName": "Swift.UInt32", + "usr": "s:s6UInt32V" } ], - "declKind": "EnumElement", - "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusUnimplemented", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - }, + "usr": "s:s5SIMD4V" + } + ], + "declKind": "TypeAlias", + "usr": "c:@T@swift_uint4", + "moduleName": "Sentry" + }, + { + "kind": "Import", + "name": "AVFoundation", + "printedName": "AVFoundation", + "declKind": "Import", + "moduleName": "Sentry" + }, + { + "kind": "Import", + "name": "CoreGraphics", + "printedName": "CoreGraphics", + "declKind": "Import", + "moduleName": "Sentry" + }, + { + "kind": "Import", + "name": "CoreMedia", + "printedName": "CoreMedia", + "declKind": "Import", + "moduleName": "Sentry" + }, + { + "kind": "Import", + "name": "Darwin", + "printedName": "Darwin", + "declKind": "Import", + "moduleName": "Sentry" + }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "Sentry" + }, + { + "kind": "Import", + "name": "MachO", + "printedName": "MachO", + "declKind": "Import", + "moduleName": "Sentry" + }, + { + "kind": "Import", + "name": "MetricKit", + "printedName": "MetricKit", + "declKind": "Import", + "moduleName": "Sentry" + }, + { + "kind": "Import", + "name": "ObjectiveC.NSObjCRuntime", + "printedName": "ObjectiveC.NSObjCRuntime", + "declKind": "Import", + "moduleName": "Sentry" + }, + { + "kind": "Import", + "name": "Network", + "printedName": "Network", + "declKind": "Import", + "moduleName": "Sentry" + }, + { + "kind": "Import", + "name": "ObjectiveC", + "printedName": "ObjectiveC", + "declKind": "Import", + "moduleName": "Sentry" + }, + { + "kind": "Import", + "name": "PDFKit", + "printedName": "PDFKit", + "declKind": "Import", + "moduleName": "Sentry" + }, + { + "kind": "Import", + "name": "Sentry", + "printedName": "Sentry", + "declKind": "Import", + "moduleName": "Sentry", + "declAttributes": [ + "Exported" + ] + }, + { + "kind": "Import", + "name": "UIKit", + "printedName": "UIKit", + "declKind": "Import", + "moduleName": "Sentry" + }, + { + "kind": "Import", + "name": "WebKit", + "printedName": "WebKit", + "declKind": "Import", + "moduleName": "Sentry" + }, + { + "kind": "Import", + "name": "_Concurrency", + "printedName": "_Concurrency", + "declKind": "Import", + "moduleName": "Sentry" + }, + { + "kind": "Import", + "name": "_StringProcessing", + "printedName": "_StringProcessing", + "declKind": "Import", + "moduleName": "Sentry" + }, + { + "kind": "Import", + "name": "_SwiftConcurrencyShims", + "printedName": "_SwiftConcurrencyShims", + "declKind": "Import", + "moduleName": "Sentry" + }, + { + "kind": "Import", + "name": "ObjectiveC.runtime", + "printedName": "ObjectiveC.runtime", + "declKind": "Import", + "moduleName": "Sentry" + }, + { + "kind": "TypeDecl", + "name": "SentryViewScreenshotOptions", + "printedName": "SentryViewScreenshotOptions", + "children": [ { - "kind": "Var", - "name": "unavailable", - "printedName": "unavailable", + "kind": "TypeDecl", + "name": "DefaultValues", + "printedName": "DefaultValues", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", + "kind": "Var", + "name": "enableViewRendererV2", + "printedName": "enableViewRendererV2", "children": [ { "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - }, + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Var", + "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC06enableB10RendererV2SbvpZ", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC06enableB10RendererV2SbvpZ", + "moduleName": "Sentry", + "static": true, + "declAttributes": [ + "Final", + "HasStorage" + ], + "isLet": true, + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySpanStatus.Type", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } - ] + ], + "declKind": "Accessor", + "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC06enableB10RendererV2SbvgZ", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC06enableB10RendererV2SbvgZ", + "moduleName": "Sentry", + "static": true, + "implicit": true, + "declAttributes": [ + "Final" + ], + "accessorKind": "get" } ] - } - ], - "declKind": "EnumElement", - "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusUnavailable", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - }, - { - "kind": "Var", - "name": "internalError", - "printedName": "internalError", - "children": [ + }, { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", + "kind": "Var", + "name": "enableFastViewRendering", + "printedName": "enableFastViewRendering", "children": [ { "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - }, + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Var", + "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC010enableFastB9RenderingSbvpZ", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC010enableFastB9RenderingSbvpZ", + "moduleName": "Sentry", + "static": true, + "declAttributes": [ + "Final", + "HasStorage" + ], + "isLet": true, + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySpanStatus.Type", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } - ] + ], + "declKind": "Accessor", + "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC010enableFastB9RenderingSbvgZ", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC010enableFastB9RenderingSbvgZ", + "moduleName": "Sentry", + "static": true, + "implicit": true, + "declAttributes": [ + "Final" + ], + "accessorKind": "get" } ] - } - ], - "declKind": "EnumElement", - "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusInternalError", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - }, - { - "kind": "Var", - "name": "unknownError", - "printedName": "unknownError", - "children": [ + }, { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", + "kind": "Var", + "name": "maskAllText", + "printedName": "maskAllText", "children": [ { "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - }, + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Var", + "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC11maskAllTextSbvpZ", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC11maskAllTextSbvpZ", + "moduleName": "Sentry", + "static": true, + "declAttributes": [ + "Final", + "HasStorage" + ], + "isLet": true, + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySpanStatus.Type", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } - ] + ], + "declKind": "Accessor", + "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC11maskAllTextSbvgZ", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC11maskAllTextSbvgZ", + "moduleName": "Sentry", + "static": true, + "implicit": true, + "declAttributes": [ + "Final" + ], + "accessorKind": "get" } ] - } - ], - "declKind": "EnumElement", - "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusUnknownError", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - }, - { - "kind": "Var", - "name": "cancelled", - "printedName": "cancelled", - "children": [ + }, { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", + "kind": "Var", + "name": "maskAllImages", + "printedName": "maskAllImages", "children": [ { "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - }, + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Var", + "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC13maskAllImagesSbvpZ", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC13maskAllImagesSbvpZ", + "moduleName": "Sentry", + "static": true, + "declAttributes": [ + "Final", + "HasStorage" + ], + "isLet": true, + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySpanStatus.Type", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } - ] + ], + "declKind": "Accessor", + "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC13maskAllImagesSbvgZ", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC13maskAllImagesSbvgZ", + "moduleName": "Sentry", + "static": true, + "implicit": true, + "declAttributes": [ + "Final" + ], + "accessorKind": "get" } ] - } - ], - "declKind": "EnumElement", - "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusCancelled", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - }, - { - "kind": "Var", - "name": "alreadyExists", - "printedName": "alreadyExists", - "children": [ + }, { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", + "kind": "Var", + "name": "maskedViewClasses", + "printedName": "maskedViewClasses", "children": [ { "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySpanStatus.Type", + "name": "Array", + "printedName": "[Swift.AnyClass]", "children": [ { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" + "kind": "TypeNameAlias", + "name": "AnyClass", + "printedName": "Swift.AnyClass", + "children": [ + { + "kind": "TypeNominal", + "name": "ExistentialMetatype", + "printedName": "any Swift.AnyObject.Type", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Swift.AnyObject", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Builtin.AnyObject", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "AnyObject" + } + ] + } + ] + } + ] + } + ] } - ] + ], + "usr": "s:Sa" } - ] - } - ], - "declKind": "EnumElement", - "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusAlreadyExists", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - }, - { - "kind": "Var", - "name": "failedPrecondition", - "printedName": "failedPrecondition", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - }, + ], + "declKind": "Var", + "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC06maskedB7ClassesSayyXlXpGvpZ", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC06maskedB7ClassesSayyXlXpGvpZ", + "moduleName": "Sentry", + "static": true, + "declAttributes": [ + "Final", + "HasStorage" + ], + "isLet": true, + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySpanStatus.Type", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" + "name": "Array", + "printedName": "[Swift.AnyClass]", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyClass", + "printedName": "Swift.AnyClass", + "children": [ + { + "kind": "TypeNominal", + "name": "ExistentialMetatype", + "printedName": "any Swift.AnyObject.Type", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Swift.AnyObject", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Builtin.AnyObject", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "AnyObject" + } + ] + } + ] + } + ] + } + ] + } + ], + "usr": "s:Sa" } - ] + ], + "declKind": "Accessor", + "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC06maskedB7ClassesSayyXlXpGvgZ", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC06maskedB7ClassesSayyXlXpGvgZ", + "moduleName": "Sentry", + "static": true, + "implicit": true, + "declAttributes": [ + "Final" + ], + "accessorKind": "get" } ] - } - ], - "declKind": "EnumElement", - "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusFailedPrecondition", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - }, - { - "kind": "Var", - "name": "aborted", - "printedName": "aborted", - "children": [ + }, { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", + "kind": "Var", + "name": "unmaskedViewClasses", + "printedName": "unmaskedViewClasses", "children": [ { "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySpanStatus.Type", + "name": "Array", + "printedName": "[Swift.AnyClass]", "children": [ { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" + "kind": "TypeNameAlias", + "name": "AnyClass", + "printedName": "Swift.AnyClass", + "children": [ + { + "kind": "TypeNominal", + "name": "ExistentialMetatype", + "printedName": "any Swift.AnyObject.Type", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Swift.AnyObject", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Builtin.AnyObject", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "AnyObject" + } + ] + } + ] + } + ] + } + ] } - ] + ], + "usr": "s:Sa" } - ] - } - ], - "declKind": "EnumElement", - "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusAborted", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - }, - { - "kind": "Var", - "name": "outOfRange", - "printedName": "outOfRange", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - }, + ], + "declKind": "Var", + "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC08unmaskedB7ClassesSayyXlXpGvpZ", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC08unmaskedB7ClassesSayyXlXpGvpZ", + "moduleName": "Sentry", + "static": true, + "declAttributes": [ + "Final", + "HasStorage" + ], + "isLet": true, + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySpanStatus.Type", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" + "name": "Array", + "printedName": "[Swift.AnyClass]", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyClass", + "printedName": "Swift.AnyClass", + "children": [ + { + "kind": "TypeNominal", + "name": "ExistentialMetatype", + "printedName": "any Swift.AnyObject.Type", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Swift.AnyObject", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Builtin.AnyObject", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "AnyObject" + } + ] + } + ] + } + ] + } + ] + } + ], + "usr": "s:Sa" } - ] + ], + "declKind": "Accessor", + "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC08unmaskedB7ClassesSayyXlXpGvgZ", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC08unmaskedB7ClassesSayyXlXpGvgZ", + "moduleName": "Sentry", + "static": true, + "implicit": true, + "declAttributes": [ + "Final" + ], + "accessorKind": "get" } ] } ], - "declKind": "EnumElement", - "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusOutOfRange", + "declKind": "Class", + "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC", "moduleName": "Sentry", "declAttributes": [ - "ObjC" - ] - }, - { - "kind": "Var", - "name": "dataLoss", - "printedName": "dataLoss", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentrySpanStatus.Type) -> Sentry.SentrySpanStatus", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentrySpanStatus.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - } - ] - } - ] - } + "Final" ], - "declKind": "EnumElement", - "usr": "c:@E@SentrySpanStatus@kSentrySpanStatusDataLoss", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - } - ], - "declKind": "Enum", - "usr": "c:@E@SentrySpanStatus", - "moduleName": "Sentry", - "objc_name": "SentrySpanStatus", - "declAttributes": [ - "SynthesizedProtocol", - "ObjC", - "SynthesizedProtocol", - "Sendable", - "Dynamic" - ], - "enumRawTypeName": "UInt", - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "RawRepresentable", - "printedName": "RawRepresentable", - "children": [ + "hasMissingDesignatedInitializers": true, + "conformances": [ { - "kind": "TypeWitness", - "name": "RawValue", - "printedName": "RawValue", - "children": [ - { - "kind": "TypeNameAlias", - "name": "RawValue", - "printedName": "Sentry.SentrySpanStatus.RawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "UInt", - "printedName": "Swift.UInt", - "usr": "s:Su" - } - ] - } - ] + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" } - ], - "usr": "s:SY", - "mangledName": "$sSY" - }, - { - "kind": "Conformance", - "name": "Sendable", - "printedName": "Sendable", - "usr": "s:s8SendableP", - "mangledName": "$ss8SendableP" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" + ] }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - } - ] - }, - { - "kind": "TypeDecl", - "name": "SentryStacktrace", - "printedName": "SentryStacktrace", - "children": [ { "kind": "Var", - "name": "frames", - "printedName": "frames", + "name": "enableViewRendererV2", + "printedName": "enableViewRendererV2", "children": [ { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Sentry.Frame]", - "children": [ - { - "kind": "TypeNominal", - "name": "Frame", - "printedName": "Sentry.Frame", - "usr": "c:objc(cs)SentryFrame" - } - ], - "usr": "s:Sa" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryStacktrace(py)frames", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(py)enableViewRendererV2", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC06enableB10RendererV2Sbvp", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "frames", "declAttributes": [ + "Final", "ObjC", - "Dynamic" + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -31227,28 +31483,19 @@ "children": [ { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Sentry.Frame]", - "children": [ - { - "kind": "TypeNominal", - "name": "Frame", - "printedName": "Sentry.Frame", - "usr": "c:objc(cs)SentryFrame" - } - ], - "usr": "s:Sa" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryStacktrace(im)frames", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)enableViewRendererV2", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC06enableB10RendererV2Sbvg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "frames", + "implicit": true, "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "get" }, @@ -31258,40 +31505,25 @@ "printedName": "Set()", "children": [ { - "kind": "TypeNameAlias", + "kind": "TypeNominal", "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] + "printedName": "()" }, { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Sentry.Frame]", - "children": [ - { - "kind": "TypeNominal", - "name": "Frame", - "printedName": "Sentry.Frame", - "usr": "c:objc(cs)SentryFrame" - } - ], - "usr": "s:Sa" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryStacktrace(im)setFrames:", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)setEnableViewRendererV2:", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC06enableB10RendererV2Sbvs", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setFrames:", + "implicit": true, "declAttributes": [ - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "set" } @@ -31299,39 +31531,26 @@ }, { "kind": "Var", - "name": "registers", - "printedName": "registers", + "name": "enableFastViewRendering", + "printedName": "enableFastViewRendering", "children": [ { "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Swift.String]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:SD" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryStacktrace(py)registers", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(py)enableFastViewRendering", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC010enableFastB9RenderingSbvp", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "registers", "declAttributes": [ + "Final", "ObjC", - "Dynamic" + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -31340,34 +31559,19 @@ "children": [ { "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Swift.String]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:SD" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryStacktrace(im)registers", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)enableFastViewRendering", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC010enableFastB9RenderingSbvg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "registers", + "implicit": true, "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "get" }, @@ -31377,46 +31581,25 @@ "printedName": "Set()", "children": [ { - "kind": "TypeNameAlias", + "kind": "TypeNominal", "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] + "printedName": "()" }, { "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Swift.String]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:SD" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryStacktrace(im)setRegisters:", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)setEnableFastViewRendering:", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC010enableFastB9RenderingSbvs", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setRegisters:", + "implicit": true, "declAttributes": [ - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "set" } @@ -31424,34 +31607,27 @@ }, { "kind": "Var", - "name": "snapshot", - "printedName": "snapshot", + "name": "maskAllImages", + "printedName": "maskAllImages", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryStacktrace(py)snapshot", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(py)maskAllImages", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13maskAllImagesSbvp", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "snapshot", + "objc_name": "maskAllImages", "declAttributes": [ - "NSCopying", "ObjC", - "Dynamic" + "Final", + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -31460,28 +31636,20 @@ "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryStacktrace(im)snapshot", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)maskAllImages", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13maskAllImagesSbvg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "snapshot", + "implicit": true, + "objc_name": "maskAllImages", "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "get" }, @@ -31491,244 +31659,53 @@ "printedName": "Set()", "children": [ { - "kind": "TypeNameAlias", + "kind": "TypeNominal", "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] + "printedName": "()" }, { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryStacktrace(im)setSnapshot:", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)setMaskAllImages:", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13maskAllImagesSbvs", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setSnapshot:", + "implicit": true, "declAttributes": [ - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "set" } ] }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(frames:registers:)", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryStacktrace", - "printedName": "Sentry.SentryStacktrace", - "usr": "c:objc(cs)SentryStacktrace" - }, - { - "kind": "TypeNominal", - "name": "Array", - "printedName": "[Sentry.Frame]", - "children": [ - { - "kind": "TypeNominal", - "name": "Frame", - "printedName": "Sentry.Frame", - "usr": "c:objc(cs)SentryFrame" - } - ], - "usr": "s:Sa" - }, - { - "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Swift.String]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:SD" - } - ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentryStacktrace(im)initWithFrames:registers:", - "moduleName": "Sentry", - "objc_name": "initWithFrames:registers:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "init_kind": "Designated" - }, - { - "kind": "Function", - "name": "fixDuplicateFrames", - "printedName": "fixDuplicateFrames()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - } - ], - "declKind": "Func", - "usr": "c:objc(cs)SentryStacktrace(im)fixDuplicateFrames", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "fixDuplicateFrames", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Class", - "usr": "c:objc(cs)SentryStacktrace", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "SentryStacktrace", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "superclassUsr": "c:objc(cs)NSObject", - "inheritsConvenienceInitializers": true, - "superclassNames": [ - "ObjectiveC.NSObject" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "SentrySerializable", - "printedName": "SentrySerializable", - "usr": "c:objc(pl)SentrySerializable" - }, - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - } - ] - }, - { - "kind": "TypeDecl", - "name": "SentryThread", - "printedName": "SentryThread", - "children": [ { "kind": "Var", - "name": "threadId", - "printedName": "threadId", + "name": "maskAllText", + "printedName": "maskAllText", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryThread(py)threadId", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(py)maskAllText", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC11maskAllTextSbvp", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "threadId", + "objc_name": "maskAllText", "declAttributes": [ - "NSCopying", "ObjC", - "Dynamic" + "Final", + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -31737,28 +31714,20 @@ "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryThread(im)threadId", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)maskAllText", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC11maskAllTextSbvg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "threadId", + "implicit": true, + "objc_name": "maskAllText", "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "get" }, @@ -31768,40 +31737,25 @@ "printedName": "Set()", "children": [ { - "kind": "TypeNameAlias", + "kind": "TypeNominal", "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] + "printedName": "()" }, { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryThread(im)setThreadId:", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)setMaskAllText:", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC11maskAllTextSbvs", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setThreadId:", + "implicit": true, "declAttributes": [ - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "set" } @@ -31809,33 +31763,62 @@ }, { "kind": "Var", - "name": "name", - "printedName": "name", + "name": "maskedViewClasses", + "printedName": "maskedViewClasses", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", + "name": "Array", + "printedName": "[Swift.AnyClass]", "children": [ { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "kind": "TypeNameAlias", + "name": "AnyClass", + "printedName": "Swift.AnyClass", + "children": [ + { + "kind": "TypeNominal", + "name": "ExistentialMetatype", + "printedName": "any Swift.AnyObject.Type", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Swift.AnyObject", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Builtin.AnyObject", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "AnyObject" + } + ] + } + ] + } + ] + } + ] } ], - "usr": "s:Sq" + "usr": "s:Sa" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryThread(py)name", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(py)maskedViewClasses", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC06maskedB7ClassesSayyXlXpGvp", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "name", + "objc_name": "maskedViewClasses", "declAttributes": [ "ObjC", - "Dynamic" + "Final", + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -31844,71 +31827,118 @@ "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryThread(im)name", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "name", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "name": "Array", + "printedName": "[Swift.AnyClass]", "children": [ { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "kind": "TypeNameAlias", + "name": "AnyClass", + "printedName": "Swift.AnyClass", + "children": [ + { + "kind": "TypeNominal", + "name": "ExistentialMetatype", + "printedName": "any Swift.AnyObject.Type", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Swift.AnyObject", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Builtin.AnyObject", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "AnyObject" + } + ] + } + ] + } + ] + } + ] } - ] + ], + "usr": "s:Sa" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)maskedViewClasses", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC06maskedB7ClassesSayyXlXpGvg", + "moduleName": "Sentry", + "implicit": true, + "objc_name": "maskedViewClasses", + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" }, { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", + "name": "Array", + "printedName": "[Swift.AnyClass]", "children": [ { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "kind": "TypeNameAlias", + "name": "AnyClass", + "printedName": "Swift.AnyClass", + "children": [ + { + "kind": "TypeNominal", + "name": "ExistentialMetatype", + "printedName": "any Swift.AnyObject.Type", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Swift.AnyObject", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Builtin.AnyObject", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "AnyObject" + } + ] + } + ] + } + ] + } + ] } ], - "usr": "s:Sq" + "usr": "s:Sa" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryThread(im)setName:", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)setMaskedViewClasses:", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC06maskedB7ClassesSayyXlXpGvs", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setName:", + "implicit": true, "declAttributes": [ - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "set" } @@ -31916,33 +31946,62 @@ }, { "kind": "Var", - "name": "stacktrace", - "printedName": "stacktrace", + "name": "unmaskedViewClasses", + "printedName": "unmaskedViewClasses", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryStacktrace?", + "name": "Array", + "printedName": "[Swift.AnyClass]", "children": [ { - "kind": "TypeNominal", - "name": "SentryStacktrace", - "printedName": "Sentry.SentryStacktrace", - "usr": "c:objc(cs)SentryStacktrace" + "kind": "TypeNameAlias", + "name": "AnyClass", + "printedName": "Swift.AnyClass", + "children": [ + { + "kind": "TypeNominal", + "name": "ExistentialMetatype", + "printedName": "any Swift.AnyObject.Type", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Swift.AnyObject", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Builtin.AnyObject", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "AnyObject" + } + ] + } + ] + } + ] + } + ] } ], - "usr": "s:Sq" + "usr": "s:Sa" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryThread(py)stacktrace", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(py)unmaskedViewClasses", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC08unmaskedB7ClassesSayyXlXpGvp", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "stacktrace", + "objc_name": "unmaskedViewClasses", "declAttributes": [ "ObjC", - "Dynamic" + "Final", + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -31951,28 +32010,55 @@ "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryStacktrace?", + "name": "Array", + "printedName": "[Swift.AnyClass]", "children": [ { - "kind": "TypeNominal", - "name": "SentryStacktrace", - "printedName": "Sentry.SentryStacktrace", - "usr": "c:objc(cs)SentryStacktrace" + "kind": "TypeNameAlias", + "name": "AnyClass", + "printedName": "Swift.AnyClass", + "children": [ + { + "kind": "TypeNominal", + "name": "ExistentialMetatype", + "printedName": "any Swift.AnyObject.Type", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Swift.AnyObject", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Builtin.AnyObject", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "AnyObject" + } + ] + } + ] + } + ] + } + ] } ], - "usr": "s:Sq" + "usr": "s:Sa" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryThread(im)stacktrace", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)unmaskedViewClasses", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC08unmaskedB7ClassesSayyXlXpGvg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "stacktrace", + "implicit": true, + "objc_name": "unmaskedViewClasses", "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "get" }, @@ -31982,182 +32068,246 @@ "printedName": "Set()", "children": [ { - "kind": "TypeNameAlias", + "kind": "TypeNominal", "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] + "printedName": "()" }, { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryStacktrace?", + "name": "Array", + "printedName": "[Swift.AnyClass]", "children": [ { - "kind": "TypeNominal", - "name": "SentryStacktrace", - "printedName": "Sentry.SentryStacktrace", - "usr": "c:objc(cs)SentryStacktrace" + "kind": "TypeNameAlias", + "name": "AnyClass", + "printedName": "Swift.AnyClass", + "children": [ + { + "kind": "TypeNominal", + "name": "ExistentialMetatype", + "printedName": "any Swift.AnyObject.Type", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Swift.AnyObject", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Builtin.AnyObject", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "AnyObject" + } + ] + } + ] + } + ] + } + ] } ], - "usr": "s:Sq" + "usr": "s:Sa" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryThread(im)setStacktrace:", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)setUnmaskedViewClasses:", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC08unmaskedB7ClassesSayyXlXpGvs", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setStacktrace:", + "implicit": true, "declAttributes": [ - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "set" } ] }, { - "kind": "Var", - "name": "crashed", - "printedName": "crashed", + "kind": "Constructor", + "name": "init", + "printedName": "init()", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" + "name": "SentryViewScreenshotOptions", + "printedName": "Sentry.SentryViewScreenshotOptions", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryThread(py)crashed", + "declKind": "Constructor", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)init", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsCACycfc", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "crashed", + "overriding": true, + "objc_name": "init", "declAttributes": [ - "NSCopying", "ObjC", - "Dynamic" + "Dynamic", + "Override" ], - "accessors": [ + "init_kind": "Convenience" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(enableViewRendererV2:enableFastViewRendering:maskAllText:maskAllImages:maskedViewClasses:unmaskedViewClasses:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNominal", + "name": "SentryViewScreenshotOptions", + "printedName": "Sentry.SentryViewScreenshotOptions", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "hasDefaultArg": true, + "usr": "s:Sb" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "hasDefaultArg": true, + "usr": "s:Sb" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "hasDefaultArg": true, + "usr": "s:Sb" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "hasDefaultArg": true, + "usr": "s:Sb" + }, + { + "kind": "TypeNominal", + "name": "Array", + "printedName": "[Swift.AnyClass]", "children": [ { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", + "kind": "TypeNameAlias", + "name": "AnyClass", + "printedName": "Swift.AnyClass", "children": [ { "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" + "name": "ExistentialMetatype", + "printedName": "any Swift.AnyObject.Type", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Swift.AnyObject", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Builtin.AnyObject", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "AnyObject" + } + ] + } + ] + } + ] } - ], - "usr": "s:Sq" + ] } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryThread(im)crashed", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "crashed", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + "hasDefaultArg": true, + "usr": "s:Sa" }, { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeNominal", + "name": "Array", + "printedName": "[Swift.AnyClass]", "children": [ { "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "name": "AnyClass", + "printedName": "Swift.AnyClass", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "ExistentialMetatype", + "printedName": "any Swift.AnyObject.Type", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Swift.AnyObject", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Builtin.AnyObject", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "AnyObject" + } + ] + } + ] + } + ] } ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryThread(im)setCrashed:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setCrashed:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" + "hasDefaultArg": true, + "usr": "s:Sa" } - ] + ], + "declKind": "Constructor", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)initWithEnableViewRendererV2:enableFastViewRendering:maskAllText:maskAllImages:maskedViewClasses:unmaskedViewClasses:", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC06enableB10RendererV20e4FastB9Rendering11maskAllText0jK6Images06maskedB7Classes08unmaskedbO0ACSb_S3bSayyXlXpGAJtcfc", + "moduleName": "Sentry", + "objc_name": "initWithEnableViewRendererV2:enableFastViewRendering:maskAllText:maskAllImages:maskedViewClasses:unmaskedViewClasses:", + "declAttributes": [ + "ObjC" + ], + "init_kind": "Designated" }, { "kind": "Var", - "name": "current", - "printedName": "current", + "name": "description", + "printedName": "description", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryThread(py)current", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(py)description", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC11descriptionSSvp", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "current", + "overriding": true, + "objc_name": "description", "declAttributes": [ - "NSCopying", "ObjC", - "Dynamic" + "Final", + "Override" ], "accessors": [ { @@ -32167,229 +32317,35 @@ "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryThread(im)current", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "current", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryThread(im)setCurrent:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setCurrent:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" - } - ] - }, - { - "kind": "Var", - "name": "isMain", - "printedName": "isMain", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryThread(py)isMain", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "isMain", - "declAttributes": [ - "NSCopying", - "ObjC", - "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryThread(im)isMain", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)description", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC11descriptionSSvg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "isMain", + "overriding": true, + "objc_name": "description", "declAttributes": [ - "DiscardableResult", + "Final", "ObjC", - "Dynamic" + "Override" ], "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryThread(im)setIsMain:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setIsMain:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" } ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(threadId:)", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryThread", - "printedName": "Sentry.SentryThread", - "usr": "c:objc(cs)SentryThread" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentryThread(im)initWithThreadId:", - "moduleName": "Sentry", - "objc_name": "initWithThreadId:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "init_kind": "Designated" } ], "declKind": "Class", - "usr": "c:objc(cs)SentryThread", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions", + "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "SentryThread", "declAttributes": [ - "ObjC", - "Dynamic" + "Final", + "ObjCMembers", + "ObjC" ], "superclassUsr": "c:objc(cs)NSObject", "inheritsConvenienceInitializers": true, @@ -32399,9 +32355,10 @@ "conformances": [ { "kind": "Conformance", - "name": "SentrySerializable", - "printedName": "SentrySerializable", - "usr": "c:objc(pl)SentrySerializable" + "name": "SentryRedactOptions", + "printedName": "SentryRedactOptions", + "usr": "c:@M@Sentry@objc(pl)SentryRedactOptions", + "mangledName": "$s6Sentry0A13RedactOptionsP" }, { "kind": "Conformance", @@ -32461,261 +32418,304 @@ ] }, { - "kind": "TypeAlias", - "name": "SentryTracesSamplerCallback", - "printedName": "SentryTracesSamplerCallback", + "kind": "TypeDecl", + "name": "SentryFeedback", + "printedName": "SentryFeedback", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SamplingContext) -> Foundation.NSNumber?", + "kind": "TypeDecl", + "name": "SentryFeedbackSource", + "printedName": "SentryFeedbackSource", "children": [ { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", + "kind": "Var", + "name": "serialize", + "printedName": "serialize", "children": [ { "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], - "usr": "s:Sq" + "declKind": "Var", + "usr": "s:6Sentry0A8FeedbackC0aB6SourceO9serializeSSvp", + "mangledName": "$s6Sentry0A8FeedbackC0aB6SourceO9serializeSSvp", + "moduleName": "Sentry", + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "s:6Sentry0A8FeedbackC0aB6SourceO9serializeSSvg", + "mangledName": "$s6Sentry0A8FeedbackC0aB6SourceO9serializeSSvg", + "moduleName": "Sentry", + "accessorKind": "get" + } + ] }, { - "kind": "TypeNominal", - "name": "SamplingContext", - "printedName": "Sentry.SamplingContext", - "usr": "c:objc(cs)SentrySamplingContext" - } - ] - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@SentryTracesSamplerCallback", - "moduleName": "Sentry" - }, - { - "kind": "TypeAlias", - "name": "SentryUserFeedbackConfigurationBlock", - "printedName": "SentryUserFeedbackConfigurationBlock", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryUserFeedbackConfiguration) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "Var", + "name": "widget", + "printedName": "widget", "children": [ { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryFeedback.SentryFeedbackSource.Type) -> Sentry.SentryFeedback.SentryFeedbackSource", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryFeedbackSource", + "printedName": "Sentry.SentryFeedback.SentryFeedbackSource", + "usr": "s:6Sentry0A8FeedbackC0aB6SourceO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryFeedback.SentryFeedbackSource.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryFeedbackSource", + "printedName": "Sentry.SentryFeedback.SentryFeedbackSource", + "usr": "s:6Sentry0A8FeedbackC0aB6SourceO" + } + ] + } + ] } + ], + "declKind": "EnumElement", + "usr": "s:6Sentry0A8FeedbackC0aB6SourceO6widgetyA2EmF", + "mangledName": "$s6Sentry0A8FeedbackC0aB6SourceO6widgetyA2EmF", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" ] }, { - "kind": "TypeNominal", - "name": "SentryUserFeedbackConfiguration", - "printedName": "Sentry.SentryUserFeedbackConfiguration", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration" - } - ] - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@SentryUserFeedbackConfigurationBlock", - "moduleName": "Sentry" - }, - { - "kind": "Var", - "name": "SentryVersionNumber", - "printedName": "SentryVersionNumber", - "children": [ - { - "kind": "TypeNominal", - "name": "Double", - "printedName": "Swift.Double", - "usr": "s:Sd" - } - ], - "declKind": "Var", - "usr": "c:@SentryVersionNumber", - "moduleName": "Sentry", - "hasStorage": true - }, - { - "kind": "Var", - "name": "SentryVersionString", - "printedName": "SentryVersionString", - "children": [ - { - "kind": "TypeNominal", - "name": "Error", - "printedName": "<>" - } - ], - "declKind": "Var", - "usr": "c:@SentryVersionString", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "TypeDecl", - "name": "Span", - "printedName": "Span", - "children": [ - { - "kind": "Var", - "name": "traceId", - "printedName": "traceId", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - } - ], - "declKind": "Var", - "usr": "c:objc(pl)SentrySpan(py)traceId", - "moduleName": "Sentry", - "protocolReq": true, - "objc_name": "traceId", - "declAttributes": [ - "ObjC", - "Dynamic" - ] - }, - { - "kind": "Var", - "name": "spanId", - "printedName": "spanId", - "children": [ - { - "kind": "TypeNominal", - "name": "SpanId", - "printedName": "Sentry.SpanId", - "usr": "c:objc(cs)SentrySpanId" - } - ], - "declKind": "Var", - "usr": "c:objc(pl)SentrySpan(py)spanId", - "moduleName": "Sentry", - "protocolReq": true, - "objc_name": "spanId", - "declAttributes": [ - "ObjC", - "Dynamic" - ] - }, - { - "kind": "Var", - "name": "parentSpanId", - "printedName": "parentSpanId", - "children": [ + "kind": "Var", + "name": "custom", + "printedName": "custom", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryFeedback.SentryFeedbackSource.Type) -> Sentry.SentryFeedback.SentryFeedbackSource", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryFeedbackSource", + "printedName": "Sentry.SentryFeedback.SentryFeedbackSource", + "usr": "s:6Sentry0A8FeedbackC0aB6SourceO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryFeedback.SentryFeedbackSource.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryFeedbackSource", + "printedName": "Sentry.SentryFeedback.SentryFeedbackSource", + "usr": "s:6Sentry0A8FeedbackC0aB6SourceO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6Sentry0A8FeedbackC0aB6SourceO6customyA2EmF", + "mangledName": "$s6Sentry0A8FeedbackC0aB6SourceO6customyA2EmF", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" + ] + }, { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SpanId?", + "kind": "Constructor", + "name": "init", + "printedName": "init(rawValue:)", "children": [ { "kind": "TypeNominal", - "name": "SpanId", - "printedName": "Sentry.SpanId", - "usr": "c:objc(cs)SentrySpanId" + "name": "Optional", + "printedName": "Sentry.SentryFeedback.SentryFeedbackSource?", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryFeedbackSource", + "printedName": "Sentry.SentryFeedback.SentryFeedbackSource", + "usr": "s:6Sentry0A8FeedbackC0aB6SourceO" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "c:objc(pl)SentrySpan(py)parentSpanId", - "moduleName": "Sentry", - "protocolReq": true, - "objc_name": "parentSpanId", - "declAttributes": [ - "ObjC", - "Dynamic" - ] - }, - { - "kind": "Var", - "name": "sampled", - "printedName": "sampled", - "children": [ + "declKind": "Constructor", + "usr": "s:6Sentry0A8FeedbackC0aB6SourceO8rawValueAESgSi_tcfc", + "mangledName": "$s6Sentry0A8FeedbackC0aB6SourceO8rawValueAESgSi_tcfc", + "moduleName": "Sentry", + "init_kind": "Designated" + }, { - "kind": "TypeNominal", - "name": "SentrySampleDecision", - "printedName": "Sentry.SentrySampleDecision", - "usr": "c:@E@SentrySampleDecision" + "kind": "TypeAlias", + "name": "RawValue", + "printedName": "RawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "TypeAlias", + "usr": "s:6Sentry0A8FeedbackC0aB6SourceO8RawValuea", + "mangledName": "$s6Sentry0A8FeedbackC0aB6SourceO8RawValuea", + "moduleName": "Sentry" + }, + { + "kind": "Var", + "name": "rawValue", + "printedName": "rawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Var", + "usr": "s:6Sentry0A8FeedbackC0aB6SourceO8rawValueSivp", + "mangledName": "$s6Sentry0A8FeedbackC0aB6SourceO8rawValueSivp", + "moduleName": "Sentry", + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Accessor", + "usr": "s:6Sentry0A8FeedbackC0aB6SourceO8rawValueSivg", + "mangledName": "$s6Sentry0A8FeedbackC0aB6SourceO8rawValueSivg", + "moduleName": "Sentry", + "accessorKind": "get" + } + ] } ], - "declKind": "Var", - "usr": "c:objc(pl)SentrySpan(py)sampled", + "declKind": "Enum", + "usr": "s:6Sentry0A8FeedbackC0aB6SourceO", + "mangledName": "$s6Sentry0A8FeedbackC0aB6SourceO", "moduleName": "Sentry", - "protocolReq": true, - "objc_name": "sampled", "declAttributes": [ - "ObjC", - "Dynamic" - ] - }, - { - "kind": "Var", - "name": "operation", - "printedName": "operation", - "children": [ + "ObjC" + ], + "enumRawTypeName": "Int", + "conformances": [ { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "RawRepresentable", + "printedName": "RawRepresentable", + "children": [ + { + "kind": "TypeWitness", + "name": "RawValue", + "printedName": "RawValue", + "children": [ + { + "kind": "TypeNameAlias", + "name": "RawValue", + "printedName": "Sentry.SentryFeedback.SentryFeedbackSource.RawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ] + } + ] + } + ], + "usr": "s:SY", + "mangledName": "$sSY" } - ], - "declKind": "Var", - "usr": "c:objc(pl)SentrySpan(py)operation", - "moduleName": "Sentry", - "protocolReq": true, - "objc_name": "operation", - "declAttributes": [ - "ObjC", - "Dynamic" ] }, { - "kind": "Var", - "name": "origin", - "printedName": "origin", + "kind": "Constructor", + "name": "init", + "printedName": "init(message:name:email:source:associatedEventId:attachments:)", "children": [ + { + "kind": "TypeNominal", + "name": "SentryFeedback", + "printedName": "Sentry.SentryFeedback", + "usr": "c:@M@Sentry@objc(cs)SentryFeedback" + }, { "kind": "TypeNominal", "name": "String", "printedName": "Swift.String", "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:objc(pl)SentrySpan(py)origin", - "moduleName": "Sentry", - "protocolReq": true, - "objc_name": "origin", - "declAttributes": [ - "ObjC", - "Dynamic" - ] - }, - { - "kind": "Var", - "name": "spanDescription", - "printedName": "spanDescription", - "children": [ + }, { "kind": "TypeNominal", "name": "Optional", @@ -32729,108 +32729,81 @@ } ], "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "c:objc(pl)SentrySpan(py)spanDescription", - "moduleName": "Sentry", - "protocolReq": true, - "objc_name": "spanDescription", - "declAttributes": [ - "ObjC", - "Dynamic" - ] - }, - { - "kind": "Var", - "name": "status", - "printedName": "status", - "children": [ + }, { "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - } - ], - "declKind": "Var", - "usr": "c:objc(pl)SentrySpan(py)status", - "moduleName": "Sentry", - "protocolReq": true, - "objc_name": "status", - "declAttributes": [ - "ObjC", - "Dynamic" - ] - }, - { - "kind": "Var", - "name": "timestamp", - "printedName": "timestamp", - "children": [ + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "SentryFeedbackSource", + "printedName": "Sentry.SentryFeedback.SentryFeedbackSource", + "hasDefaultArg": true, + "usr": "s:6Sentry0A8FeedbackC0aB6SourceO" + }, { "kind": "TypeNominal", "name": "Optional", - "printedName": "Foundation.Date?", + "printedName": "Sentry.SentryId?", "children": [ { "kind": "TypeNominal", - "name": "Date", - "printedName": "Foundation.Date", - "usr": "s:10Foundation4DateV" + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" } ], + "hasDefaultArg": true, "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "c:objc(pl)SentrySpan(py)timestamp", - "moduleName": "Sentry", - "protocolReq": true, - "intro_iOS": "8.0", - "objc_name": "timestamp", - "declAttributes": [ - "Available", - "ObjC", - "Dynamic" - ] - }, - { - "kind": "Var", - "name": "startTimestamp", - "printedName": "startTimestamp", - "children": [ + }, { "kind": "TypeNominal", "name": "Optional", - "printedName": "Foundation.Date?", + "printedName": "[Foundation.Data]?", "children": [ { "kind": "TypeNominal", - "name": "Date", - "printedName": "Foundation.Date", - "usr": "s:10Foundation4DateV" + "name": "Array", + "printedName": "[Foundation.Data]", + "children": [ + { + "kind": "TypeNominal", + "name": "Data", + "printedName": "Foundation.Data", + "usr": "s:10Foundation4DataV" + } + ], + "usr": "s:Sa" } ], + "hasDefaultArg": true, "usr": "s:Sq" } ], - "declKind": "Var", - "usr": "c:objc(pl)SentrySpan(py)startTimestamp", + "declKind": "Constructor", + "usr": "c:@M@Sentry@objc(cs)SentryFeedback(im)initWithMessage:name:email:source:associatedEventId:attachments:", + "mangledName": "$s6Sentry0A8FeedbackC7message4name5email6source17associatedEventId11attachmentsACSS_SSSgAjC0aB6SourceOSo0aI0CSgSay10Foundation4DataVGSgtcfc", "moduleName": "Sentry", - "protocolReq": true, - "intro_iOS": "8.0", - "objc_name": "startTimestamp", + "objc_name": "initWithMessage:name:email:source:associatedEventId:attachments:", "declAttributes": [ - "Available", - "ObjC", - "Dynamic" - ] + "ObjC" + ], + "init_kind": "Designated" }, { - "kind": "Var", - "name": "data", - "printedName": "data", + "kind": "Function", + "name": "serialize", + "printedName": "serialize()", "children": [ { "kind": "TypeNominal", @@ -32852,292 +32825,490 @@ "usr": "s:SD" } ], - "declKind": "Var", - "usr": "c:objc(pl)SentrySpan(py)data", + "declKind": "Func", + "usr": "c:@CM@Sentry@objc(cs)SentryFeedback(im)serialize", + "mangledName": "$s6Sentry0A8FeedbackC9serializeSDySSypGyF", "moduleName": "Sentry", - "protocolReq": true, - "objc_name": "data", + "objc_name": "serialize", "declAttributes": [ "ObjC", - "Dynamic" - ] + "Final" + ], + "isFromExtension": true, + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Class", + "usr": "c:@M@Sentry@objc(cs)SentryFeedback", + "mangledName": "$s6Sentry0A8FeedbackC", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjCMembers", + "ObjC" + ], + "superclassUsr": "c:objc(cs)NSObject", + "superclassNames": [ + "ObjectiveC.NSObject" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" }, { - "kind": "Var", - "name": "tags", - "printedName": "tags", + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" + }, + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" + }, + { + "kind": "Conformance", + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" + }, + { + "kind": "Conformance", + "name": "SentrySerializable", + "printedName": "SentrySerializable", + "usr": "c:objc(pl)SentrySerializable" + } + ] + }, + { + "kind": "TypeDecl", + "name": "SentryLogMessage", + "printedName": "SentryLogMessage", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(stringLiteral:)", "children": [ { "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Swift.String]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:SD" + "name": "SentryLogMessage", + "printedName": "Sentry.SentryLogMessage", + "usr": "s:6Sentry0A10LogMessageV" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], - "declKind": "Var", - "usr": "c:objc(pl)SentrySpan(py)tags", + "declKind": "Constructor", + "usr": "s:6Sentry0A10LogMessageV13stringLiteralACSS_tcfc", + "mangledName": "$s6Sentry0A10LogMessageV13stringLiteralACSS_tcfc", "moduleName": "Sentry", - "protocolReq": true, - "objc_name": "tags", - "declAttributes": [ - "ObjC", - "Dynamic" - ] + "init_kind": "Designated" }, { - "kind": "Var", - "name": "isFinished", - "printedName": "isFinished", + "kind": "Constructor", + "name": "init", + "printedName": "init(stringInterpolation:)", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "SentryLogMessage", + "printedName": "Sentry.SentryLogMessage", + "usr": "s:6Sentry0A10LogMessageV" + }, + { + "kind": "TypeNominal", + "name": "StringInterpolation", + "printedName": "Sentry.SentryLogMessage.StringInterpolation", + "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV" } ], - "declKind": "Var", - "usr": "c:objc(pl)SentrySpan(py)isFinished", + "declKind": "Constructor", + "usr": "s:6Sentry0A10LogMessageV19stringInterpolationA2C06StringE0V_tcfc", + "mangledName": "$s6Sentry0A10LogMessageV19stringInterpolationA2C06StringE0V_tcfc", "moduleName": "Sentry", - "protocolReq": true, - "objc_name": "isFinished", - "declAttributes": [ - "ObjC", - "Dynamic" - ] + "init_kind": "Designated" }, { - "kind": "Var", - "name": "traceContext", - "printedName": "traceContext", + "kind": "TypeDecl", + "name": "StringInterpolation", + "printedName": "StringInterpolation", "children": [ { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.TraceContext?", + "kind": "Constructor", + "name": "init", + "printedName": "init(literalCapacity:interpolationCount:)", "children": [ { "kind": "TypeNominal", - "name": "TraceContext", - "printedName": "Sentry.TraceContext", - "usr": "c:objc(cs)SentryTraceContext" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "c:objc(pl)SentrySpan(py)traceContext", - "moduleName": "Sentry", - "protocolReq": true, - "objc_name": "traceContext", - "declAttributes": [ - "ObjC", - "Dynamic" - ] - }, - { - "kind": "Function", - "name": "startChild", - "printedName": "startChild(operation:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" + "name": "StringInterpolation", + "printedName": "Sentry.SentryLogMessage.StringInterpolation", + "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Constructor", + "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV15literalCapacity18interpolationCountAESi_Sitcfc", + "mangledName": "$s6Sentry0A10LogMessageV19StringInterpolationV15literalCapacity18interpolationCountAESi_Sitcfc", + "moduleName": "Sentry", + "init_kind": "Designated" }, { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Func", - "usr": "c:objc(pl)SentrySpan(im)startChildWithOperation:", - "moduleName": "Sentry", - "genericSig": "", - "protocolReq": true, - "objc_name": "startChildWithOperation:", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "reqNewWitnessTableEntry": true, - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "startChild", - "printedName": "startChild(operation:description:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" + "kind": "Function", + "name": "appendLiteral", + "printedName": "appendLiteral(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV13appendLiteralyySSF", + "mangledName": "$s6Sentry0A10LogMessageV19StringInterpolationV13appendLiteralyySSF", + "moduleName": "Sentry", + "funcSelfKind": "Mutating" }, { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "kind": "Function", + "name": "appendInterpolation", + "printedName": "appendInterpolation(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "() -> Swift.String", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + } + ], + "declKind": "Func", + "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV06appendE0yySSyXAF", + "mangledName": "$s6Sentry0A10LogMessageV19StringInterpolationV06appendE0yySSyXAF", + "moduleName": "Sentry", + "funcSelfKind": "Mutating" }, { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", + "kind": "Function", + "name": "appendInterpolation", + "printedName": "appendInterpolation(_:)", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "() -> Swift.Bool", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + }, + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] } ], - "usr": "s:Sq" - } - ], - "declKind": "Func", - "usr": "c:objc(pl)SentrySpan(im)startChildWithOperation:description:", - "moduleName": "Sentry", - "genericSig": "", - "protocolReq": true, - "objc_name": "startChildWithOperation:description:", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "reqNewWitnessTableEntry": true, - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "setData", - "printedName": "setData(value:key:)", - "children": [ + "declKind": "Func", + "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV06appendE0yySbyXAF", + "mangledName": "$s6Sentry0A10LogMessageV19StringInterpolationV06appendE0yySbyXAF", + "moduleName": "Sentry", + "funcSelfKind": "Mutating" + }, { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "Function", + "name": "appendInterpolation", + "printedName": "appendInterpolation(_:)", "children": [ { "kind": "TypeNominal", "name": "Void", "printedName": "()" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "() -> Swift.Int", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + }, + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] } - ] + ], + "declKind": "Func", + "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV06appendE0yySiyXAF", + "mangledName": "$s6Sentry0A10LogMessageV19StringInterpolationV06appendE0yySiyXAF", + "moduleName": "Sentry", + "funcSelfKind": "Mutating" }, { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Any?", + "kind": "Function", + "name": "appendInterpolation", + "printedName": "appendInterpolation(_:)", "children": [ { "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "() -> Swift.Double", + "children": [ + { + "kind": "TypeNominal", + "name": "Double", + "printedName": "Swift.Double", + "usr": "s:Sd" + }, + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] } ], - "usr": "s:Sq" + "declKind": "Func", + "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV06appendE0yySdyXAF", + "mangledName": "$s6Sentry0A10LogMessageV19StringInterpolationV06appendE0yySdyXAF", + "moduleName": "Sentry", + "funcSelfKind": "Mutating" }, { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Func", - "usr": "c:objc(pl)SentrySpan(im)setDataValue:forKey:", - "moduleName": "Sentry", - "genericSig": "", - "protocolReq": true, - "objc_name": "setDataValue:forKey:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "reqNewWitnessTableEntry": true, - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "removeData", - "printedName": "removeData(key:)", - "children": [ + "kind": "Function", + "name": "appendInterpolation", + "printedName": "appendInterpolation(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "() -> Swift.Float", + "children": [ + { + "kind": "TypeNominal", + "name": "Float", + "printedName": "Swift.Float", + "usr": "s:Sf" + }, + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + } + ], + "declKind": "Func", + "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV06appendE0yySfyXAF", + "mangledName": "$s6Sentry0A10LogMessageV19StringInterpolationV06appendE0yySfyXAF", + "moduleName": "Sentry", + "funcSelfKind": "Mutating" + }, { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "Function", + "name": "appendInterpolation", + "printedName": "appendInterpolation(_:)", "children": [ { "kind": "TypeNominal", "name": "Void", "printedName": "()" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "() -> T", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "T" + }, + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] } - ] + ], + "declKind": "Func", + "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV06appendE0yyxyXAs06CustomD11ConvertibleRzlF", + "mangledName": "$s6Sentry0A10LogMessageV19StringInterpolationV06appendE0yyxyXAs06CustomD11ConvertibleRzlF", + "moduleName": "Sentry", + "genericSig": "", + "funcSelfKind": "Mutating" }, { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "kind": "TypeAlias", + "name": "StringLiteralType", + "printedName": "StringLiteralType", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "TypeAlias", + "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV0D11LiteralTypea", + "mangledName": "$s6Sentry0A10LogMessageV19StringInterpolationV0D11LiteralTypea", + "moduleName": "Sentry" } ], - "declKind": "Func", - "usr": "c:objc(pl)SentrySpan(im)removeDataForKey:", + "declKind": "Struct", + "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV", + "mangledName": "$s6Sentry0A10LogMessageV19StringInterpolationV", "moduleName": "Sentry", - "genericSig": "", - "protocolReq": true, - "objc_name": "removeDataForKey:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "reqNewWitnessTableEntry": true, - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "setTag", - "printedName": "setTag(value:key:)", - "children": [ + "conformances": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "Conformance", + "name": "StringInterpolationProtocol", + "printedName": "StringInterpolationProtocol", "children": [ { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "kind": "TypeWitness", + "name": "StringLiteralType", + "printedName": "StringLiteralType", + "children": [ + { + "kind": "TypeNameAlias", + "name": "StringLiteralType", + "printedName": "Sentry.SentryLogMessage.StringInterpolation.StringLiteralType", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ] + } + ] } - ] + ], + "usr": "s:s27StringInterpolationProtocolP", + "mangledName": "$ss27StringInterpolationProtocolP" }, { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + } + ] + }, + { + "kind": "TypeAlias", + "name": "ExtendedGraphemeClusterLiteralType", + "printedName": "ExtendedGraphemeClusterLiteralType", + "children": [ { "kind": "TypeNominal", "name": "String", @@ -33145,36 +33316,16 @@ "usr": "s:SS" } ], - "declKind": "Func", - "usr": "c:objc(pl)SentrySpan(im)setTagValue:forKey:", - "moduleName": "Sentry", - "genericSig": "", - "protocolReq": true, - "objc_name": "setTagValue:forKey:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "reqNewWitnessTableEntry": true, - "funcSelfKind": "NonMutating" + "declKind": "TypeAlias", + "usr": "s:6Sentry0A10LogMessageV34ExtendedGraphemeClusterLiteralTypea", + "mangledName": "$s6Sentry0A10LogMessageV34ExtendedGraphemeClusterLiteralTypea", + "moduleName": "Sentry" }, { - "kind": "Function", - "name": "removeTag", - "printedName": "removeTag(key:)", + "kind": "TypeAlias", + "name": "StringLiteralType", + "printedName": "StringLiteralType", "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, { "kind": "TypeNominal", "name": "String", @@ -33182,295 +33333,142 @@ "usr": "s:SS" } ], - "declKind": "Func", - "usr": "c:objc(pl)SentrySpan(im)removeTagForKey:", - "moduleName": "Sentry", - "genericSig": "", - "protocolReq": true, - "objc_name": "removeTagForKey:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "reqNewWitnessTableEntry": true, - "funcSelfKind": "NonMutating" + "declKind": "TypeAlias", + "usr": "s:6Sentry0A10LogMessageV17StringLiteralTypea", + "mangledName": "$s6Sentry0A10LogMessageV17StringLiteralTypea", + "moduleName": "Sentry" }, { - "kind": "Function", - "name": "setMeasurement", - "printedName": "setMeasurement(name:value:)", + "kind": "TypeAlias", + "name": "UnicodeScalarLiteralType", + "printedName": "UnicodeScalarLiteralType", "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, { "kind": "TypeNominal", "name": "String", "printedName": "Swift.String", "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" } ], - "declKind": "Func", - "usr": "c:objc(pl)SentrySpan(im)setMeasurement:value:", - "moduleName": "Sentry", - "genericSig": "", - "protocolReq": true, - "objc_name": "setMeasurement:value:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "reqNewWitnessTableEntry": true, - "funcSelfKind": "NonMutating" - }, + "declKind": "TypeAlias", + "usr": "s:6Sentry0A10LogMessageV24UnicodeScalarLiteralTypea", + "mangledName": "$s6Sentry0A10LogMessageV24UnicodeScalarLiteralTypea", + "moduleName": "Sentry" + } + ], + "declKind": "Struct", + "usr": "s:6Sentry0A10LogMessageV", + "mangledName": "$s6Sentry0A10LogMessageV", + "moduleName": "Sentry", + "conformances": [ { - "kind": "Function", - "name": "setMeasurement", - "printedName": "setMeasurement(name:value:unit:)", + "kind": "Conformance", + "name": "ExpressibleByStringInterpolation", + "printedName": "ExpressibleByStringInterpolation", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeWitness", + "name": "StringInterpolation", + "printedName": "StringInterpolation", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "StringInterpolation", + "printedName": "Sentry.SentryLogMessage.StringInterpolation", + "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV" } ] - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - }, - { - "kind": "TypeNominal", - "name": "MeasurementUnit", - "printedName": "Sentry.MeasurementUnit", - "usr": "c:objc(cs)SentryMeasurementUnit" } ], - "declKind": "Func", - "usr": "c:objc(pl)SentrySpan(im)setMeasurement:value:unit:", - "moduleName": "Sentry", - "genericSig": "", - "protocolReq": true, - "objc_name": "setMeasurement:value:unit:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "reqNewWitnessTableEntry": true, - "funcSelfKind": "NonMutating" + "usr": "s:s32ExpressibleByStringInterpolationP", + "mangledName": "$ss32ExpressibleByStringInterpolationP" }, { - "kind": "Function", - "name": "finish", - "printedName": "finish()", + "kind": "Conformance", + "name": "ExpressibleByStringLiteral", + "printedName": "ExpressibleByStringLiteral", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeWitness", + "name": "StringLiteralType", + "printedName": "StringLiteralType", "children": [ { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "kind": "TypeNameAlias", + "name": "StringLiteralType", + "printedName": "Sentry.SentryLogMessage.StringLiteralType", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ] } ] } ], - "declKind": "Func", - "usr": "c:objc(pl)SentrySpan(im)finish", - "moduleName": "Sentry", - "genericSig": "", - "protocolReq": true, - "objc_name": "finish", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "reqNewWitnessTableEntry": true, - "funcSelfKind": "NonMutating" + "usr": "s:s26ExpressibleByStringLiteralP", + "mangledName": "$ss26ExpressibleByStringLiteralP" }, { - "kind": "Function", - "name": "finish", - "printedName": "finish(status:)", + "kind": "Conformance", + "name": "ExpressibleByExtendedGraphemeClusterLiteral", + "printedName": "ExpressibleByExtendedGraphemeClusterLiteral", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeWitness", + "name": "ExtendedGraphemeClusterLiteralType", + "printedName": "ExtendedGraphemeClusterLiteralType", "children": [ { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "kind": "TypeNameAlias", + "name": "ExtendedGraphemeClusterLiteralType", + "printedName": "Sentry.SentryLogMessage.ExtendedGraphemeClusterLiteralType", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ] } ] - }, - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - } - ], - "declKind": "Func", - "usr": "c:objc(pl)SentrySpan(im)finishWithStatus:", - "moduleName": "Sentry", - "genericSig": "", - "protocolReq": true, - "objc_name": "finishWithStatus:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "reqNewWitnessTableEntry": true, - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "toTraceHeader", - "printedName": "toTraceHeader()", - "children": [ - { - "kind": "TypeNominal", - "name": "TraceHeader", - "printedName": "Sentry.TraceHeader", - "usr": "c:objc(cs)SentryTraceHeader" - } - ], - "declKind": "Func", - "usr": "c:objc(pl)SentrySpan(im)toTraceHeader", - "moduleName": "Sentry", - "genericSig": "", - "protocolReq": true, - "objc_name": "toTraceHeader", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "reqNewWitnessTableEntry": true, - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "baggageHttpHeader", - "printedName": "baggageHttpHeader()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" } ], - "declKind": "Func", - "usr": "c:objc(pl)SentrySpan(im)baggageHttpHeader", - "moduleName": "Sentry", - "genericSig": "", - "protocolReq": true, - "objc_name": "baggageHttpHeader", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "reqNewWitnessTableEntry": true, - "funcSelfKind": "NonMutating" + "usr": "s:s43ExpressibleByExtendedGraphemeClusterLiteralP", + "mangledName": "$ss43ExpressibleByExtendedGraphemeClusterLiteralP" }, { - "kind": "Function", - "name": "serialize", - "printedName": "serialize()", + "kind": "Conformance", + "name": "ExpressibleByUnicodeScalarLiteral", + "printedName": "ExpressibleByUnicodeScalarLiteral", "children": [ { - "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", + "kind": "TypeWitness", + "name": "UnicodeScalarLiteralType", + "printedName": "UnicodeScalarLiteralType", "children": [ { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" + "kind": "TypeNameAlias", + "name": "UnicodeScalarLiteralType", + "printedName": "Sentry.SentryLogMessage.UnicodeScalarLiteralType", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ] } - ], - "usr": "s:SD" + ] } ], - "declKind": "Func", - "usr": "c:objc(pl)SentrySpan(im)serialize", - "moduleName": "Sentry", - "genericSig": "", - "protocolReq": true, - "objc_name": "serialize", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "reqNewWitnessTableEntry": true, - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Protocol", - "usr": "c:objc(pl)SentrySpan", - "moduleName": "Sentry", - "genericSig": "", - "objc_name": "SentrySpan", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" + "usr": "s:s33ExpressibleByUnicodeScalarLiteralP", + "mangledName": "$ss33ExpressibleByUnicodeScalarLiteralP" }, { "kind": "Conformance", @@ -33481,44 +33479,40 @@ }, { "kind": "Conformance", - "name": "SentrySerializable", - "printedName": "SentrySerializable", - "usr": "c:objc(pl)SentrySerializable" - }, - { - "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" } ] }, { "kind": "TypeDecl", - "name": "SpanContext", - "printedName": "SpanContext", + "name": "SentryLog", + "printedName": "SentryLog", "children": [ { "kind": "Var", - "name": "traceId", - "printedName": "traceId", + "name": "timestamp", + "printedName": "timestamp", "children": [ { "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" + "name": "Date", + "printedName": "Foundation.Date", + "usr": "s:10Foundation4DateV" } ], "declKind": "Var", - "usr": "c:objc(cs)SentrySpanContext(py)traceId", + "usr": "c:@M@Sentry@objc(cs)SentryLog(py)timestamp", + "mangledName": "$s6Sentry0A3LogC9timestamp10Foundation4DateVvp", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "traceId", "declAttributes": [ + "Final", "ObjC", - "Dynamic" + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -33527,102 +33521,74 @@ "children": [ { "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" + "name": "Date", + "printedName": "Foundation.Date", + "usr": "s:10Foundation4DateV" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentrySpanContext(im)traceId", + "usr": "c:@M@Sentry@objc(cs)SentryLog(im)timestamp", + "mangledName": "$s6Sentry0A3LogC9timestamp10Foundation4DateVvg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "traceId", + "implicit": true, "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "get" - } - ] - }, - { - "kind": "Var", - "name": "spanId", - "printedName": "spanId", - "children": [ - { - "kind": "TypeNominal", - "name": "SpanId", - "printedName": "Sentry.SpanId", - "usr": "c:objc(cs)SentrySpanId" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentrySpanContext(py)spanId", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "spanId", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ + }, { "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "name": "Set", + "printedName": "Set()", "children": [ { "kind": "TypeNominal", - "name": "SpanId", - "printedName": "Sentry.SpanId", - "usr": "c:objc(cs)SentrySpanId" + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Date", + "printedName": "Foundation.Date", + "usr": "s:10Foundation4DateV" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentrySpanContext(im)spanId", + "usr": "c:@M@Sentry@objc(cs)SentryLog(im)setTimestamp:", + "mangledName": "$s6Sentry0A3LogC9timestamp10Foundation4DateVvs", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "spanId", + "implicit": true, "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "Final", + "ObjC" ], - "accessorKind": "get" + "accessorKind": "set" } ] }, { "kind": "Var", - "name": "parentSpanId", - "printedName": "parentSpanId", + "name": "traceId", + "printedName": "traceId", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SpanId?", - "children": [ - { - "kind": "TypeNominal", - "name": "SpanId", - "printedName": "Sentry.SpanId", - "usr": "c:objc(cs)SentrySpanId" - } - ], - "usr": "s:Sq" + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" } ], "declKind": "Var", - "usr": "c:objc(cs)SentrySpanContext(py)parentSpanId", + "usr": "c:@M@Sentry@objc(cs)SentryLog(py)traceId", + "mangledName": "$s6Sentry0A3LogC7traceIdSo0aD0Cvp", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "parentSpanId", "declAttributes": [ + "Final", "ObjC", - "Dynamic" + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -33631,102 +33597,74 @@ "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SpanId?", - "children": [ - { - "kind": "TypeNominal", - "name": "SpanId", - "printedName": "Sentry.SpanId", - "usr": "c:objc(cs)SentrySpanId" - } - ], - "usr": "s:Sq" + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentrySpanContext(im)parentSpanId", + "usr": "c:@M@Sentry@objc(cs)SentryLog(im)traceId", + "mangledName": "$s6Sentry0A3LogC7traceIdSo0aD0Cvg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "parentSpanId", + "implicit": true, "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "get" - } - ] - }, - { - "kind": "Var", - "name": "sampled", - "printedName": "sampled", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySampleDecision", - "printedName": "Sentry.SentrySampleDecision", - "usr": "c:@E@SentrySampleDecision" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentrySpanContext(py)sampled", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "sampled", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ + }, { "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "name": "Set", + "printedName": "Set()", "children": [ { "kind": "TypeNominal", - "name": "SentrySampleDecision", - "printedName": "Sentry.SentrySampleDecision", - "usr": "c:@E@SentrySampleDecision" + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentrySpanContext(im)sampled", + "usr": "c:@M@Sentry@objc(cs)SentryLog(im)setTraceId:", + "mangledName": "$s6Sentry0A3LogC7traceIdSo0aD0Cvs", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "sampled", + "implicit": true, "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "Final", + "ObjC" ], - "accessorKind": "get" + "accessorKind": "set" } ] }, { "kind": "Var", - "name": "operation", - "printedName": "operation", + "name": "level", + "printedName": "level", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Level", + "printedName": "Sentry.SentryLog.Level", + "usr": "s:6Sentry0A3LogC5LevelO" } ], "declKind": "Var", - "usr": "c:objc(cs)SentrySpanContext(py)operation", + "usr": "c:@M@Sentry@objc(cs)SentryLog(py)level", + "mangledName": "$s6Sentry0A3LogC5levelAC5LevelOvp", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "operation", "declAttributes": [ + "Final", "ObjC", - "Dynamic" + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -33735,34 +33673,79 @@ "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Level", + "printedName": "Sentry.SentryLog.Level", + "usr": "s:6Sentry0A3LogC5LevelO" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentrySpanContext(im)operation", + "usr": "c:@M@Sentry@objc(cs)SentryLog(im)level", + "mangledName": "$s6Sentry0A3LogC5levelAC5LevelOvg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "operation", + "implicit": true, "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Level", + "printedName": "Sentry.SentryLog.Level", + "usr": "s:6Sentry0A3LogC5LevelO" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryLog(im)setLevel:", + "mangledName": "$s6Sentry0A3LogC5levelAC5LevelOvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } ] }, { "kind": "Var", - "name": "spanDescription", - "printedName": "spanDescription", + "name": "body", + "printedName": "body", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryLog(py)body", + "mangledName": "$s6Sentry0A3LogC4bodySSvp", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC", + "HasStorage" + ], + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", @@ -33771,18 +33754,83 @@ "usr": "s:SS" } ], - "usr": "s:Sq" + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryLog(im)body", + "mangledName": "$s6Sentry0A3LogC4bodySSvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryLog(im)setBody:", + "mangledName": "$s6Sentry0A3LogC4bodySSvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" + } + ] + }, + { + "kind": "Var", + "name": "attributes", + "printedName": "attributes", + "children": [ + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Sentry.SentryLog.Attribute]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "Attribute", + "printedName": "Sentry.SentryLog.Attribute", + "usr": "s:6Sentry0A3LogC9AttributeC" + } + ], + "usr": "s:SD" } ], "declKind": "Var", - "usr": "c:objc(cs)SentrySpanContext(py)spanDescription", + "usr": "c:@M@Sentry@objc(cs)SentryLog(py)attributes", + "mangledName": "$s6Sentry0A3LogC10attributesSDySSAC9AttributeCGvp", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "spanDescription", "declAttributes": [ + "Final", "ObjC", - "Dynamic" + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -33791,54 +33839,111 @@ "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", + "name": "Dictionary", + "printedName": "[Swift.String : Sentry.SentryLog.Attribute]", "children": [ { "kind": "TypeNominal", "name": "String", "printedName": "Swift.String", "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "Attribute", + "printedName": "Sentry.SentryLog.Attribute", + "usr": "s:6Sentry0A3LogC9AttributeC" } ], - "usr": "s:Sq" + "usr": "s:SD" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentrySpanContext(im)spanDescription", + "usr": "c:@M@Sentry@objc(cs)SentryLog(im)attributes", + "mangledName": "$s6Sentry0A3LogC10attributesSDySSAC9AttributeCGvg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "spanDescription", + "implicit": true, "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Sentry.SentryLog.Attribute]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "Attribute", + "printedName": "Sentry.SentryLog.Attribute", + "usr": "s:6Sentry0A3LogC9AttributeC" + } + ], + "usr": "s:SD" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryLog(im)setAttributes:", + "mangledName": "$s6Sentry0A3LogC10attributesSDySSAC9AttributeCGvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } ] }, { "kind": "Var", - "name": "origin", - "printedName": "origin", + "name": "severityNumber", + "printedName": "severityNumber", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:objc(cs)SentrySpanContext(py)origin", + "usr": "c:@M@Sentry@objc(cs)SentryLog(py)severityNumber", + "mangledName": "$s6Sentry0A3LogC14severityNumberSo8NSNumberCSgvp", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "origin", "declAttributes": [ + "HasInitialValue", + "Final", "ObjC", - "Dynamic" + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -33847,20 +33952,27 @@ "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentrySpanContext(im)origin", + "usr": "c:@M@Sentry@objc(cs)SentryLog(im)severityNumber", + "mangledName": "$s6Sentry0A3LogC14severityNumberSo8NSNumberCSgvg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "origin", + "implicit": true, "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "get" }, @@ -33870,32 +33982,33 @@ "printedName": "Set()", "children": [ { - "kind": "TypeNameAlias", + "kind": "TypeNominal", "name": "Void", - "printedName": "Swift.Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.NSNumber?", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" } - ] - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentrySpanContext(im)setOrigin:", + "usr": "c:@M@Sentry@objc(cs)SentryLog(im)setSeverityNumber:", + "mangledName": "$s6Sentry0A3LogC14severityNumberSo8NSNumberCSgvs", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setOrigin:", + "implicit": true, "declAttributes": [ - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "set" } @@ -33904,13 +34017,19 @@ { "kind": "Constructor", "name": "init", - "printedName": "init(operation:)", + "printedName": "init(level:body:)", "children": [ { "kind": "TypeNominal", - "name": "SpanContext", - "printedName": "Sentry.SpanContext", - "usr": "c:objc(cs)SentrySpanContext" + "name": "SentryLog", + "printedName": "Sentry.SentryLog", + "usr": "c:@M@Sentry@objc(cs)SentryLog" + }, + { + "kind": "TypeNominal", + "name": "Level", + "printedName": "Sentry.SentryLog.Level", + "usr": "s:6Sentry0A3LogC5LevelO" }, { "kind": "TypeNominal", @@ -33920,25 +34039,31 @@ } ], "declKind": "Constructor", - "usr": "c:objc(cs)SentrySpanContext(im)initWithOperation:", + "usr": "c:@M@Sentry@objc(cs)SentryLog(im)initWithLevel:body:", + "mangledName": "$s6Sentry0A3LogC5level4bodyA2C5LevelO_SStcfc", "moduleName": "Sentry", - "objc_name": "initWithOperation:", + "objc_name": "initWithLevel:body:", "declAttributes": [ - "ObjC", - "Dynamic" + "ObjC" ], - "init_kind": "Designated" + "init_kind": "Convenience" }, { "kind": "Constructor", "name": "init", - "printedName": "init(operation:sampled:)", + "printedName": "init(level:body:attributes:)", "children": [ { "kind": "TypeNominal", - "name": "SpanContext", - "printedName": "Sentry.SpanContext", - "usr": "c:objc(cs)SentrySpanContext" + "name": "SentryLog", + "printedName": "Sentry.SentryLog", + "usr": "c:@M@Sentry@objc(cs)SentryLog" + }, + { + "kind": "TypeNominal", + "name": "Level", + "printedName": "Sentry.SentryLog.Level", + "usr": "s:6Sentry0A3LogC5LevelO" }, { "kind": "TypeNominal", @@ -33948,54 +34073,55 @@ }, { "kind": "TypeNominal", - "name": "SentrySampleDecision", - "printedName": "Sentry.SentrySampleDecision", - "usr": "c:@E@SentrySampleDecision" + "name": "Dictionary", + "printedName": "[Swift.String : Sentry.SentryLog.Attribute]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "Attribute", + "printedName": "Sentry.SentryLog.Attribute", + "usr": "s:6Sentry0A3LogC9AttributeC" + } + ], + "usr": "s:SD" } ], "declKind": "Constructor", - "usr": "c:objc(cs)SentrySpanContext(im)initWithOperation:sampled:", + "usr": "c:@M@Sentry@objc(cs)SentryLog(im)initWithLevel:body:attributes:", + "mangledName": "$s6Sentry0A3LogC5level4body10attributesA2C5LevelO_SSSDySSAC9AttributeCGtcfc", "moduleName": "Sentry", - "objc_name": "initWithOperation:sampled:", + "objc_name": "initWithLevel:body:attributes:", "declAttributes": [ - "ObjC", - "Dynamic" + "ObjC" ], - "init_kind": "Designated" + "init_kind": "Convenience" }, { - "kind": "Constructor", - "name": "init", - "printedName": "init(trace:spanId:parentId:operation:sampled:)", + "kind": "Function", + "name": "setAttribute", + "printedName": "setAttribute(_:forKey:)", "children": [ { "kind": "TypeNominal", - "name": "SpanContext", - "printedName": "Sentry.SpanContext", - "usr": "c:objc(cs)SentrySpanContext" - }, - { - "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, - { - "kind": "TypeNominal", - "name": "SpanId", - "printedName": "Sentry.SpanId", - "usr": "c:objc(cs)SentrySpanId" + "name": "Void", + "printedName": "()" }, { "kind": "TypeNominal", "name": "Optional", - "printedName": "Sentry.SpanId?", + "printedName": "Sentry.SentryLog.Attribute?", "children": [ { "kind": "TypeNominal", - "name": "SpanId", - "printedName": "Sentry.SpanId", - "usr": "c:objc(cs)SentrySpanId" + "name": "Attribute", + "printedName": "Sentry.SentryLog.Attribute", + "usr": "s:6Sentry0A3LogC9AttributeC" } ], "usr": "s:Sq" @@ -34005,289 +34131,274 @@ "name": "String", "printedName": "Swift.String", "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "SentrySampleDecision", - "printedName": "Sentry.SentrySampleDecision", - "usr": "c:@E@SentrySampleDecision" } ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentrySpanContext(im)initWithTraceId:spanId:parentId:operation:sampled:", + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryLog(im)setAttribute:forKey:", + "mangledName": "$s6Sentry0A3LogC12setAttribute_6forKeyyAC0D0CSg_SStF", "moduleName": "Sentry", - "objc_name": "initWithTraceId:spanId:parentId:operation:sampled:", "declAttributes": [ - "ObjC", - "Dynamic" + "Final", + "ObjC" ], - "init_kind": "Designated" + "funcSelfKind": "NonMutating" }, { - "kind": "Constructor", - "name": "init", - "printedName": "init(trace:spanId:parentId:operation:spanDescription:sampled:)", + "kind": "TypeDecl", + "name": "Level", + "printedName": "Level", "children": [ { - "kind": "TypeNominal", - "name": "SpanContext", - "printedName": "Sentry.SpanContext", - "usr": "c:objc(cs)SentrySpanContext" - }, - { - "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, - { - "kind": "TypeNominal", - "name": "SpanId", - "printedName": "Sentry.SpanId", - "usr": "c:objc(cs)SentrySpanId" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SpanId?", + "kind": "Var", + "name": "trace", + "printedName": "trace", "children": [ { - "kind": "TypeNominal", - "name": "SpanId", - "printedName": "Sentry.SpanId", - "usr": "c:objc(cs)SentrySpanId" + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryLog.Level.Type) -> Sentry.SentryLog.Level", + "children": [ + { + "kind": "TypeNominal", + "name": "Level", + "printedName": "Sentry.SentryLog.Level", + "usr": "s:6Sentry0A3LogC5LevelO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryLog.Level.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "Level", + "printedName": "Sentry.SentryLog.Level", + "usr": "s:6Sentry0A3LogC5LevelO" + } + ] + } + ] } ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "declKind": "EnumElement", + "usr": "s:6Sentry0A3LogC5LevelO5traceyA2EmF", + "mangledName": "$s6Sentry0A3LogC5LevelO5traceyA2EmF", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" + ] }, { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", + "kind": "Var", + "name": "debug", + "printedName": "debug", "children": [ { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "SentrySampleDecision", - "printedName": "Sentry.SentrySampleDecision", - "usr": "c:@E@SentrySampleDecision" - } - ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentrySpanContext(im)initWithTraceId:spanId:parentId:operation:spanDescription:sampled:", - "moduleName": "Sentry", - "objc_name": "initWithTraceId:spanId:parentId:operation:spanDescription:sampled:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "init_kind": "Designated" - } - ], - "declKind": "Class", - "usr": "c:objc(cs)SentrySpanContext", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "SentrySpanContext", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "superclassUsr": "c:objc(cs)NSObject", - "inheritsConvenienceInitializers": true, - "superclassNames": [ - "ObjectiveC.NSObject" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "SentrySerializable", - "printedName": "SentrySerializable", - "usr": "c:objc(pl)SentrySerializable" - }, - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - } - ] - }, - { - "kind": "TypeDecl", - "name": "SpanId", - "printedName": "SpanId", - "children": [ - { - "kind": "Constructor", - "name": "init", - "printedName": "init()", - "children": [ - { - "kind": "TypeNominal", - "name": "SpanId", - "printedName": "Sentry.SpanId", - "usr": "c:objc(cs)SentrySpanId" - } - ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentrySpanId(im)init", - "moduleName": "Sentry", - "overriding": true, - "objc_name": "init", - "declAttributes": [ - "Override", - "ObjC", - "Dynamic" - ], - "init_kind": "Designated" - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(uuid:)", - "children": [ - { - "kind": "TypeNominal", - "name": "SpanId", - "printedName": "Sentry.SpanId", - "usr": "c:objc(cs)SentrySpanId" + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryLog.Level.Type) -> Sentry.SentryLog.Level", + "children": [ + { + "kind": "TypeNominal", + "name": "Level", + "printedName": "Sentry.SentryLog.Level", + "usr": "s:6Sentry0A3LogC5LevelO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryLog.Level.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "Level", + "printedName": "Sentry.SentryLog.Level", + "usr": "s:6Sentry0A3LogC5LevelO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6Sentry0A3LogC5LevelO5debugyA2EmF", + "mangledName": "$s6Sentry0A3LogC5LevelO5debugyA2EmF", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" + ] }, { - "kind": "TypeNominal", - "name": "UUID", - "printedName": "Foundation.UUID", - "usr": "s:10Foundation4UUIDV" - } - ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentrySpanId(im)initWithUUID:", - "moduleName": "Sentry", - "objc_name": "initWithUUID:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "init_kind": "Designated" - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(value:)", - "children": [ + "kind": "Var", + "name": "info", + "printedName": "info", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryLog.Level.Type) -> Sentry.SentryLog.Level", + "children": [ + { + "kind": "TypeNominal", + "name": "Level", + "printedName": "Sentry.SentryLog.Level", + "usr": "s:6Sentry0A3LogC5LevelO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryLog.Level.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "Level", + "printedName": "Sentry.SentryLog.Level", + "usr": "s:6Sentry0A3LogC5LevelO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6Sentry0A3LogC5LevelO4infoyA2EmF", + "mangledName": "$s6Sentry0A3LogC5LevelO4infoyA2EmF", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" + ] + }, { - "kind": "TypeNominal", - "name": "SpanId", - "printedName": "Sentry.SpanId", - "usr": "c:objc(cs)SentrySpanId" + "kind": "Var", + "name": "warn", + "printedName": "warn", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryLog.Level.Type) -> Sentry.SentryLog.Level", + "children": [ + { + "kind": "TypeNominal", + "name": "Level", + "printedName": "Sentry.SentryLog.Level", + "usr": "s:6Sentry0A3LogC5LevelO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryLog.Level.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "Level", + "printedName": "Sentry.SentryLog.Level", + "usr": "s:6Sentry0A3LogC5LevelO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6Sentry0A3LogC5LevelO4warnyA2EmF", + "mangledName": "$s6Sentry0A3LogC5LevelO4warnyA2EmF", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" + ] }, { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentrySpanId(im)initWithValue:", - "moduleName": "Sentry", - "objc_name": "initWithValue:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "init_kind": "Designated" - }, - { - "kind": "Var", - "name": "sentrySpanIdString", - "printedName": "sentrySpanIdString", - "children": [ + "kind": "Var", + "name": "error", + "printedName": "error", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryLog.Level.Type) -> Sentry.SentryLog.Level", + "children": [ + { + "kind": "TypeNominal", + "name": "Level", + "printedName": "Sentry.SentryLog.Level", + "usr": "s:6Sentry0A3LogC5LevelO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryLog.Level.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "Level", + "printedName": "Sentry.SentryLog.Level", + "usr": "s:6Sentry0A3LogC5LevelO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6Sentry0A3LogC5LevelO5erroryA2EmF", + "mangledName": "$s6Sentry0A3LogC5LevelO5erroryA2EmF", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" + ] + }, { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentrySpanId(py)sentrySpanIdString", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "sentrySpanIdString", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ + "kind": "Var", + "name": "fatal", + "printedName": "fatal", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryLog.Level.Type) -> Sentry.SentryLog.Level", + "children": [ + { + "kind": "TypeNominal", + "name": "Level", + "printedName": "Sentry.SentryLog.Level", + "usr": "s:6Sentry0A3LogC5LevelO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryLog.Level.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "Level", + "printedName": "Sentry.SentryLog.Level", + "usr": "s:6Sentry0A3LogC5LevelO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6Sentry0A3LogC5LevelO5fatalyA2EmF", + "mangledName": "$s6Sentry0A3LogC5LevelO5fatalyA2EmF", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" + ] + }, { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "Constructor", + "name": "init", + "printedName": "init(value:)", "children": [ + { + "kind": "TypeNominal", + "name": "Level", + "printedName": "Sentry.SentryLog.Level", + "usr": "s:6Sentry0A3LogC5LevelO" + }, { "kind": "TypeNominal", "name": "String", @@ -34295,92 +34406,557 @@ "usr": "s:SS" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentrySpanId(im)sentrySpanIdString", + "declKind": "Constructor", + "usr": "s:6Sentry0A3LogC5LevelO5valueAESS_tKcfc", + "mangledName": "$s6Sentry0A3LogC5LevelO5valueAESS_tKcfc", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "sentrySpanIdString", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - } - ] - }, - { - "kind": "Var", - "name": "empty", - "printedName": "empty", - "children": [ + "throwing": true, + "init_kind": "Designated" + }, { - "kind": "TypeNominal", - "name": "SpanId", - "printedName": "Sentry.SpanId", - "usr": "c:objc(cs)SentrySpanId" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentrySpanId(cpy)empty", - "moduleName": "Sentry", - "static": true, - "isOpen": true, - "objc_name": "empty", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ + "kind": "Var", + "name": "value", + "printedName": "value", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "s:6Sentry0A3LogC5LevelO5valueSSvp", + "mangledName": "$s6Sentry0A3LogC5LevelO5valueSSvp", + "moduleName": "Sentry", + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "s:6Sentry0A3LogC5LevelO5valueSSvg", + "mangledName": "$s6Sentry0A3LogC5LevelO5valueSSvg", + "moduleName": "Sentry", + "accessorKind": "get" + } + ] + }, { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "Function", + "name": "toSeverityNumber", + "printedName": "toSeverityNumber()", "children": [ { "kind": "TypeNominal", - "name": "SpanId", - "printedName": "Sentry.SpanId", - "usr": "c:objc(cs)SentrySpanId" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentrySpanId(cm)empty", + "declKind": "Func", + "usr": "s:6Sentry0A3LogC5LevelO16toSeverityNumberSiyF", + "mangledName": "$s6Sentry0A3LogC5LevelO16toSeverityNumberSiyF", "moduleName": "Sentry", - "static": true, - "isOpen": true, - "objc_name": "empty", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "funcSelfKind": "NonMutating" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(rawValue:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryLog.Level?", + "children": [ + { + "kind": "TypeNominal", + "name": "Level", + "printedName": "Sentry.SentryLog.Level", + "usr": "s:6Sentry0A3LogC5LevelO" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } ], - "accessorKind": "get" - } + "declKind": "Constructor", + "usr": "s:6Sentry0A3LogC5LevelO8rawValueAESgSi_tcfc", + "mangledName": "$s6Sentry0A3LogC5LevelO8rawValueAESgSi_tcfc", + "moduleName": "Sentry", + "init_kind": "Designated" + }, + { + "kind": "TypeAlias", + "name": "RawValue", + "printedName": "RawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "TypeAlias", + "usr": "s:6Sentry0A3LogC5LevelO8RawValuea", + "mangledName": "$s6Sentry0A3LogC5LevelO8RawValuea", + "moduleName": "Sentry" + }, + { + "kind": "Var", + "name": "rawValue", + "printedName": "rawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Var", + "usr": "s:6Sentry0A3LogC5LevelO8rawValueSivp", + "mangledName": "$s6Sentry0A3LogC5LevelO8rawValueSivp", + "moduleName": "Sentry", + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Accessor", + "usr": "s:6Sentry0A3LogC5LevelO8rawValueSivg", + "mangledName": "$s6Sentry0A3LogC5LevelO8rawValueSivg", + "moduleName": "Sentry", + "accessorKind": "get" + } + ] + } + ], + "declKind": "Enum", + "usr": "s:6Sentry0A3LogC5LevelO", + "mangledName": "$s6Sentry0A3LogC5LevelO", + "moduleName": "Sentry", + "objc_name": "SentryLogLevel", + "declAttributes": [ + "ObjC" + ], + "isFromExtension": true, + "enumRawTypeName": "Int", + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "RawRepresentable", + "printedName": "RawRepresentable", + "children": [ + { + "kind": "TypeWitness", + "name": "RawValue", + "printedName": "RawValue", + "children": [ + { + "kind": "TypeNameAlias", + "name": "RawValue", + "printedName": "Sentry.SentryLog.Level.RawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ] + } + ] + } + ], + "usr": "s:SY", + "mangledName": "$sSY" + } + ] + }, + { + "kind": "TypeDecl", + "name": "Attribute", + "printedName": "Attribute", + "children": [ + { + "kind": "Var", + "name": "type", + "printedName": "type", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "s:6Sentry0A3LogC9AttributeC4typeSSvp", + "mangledName": "$s6Sentry0A3LogC9AttributeC4typeSSvp", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC", + "HasStorage" + ], + "isLet": true, + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "s:6Sentry0A3LogC9AttributeC4typeSSvg", + "mangledName": "$s6Sentry0A3LogC9AttributeC4typeSSvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + } + ] + }, + { + "kind": "Var", + "name": "value", + "printedName": "value", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" + } + ], + "declKind": "Var", + "usr": "s:6Sentry0A3LogC9AttributeC5valueypvp", + "mangledName": "$s6Sentry0A3LogC9AttributeC5valueypvp", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC", + "HasStorage" + ], + "isLet": true, + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" + } + ], + "declKind": "Accessor", + "usr": "s:6Sentry0A3LogC9AttributeC5valueypvg", + "mangledName": "$s6Sentry0A3LogC9AttributeC5valueypvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + } + ] + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(string:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Attribute", + "printedName": "Sentry.SentryLog.Attribute", + "usr": "s:6Sentry0A3LogC9AttributeC" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Constructor", + "usr": "s:6Sentry0A3LogC9AttributeC6stringAESS_tcfc", + "mangledName": "$s6Sentry0A3LogC9AttributeC6stringAESS_tcfc", + "moduleName": "Sentry", + "objc_name": "initWithString:", + "declAttributes": [ + "ObjC" + ], + "init_kind": "Designated" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(boolean:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Attribute", + "printedName": "Sentry.SentryLog.Attribute", + "usr": "s:6Sentry0A3LogC9AttributeC" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Constructor", + "usr": "s:6Sentry0A3LogC9AttributeC7booleanAESb_tcfc", + "mangledName": "$s6Sentry0A3LogC9AttributeC7booleanAESb_tcfc", + "moduleName": "Sentry", + "objc_name": "initWithBoolean:", + "declAttributes": [ + "ObjC" + ], + "init_kind": "Designated" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(integer:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Attribute", + "printedName": "Sentry.SentryLog.Attribute", + "usr": "s:6Sentry0A3LogC9AttributeC" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Constructor", + "usr": "s:6Sentry0A3LogC9AttributeC7integerAESi_tcfc", + "mangledName": "$s6Sentry0A3LogC9AttributeC7integerAESi_tcfc", + "moduleName": "Sentry", + "objc_name": "initWithInteger:", + "declAttributes": [ + "ObjC" + ], + "init_kind": "Designated" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(double:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Attribute", + "printedName": "Sentry.SentryLog.Attribute", + "usr": "s:6Sentry0A3LogC9AttributeC" + }, + { + "kind": "TypeNominal", + "name": "Double", + "printedName": "Swift.Double", + "usr": "s:Sd" + } + ], + "declKind": "Constructor", + "usr": "s:6Sentry0A3LogC9AttributeC6doubleAESd_tcfc", + "mangledName": "$s6Sentry0A3LogC9AttributeC6doubleAESd_tcfc", + "moduleName": "Sentry", + "objc_name": "initWithDouble:", + "declAttributes": [ + "ObjC" + ], + "init_kind": "Designated" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(float:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Attribute", + "printedName": "Sentry.SentryLog.Attribute", + "usr": "s:6Sentry0A3LogC9AttributeC" + }, + { + "kind": "TypeNominal", + "name": "Float", + "printedName": "Swift.Float", + "usr": "s:Sf" + } + ], + "declKind": "Constructor", + "usr": "s:6Sentry0A3LogC9AttributeC5floatAESf_tcfc", + "mangledName": "$s6Sentry0A3LogC9AttributeC5floatAESf_tcfc", + "moduleName": "Sentry", + "objc_name": "initWithFloat:", + "declAttributes": [ + "ObjC" + ], + "init_kind": "Designated" + } + ], + "declKind": "Class", + "usr": "s:6Sentry0A3LogC9AttributeC", + "mangledName": "$s6Sentry0A3LogC9AttributeC", + "moduleName": "Sentry", + "objc_name": "SentryLogAttribute", + "declAttributes": [ + "Final", + "ObjCMembers", + "ObjC" + ], + "isFromExtension": true, + "superclassUsr": "c:objc(cs)NSObject", + "hasMissingDesignatedInitializers": true, + "superclassNames": [ + "ObjectiveC.NSObject" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" + }, + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" + }, + { + "kind": "Conformance", + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" + } ] } ], "declKind": "Class", - "usr": "c:objc(cs)SentrySpanId", + "usr": "c:@M@Sentry@objc(cs)SentryLog", + "mangledName": "$s6Sentry0A3LogC", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "SentrySpanId", "declAttributes": [ - "ObjC", - "Dynamic" + "Final", + "ObjCMembers", + "ObjC" ], "superclassUsr": "c:objc(cs)NSObject", - "inheritsConvenienceInitializers": true, + "hasMissingDesignatedInitializers": true, "superclassNames": [ "ObjectiveC.NSObject" ], "conformances": [ - { - "kind": "Conformance", - "name": "NSCopying", - "printedName": "NSCopying", - "usr": "c:objc(pl)NSCopying" - }, { "kind": "Conformance", "name": "Copyable", @@ -34440,62 +35016,65 @@ }, { "kind": "TypeDecl", - "name": "TraceContext", - "printedName": "TraceContext", + "name": "SentryLogger", + "printedName": "SentryLogger", "children": [ { - "kind": "Var", - "name": "traceId", - "printedName": "traceId", + "kind": "Function", + "name": "trace", + "printedName": "trace(_:attributes:)", "children": [ { "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryTraceContext(py)traceId", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "traceId", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ + "name": "Void", + "printedName": "()" + }, { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNominal", + "name": "SentryLogMessage", + "printedName": "Sentry.SentryLogMessage", + "usr": "s:6Sentry0A10LogMessageV" + }, + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", "children": [ { "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryTraceContext(im)traceId", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "traceId", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" + } ], - "accessorKind": "get" + "hasDefaultArg": true, + "usr": "s:SD" } - ] + ], + "declKind": "Func", + "usr": "s:6Sentry0A6LoggerC5trace_10attributesyAA0A10LogMessageV_SDySSypGtF", + "mangledName": "$s6Sentry0A6LoggerC5trace_10attributesyAA0A10LogMessageV_SDySSypGtF", + "moduleName": "Sentry", + "declAttributes": [ + "Final" + ], + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "publicKey", - "printedName": "publicKey", + "kind": "Function", + "name": "trace", + "printedName": "trace(_:)", "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, { "kind": "TypeNominal", "name": "String", @@ -34503,561 +35082,685 @@ "usr": "s:SS" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryTraceContext(py)publicKey", + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryLogger(im)trace:", + "mangledName": "$s6Sentry0A6LoggerC5traceyySSF", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "publicKey", + "objc_name": "trace:", "declAttributes": [ - "ObjC", - "Dynamic" + "Final", + "ObjC" ], - "accessors": [ + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "trace", + "printedName": "trace(_:attributes:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", "children": [ { "kind": "TypeNominal", "name": "String", "printedName": "Swift.String", "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryTraceContext(im)publicKey", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "publicKey", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + "usr": "s:SD" } - ] + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryLogger(im)trace:attributes:", + "mangledName": "$s6Sentry0A6LoggerC5trace_10attributesySS_SDySSypGtF", + "moduleName": "Sentry", + "objc_name": "trace:attributes:", + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "releaseName", - "printedName": "releaseName", + "kind": "Function", + "name": "debug", + "printedName": "debug(_:attributes:)", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "SentryLogMessage", + "printedName": "Sentry.SentryLogMessage", + "usr": "s:6Sentry0A10LogMessageV" + }, + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", "children": [ { "kind": "TypeNominal", "name": "String", "printedName": "Swift.String", "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" } ], - "usr": "s:Sq" + "hasDefaultArg": true, + "usr": "s:SD" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryTraceContext(py)releaseName", + "declKind": "Func", + "usr": "s:6Sentry0A6LoggerC5debug_10attributesyAA0A10LogMessageV_SDySSypGtF", + "mangledName": "$s6Sentry0A6LoggerC5debug_10attributesyAA0A10LogMessageV_SDySSypGtF", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "releaseName", "declAttributes": [ - "ObjC", - "Dynamic" + "Final" ], - "accessors": [ + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "debug", + "printedName": "debug(_:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryTraceContext(im)releaseName", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "releaseName", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } - ] + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryLogger(im)debug:", + "mangledName": "$s6Sentry0A6LoggerC5debugyySSF", + "moduleName": "Sentry", + "objc_name": "debug:", + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "environment", - "printedName": "environment", + "kind": "Function", + "name": "debug", + "printedName": "debug(_:attributes:)", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", "children": [ { "kind": "TypeNominal", "name": "String", "printedName": "Swift.String", "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" } ], - "usr": "s:Sq" + "usr": "s:SD" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryTraceContext(py)environment", + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryLogger(im)debug:attributes:", + "mangledName": "$s6Sentry0A6LoggerC5debug_10attributesySS_SDySSypGtF", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "environment", + "objc_name": "debug:attributes:", "declAttributes": [ - "ObjC", - "Dynamic" + "Final", + "ObjC" ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryTraceContext(im)environment", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "environment", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - } - ] + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "transaction", - "printedName": "transaction", + "kind": "Function", + "name": "info", + "printedName": "info(_:attributes:)", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "SentryLogMessage", + "printedName": "Sentry.SentryLogMessage", + "usr": "s:6Sentry0A10LogMessageV" + }, + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", "children": [ { "kind": "TypeNominal", "name": "String", "printedName": "Swift.String", "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" } ], - "usr": "s:Sq" + "hasDefaultArg": true, + "usr": "s:SD" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryTraceContext(py)transaction", + "declKind": "Func", + "usr": "s:6Sentry0A6LoggerC4info_10attributesyAA0A10LogMessageV_SDySSypGtF", + "mangledName": "$s6Sentry0A6LoggerC4info_10attributesyAA0A10LogMessageV_SDySSypGtF", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "transaction", "declAttributes": [ - "ObjC", - "Dynamic" + "Final" ], - "accessors": [ + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "info", + "printedName": "info(_:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryTraceContext(im)transaction", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "transaction", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } - ] + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryLogger(im)info:", + "mangledName": "$s6Sentry0A6LoggerC4infoyySSF", + "moduleName": "Sentry", + "objc_name": "info:", + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "sampleRate", - "printedName": "sampleRate", + "kind": "Function", + "name": "info", + "printedName": "info(_:attributes:)", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", "children": [ { "kind": "TypeNominal", "name": "String", "printedName": "Swift.String", "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" } ], - "usr": "s:Sq" + "usr": "s:SD" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryTraceContext(py)sampleRate", + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryLogger(im)info:attributes:", + "mangledName": "$s6Sentry0A6LoggerC4info_10attributesySS_SDySSypGtF", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "sampleRate", + "objc_name": "info:attributes:", "declAttributes": [ - "ObjC", - "Dynamic" + "Final", + "ObjC" ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryTraceContext(im)sampleRate", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "sampleRate", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - } - ] + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "sampleRand", - "printedName": "sampleRand", + "kind": "Function", + "name": "warn", + "printedName": "warn(_:attributes:)", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "SentryLogMessage", + "printedName": "Sentry.SentryLogMessage", + "usr": "s:6Sentry0A10LogMessageV" + }, + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", "children": [ { "kind": "TypeNominal", "name": "String", "printedName": "Swift.String", "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" } ], - "usr": "s:Sq" + "hasDefaultArg": true, + "usr": "s:SD" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryTraceContext(py)sampleRand", + "declKind": "Func", + "usr": "s:6Sentry0A6LoggerC4warn_10attributesyAA0A10LogMessageV_SDySSypGtF", + "mangledName": "$s6Sentry0A6LoggerC4warn_10attributesyAA0A10LogMessageV_SDySSypGtF", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "sampleRand", "declAttributes": [ - "ObjC", - "Dynamic" + "Final" ], - "accessors": [ + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "warn", + "printedName": "warn(_:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryTraceContext(im)sampleRand", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "sampleRand", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } - ] + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryLogger(im)warn:", + "mangledName": "$s6Sentry0A6LoggerC4warnyySSF", + "moduleName": "Sentry", + "objc_name": "warn:", + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "sampled", - "printedName": "sampled", + "kind": "Function", + "name": "warn", + "printedName": "warn(_:attributes:)", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", "children": [ { "kind": "TypeNominal", "name": "String", "printedName": "Swift.String", "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" } ], - "usr": "s:Sq" + "usr": "s:SD" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryTraceContext(py)sampled", + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryLogger(im)warn:attributes:", + "mangledName": "$s6Sentry0A6LoggerC4warn_10attributesySS_SDySSypGtF", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "sampled", + "objc_name": "warn:attributes:", "declAttributes": [ - "ObjC", - "Dynamic" + "Final", + "ObjC" ], - "accessors": [ + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "error", + "printedName": "error(_:attributes:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "SentryLogMessage", + "printedName": "Sentry.SentryLogMessage", + "usr": "s:6Sentry0A10LogMessageV" + }, + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryTraceContext(im)sampled", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "sampled", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + "hasDefaultArg": true, + "usr": "s:SD" } - ] + ], + "declKind": "Func", + "usr": "s:6Sentry0A6LoggerC5error_10attributesyAA0A10LogMessageV_SDySSypGtF", + "mangledName": "$s6Sentry0A6LoggerC5error_10attributesyAA0A10LogMessageV_SDySSypGtF", + "moduleName": "Sentry", + "declAttributes": [ + "Final" + ], + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "replayId", - "printedName": "replayId", + "kind": "Function", + "name": "error", + "printedName": "error(_:)", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryLogger(im)error:", + "mangledName": "$s6Sentry0A6LoggerC5erroryySSF", + "moduleName": "Sentry", + "objc_name": "error:", + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "error", + "printedName": "error(_:attributes:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", "children": [ { "kind": "TypeNominal", "name": "String", "printedName": "Swift.String", "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" } ], - "usr": "s:Sq" + "usr": "s:SD" } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryTraceContext(py)replayId", + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryLogger(im)error:attributes:", + "mangledName": "$s6Sentry0A6LoggerC5error_10attributesySS_SDySSypGtF", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "replayId", + "objc_name": "error:attributes:", "declAttributes": [ - "ObjC", - "Dynamic" + "Final", + "ObjC" ], - "accessors": [ + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "fatal", + "printedName": "fatal(_:attributes:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "SentryLogMessage", + "printedName": "Sentry.SentryLogMessage", + "usr": "s:6Sentry0A10LogMessageV" + }, + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryTraceContext(im)replayId", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "replayId", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + "hasDefaultArg": true, + "usr": "s:SD" } - ] + ], + "declKind": "Func", + "usr": "s:6Sentry0A6LoggerC5fatal_10attributesyAA0A10LogMessageV_SDySSypGtF", + "mangledName": "$s6Sentry0A6LoggerC5fatal_10attributesyAA0A10LogMessageV_SDySSypGtF", + "moduleName": "Sentry", + "declAttributes": [ + "Final" + ], + "funcSelfKind": "NonMutating" }, { "kind": "Function", - "name": "toBaggage", - "printedName": "toBaggage()", + "name": "fatal", + "printedName": "fatal(_:)", "children": [ { "kind": "TypeNominal", - "name": "Baggage", - "printedName": "Sentry.Baggage", - "usr": "c:objc(cs)SentryBaggage" + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "declKind": "Func", - "usr": "c:objc(cs)SentryTraceContext(im)toBaggage", + "usr": "c:@M@Sentry@objc(cs)SentryLogger(im)fatal:", + "mangledName": "$s6Sentry0A6LoggerC5fatalyySSF", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "toBaggage", + "objc_name": "fatal:", "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "funcSelfKind": "NonMutating" }, { - "kind": "Constructor", - "name": "init", - "printedName": "init()", + "kind": "Function", + "name": "fatal", + "printedName": "fatal(_:attributes:)", "children": [ { "kind": "TypeNominal", - "name": "TraceContext", - "printedName": "Sentry.TraceContext", - "usr": "c:objc(cs)SentryTraceContext" + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" + } + ], + "usr": "s:SD" } ], - "declKind": "Constructor", - "usr": "c:objc(cs)NSObject(im)init", + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryLogger(im)fatal:attributes:", + "mangledName": "$s6Sentry0A6LoggerC5fatal_10attributesySS_SDySSypGtF", "moduleName": "Sentry", - "overriding": true, - "implicit": true, - "objc_name": "init", + "objc_name": "fatal:attributes:", "declAttributes": [ - "Override", - "ObjC", - "Dynamic" + "Final", + "ObjC" ], - "init_kind": "Designated" + "funcSelfKind": "NonMutating" } ], "declKind": "Class", - "usr": "c:objc(cs)SentryTraceContext", + "usr": "c:@M@Sentry@objc(cs)SentryLogger", + "mangledName": "$s6Sentry0A6LoggerC", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "SentryTraceContext", "declAttributes": [ - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "superclassUsr": "c:objc(cs)NSObject", + "hasMissingDesignatedInitializers": true, "inheritsConvenienceInitializers": true, "superclassNames": [ "ObjectiveC.NSObject" ], "conformances": [ - { - "kind": "Conformance", - "name": "SentrySerializable", - "printedName": "SentrySerializable", - "usr": "c:objc(pl)SentrySerializable" - }, { "kind": "Conformance", "name": "Copyable", @@ -35116,718 +35819,1006 @@ ] }, { - "kind": "TypeDecl", - "name": "TraceHeader", - "printedName": "TraceHeader", + "kind": "TypeAlias", + "name": "SentryBeforeSendLogCallback", + "printedName": "SentryBeforeSendLogCallback", "children": [ { - "kind": "Var", - "name": "traceId", - "printedName": "traceId", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryLog) -> Sentry.SentryLog?", "children": [ { "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryTraceHeader(py)traceId", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "traceId", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "name": "Optional", + "printedName": "Sentry.SentryLog?", "children": [ { "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" + "name": "SentryLog", + "printedName": "Sentry.SentryLog", + "usr": "c:@M@Sentry@objc(cs)SentryLog" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryTraceHeader(im)traceId", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "traceId", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "SentryLog", + "printedName": "Sentry.SentryLog", + "usr": "c:@M@Sentry@objc(cs)SentryLog" } ] - }, + } + ], + "declKind": "TypeAlias", + "usr": "s:6Sentry0A21BeforeSendLogCallbacka", + "mangledName": "$s6Sentry0A21BeforeSendLogCallbacka", + "moduleName": "Sentry" + }, + { + "kind": "TypeDecl", + "name": "SentryReplayOptions", + "printedName": "SentryReplayOptions", + "children": [ { - "kind": "Var", - "name": "spanId", - "printedName": "spanId", + "kind": "TypeDecl", + "name": "DefaultValues", + "printedName": "DefaultValues", "children": [ { - "kind": "TypeNominal", - "name": "SpanId", - "printedName": "Sentry.SpanId", - "usr": "c:objc(cs)SentrySpanId" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryTraceHeader(py)spanId", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "spanId", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "Var", + "name": "sessionSampleRate", + "printedName": "sessionSampleRate", "children": [ { "kind": "TypeNominal", - "name": "SpanId", - "printedName": "Sentry.SpanId", - "usr": "c:objc(cs)SentrySpanId" + "name": "Float", + "printedName": "Swift.Float", + "usr": "s:Sf" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryTraceHeader(im)spanId", + "declKind": "Var", + "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC17sessionSampleRateSfvpZ", + "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC17sessionSampleRateSfvpZ", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "spanId", + "static": true, "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "Final", + "HasStorage" ], - "accessorKind": "get" - } - ] - }, - { - "kind": "Var", - "name": "sampled", - "printedName": "sampled", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySampleDecision", - "printedName": "Sentry.SentrySampleDecision", - "usr": "c:@E@SentrySampleDecision" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryTraceHeader(py)sampled", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "sampled", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ + "isLet": true, + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Float", + "printedName": "Swift.Float", + "usr": "s:Sf" + } + ], + "declKind": "Accessor", + "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC17sessionSampleRateSfvgZ", + "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC17sessionSampleRateSfvgZ", + "moduleName": "Sentry", + "static": true, + "implicit": true, + "declAttributes": [ + "Final" + ], + "accessorKind": "get" + } + ] + }, { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "Var", + "name": "onErrorSampleRate", + "printedName": "onErrorSampleRate", "children": [ { "kind": "TypeNominal", - "name": "SentrySampleDecision", - "printedName": "Sentry.SentrySampleDecision", - "usr": "c:@E@SentrySampleDecision" + "name": "Float", + "printedName": "Swift.Float", + "usr": "s:Sf" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryTraceHeader(im)sampled", + "declKind": "Var", + "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC17onErrorSampleRateSfvpZ", + "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC17onErrorSampleRateSfvpZ", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "sampled", + "static": true, "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "Final", + "HasStorage" ], - "accessorKind": "get" - } - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(trace:spanId:sampled:)", - "children": [ - { - "kind": "TypeNominal", - "name": "TraceHeader", - "printedName": "Sentry.TraceHeader", - "usr": "c:objc(cs)SentryTraceHeader" - }, - { - "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, - { - "kind": "TypeNominal", - "name": "SpanId", - "printedName": "Sentry.SpanId", - "usr": "c:objc(cs)SentrySpanId" + "isLet": true, + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Float", + "printedName": "Swift.Float", + "usr": "s:Sf" + } + ], + "declKind": "Accessor", + "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC17onErrorSampleRateSfvgZ", + "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC17onErrorSampleRateSfvgZ", + "moduleName": "Sentry", + "static": true, + "implicit": true, + "declAttributes": [ + "Final" + ], + "accessorKind": "get" + } + ] }, { - "kind": "TypeNominal", - "name": "SentrySampleDecision", - "printedName": "Sentry.SentrySampleDecision", - "usr": "c:@E@SentrySampleDecision" - } - ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentryTraceHeader(im)initWithTraceId:spanId:sampled:", - "moduleName": "Sentry", - "objc_name": "initWithTraceId:spanId:sampled:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "init_kind": "Designated" - }, - { - "kind": "Function", - "name": "value", - "printedName": "value()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Func", - "usr": "c:objc(cs)SentryTraceHeader(im)value", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "value", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Class", - "usr": "c:objc(cs)SentryTraceHeader", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "SentryTraceHeader", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "superclassUsr": "c:objc(cs)NSObject", - "inheritsConvenienceInitializers": true, - "superclassNames": [ - "ObjectiveC.NSObject" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - } - ] - }, - { - "kind": "TypeDecl", - "name": "TransactionContext", - "printedName": "TransactionContext", - "children": [ - { - "kind": "Var", - "name": "name", - "printedName": "name", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryTransactionContext(py)name", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "name", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "Var", + "name": "maskAllText", + "printedName": "maskAllText", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryTransactionContext(im)name", + "declKind": "Var", + "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC11maskAllTextSbvpZ", + "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC11maskAllTextSbvpZ", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "name", + "static": true, "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "Final", + "HasStorage" ], - "accessorKind": "get" - } - ] - }, - { - "kind": "Var", - "name": "nameSource", - "printedName": "nameSource", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryTransactionNameSource", - "printedName": "Sentry.SentryTransactionNameSource", - "usr": "c:@M@Sentry@E@SentryTransactionNameSource" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryTransactionContext(py)nameSource", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "nameSource", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ + "isLet": true, + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC11maskAllTextSbvgZ", + "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC11maskAllTextSbvgZ", + "moduleName": "Sentry", + "static": true, + "implicit": true, + "declAttributes": [ + "Final" + ], + "accessorKind": "get" + } + ] + }, { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "Var", + "name": "maskAllImages", + "printedName": "maskAllImages", "children": [ { "kind": "TypeNominal", - "name": "SentryTransactionNameSource", - "printedName": "Sentry.SentryTransactionNameSource", - "usr": "c:@M@Sentry@E@SentryTransactionNameSource" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryTransactionContext(im)nameSource", + "declKind": "Var", + "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC13maskAllImagesSbvpZ", + "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC13maskAllImagesSbvpZ", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "nameSource", + "static": true, "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - } - ] - }, - { - "kind": "Var", - "name": "sampleRate", - "printedName": "sampleRate", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } + "Final", + "HasStorage" ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryTransactionContext(py)sampleRate", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "sampleRate", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ + "isLet": true, + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "usr": "s:Sq" + "declKind": "Accessor", + "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC13maskAllImagesSbvgZ", + "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC13maskAllImagesSbvgZ", + "moduleName": "Sentry", + "static": true, + "implicit": true, + "declAttributes": [ + "Final" + ], + "accessorKind": "get" + } + ] + }, + { + "kind": "Var", + "name": "enableViewRendererV2", + "printedName": "enableViewRendererV2", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryTransactionContext(im)sampleRate", + "declKind": "Var", + "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC20enableViewRendererV2SbvpZ", + "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC20enableViewRendererV2SbvpZ", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "sampleRate", + "static": true, "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "Final", + "HasStorage" ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ + "isLet": true, + "hasStorage": true, + "accessors": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } - ] - }, + ], + "declKind": "Accessor", + "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC20enableViewRendererV2SbvgZ", + "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC20enableViewRendererV2SbvgZ", + "moduleName": "Sentry", + "static": true, + "implicit": true, + "declAttributes": [ + "Final" + ], + "accessorKind": "get" + } + ] + }, + { + "kind": "Var", + "name": "enableFastViewRendering", + "printedName": "enableFastViewRendering", + "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryTransactionContext(im)setSampleRate:", + "declKind": "Var", + "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC23enableFastViewRenderingSbvpZ", + "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC23enableFastViewRenderingSbvpZ", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setSampleRate:", + "static": true, "declAttributes": [ - "ObjC", - "Dynamic" + "Final", + "HasStorage" ], - "accessorKind": "set" - } - ] - }, - { - "kind": "Var", - "name": "sampleRand", - "printedName": "sampleRand", - "children": [ + "isLet": true, + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC23enableFastViewRenderingSbvgZ", + "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC23enableFastViewRenderingSbvgZ", + "moduleName": "Sentry", + "static": true, + "implicit": true, + "declAttributes": [ + "Final" + ], + "accessorKind": "get" + } + ] + }, { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", + "kind": "Var", + "name": "quality", + "printedName": "quality", "children": [ { "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" + "name": "SentryReplayQuality", + "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality", + "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO" } ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryTransactionContext(py)sampleRand", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "sampleRand", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ + "declKind": "Var", + "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC7qualityAC0aB7QualityOvpZ", + "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC7qualityAC0aB7QualityOvpZ", + "moduleName": "Sentry", + "static": true, + "declAttributes": [ + "Final", + "HasStorage" + ], + "isLet": true, + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryReplayQuality", + "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality", + "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO" + } + ], + "declKind": "Accessor", + "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC7qualityAC0aB7QualityOvgZ", + "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC7qualityAC0aB7QualityOvgZ", + "moduleName": "Sentry", + "static": true, + "implicit": true, + "declAttributes": [ + "Final" + ], + "accessorKind": "get" + } + ] + }, { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "Var", + "name": "maskedViewClasses", + "printedName": "maskedViewClasses", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", + "name": "Array", + "printedName": "[Swift.AnyClass]", "children": [ { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" + "kind": "TypeNameAlias", + "name": "AnyClass", + "printedName": "Swift.AnyClass", + "children": [ + { + "kind": "TypeNominal", + "name": "ExistentialMetatype", + "printedName": "any Swift.AnyObject.Type", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Swift.AnyObject", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Builtin.AnyObject", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "AnyObject" + } + ] + } + ] + } + ] + } + ] } ], - "usr": "s:Sq" + "usr": "s:Sa" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryTransactionContext(im)sampleRand", + "declKind": "Var", + "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC17maskedViewClassesSayyXlXpGvpZ", + "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC17maskedViewClassesSayyXlXpGvpZ", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "sampleRand", + "static": true, "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "Final", + "HasStorage" ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ + "isLet": true, + "hasStorage": true, + "accessors": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "Array", + "printedName": "[Swift.AnyClass]", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyClass", + "printedName": "Swift.AnyClass", + "children": [ + { + "kind": "TypeNominal", + "name": "ExistentialMetatype", + "printedName": "any Swift.AnyObject.Type", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Swift.AnyObject", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Builtin.AnyObject", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "AnyObject" + } + ] + } + ] + } + ] + } + ] + } + ], + "usr": "s:Sa" } - ] - }, + ], + "declKind": "Accessor", + "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC17maskedViewClassesSayyXlXpGvgZ", + "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC17maskedViewClassesSayyXlXpGvgZ", + "moduleName": "Sentry", + "static": true, + "implicit": true, + "declAttributes": [ + "Final" + ], + "accessorKind": "get" + } + ] + }, + { + "kind": "Var", + "name": "unmaskedViewClasses", + "printedName": "unmaskedViewClasses", + "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", + "name": "Array", + "printedName": "[Swift.AnyClass]", "children": [ { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" + "kind": "TypeNameAlias", + "name": "AnyClass", + "printedName": "Swift.AnyClass", + "children": [ + { + "kind": "TypeNominal", + "name": "ExistentialMetatype", + "printedName": "any Swift.AnyObject.Type", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Swift.AnyObject", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Builtin.AnyObject", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "AnyObject" + } + ] + } + ] + } + ] + } + ] } ], - "usr": "s:Sq" + "usr": "s:Sa" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryTransactionContext(im)setSampleRand:", + "declKind": "Var", + "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC19unmaskedViewClassesSayyXlXpGvpZ", + "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC19unmaskedViewClassesSayyXlXpGvpZ", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setSampleRand:", + "static": true, "declAttributes": [ - "ObjC", - "Dynamic" + "Final", + "HasStorage" ], - "accessorKind": "set" - } - ] - }, - { - "kind": "Var", - "name": "parentSampled", - "printedName": "parentSampled", - "children": [ - { - "kind": "TypeNominal", - "name": "SentrySampleDecision", - "printedName": "Sentry.SentrySampleDecision", - "usr": "c:@E@SentrySampleDecision" + "isLet": true, + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Array", + "printedName": "[Swift.AnyClass]", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyClass", + "printedName": "Swift.AnyClass", + "children": [ + { + "kind": "TypeNominal", + "name": "ExistentialMetatype", + "printedName": "any Swift.AnyObject.Type", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Swift.AnyObject", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Builtin.AnyObject", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "AnyObject" + } + ] + } + ] + } + ] + } + ] + } + ], + "usr": "s:Sa" + } + ], + "declKind": "Accessor", + "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC19unmaskedViewClassesSayyXlXpGvgZ", + "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC19unmaskedViewClassesSayyXlXpGvgZ", + "moduleName": "Sentry", + "static": true, + "implicit": true, + "declAttributes": [ + "Final" + ], + "accessorKind": "get" + } + ] } ], - "declKind": "Var", - "usr": "c:objc(cs)SentryTransactionContext(py)parentSampled", + "declKind": "Class", + "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC", + "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "parentSampled", "declAttributes": [ - "ObjC", - "Dynamic" + "Final" ], - "accessors": [ + "hasMissingDesignatedInitializers": true, + "conformances": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "SentryReplayQuality", + "printedName": "SentryReplayQuality", + "children": [ + { + "kind": "Var", + "name": "low", + "printedName": "low", "children": [ { - "kind": "TypeNominal", - "name": "SentrySampleDecision", - "printedName": "Sentry.SentrySampleDecision", - "usr": "c:@E@SentrySampleDecision" + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryReplayOptions.SentryReplayQuality.Type) -> Sentry.SentryReplayOptions.SentryReplayQuality", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryReplayQuality", + "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality", + "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryReplayQuality", + "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality", + "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO" + } + ] + } + ] } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryTransactionContext(im)parentSampled", + "declKind": "EnumElement", + "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO3lowyA2EmF", + "mangledName": "$s6Sentry0A13ReplayOptionsC0aB7QualityO3lowyA2EmF", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "parentSampled", "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" + "ObjC" + ] }, { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "Var", + "name": "medium", + "printedName": "medium", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryReplayOptions.SentryReplayQuality.Type) -> Sentry.SentryReplayOptions.SentryReplayQuality", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryReplayQuality", + "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality", + "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryReplayQuality", + "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality", + "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO" + } + ] } ] - }, - { - "kind": "TypeNominal", - "name": "SentrySampleDecision", - "printedName": "Sentry.SentrySampleDecision", - "usr": "c:@E@SentrySampleDecision" } ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryTransactionContext(im)setParentSampled:", + "declKind": "EnumElement", + "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO6mediumyA2EmF", + "mangledName": "$s6Sentry0A13ReplayOptionsC0aB7QualityO6mediumyA2EmF", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setParentSampled:", "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" - } - ] - }, - { - "kind": "Var", - "name": "parentSampleRate", - "printedName": "parentSampleRate", - "children": [ + "ObjC" + ] + }, { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", + "kind": "Var", + "name": "high", + "printedName": "high", "children": [ { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryReplayOptions.SentryReplayQuality.Type) -> Sentry.SentryReplayOptions.SentryReplayQuality", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryReplayQuality", + "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality", + "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryReplayQuality", + "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality", + "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO" + } + ] + } + ] } ], - "usr": "s:Sq" + "declKind": "EnumElement", + "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO4highyA2EmF", + "mangledName": "$s6Sentry0A13ReplayOptionsC0aB7QualityO4highyA2EmF", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" + ] + }, + { + "kind": "Var", + "name": "description", + "printedName": "description", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO11descriptionSSvp", + "mangledName": "$s6Sentry0A13ReplayOptionsC0aB7QualityO11descriptionSSvp", + "moduleName": "Sentry", + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO11descriptionSSvg", + "mangledName": "$s6Sentry0A13ReplayOptionsC0aB7QualityO11descriptionSSvg", + "moduleName": "Sentry", + "accessorKind": "get" + } + ] + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(rawValue:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality?", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryReplayQuality", + "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality", + "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Constructor", + "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO8rawValueAESgSi_tcfc", + "mangledName": "$s6Sentry0A13ReplayOptionsC0aB7QualityO8rawValueAESgSi_tcfc", + "moduleName": "Sentry", + "init_kind": "Designated" + }, + { + "kind": "TypeAlias", + "name": "RawValue", + "printedName": "RawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "TypeAlias", + "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO8RawValuea", + "mangledName": "$s6Sentry0A13ReplayOptionsC0aB7QualityO8RawValuea", + "moduleName": "Sentry" + }, + { + "kind": "Var", + "name": "rawValue", + "printedName": "rawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Var", + "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO8rawValueSivp", + "mangledName": "$s6Sentry0A13ReplayOptionsC0aB7QualityO8rawValueSivp", + "moduleName": "Sentry", + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Accessor", + "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO8rawValueSivg", + "mangledName": "$s6Sentry0A13ReplayOptionsC0aB7QualityO8rawValueSivg", + "moduleName": "Sentry", + "accessorKind": "get" + } + ] + } + ], + "declKind": "Enum", + "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO", + "mangledName": "$s6Sentry0A13ReplayOptionsC0aB7QualityO", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" + ], + "enumRawTypeName": "Int", + "conformances": [ + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" + }, + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "RawRepresentable", + "printedName": "RawRepresentable", + "children": [ + { + "kind": "TypeWitness", + "name": "RawValue", + "printedName": "RawValue", + "children": [ + { + "kind": "TypeNameAlias", + "name": "RawValue", + "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality.RawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ] + } + ] + } + ], + "usr": "s:SY", + "mangledName": "$sSY" + } + ] + }, + { + "kind": "Var", + "name": "sessionSampleRate", + "printedName": "sessionSampleRate", + "children": [ + { + "kind": "TypeNominal", + "name": "Float", + "printedName": "Swift.Float", + "usr": "s:Sf" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryTransactionContext(py)parentSampleRate", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(py)sessionSampleRate", + "mangledName": "$s6Sentry0A13ReplayOptionsC17sessionSampleRateSfvp", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "parentSampleRate", "declAttributes": [ + "Final", "ObjC", - "Dynamic" + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -35836,28 +36827,19 @@ "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" + "name": "Float", + "printedName": "Swift.Float", + "usr": "s:Sf" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryTransactionContext(im)parentSampleRate", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)sessionSampleRate", + "mangledName": "$s6Sentry0A13ReplayOptionsC17sessionSampleRateSfvg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "parentSampleRate", + "implicit": true, "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "get" }, @@ -35867,40 +36849,25 @@ "printedName": "Set()", "children": [ { - "kind": "TypeNameAlias", + "kind": "TypeNominal", "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] + "printedName": "()" }, { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" + "name": "Float", + "printedName": "Swift.Float", + "usr": "s:Sf" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryTransactionContext(im)setParentSampleRate:", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)setSessionSampleRate:", + "mangledName": "$s6Sentry0A13ReplayOptionsC17sessionSampleRateSfvs", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setParentSampleRate:", + "implicit": true, "declAttributes": [ - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "set" } @@ -35908,33 +36875,26 @@ }, { "kind": "Var", - "name": "parentSampleRand", - "printedName": "parentSampleRand", + "name": "onErrorSampleRate", + "printedName": "onErrorSampleRate", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" + "name": "Float", + "printedName": "Swift.Float", + "usr": "s:Sf" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryTransactionContext(py)parentSampleRand", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(py)onErrorSampleRate", + "mangledName": "$s6Sentry0A13ReplayOptionsC17onErrorSampleRateSfvp", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "parentSampleRand", "declAttributes": [ + "Final", "ObjC", - "Dynamic" + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -35943,28 +36903,19 @@ "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" + "name": "Float", + "printedName": "Swift.Float", + "usr": "s:Sf" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryTransactionContext(im)parentSampleRand", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)onErrorSampleRate", + "mangledName": "$s6Sentry0A13ReplayOptionsC17onErrorSampleRateSfvg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "parentSampleRand", + "implicit": true, "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "get" }, @@ -35974,40 +36925,25 @@ "printedName": "Set()", "children": [ { - "kind": "TypeNameAlias", + "kind": "TypeNominal", "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] + "printedName": "()" }, { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" + "name": "Float", + "printedName": "Swift.Float", + "usr": "s:Sf" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryTransactionContext(im)setParentSampleRand:", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)setOnErrorSampleRate:", + "mangledName": "$s6Sentry0A13ReplayOptionsC17onErrorSampleRateSfvs", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setParentSampleRand:", + "implicit": true, "declAttributes": [ - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "set" } @@ -36015,8 +36951,8 @@ }, { "kind": "Var", - "name": "forNextAppLaunch", - "printedName": "forNextAppLaunch", + "name": "maskAllText", + "printedName": "maskAllText", "children": [ { "kind": "TypeNominal", @@ -36026,14 +36962,16 @@ } ], "declKind": "Var", - "usr": "c:objc(cs)SentryTransactionContext(py)forNextAppLaunch", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(py)maskAllText", + "mangledName": "$s6Sentry0A13ReplayOptionsC11maskAllTextSbvp", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "forNextAppLaunch", + "objc_name": "maskAllText", "declAttributes": [ "ObjC", - "Dynamic" + "Final", + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -36048,14 +36986,14 @@ } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryTransactionContext(im)forNextAppLaunch", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)maskAllText", + "mangledName": "$s6Sentry0A13ReplayOptionsC11maskAllTextSbvg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "forNextAppLaunch", + "implicit": true, + "objc_name": "maskAllText", "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "get" }, @@ -36065,16 +37003,9 @@ "printedName": "Set()", "children": [ { - "kind": "TypeNameAlias", + "kind": "TypeNominal", "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] + "printedName": "()" }, { "kind": "TypeNominal", @@ -36084,536 +37015,413 @@ } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryTransactionContext(im)setForNextAppLaunch:", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)setMaskAllText:", + "mangledName": "$s6Sentry0A13ReplayOptionsC11maskAllTextSbvs", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setForNextAppLaunch:", + "implicit": true, "declAttributes": [ - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "set" } ] }, { - "kind": "Constructor", - "name": "init", - "printedName": "init(name:operation:)", + "kind": "Var", + "name": "maskAllImages", + "printedName": "maskAllImages", "children": [ { "kind": "TypeNominal", - "name": "TransactionContext", - "printedName": "Sentry.TransactionContext", - "usr": "c:objc(cs)SentryTransactionContext" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentryTransactionContext(im)initWithName:operation:", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(py)maskAllImages", + "mangledName": "$s6Sentry0A13ReplayOptionsC13maskAllImagesSbvp", "moduleName": "Sentry", - "objc_name": "initWithName:operation:", + "objc_name": "maskAllImages", "declAttributes": [ "ObjC", - "Dynamic" + "Final", + "HasStorage" ], - "init_kind": "Designated" - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(name:operation:sampled:sampleRate:sampleRand:)", - "children": [ - { - "kind": "TypeNominal", - "name": "TransactionContext", - "printedName": "Sentry.TransactionContext", - "usr": "c:objc(cs)SentryTransactionContext" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "SentrySampleDecision", - "printedName": "Sentry.SentrySampleDecision", - "usr": "c:@E@SentrySampleDecision" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "usr": "s:Sq" + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)maskAllImages", + "mangledName": "$s6Sentry0A13ReplayOptionsC13maskAllImagesSbvg", + "moduleName": "Sentry", + "implicit": true, + "objc_name": "maskAllImages", + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" }, { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "usr": "s:Sq" + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)setMaskAllImages:", + "mangledName": "$s6Sentry0A13ReplayOptionsC13maskAllImagesSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentryTransactionContext(im)initWithName:operation:sampled:sampleRate:sampleRand:", - "moduleName": "Sentry", - "objc_name": "initWithName:operation:sampled:sampleRate:sampleRand:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "init_kind": "Designated" + ] }, { - "kind": "Constructor", - "name": "init", - "printedName": "init(name:operation:trace:spanId:parentSpanId:parentSampled:parentSampleRate:parentSampleRand:)", + "kind": "Var", + "name": "quality", + "printedName": "quality", "children": [ { "kind": "TypeNominal", - "name": "TransactionContext", - "printedName": "Sentry.TransactionContext", - "usr": "c:objc(cs)SentryTransactionContext" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, - { - "kind": "TypeNominal", - "name": "SpanId", - "printedName": "Sentry.SpanId", - "usr": "c:objc(cs)SentrySpanId" - }, + "name": "SentryReplayQuality", + "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality", + "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(py)quality", + "mangledName": "$s6Sentry0A13ReplayOptionsC7qualityAC0aB7QualityOvp", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC", + "HasStorage" + ], + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SpanId?", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "SpanId", - "printedName": "Sentry.SpanId", - "usr": "c:objc(cs)SentrySpanId" + "name": "SentryReplayQuality", + "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality", + "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO" } ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "SentrySampleDecision", - "printedName": "Sentry.SentrySampleDecision", - "usr": "c:@E@SentrySampleDecision" + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)quality", + "mangledName": "$s6Sentry0A13ReplayOptionsC7qualityAC0aB7QualityOvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" }, { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ + "name": "Void", + "printedName": "()" + }, { "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" + "name": "SentryReplayQuality", + "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality", + "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO" } ], - "usr": "s:Sq" + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)setQuality:", + "mangledName": "$s6Sentry0A13ReplayOptionsC7qualityAC0aB7QualityOvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentryTransactionContext(im)initWithName:operation:traceId:spanId:parentSpanId:parentSampled:parentSampleRate:parentSampleRand:", - "moduleName": "Sentry", - "objc_name": "initWithName:operation:traceId:spanId:parentSpanId:parentSampled:parentSampleRate:parentSampleRand:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "init_kind": "Designated" + ] }, { - "kind": "Constructor", - "name": "init", - "printedName": "init(operation:)", + "kind": "Var", + "name": "maskedViewClasses", + "printedName": "maskedViewClasses", "children": [ { "kind": "TypeNominal", - "name": "TransactionContext", - "printedName": "Sentry.TransactionContext", - "usr": "c:objc(cs)SentryTransactionContext" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Array", + "printedName": "[Swift.AnyClass]", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyClass", + "printedName": "Swift.AnyClass", + "children": [ + { + "kind": "TypeNominal", + "name": "ExistentialMetatype", + "printedName": "any Swift.AnyObject.Type", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Swift.AnyObject", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Builtin.AnyObject", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "AnyObject" + } + ] + } + ] + } + ] + } + ] + } + ], + "usr": "s:Sa" } ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentrySpanContext(im)initWithOperation:", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(py)maskedViewClasses", + "mangledName": "$s6Sentry0A13ReplayOptionsC17maskedViewClassesSayyXlXpGvp", "moduleName": "Sentry", - "overriding": true, - "implicit": true, - "objc_name": "initWithOperation:", + "objc_name": "maskedViewClasses", "declAttributes": [ - "Override", "ObjC", - "Dynamic" + "Final", + "HasStorage" ], - "init_kind": "Designated" - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(operation:sampled:)", - "children": [ - { - "kind": "TypeNominal", - "name": "TransactionContext", - "printedName": "Sentry.TransactionContext", - "usr": "c:objc(cs)SentryTransactionContext" - }, + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Array", + "printedName": "[Swift.AnyClass]", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyClass", + "printedName": "Swift.AnyClass", + "children": [ + { + "kind": "TypeNominal", + "name": "ExistentialMetatype", + "printedName": "any Swift.AnyObject.Type", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Swift.AnyObject", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Builtin.AnyObject", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "AnyObject" + } + ] + } + ] + } + ] + } + ] + } + ], + "usr": "s:Sa" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)maskedViewClasses", + "mangledName": "$s6Sentry0A13ReplayOptionsC17maskedViewClassesSayyXlXpGvg", + "moduleName": "Sentry", + "implicit": true, + "objc_name": "maskedViewClasses", + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" }, { - "kind": "TypeNominal", - "name": "SentrySampleDecision", - "printedName": "Sentry.SentrySampleDecision", - "usr": "c:@E@SentrySampleDecision" + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Array", + "printedName": "[Swift.AnyClass]", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyClass", + "printedName": "Swift.AnyClass", + "children": [ + { + "kind": "TypeNominal", + "name": "ExistentialMetatype", + "printedName": "any Swift.AnyObject.Type", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Swift.AnyObject", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Builtin.AnyObject", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "AnyObject" + } + ] + } + ] + } + ] + } + ] + } + ], + "usr": "s:Sa" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)setMaskedViewClasses:", + "mangledName": "$s6Sentry0A13ReplayOptionsC17maskedViewClassesSayyXlXpGvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentrySpanContext(im)initWithOperation:sampled:", - "moduleName": "Sentry", - "overriding": true, - "implicit": true, - "objc_name": "initWithOperation:sampled:", - "declAttributes": [ - "Override", - "ObjC", - "Dynamic" - ], - "init_kind": "Designated" + ] }, { - "kind": "Constructor", - "name": "init", - "printedName": "init(trace:spanId:parentId:operation:sampled:)", + "kind": "Var", + "name": "unmaskedViewClasses", + "printedName": "unmaskedViewClasses", "children": [ { "kind": "TypeNominal", - "name": "TransactionContext", - "printedName": "Sentry.TransactionContext", - "usr": "c:objc(cs)SentryTransactionContext" - }, - { - "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, - { - "kind": "TypeNominal", - "name": "SpanId", - "printedName": "Sentry.SpanId", - "usr": "c:objc(cs)SentrySpanId" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SpanId?", + "name": "Array", + "printedName": "[Swift.AnyClass]", "children": [ { - "kind": "TypeNominal", - "name": "SpanId", - "printedName": "Sentry.SpanId", - "usr": "c:objc(cs)SentrySpanId" + "kind": "TypeNameAlias", + "name": "AnyClass", + "printedName": "Swift.AnyClass", + "children": [ + { + "kind": "TypeNominal", + "name": "ExistentialMetatype", + "printedName": "any Swift.AnyObject.Type", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Swift.AnyObject", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Builtin.AnyObject", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "AnyObject" + } + ] + } + ] + } + ] + } + ] } ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "SentrySampleDecision", - "printedName": "Sentry.SentrySampleDecision", - "usr": "c:@E@SentrySampleDecision" + "usr": "s:Sa" } ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentrySpanContext(im)initWithTraceId:spanId:parentId:operation:sampled:", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(py)unmaskedViewClasses", + "mangledName": "$s6Sentry0A13ReplayOptionsC19unmaskedViewClassesSayyXlXpGvp", "moduleName": "Sentry", - "overriding": true, - "implicit": true, - "objc_name": "initWithTraceId:spanId:parentId:operation:sampled:", + "objc_name": "unmaskedViewClasses", "declAttributes": [ - "Override", "ObjC", - "Dynamic" - ], - "init_kind": "Designated" - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(trace:spanId:parentId:operation:spanDescription:sampled:)", - "children": [ - { - "kind": "TypeNominal", - "name": "TransactionContext", - "printedName": "Sentry.TransactionContext", - "usr": "c:objc(cs)SentryTransactionContext" - }, - { - "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, - { - "kind": "TypeNominal", - "name": "SpanId", - "printedName": "Sentry.SpanId", - "usr": "c:objc(cs)SentrySpanId" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SpanId?", - "children": [ - { - "kind": "TypeNominal", - "name": "SpanId", - "printedName": "Sentry.SpanId", - "usr": "c:objc(cs)SentrySpanId" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "SentrySampleDecision", - "printedName": "Sentry.SentrySampleDecision", - "usr": "c:@E@SentrySampleDecision" - } - ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentrySpanContext(im)initWithTraceId:spanId:parentId:operation:spanDescription:sampled:", - "moduleName": "Sentry", - "overriding": true, - "implicit": true, - "objc_name": "initWithTraceId:spanId:parentId:operation:spanDescription:sampled:", - "declAttributes": [ - "Override", - "ObjC", - "Dynamic" - ], - "init_kind": "Designated" - } - ], - "declKind": "Class", - "usr": "c:objc(cs)SentryTransactionContext", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "SentryTransactionContext", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "superclassUsr": "c:objc(cs)SentrySpanContext", - "inheritsConvenienceInitializers": true, - "superclassNames": [ - "Sentry.SpanContext", - "ObjectiveC.NSObject" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "SentrySerializable", - "printedName": "SentrySerializable", - "usr": "c:objc(pl)SentrySerializable" - }, - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - } - ] - }, - { - "kind": "TypeDecl", - "name": "User", - "printedName": "User", - "children": [ - { - "kind": "Var", - "name": "userId", - "printedName": "userId", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryUser(py)userId", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "userId", - "declAttributes": [ - "ObjC", - "Dynamic" + "Final", + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -36622,28 +37430,55 @@ "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", + "name": "Array", + "printedName": "[Swift.AnyClass]", "children": [ { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "kind": "TypeNameAlias", + "name": "AnyClass", + "printedName": "Swift.AnyClass", + "children": [ + { + "kind": "TypeNominal", + "name": "ExistentialMetatype", + "printedName": "any Swift.AnyObject.Type", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Swift.AnyObject", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Builtin.AnyObject", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "AnyObject" + } + ] + } + ] + } + ] + } + ] } ], - "usr": "s:Sq" + "usr": "s:Sa" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryUser(im)userId", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)unmaskedViewClasses", + "mangledName": "$s6Sentry0A13ReplayOptionsC19unmaskedViewClassesSayyXlXpGvg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "userId", + "implicit": true, + "objc_name": "unmaskedViewClasses", "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "get" }, @@ -36653,40 +37488,60 @@ "printedName": "Set()", "children": [ { - "kind": "TypeNameAlias", + "kind": "TypeNominal", "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] + "printedName": "()" }, { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", + "name": "Array", + "printedName": "[Swift.AnyClass]", "children": [ { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "kind": "TypeNameAlias", + "name": "AnyClass", + "printedName": "Swift.AnyClass", + "children": [ + { + "kind": "TypeNominal", + "name": "ExistentialMetatype", + "printedName": "any Swift.AnyObject.Type", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Swift.AnyObject", + "children": [ + { + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Builtin.AnyObject", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "AnyObject" + } + ] + } + ] + } + ] + } + ] } ], - "usr": "s:Sq" + "usr": "s:Sa" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryUser(im)setUserId:", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)setUnmaskedViewClasses:", + "mangledName": "$s6Sentry0A13ReplayOptionsC19unmaskedViewClassesSayyXlXpGvs", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setUserId:", + "implicit": true, "declAttributes": [ - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "set" } @@ -36694,33 +37549,26 @@ }, { "kind": "Var", - "name": "email", - "printedName": "email", + "name": "enableViewRendererV2", + "printedName": "enableViewRendererV2", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryUser(py)email", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(py)enableViewRendererV2", + "mangledName": "$s6Sentry0A13ReplayOptionsC20enableViewRendererV2Sbvp", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "email", "declAttributes": [ + "Final", "ObjC", - "Dynamic" + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -36729,28 +37577,19 @@ "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryUser(im)email", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)enableViewRendererV2", + "mangledName": "$s6Sentry0A13ReplayOptionsC20enableViewRendererV2Sbvg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "email", + "implicit": true, "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "get" }, @@ -36760,40 +37599,25 @@ "printedName": "Set()", "children": [ { - "kind": "TypeNameAlias", + "kind": "TypeNominal", "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] + "printedName": "()" }, { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryUser(im)setEmail:", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)setEnableViewRendererV2:", + "mangledName": "$s6Sentry0A13ReplayOptionsC20enableViewRendererV2Sbvs", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setEmail:", + "implicit": true, "declAttributes": [ - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "set" } @@ -36801,33 +37625,26 @@ }, { "kind": "Var", - "name": "username", - "printedName": "username", + "name": "enableFastViewRendering", + "printedName": "enableFastViewRendering", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Var", - "usr": "c:objc(cs)SentryUser(py)username", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(py)enableFastViewRendering", + "mangledName": "$s6Sentry0A13ReplayOptionsC23enableFastViewRenderingSbvp", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "username", "declAttributes": [ + "Final", "ObjC", - "Dynamic" + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -36836,1798 +37653,254 @@ "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Accessor", - "usr": "c:objc(cs)SentryUser(im)username", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)enableFastViewRendering", + "mangledName": "$s6Sentry0A13ReplayOptionsC23enableFastViewRenderingSbvg", "moduleName": "Sentry", - "isOpen": true, - "objc_name": "username", + "implicit": true, "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" + "Final", + "ObjC" ], "accessorKind": "get" }, { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryUser(im)setUsername:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setUsername:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" - } - ] - }, - { - "kind": "Var", - "name": "ipAddress", - "printedName": "ipAddress", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryUser(py)ipAddress", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "ipAddress", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryUser(im)ipAddress", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "ipAddress", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryUser(im)setIpAddress:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setIpAddress:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" - } - ] - }, - { - "kind": "Var", - "name": "name", - "printedName": "name", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryUser(py)name", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "name", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryUser(im)name", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "name", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryUser(im)setName:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setName:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" - } - ] - }, - { - "kind": "Var", - "name": "geo", - "printedName": "geo", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.Geo?", - "children": [ - { - "kind": "TypeNominal", - "name": "Geo", - "printedName": "Sentry.Geo", - "usr": "c:objc(cs)SentryGeo" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryUser(py)geo", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "geo", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.Geo?", - "children": [ - { - "kind": "TypeNominal", - "name": "Geo", - "printedName": "Sentry.Geo", - "usr": "c:objc(cs)SentryGeo" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryUser(im)geo", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "geo", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.Geo?", - "children": [ - { - "kind": "TypeNominal", - "name": "Geo", - "printedName": "Sentry.Geo", - "usr": "c:objc(cs)SentryGeo" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryUser(im)setGeo:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setGeo:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" - } - ] - }, - { - "kind": "Var", - "name": "data", - "printedName": "data", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "[Swift.String : Any]?", - "children": [ - { - "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "usr": "s:SD" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryUser(py)data", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "data", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "[Swift.String : Any]?", - "children": [ - { - "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "usr": "s:SD" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryUser(im)data", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "data", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "[Swift.String : Any]?", - "children": [ - { - "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "usr": "s:SD" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryUser(im)setData:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setData:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" - } - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(userId:)", - "children": [ - { - "kind": "TypeNominal", - "name": "User", - "printedName": "Sentry.User", - "usr": "c:objc(cs)SentryUser" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentryUser(im)initWithUserId:", - "moduleName": "Sentry", - "objc_name": "initWithUserId:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "init_kind": "Designated" - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init()", - "children": [ - { - "kind": "TypeNominal", - "name": "User", - "printedName": "Sentry.User", - "usr": "c:objc(cs)SentryUser" - } - ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentryUser(im)init", - "moduleName": "Sentry", - "overriding": true, - "objc_name": "init", - "declAttributes": [ - "Override", - "Required", - "ObjC", - "Dynamic" - ], - "init_kind": "Designated" - }, - { - "kind": "Function", - "name": "isEqual", - "printedName": "isEqual(_:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Any?", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Func", - "usr": "c:objc(cs)SentryUser(im)isEqual:", - "moduleName": "Sentry", - "overriding": true, - "isOpen": true, - "objc_name": "isEqual:", - "declAttributes": [ - "DiscardableResult", - "Override", - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "isEqual", - "printedName": "isEqual(to:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - }, - { - "kind": "TypeNominal", - "name": "User", - "printedName": "Sentry.User", - "usr": "c:objc(cs)SentryUser" - } - ], - "declKind": "Func", - "usr": "c:objc(cs)SentryUser(im)isEqualToUser:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "isEqualToUser:", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "hash", - "printedName": "hash()", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Func", - "usr": "c:objc(cs)SentryUser(im)hash", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "hash", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Class", - "usr": "c:objc(cs)SentryUser", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "SentryUser", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "superclassUsr": "c:objc(cs)NSObject", - "inheritsConvenienceInitializers": true, - "superclassNames": [ - "ObjectiveC.NSObject" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "SentrySerializable", - "printedName": "SentrySerializable", - "usr": "c:objc(pl)SentrySerializable" - }, - { - "kind": "Conformance", - "name": "NSCopying", - "printedName": "NSCopying", - "usr": "c:objc(pl)NSCopying" - }, - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - } - ] - }, - { - "kind": "TypeAlias", - "name": "__NSConstantString", - "printedName": "__NSConstantString", - "children": [ - { - "kind": "TypeNominal", - "name": "__NSConstantString_tag", - "printedName": "__ObjC.__NSConstantString_tag", - "usr": "c:@S@__NSConstantString_tag" - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@__NSConstantString", - "moduleName": "__ObjC" - }, - { - "kind": "TypeAlias", - "name": "__builtin_ms_va_list", - "printedName": "__builtin_ms_va_list", - "children": [ - { - "kind": "TypeNominal", - "name": "UnsafeMutablePointer", - "printedName": "Swift.UnsafeMutablePointer", - "children": [ - { - "kind": "TypeNameAlias", - "name": "CChar", - "printedName": "Swift.CChar", - "children": [ - { - "kind": "TypeNominal", - "name": "Int8", - "printedName": "Swift.Int8", - "usr": "s:s4Int8V" - } - ] - } - ], - "usr": "s:Sp" - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@__builtin_ms_va_list", - "moduleName": "__ObjC" - }, - { - "kind": "TypeAlias", - "name": "__builtin_va_list", - "printedName": "__builtin_va_list", - "children": [ - { - "kind": "TypeNominal", - "name": "UnsafeMutablePointer", - "printedName": "Swift.UnsafeMutablePointer", - "children": [ - { - "kind": "TypeNameAlias", - "name": "CChar", - "printedName": "Swift.CChar", - "children": [ - { - "kind": "TypeNominal", - "name": "Int8", - "printedName": "Swift.Int8", - "usr": "s:s4Int8V" - } - ] - } - ], - "usr": "s:Sp" - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@__builtin_va_list", - "moduleName": "__ObjC" - }, - { - "kind": "TypeAlias", - "name": "char16_t", - "printedName": "char16_t", - "children": [ - { - "kind": "TypeNameAlias", - "name": "uint_least16_t", - "printedName": "_stdint.uint_least16_t", - "children": [ - { - "kind": "TypeNominal", - "name": "UInt16", - "printedName": "Swift.UInt16", - "usr": "s:s6UInt16V" - } - ] - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@char16_t", - "moduleName": "Sentry" - }, - { - "kind": "TypeAlias", - "name": "char32_t", - "printedName": "char32_t", - "children": [ - { - "kind": "TypeNameAlias", - "name": "uint_least32_t", - "printedName": "_stdint.uint_least32_t", - "children": [ - { - "kind": "TypeNominal", - "name": "UInt32", - "printedName": "Swift.UInt32", - "usr": "s:s6UInt32V" - } - ] - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@char32_t", - "moduleName": "Sentry" - }, - { - "kind": "TypeAlias", - "name": "char8_t", - "printedName": "char8_t", - "children": [ - { - "kind": "TypeNominal", - "name": "UInt8", - "printedName": "Swift.UInt8", - "usr": "s:s5UInt8V" - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@char8_t", - "moduleName": "Sentry" - }, - { - "kind": "Var", - "name": "defaultMaxBreadcrumbs", - "printedName": "defaultMaxBreadcrumbs", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Var", - "usr": "c:@defaultMaxBreadcrumbs", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "Var", - "name": "kSentryFalseString", - "printedName": "kSentryFalseString", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:@kSentryFalseString", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "Var", - "name": "kSentrySpanStatusNameAborted", - "printedName": "kSentrySpanStatusNameAborted", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:@kSentrySpanStatusNameAborted", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "Var", - "name": "kSentrySpanStatusNameAlreadyExists", - "printedName": "kSentrySpanStatusNameAlreadyExists", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:@kSentrySpanStatusNameAlreadyExists", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "Var", - "name": "kSentrySpanStatusNameCancelled", - "printedName": "kSentrySpanStatusNameCancelled", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:@kSentrySpanStatusNameCancelled", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "Var", - "name": "kSentrySpanStatusNameDataLoss", - "printedName": "kSentrySpanStatusNameDataLoss", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:@kSentrySpanStatusNameDataLoss", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "Var", - "name": "kSentrySpanStatusNameDeadlineExceeded", - "printedName": "kSentrySpanStatusNameDeadlineExceeded", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:@kSentrySpanStatusNameDeadlineExceeded", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "Var", - "name": "kSentrySpanStatusNameFailedPrecondition", - "printedName": "kSentrySpanStatusNameFailedPrecondition", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:@kSentrySpanStatusNameFailedPrecondition", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "Var", - "name": "kSentrySpanStatusNameInternalError", - "printedName": "kSentrySpanStatusNameInternalError", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:@kSentrySpanStatusNameInternalError", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "Var", - "name": "kSentrySpanStatusNameInvalidArgument", - "printedName": "kSentrySpanStatusNameInvalidArgument", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:@kSentrySpanStatusNameInvalidArgument", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "Var", - "name": "kSentrySpanStatusNameNotFound", - "printedName": "kSentrySpanStatusNameNotFound", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:@kSentrySpanStatusNameNotFound", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "Var", - "name": "kSentrySpanStatusNameOk", - "printedName": "kSentrySpanStatusNameOk", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:@kSentrySpanStatusNameOk", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "Var", - "name": "kSentrySpanStatusNameOutOfRange", - "printedName": "kSentrySpanStatusNameOutOfRange", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:@kSentrySpanStatusNameOutOfRange", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "Var", - "name": "kSentrySpanStatusNamePermissionDenied", - "printedName": "kSentrySpanStatusNamePermissionDenied", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:@kSentrySpanStatusNamePermissionDenied", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "Var", - "name": "kSentrySpanStatusNameResourceExhausted", - "printedName": "kSentrySpanStatusNameResourceExhausted", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:@kSentrySpanStatusNameResourceExhausted", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "Var", - "name": "kSentrySpanStatusNameUnauthenticated", - "printedName": "kSentrySpanStatusNameUnauthenticated", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:@kSentrySpanStatusNameUnauthenticated", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "Var", - "name": "kSentrySpanStatusNameUnavailable", - "printedName": "kSentrySpanStatusNameUnavailable", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:@kSentrySpanStatusNameUnavailable", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "Var", - "name": "kSentrySpanStatusNameUndefined", - "printedName": "kSentrySpanStatusNameUndefined", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:@kSentrySpanStatusNameUndefined", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "Var", - "name": "kSentrySpanStatusNameUnimplemented", - "printedName": "kSentrySpanStatusNameUnimplemented", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:@kSentrySpanStatusNameUnimplemented", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "Var", - "name": "kSentrySpanStatusNameUnknownError", - "printedName": "kSentrySpanStatusNameUnknownError", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:@kSentrySpanStatusNameUnknownError", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "Var", - "name": "kSentryTrueString", - "printedName": "kSentryTrueString", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:@kSentryTrueString", - "moduleName": "Sentry", - "isLet": true, - "hasStorage": true - }, - { - "kind": "Function", - "name": "nameForSentrySpanStatus", - "printedName": "nameForSentrySpanStatus(_:)", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "SentrySpanStatus", - "printedName": "Sentry.SentrySpanStatus", - "usr": "c:@E@SentrySpanStatus" - } - ], - "declKind": "Func", - "usr": "c:@F@nameForSentrySpanStatus", - "moduleName": "Sentry", - "declAttributes": [ - "DiscardableResult" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "TypeAlias", - "name": "swift_double2", - "printedName": "swift_double2", - "children": [ - { - "kind": "TypeNominal", - "name": "SIMD2", - "printedName": "Swift.SIMD2", - "children": [ - { - "kind": "TypeNominal", - "name": "Double", - "printedName": "Swift.Double", - "usr": "s:Sd" - } - ], - "usr": "s:s5SIMD2V" - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@swift_double2", - "moduleName": "Sentry" - }, - { - "kind": "TypeAlias", - "name": "swift_double3", - "printedName": "swift_double3", - "children": [ - { - "kind": "TypeNominal", - "name": "SIMD3", - "printedName": "Swift.SIMD3", - "children": [ - { - "kind": "TypeNominal", - "name": "Double", - "printedName": "Swift.Double", - "usr": "s:Sd" + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)setEnableFastViewRendering:", + "mangledName": "$s6Sentry0A13ReplayOptionsC23enableFastViewRenderingSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "usr": "s:s5SIMD3V" - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@swift_double3", - "moduleName": "Sentry" - }, - { - "kind": "TypeAlias", - "name": "swift_double4", - "printedName": "swift_double4", - "children": [ + ] + }, { - "kind": "TypeNominal", - "name": "SIMD4", - "printedName": "Swift.SIMD4", + "kind": "Constructor", + "name": "init", + "printedName": "init()", "children": [ { "kind": "TypeNominal", - "name": "Double", - "printedName": "Swift.Double", - "usr": "s:Sd" + "name": "SentryReplayOptions", + "printedName": "Sentry.SentryReplayOptions", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions" } ], - "usr": "s:s5SIMD4V" - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@swift_double4", - "moduleName": "Sentry" - }, - { - "kind": "TypeAlias", - "name": "swift_float2", - "printedName": "swift_float2", - "children": [ + "declKind": "Constructor", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)init", + "mangledName": "$s6Sentry0A13ReplayOptionsCACycfc", + "moduleName": "Sentry", + "overriding": true, + "objc_name": "init", + "declAttributes": [ + "ObjC", + "Dynamic", + "Override" + ], + "init_kind": "Convenience" + }, { - "kind": "TypeNominal", - "name": "SIMD2", - "printedName": "Swift.SIMD2", + "kind": "Constructor", + "name": "init", + "printedName": "init(sessionSampleRate:onErrorSampleRate:maskAllText:maskAllImages:enableViewRendererV2:enableFastViewRendering:)", "children": [ { "kind": "TypeNominal", - "name": "Float", - "printedName": "Swift.Float", - "usr": "s:Sf" - } - ], - "usr": "s:s5SIMD2V" - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@swift_float2", - "moduleName": "Sentry" - }, - { - "kind": "TypeAlias", - "name": "swift_float3", - "printedName": "swift_float3", - "children": [ - { - "kind": "TypeNominal", - "name": "SIMD3", - "printedName": "Swift.SIMD3", - "children": [ + "name": "SentryReplayOptions", + "printedName": "Sentry.SentryReplayOptions", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions" + }, { "kind": "TypeNominal", "name": "Float", "printedName": "Swift.Float", + "hasDefaultArg": true, "usr": "s:Sf" - } - ], - "usr": "s:s5SIMD3V" - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@swift_float3", - "moduleName": "Sentry" - }, - { - "kind": "TypeAlias", - "name": "swift_float4", - "printedName": "swift_float4", - "children": [ - { - "kind": "TypeNominal", - "name": "SIMD4", - "printedName": "Swift.SIMD4", - "children": [ + }, { "kind": "TypeNominal", "name": "Float", "printedName": "Swift.Float", + "hasDefaultArg": true, "usr": "s:Sf" - } - ], - "usr": "s:s5SIMD4V" - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@swift_float4", - "moduleName": "Sentry" - }, - { - "kind": "TypeAlias", - "name": "swift_int2", - "printedName": "swift_int2", - "children": [ - { - "kind": "TypeNominal", - "name": "SIMD2", - "printedName": "Swift.SIMD2", - "children": [ - { - "kind": "TypeNominal", - "name": "Int32", - "printedName": "Swift.Int32", - "usr": "s:s5Int32V" - } - ], - "usr": "s:s5SIMD2V" - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@swift_int2", - "moduleName": "Sentry" - }, - { - "kind": "TypeAlias", - "name": "swift_int3", - "printedName": "swift_int3", - "children": [ - { - "kind": "TypeNominal", - "name": "SIMD3", - "printedName": "Swift.SIMD3", - "children": [ + }, { "kind": "TypeNominal", - "name": "Int32", - "printedName": "Swift.Int32", - "usr": "s:s5Int32V" - } - ], - "usr": "s:s5SIMD3V" - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@swift_int3", - "moduleName": "Sentry" - }, - { - "kind": "TypeAlias", - "name": "swift_int4", - "printedName": "swift_int4", - "children": [ - { - "kind": "TypeNominal", - "name": "SIMD4", - "printedName": "Swift.SIMD4", - "children": [ + "name": "Bool", + "printedName": "Swift.Bool", + "hasDefaultArg": true, + "usr": "s:Sb" + }, { "kind": "TypeNominal", - "name": "Int32", - "printedName": "Swift.Int32", - "usr": "s:s5Int32V" - } - ], - "usr": "s:s5SIMD4V" - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@swift_int4", - "moduleName": "Sentry" - }, - { - "kind": "TypeAlias", - "name": "swift_uint2", - "printedName": "swift_uint2", - "children": [ - { - "kind": "TypeNominal", - "name": "SIMD2", - "printedName": "Swift.SIMD2", - "children": [ + "name": "Bool", + "printedName": "Swift.Bool", + "hasDefaultArg": true, + "usr": "s:Sb" + }, { "kind": "TypeNominal", - "name": "UInt32", - "printedName": "Swift.UInt32", - "usr": "s:s6UInt32V" - } - ], - "usr": "s:s5SIMD2V" - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@swift_uint2", - "moduleName": "Sentry" - }, - { - "kind": "TypeAlias", - "name": "swift_uint3", - "printedName": "swift_uint3", - "children": [ - { - "kind": "TypeNominal", - "name": "SIMD3", - "printedName": "Swift.SIMD3", - "children": [ + "name": "Bool", + "printedName": "Swift.Bool", + "hasDefaultArg": true, + "usr": "s:Sb" + }, { "kind": "TypeNominal", - "name": "UInt32", - "printedName": "Swift.UInt32", - "usr": "s:s6UInt32V" + "name": "Bool", + "printedName": "Swift.Bool", + "hasDefaultArg": true, + "usr": "s:Sb" } ], - "usr": "s:s5SIMD3V" - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@swift_uint3", - "moduleName": "Sentry" - }, - { - "kind": "TypeAlias", - "name": "swift_uint4", - "printedName": "swift_uint4", - "children": [ - { - "kind": "TypeNominal", - "name": "SIMD4", - "printedName": "Swift.SIMD4", - "children": [ - { - "kind": "TypeNominal", - "name": "UInt32", - "printedName": "Swift.UInt32", - "usr": "s:s6UInt32V" - } + "declKind": "Constructor", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)initWithSessionSampleRate:onErrorSampleRate:maskAllText:maskAllImages:enableViewRendererV2:enableFastViewRendering:", + "mangledName": "$s6Sentry0A13ReplayOptionsC17sessionSampleRate07onErroreF011maskAllText0iJ6Images20enableViewRendererV20m4FastN9RenderingACSf_SfS4btcfc", + "moduleName": "Sentry", + "objc_name": "initWithSessionSampleRate:onErrorSampleRate:maskAllText:maskAllImages:enableViewRendererV2:enableFastViewRendering:", + "declAttributes": [ + "ObjC" ], - "usr": "s:s5SIMD4V" + "init_kind": "Convenience" } ], - "declKind": "TypeAlias", - "usr": "c:@T@swift_uint4", - "moduleName": "Sentry" - }, - { - "kind": "Import", - "name": "AVFoundation", - "printedName": "AVFoundation", - "declKind": "Import", - "moduleName": "Sentry" - }, - { - "kind": "Import", - "name": "CoreGraphics", - "printedName": "CoreGraphics", - "declKind": "Import", - "moduleName": "Sentry" - }, - { - "kind": "Import", - "name": "CoreMedia", - "printedName": "CoreMedia", - "declKind": "Import", - "moduleName": "Sentry" - }, - { - "kind": "Import", - "name": "Darwin", - "printedName": "Darwin", - "declKind": "Import", - "moduleName": "Sentry" - }, - { - "kind": "Import", - "name": "Foundation", - "printedName": "Foundation", - "declKind": "Import", - "moduleName": "Sentry" - }, - { - "kind": "Import", - "name": "MachO", - "printedName": "MachO", - "declKind": "Import", - "moduleName": "Sentry" - }, - { - "kind": "Import", - "name": "MetricKit", - "printedName": "MetricKit", - "declKind": "Import", - "moduleName": "Sentry" - }, - { - "kind": "Import", - "name": "ObjectiveC.NSObjCRuntime", - "printedName": "ObjectiveC.NSObjCRuntime", - "declKind": "Import", - "moduleName": "Sentry" - }, - { - "kind": "Import", - "name": "Network", - "printedName": "Network", - "declKind": "Import", - "moduleName": "Sentry" - }, - { - "kind": "Import", - "name": "ObjectiveC", - "printedName": "ObjectiveC", - "declKind": "Import", - "moduleName": "Sentry" - }, - { - "kind": "Import", - "name": "PDFKit", - "printedName": "PDFKit", - "declKind": "Import", - "moduleName": "Sentry" - }, - { - "kind": "Import", - "name": "Sentry", - "printedName": "Sentry", - "declKind": "Import", + "declKind": "Class", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions", + "mangledName": "$s6Sentry0A13ReplayOptionsC", "moduleName": "Sentry", "declAttributes": [ - "Exported" + "Final", + "ObjCMembers", + "ObjC" + ], + "superclassUsr": "c:objc(cs)NSObject", + "hasMissingDesignatedInitializers": true, + "inheritsConvenienceInitializers": true, + "superclassNames": [ + "ObjectiveC.NSObject" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "SentryRedactOptions", + "printedName": "SentryRedactOptions", + "usr": "c:@M@Sentry@objc(pl)SentryRedactOptions", + "mangledName": "$s6Sentry0A13RedactOptionsP" + }, + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" + }, + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" + }, + { + "kind": "Conformance", + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" + } ] }, - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "Sentry" - }, - { - "kind": "Import", - "name": "WebKit", - "printedName": "WebKit", - "declKind": "Import", - "moduleName": "Sentry" - }, - { - "kind": "Import", - "name": "_Concurrency", - "printedName": "_Concurrency", - "declKind": "Import", - "moduleName": "Sentry" - }, - { - "kind": "Import", - "name": "_StringProcessing", - "printedName": "_StringProcessing", - "declKind": "Import", - "moduleName": "Sentry" - }, - { - "kind": "Import", - "name": "_SwiftConcurrencyShims", - "printedName": "_SwiftConcurrencyShims", - "declKind": "Import", - "moduleName": "Sentry" - }, - { - "kind": "Import", - "name": "ObjectiveC.runtime", - "printedName": "ObjectiveC.runtime", - "declKind": "Import", - "moduleName": "Sentry" - }, { "kind": "TypeDecl", - "name": "SentryViewScreenshotOptions", - "printedName": "SentryViewScreenshotOptions", + "name": "SentryUserFeedbackConfiguration", + "printedName": "SentryUserFeedbackConfiguration", "children": [ { - "kind": "TypeDecl", - "name": "DefaultValues", - "printedName": "DefaultValues", + "kind": "Var", + "name": "animations", + "printedName": "animations", "children": [ { - "kind": "Var", - "name": "enableViewRendererV2", - "printedName": "enableViewRendererV2", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Var", - "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC06enableB10RendererV2SbvpZ", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC06enableB10RendererV2SbvpZ", - "moduleName": "Sentry", - "static": true, - "declAttributes": [ - "Final", - "HasStorage" - ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC06enableB10RendererV2SbvgZ", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC06enableB10RendererV2SbvgZ", - "moduleName": "Sentry", - "static": true, - "implicit": true, - "declAttributes": [ - "Final" - ], - "accessorKind": "get" - } - ] - }, + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)animations", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC10animationsSbvp", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC", + "HasStorage" + ], + "hasStorage": true, + "accessors": [ { - "kind": "Var", - "name": "enableFastViewRendering", - "printedName": "enableFastViewRendering", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", @@ -38636,97 +37909,27 @@ "usr": "s:Sb" } ], - "declKind": "Var", - "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC010enableFastB9RenderingSbvpZ", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC010enableFastB9RenderingSbvpZ", + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)animations", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC10animationsSbvg", "moduleName": "Sentry", - "static": true, + "implicit": true, "declAttributes": [ "Final", - "HasStorage" + "ObjC" ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC010enableFastB9RenderingSbvgZ", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC010enableFastB9RenderingSbvgZ", - "moduleName": "Sentry", - "static": true, - "implicit": true, - "declAttributes": [ - "Final" - ], - "accessorKind": "get" - } - ] + "accessorKind": "get" }, { - "kind": "Var", - "name": "maskAllText", - "printedName": "maskAllText", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Var", - "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC11maskAllTextSbvpZ", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC11maskAllTextSbvpZ", - "moduleName": "Sentry", - "static": true, - "declAttributes": [ - "Final", - "HasStorage" - ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC11maskAllTextSbvgZ", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC11maskAllTextSbvgZ", - "moduleName": "Sentry", - "static": true, - "implicit": true, - "declAttributes": [ - "Final" - ], - "accessorKind": "get" - } - ] - }, - { - "kind": "Var", - "name": "maskAllImages", - "printedName": "maskAllImages", - "children": [ + "name": "Void", + "printedName": "()" + }, { "kind": "TypeNominal", "name": "Bool", @@ -38734,311 +37937,181 @@ "usr": "s:Sb" } ], - "declKind": "Var", - "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC13maskAllImagesSbvpZ", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC13maskAllImagesSbvpZ", + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setAnimations:", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC10animationsSbvs", "moduleName": "Sentry", - "static": true, + "implicit": true, "declAttributes": [ "Final", - "HasStorage" + "ObjC" ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC13maskAllImagesSbvgZ", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC13maskAllImagesSbvgZ", - "moduleName": "Sentry", - "static": true, - "implicit": true, - "declAttributes": [ - "Final" - ], - "accessorKind": "get" - } - ] - }, + "accessorKind": "set" + } + ] + }, + { + "kind": "Var", + "name": "configureWidget", + "printedName": "configureWidget", + "children": [ { - "kind": "Var", - "name": "maskedViewClasses", - "printedName": "maskedViewClasses", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "((Sentry.SentryUserFeedbackWidgetConfiguration) -> Swift.Void)?", "children": [ { - "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.AnyClass]", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryUserFeedbackWidgetConfiguration) -> Swift.Void", "children": [ { "kind": "TypeNameAlias", - "name": "AnyClass", - "printedName": "Swift.AnyClass", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "ExistentialMetatype", - "printedName": "any Swift.AnyObject.Type", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Swift.AnyObject", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Builtin.AnyObject", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "AnyObject" - } - ] - } - ] - } - ] + "name": "Void", + "printedName": "()" } ] - } - ], - "usr": "s:Sa" - } - ], - "declKind": "Var", - "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC06maskedB7ClassesSayyXlXpGvpZ", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC06maskedB7ClassesSayyXlXpGvpZ", - "moduleName": "Sentry", - "static": true, - "declAttributes": [ - "Final", - "HasStorage" - ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ + }, { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.AnyClass]", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyClass", - "printedName": "Swift.AnyClass", - "children": [ - { - "kind": "TypeNominal", - "name": "ExistentialMetatype", - "printedName": "any Swift.AnyObject.Type", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Swift.AnyObject", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Builtin.AnyObject", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "AnyObject" - } - ] - } - ] - } - ] - } - ] - } - ], - "usr": "s:Sa" + "name": "SentryUserFeedbackWidgetConfiguration", + "printedName": "Sentry.SentryUserFeedbackWidgetConfiguration", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackWidgetConfiguration" } - ], - "declKind": "Accessor", - "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC06maskedB7ClassesSayyXlXpGvgZ", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC06maskedB7ClassesSayyXlXpGvgZ", - "moduleName": "Sentry", - "static": true, - "implicit": true, - "declAttributes": [ - "Final" - ], - "accessorKind": "get" + ] } - ] - }, + ], + "usr": "s:Sq" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)configureWidget", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC15configureWidgetyAA0abcfD0CcSgvp", + "moduleName": "Sentry", + "declAttributes": [ + "HasInitialValue", + "Final", + "ObjC", + "HasStorage" + ], + "hasStorage": true, + "accessors": [ { - "kind": "Var", - "name": "unmaskedViewClasses", - "printedName": "unmaskedViewClasses", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.AnyClass]", + "name": "Optional", + "printedName": "((Sentry.SentryUserFeedbackWidgetConfiguration) -> Swift.Void)?", "children": [ { - "kind": "TypeNameAlias", - "name": "AnyClass", - "printedName": "Swift.AnyClass", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryUserFeedbackWidgetConfiguration) -> Swift.Void", "children": [ { - "kind": "TypeNominal", - "name": "ExistentialMetatype", - "printedName": "any Swift.AnyObject.Type", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Swift.AnyObject", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Builtin.AnyObject", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "AnyObject" - } - ] - } - ] + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" } ] + }, + { + "kind": "TypeNominal", + "name": "SentryUserFeedbackWidgetConfiguration", + "printedName": "Sentry.SentryUserFeedbackWidgetConfiguration", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackWidgetConfiguration" } ] } ], - "usr": "s:Sa" + "usr": "s:Sq" } ], - "declKind": "Var", - "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC08unmaskedB7ClassesSayyXlXpGvpZ", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC08unmaskedB7ClassesSayyXlXpGvpZ", + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)configureWidget", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC15configureWidgetyAA0abcfD0CcSgvg", "moduleName": "Sentry", - "static": true, + "implicit": true, "declAttributes": [ "Final", - "HasStorage" + "ObjC" ], - "isLet": true, - "hasStorage": true, - "accessors": [ + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "((Sentry.SentryUserFeedbackWidgetConfiguration) -> Swift.Void)?", "children": [ { - "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.AnyClass]", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryUserFeedbackWidgetConfiguration) -> Swift.Void", "children": [ { "kind": "TypeNameAlias", - "name": "AnyClass", - "printedName": "Swift.AnyClass", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "ExistentialMetatype", - "printedName": "any Swift.AnyObject.Type", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Swift.AnyObject", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Builtin.AnyObject", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "AnyObject" - } - ] - } - ] - } - ] + "name": "Void", + "printedName": "()" } ] + }, + { + "kind": "TypeNominal", + "name": "SentryUserFeedbackWidgetConfiguration", + "printedName": "Sentry.SentryUserFeedbackWidgetConfiguration", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackWidgetConfiguration" } - ], - "usr": "s:Sa" + ] } ], - "declKind": "Accessor", - "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC08unmaskedB7ClassesSayyXlXpGvgZ", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC08unmaskedB7ClassesSayyXlXpGvgZ", - "moduleName": "Sentry", - "static": true, - "implicit": true, - "declAttributes": [ - "Final" - ], - "accessorKind": "get" + "usr": "s:Sq" } - ] - } - ], - "declKind": "Class", - "usr": "s:6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13DefaultValuesC", - "moduleName": "Sentry", - "declAttributes": [ - "Final" - ], - "hasMissingDesignatedInitializers": true, - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setConfigureWidget:", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC15configureWidgetyAA0abcfD0CcSgvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } ] }, { "kind": "Var", - "name": "enableViewRendererV2", - "printedName": "enableViewRendererV2", + "name": "useShakeGesture", + "printedName": "useShakeGesture", "children": [ { "kind": "TypeNominal", @@ -39048,8 +38121,8 @@ } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(py)enableViewRendererV2", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC06enableB10RendererV2Sbvp", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)useShakeGesture", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC15useShakeGestureSbvp", "moduleName": "Sentry", "declAttributes": [ "Final", @@ -39071,8 +38144,8 @@ } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)enableViewRendererV2", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC06enableB10RendererV2Sbvg", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)useShakeGesture", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC15useShakeGestureSbvg", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -39099,8 +38172,8 @@ } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)setEnableViewRendererV2:", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC06enableB10RendererV2Sbvs", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setUseShakeGesture:", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC15useShakeGestureSbvs", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -39113,8 +38186,8 @@ }, { "kind": "Var", - "name": "enableFastViewRendering", - "printedName": "enableFastViewRendering", + "name": "showFormForScreenshots", + "printedName": "showFormForScreenshots", "children": [ { "kind": "TypeNominal", @@ -39124,8 +38197,8 @@ } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(py)enableFastViewRendering", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC010enableFastB9RenderingSbvp", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)showFormForScreenshots", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC22showFormForScreenshotsSbvp", "moduleName": "Sentry", "declAttributes": [ "Final", @@ -39147,8 +38220,8 @@ } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)enableFastViewRendering", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC010enableFastB9RenderingSbvg", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)showFormForScreenshots", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC22showFormForScreenshotsSbvg", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -39175,8 +38248,8 @@ } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)setEnableFastViewRendering:", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC010enableFastB9RenderingSbvs", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setShowFormForScreenshots:", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC22showFormForScreenshotsSbvs", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -39189,24 +38262,32 @@ }, { "kind": "Var", - "name": "maskAllImages", - "printedName": "maskAllImages", + "name": "customButton", + "printedName": "customButton", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "UIKit.UIButton?", + "children": [ + { + "kind": "TypeNominal", + "name": "UIButton", + "printedName": "UIKit.UIButton", + "usr": "c:objc(cs)UIButton" + } + ], + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(py)maskAllImages", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13maskAllImagesSbvp", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)customButton", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC12customButtonSo8UIButtonCSgvp", "moduleName": "Sentry", - "objc_name": "maskAllImages", "declAttributes": [ - "ObjC", + "HasInitialValue", "Final", + "ObjC", "HasStorage" ], "hasStorage": true, @@ -39218,17 +38299,24 @@ "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "UIKit.UIButton?", + "children": [ + { + "kind": "TypeNominal", + "name": "UIButton", + "printedName": "UIKit.UIButton", + "usr": "c:objc(cs)UIButton" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)maskAllImages", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13maskAllImagesSbvg", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)customButton", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC12customButtonSo8UIButtonCSgvg", "moduleName": "Sentry", "implicit": true, - "objc_name": "maskAllImages", "declAttributes": [ "Final", "ObjC" @@ -39247,14 +38335,22 @@ }, { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "UIKit.UIButton?", + "children": [ + { + "kind": "TypeNominal", + "name": "UIButton", + "printedName": "UIKit.UIButton", + "usr": "c:objc(cs)UIButton" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)setMaskAllImages:", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC13maskAllImagesSbvs", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setCustomButton:", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC12customButtonSo8UIButtonCSgvs", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -39267,24 +38363,51 @@ }, { "kind": "Var", - "name": "maskAllText", - "printedName": "maskAllText", + "name": "configureForm", + "printedName": "configureForm", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "((Sentry.SentryUserFeedbackFormConfiguration) -> Swift.Void)?", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryUserFeedbackFormConfiguration) -> Swift.Void", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "SentryUserFeedbackFormConfiguration", + "printedName": "Sentry.SentryUserFeedbackFormConfiguration", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackFormConfiguration" + } + ] + } + ], + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(py)maskAllText", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC11maskAllTextSbvp", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)configureForm", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC13configureFormyAA0abcfD0CcSgvp", "moduleName": "Sentry", - "objc_name": "maskAllText", "declAttributes": [ - "ObjC", + "HasInitialValue", "Final", + "ObjC", "HasStorage" ], "hasStorage": true, @@ -39296,17 +38419,43 @@ "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "((Sentry.SentryUserFeedbackFormConfiguration) -> Swift.Void)?", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryUserFeedbackFormConfiguration) -> Swift.Void", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "SentryUserFeedbackFormConfiguration", + "printedName": "Sentry.SentryUserFeedbackFormConfiguration", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackFormConfiguration" + } + ] + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)maskAllText", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC11maskAllTextSbvg", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)configureForm", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC13configureFormyAA0abcfD0CcSgvg", "moduleName": "Sentry", "implicit": true, - "objc_name": "maskAllText", "declAttributes": [ "Final", "ObjC" @@ -39325,14 +38474,41 @@ }, { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "((Sentry.SentryUserFeedbackFormConfiguration) -> Swift.Void)?", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryUserFeedbackFormConfiguration) -> Swift.Void", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "SentryUserFeedbackFormConfiguration", + "printedName": "Sentry.SentryUserFeedbackFormConfiguration", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackFormConfiguration" + } + ] + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)setMaskAllText:", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC11maskAllTextSbvs", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setConfigureForm:", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC13configureFormyAA0abcfD0CcSgvs", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -39345,59 +38521,190 @@ }, { "kind": "Var", - "name": "maskedViewClasses", - "printedName": "maskedViewClasses", + "name": "tags", + "printedName": "tags", "children": [ { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.AnyClass]", + "name": "Optional", + "printedName": "[Swift.String : Any]?", "children": [ { - "kind": "TypeNameAlias", - "name": "AnyClass", - "printedName": "Swift.AnyClass", + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", "children": [ { "kind": "TypeNominal", - "name": "ExistentialMetatype", - "printedName": "any Swift.AnyObject.Type", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" + } + ], + "usr": "s:SD" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)tags", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC4tagsSDySSypGSgvp", + "moduleName": "Sentry", + "declAttributes": [ + "HasInitialValue", + "Final", + "ObjC", + "HasStorage" + ], + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "[Swift.String : Any]?", + "children": [ + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", "children": [ { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Swift.AnyObject", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Builtin.AnyObject", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "AnyObject" - } - ] - } - ] + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" + } + ], + "usr": "s:SD" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)tags", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC4tagsSDySSypGSgvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "[Swift.String : Any]?", + "children": [ + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" + } + ], + "usr": "s:SD" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setTags:", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC4tagsSDySSypGSgvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" + } + ] + }, + { + "kind": "Var", + "name": "onFormOpen", + "printedName": "onFormOpen", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "(() -> Swift.Void)?", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "() -> Swift.Void", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" } ] + }, + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" } ] } ], - "usr": "s:Sa" + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(py)maskedViewClasses", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC06maskedB7ClassesSayyXlXpGvp", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)onFormOpen", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC10onFormOpenyycSgvp", "moduleName": "Sentry", - "objc_name": "maskedViewClasses", "declAttributes": [ - "ObjC", + "HasInitialValue", "Final", + "ObjC", "HasStorage" ], "hasStorage": true, @@ -39409,52 +38716,42 @@ "children": [ { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.AnyClass]", + "name": "Optional", + "printedName": "(() -> Swift.Void)?", "children": [ { - "kind": "TypeNameAlias", - "name": "AnyClass", - "printedName": "Swift.AnyClass", + "kind": "TypeFunc", + "name": "Function", + "printedName": "() -> Swift.Void", "children": [ { - "kind": "TypeNominal", - "name": "ExistentialMetatype", - "printedName": "any Swift.AnyObject.Type", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Swift.AnyObject", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Builtin.AnyObject", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "AnyObject" - } - ] - } - ] + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" } ] + }, + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" } ] } ], - "usr": "s:Sa" + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)maskedViewClasses", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC06maskedB7ClassesSayyXlXpGvg", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)onFormOpen", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC10onFormOpenyycSgvg", "moduleName": "Sentry", "implicit": true, - "objc_name": "maskedViewClasses", "declAttributes": [ "Final", "ObjC" @@ -39473,49 +38770,40 @@ }, { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.AnyClass]", + "name": "Optional", + "printedName": "(() -> Swift.Void)?", "children": [ { - "kind": "TypeNameAlias", - "name": "AnyClass", - "printedName": "Swift.AnyClass", + "kind": "TypeFunc", + "name": "Function", + "printedName": "() -> Swift.Void", "children": [ { - "kind": "TypeNominal", - "name": "ExistentialMetatype", - "printedName": "any Swift.AnyObject.Type", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Swift.AnyObject", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Builtin.AnyObject", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "AnyObject" - } - ] - } - ] + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" } ] + }, + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" } ] } ], - "usr": "s:Sa" + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)setMaskedViewClasses:", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC06maskedB7ClassesSayyXlXpGvs", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setOnFormOpen:", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC10onFormOpenyycSgvs", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -39528,59 +38816,50 @@ }, { "kind": "Var", - "name": "unmaskedViewClasses", - "printedName": "unmaskedViewClasses", + "name": "onFormClose", + "printedName": "onFormClose", "children": [ { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.AnyClass]", + "name": "Optional", + "printedName": "(() -> Swift.Void)?", "children": [ { - "kind": "TypeNameAlias", - "name": "AnyClass", - "printedName": "Swift.AnyClass", + "kind": "TypeFunc", + "name": "Function", + "printedName": "() -> Swift.Void", "children": [ { - "kind": "TypeNominal", - "name": "ExistentialMetatype", - "printedName": "any Swift.AnyObject.Type", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Swift.AnyObject", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Builtin.AnyObject", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "AnyObject" - } - ] - } - ] + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" } ] + }, + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" } ] } ], - "usr": "s:Sa" + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(py)unmaskedViewClasses", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC08unmaskedB7ClassesSayyXlXpGvp", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)onFormClose", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC11onFormCloseyycSgvp", "moduleName": "Sentry", - "objc_name": "unmaskedViewClasses", "declAttributes": [ - "ObjC", + "HasInitialValue", "Final", + "ObjC", "HasStorage" ], "hasStorage": true, @@ -39592,52 +38871,42 @@ "children": [ { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.AnyClass]", + "name": "Optional", + "printedName": "(() -> Swift.Void)?", "children": [ { - "kind": "TypeNameAlias", - "name": "AnyClass", - "printedName": "Swift.AnyClass", + "kind": "TypeFunc", + "name": "Function", + "printedName": "() -> Swift.Void", "children": [ { - "kind": "TypeNominal", - "name": "ExistentialMetatype", - "printedName": "any Swift.AnyObject.Type", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Swift.AnyObject", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Builtin.AnyObject", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "AnyObject" - } - ] - } - ] + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" } ] + }, + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" } ] } ], - "usr": "s:Sa" + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)unmaskedViewClasses", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC08unmaskedB7ClassesSayyXlXpGvg", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)onFormClose", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC11onFormCloseyycSgvg", "moduleName": "Sentry", "implicit": true, - "objc_name": "unmaskedViewClasses", "declAttributes": [ "Final", "ObjC" @@ -39656,49 +38925,40 @@ }, { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.AnyClass]", + "name": "Optional", + "printedName": "(() -> Swift.Void)?", "children": [ { - "kind": "TypeNameAlias", - "name": "AnyClass", - "printedName": "Swift.AnyClass", + "kind": "TypeFunc", + "name": "Function", + "printedName": "() -> Swift.Void", "children": [ { - "kind": "TypeNominal", - "name": "ExistentialMetatype", - "printedName": "any Swift.AnyObject.Type", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Swift.AnyObject", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Builtin.AnyObject", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "AnyObject" - } - ] - } - ] + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" } ] + }, + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" } ] } ], - "usr": "s:Sa" + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)setUnmaskedViewClasses:", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC08unmaskedB7ClassesSayyXlXpGvs", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setOnFormClose:", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC11onFormCloseyycSgvs", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -39710,187 +38970,68 @@ ] }, { - "kind": "Constructor", - "name": "init", - "printedName": "init()", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryViewScreenshotOptions", - "printedName": "Sentry.SentryViewScreenshotOptions", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions" - } - ], - "declKind": "Constructor", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)init", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsCACycfc", - "moduleName": "Sentry", - "overriding": true, - "objc_name": "init", - "declAttributes": [ - "ObjC", - "Dynamic", - "Override" - ], - "init_kind": "Convenience" - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(enableViewRendererV2:enableFastViewRendering:maskAllText:maskAllImages:maskedViewClasses:unmaskedViewClasses:)", + "kind": "Var", + "name": "onSubmitSuccess", + "printedName": "onSubmitSuccess", "children": [ { "kind": "TypeNominal", - "name": "SentryViewScreenshotOptions", - "printedName": "Sentry.SentryViewScreenshotOptions", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions" - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "hasDefaultArg": true, - "usr": "s:Sb" - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "hasDefaultArg": true, - "usr": "s:Sb" - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "hasDefaultArg": true, - "usr": "s:Sb" - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "hasDefaultArg": true, - "usr": "s:Sb" - }, - { - "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.AnyClass]", + "name": "Optional", + "printedName": "(([Swift.String : Any]) -> Swift.Void)?", "children": [ { - "kind": "TypeNameAlias", - "name": "AnyClass", - "printedName": "Swift.AnyClass", + "kind": "TypeFunc", + "name": "Function", + "printedName": "([Swift.String : Any]) -> Swift.Void", "children": [ { - "kind": "TypeNominal", - "name": "ExistentialMetatype", - "printedName": "any Swift.AnyObject.Type", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Swift.AnyObject", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Builtin.AnyObject", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "AnyObject" - } - ] - } - ] + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" } ] - } - ] - } - ], - "hasDefaultArg": true, - "usr": "s:Sa" - }, - { - "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.AnyClass]", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyClass", - "printedName": "Swift.AnyClass", - "children": [ + }, { "kind": "TypeNominal", - "name": "ExistentialMetatype", - "printedName": "any Swift.AnyObject.Type", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", "children": [ { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Swift.AnyObject", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Builtin.AnyObject", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "AnyObject" - } - ] - } - ] + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" } - ] + ], + "usr": "s:SD" } ] } ], - "hasDefaultArg": true, - "usr": "s:Sa" - } - ], - "declKind": "Constructor", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)initWithEnableViewRendererV2:enableFastViewRendering:maskAllText:maskAllImages:maskedViewClasses:unmaskedViewClasses:", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC06enableB10RendererV20e4FastB9Rendering11maskAllText0jK6Images06maskedB7Classes08unmaskedbO0ACSb_S3bSayyXlXpGAJtcfc", - "moduleName": "Sentry", - "objc_name": "initWithEnableViewRendererV2:enableFastViewRendering:maskAllText:maskAllImages:maskedViewClasses:unmaskedViewClasses:", - "declAttributes": [ - "ObjC" - ], - "init_kind": "Designated" - }, - { - "kind": "Var", - "name": "description", - "printedName": "description", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(py)description", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC11descriptionSSvp", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)onSubmitSuccess", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC15onSubmitSuccessySDySSypGcSgvp", "moduleName": "Sentry", - "overriding": true, - "objc_name": "description", "declAttributes": [ - "ObjC", + "HasInitialValue", "Final", - "Override" + "ObjC", + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -39899,530 +39040,635 @@ "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions(im)description", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC11descriptionSSvg", - "moduleName": "Sentry", - "overriding": true, - "objc_name": "description", - "declAttributes": [ - "Final", - "ObjC", - "Override" - ], - "accessorKind": "get" - } - ] - } - ], - "declKind": "Class", - "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions", - "mangledName": "$s6Sentry0A21ViewScreenshotOptionsC", - "moduleName": "Sentry", - "declAttributes": [ - "Final", - "ObjCMembers", - "ObjC" - ], - "superclassUsr": "c:objc(cs)NSObject", - "inheritsConvenienceInitializers": true, - "superclassNames": [ - "ObjectiveC.NSObject" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "SentryRedactOptions", - "printedName": "SentryRedactOptions", - "usr": "c:@M@Sentry@objc(pl)SentryRedactOptions", - "mangledName": "$s6Sentry0A13RedactOptionsP" - }, - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - } - ] - }, - { - "kind": "TypeDecl", - "name": "SentryFeedback", - "printedName": "SentryFeedback", - "children": [ - { - "kind": "TypeDecl", - "name": "SentryFeedbackSource", - "printedName": "SentryFeedbackSource", - "children": [ - { - "kind": "Var", - "name": "serialize", - "printedName": "serialize", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:6Sentry0A8FeedbackC0aB6SourceO9serializeSSvp", - "mangledName": "$s6Sentry0A8FeedbackC0aB6SourceO9serializeSSvp", - "moduleName": "Sentry", - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "name": "Optional", + "printedName": "(([Swift.String : Any]) -> Swift.Void)?", "children": [ { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "kind": "TypeFunc", + "name": "Function", + "printedName": "([Swift.String : Any]) -> Swift.Void", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" + } + ], + "usr": "s:SD" + } + ] } ], - "declKind": "Accessor", - "usr": "s:6Sentry0A8FeedbackC0aB6SourceO9serializeSSvg", - "mangledName": "$s6Sentry0A8FeedbackC0aB6SourceO9serializeSSvg", - "moduleName": "Sentry", - "accessorKind": "get" + "usr": "s:Sq" } - ] + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)onSubmitSuccess", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC15onSubmitSuccessySDySSypGcSgvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" }, { - "kind": "Var", - "name": "widget", - "printedName": "widget", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryFeedback.SentryFeedbackSource.Type) -> Sentry.SentryFeedback.SentryFeedbackSource", + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "(([Swift.String : Any]) -> Swift.Void)?", "children": [ { - "kind": "TypeNominal", - "name": "SentryFeedbackSource", - "printedName": "Sentry.SentryFeedback.SentryFeedbackSource", - "usr": "s:6Sentry0A8FeedbackC0aB6SourceO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryFeedback.SentryFeedbackSource.Type", + "kind": "TypeFunc", + "name": "Function", + "printedName": "([Swift.String : Any]) -> Swift.Void", "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, { "kind": "TypeNominal", - "name": "SentryFeedbackSource", - "printedName": "Sentry.SentryFeedback.SentryFeedbackSource", - "usr": "s:6Sentry0A8FeedbackC0aB6SourceO" + "name": "Dictionary", + "printedName": "[Swift.String : Any]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" + } + ], + "usr": "s:SD" } ] } - ] + ], + "usr": "s:Sq" } ], - "declKind": "EnumElement", - "usr": "s:6Sentry0A8FeedbackC0aB6SourceO6widgetyA2EmF", - "mangledName": "$s6Sentry0A8FeedbackC0aB6SourceO6widgetyA2EmF", + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setOnSubmitSuccess:", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC15onSubmitSuccessySDySSypGcSgvs", "moduleName": "Sentry", + "implicit": true, "declAttributes": [ + "Final", "ObjC" - ] - }, + ], + "accessorKind": "set" + } + ] + }, + { + "kind": "Var", + "name": "onSubmitError", + "printedName": "onSubmitError", + "children": [ { - "kind": "Var", - "name": "custom", - "printedName": "custom", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "((any Swift.Error) -> Swift.Void)?", "children": [ { "kind": "TypeFunc", "name": "Function", - "printedName": "(Sentry.SentryFeedback.SentryFeedbackSource.Type) -> Sentry.SentryFeedback.SentryFeedbackSource", + "printedName": "(any Swift.Error) -> Swift.Void", "children": [ { - "kind": "TypeNominal", - "name": "SentryFeedbackSource", - "printedName": "Sentry.SentryFeedback.SentryFeedbackSource", - "usr": "s:6Sentry0A8FeedbackC0aB6SourceO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryFeedback.SentryFeedbackSource.Type", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "SentryFeedbackSource", - "printedName": "Sentry.SentryFeedback.SentryFeedbackSource", - "usr": "s:6Sentry0A8FeedbackC0aB6SourceO" + "name": "Void", + "printedName": "()" } ] + }, + { + "kind": "TypeNominal", + "name": "Error", + "printedName": "any Swift.Error", + "usr": "s:s5ErrorP" } ] } ], - "declKind": "EnumElement", - "usr": "s:6Sentry0A8FeedbackC0aB6SourceO6customyA2EmF", - "mangledName": "$s6Sentry0A8FeedbackC0aB6SourceO6customyA2EmF", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - }, + "usr": "s:Sq" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)onSubmitError", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC13onSubmitErrorys0G0_pcSgvp", + "moduleName": "Sentry", + "declAttributes": [ + "HasInitialValue", + "Final", + "ObjC", + "HasStorage" + ], + "hasStorage": true, + "accessors": [ { - "kind": "Constructor", - "name": "init", - "printedName": "init(rawValue:)", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", "name": "Optional", - "printedName": "Sentry.SentryFeedback.SentryFeedbackSource?", + "printedName": "((any Swift.Error) -> Swift.Void)?", "children": [ { - "kind": "TypeNominal", - "name": "SentryFeedbackSource", - "printedName": "Sentry.SentryFeedback.SentryFeedbackSource", - "usr": "s:6Sentry0A8FeedbackC0aB6SourceO" + "kind": "TypeFunc", + "name": "Function", + "printedName": "(any Swift.Error) -> Swift.Void", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "Error", + "printedName": "any Swift.Error", + "usr": "s:s5ErrorP" + } + ] } ], "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" } ], - "declKind": "Constructor", - "usr": "s:6Sentry0A8FeedbackC0aB6SourceO8rawValueAESgSi_tcfc", - "mangledName": "$s6Sentry0A8FeedbackC0aB6SourceO8rawValueAESgSi_tcfc", + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)onSubmitError", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC13onSubmitErrorys0G0_pcSgvg", "moduleName": "Sentry", - "init_kind": "Designated" - }, - { - "kind": "TypeAlias", - "name": "RawValue", - "printedName": "RawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" ], - "declKind": "TypeAlias", - "usr": "s:6Sentry0A8FeedbackC0aB6SourceO8RawValuea", - "mangledName": "$s6Sentry0A8FeedbackC0aB6SourceO8RawValuea", - "moduleName": "Sentry" + "accessorKind": "get" }, { - "kind": "Var", - "name": "rawValue", - "printedName": "rawValue", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Var", - "usr": "s:6Sentry0A8FeedbackC0aB6SourceO8rawValueSivp", - "mangledName": "$s6Sentry0A8FeedbackC0aB6SourceO8rawValueSivp", - "moduleName": "Sentry", - "accessors": [ + "name": "Void", + "printedName": "()" + }, { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "((any Swift.Error) -> Swift.Void)?", "children": [ { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "kind": "TypeFunc", + "name": "Function", + "printedName": "(any Swift.Error) -> Swift.Void", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "Error", + "printedName": "any Swift.Error", + "usr": "s:s5ErrorP" + } + ] } ], - "declKind": "Accessor", - "usr": "s:6Sentry0A8FeedbackC0aB6SourceO8rawValueSivg", - "mangledName": "$s6Sentry0A8FeedbackC0aB6SourceO8rawValueSivg", - "moduleName": "Sentry", - "accessorKind": "get" + "usr": "s:Sq" } - ] + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setOnSubmitError:", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC13onSubmitErrorys0G0_pcSgvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "Enum", - "usr": "s:6Sentry0A8FeedbackC0aB6SourceO", - "mangledName": "$s6Sentry0A8FeedbackC0aB6SourceO", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ], - "enumRawTypeName": "Int", - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, + ] + }, + { + "kind": "Var", + "name": "configureTheme", + "printedName": "configureTheme", + "children": [ { - "kind": "Conformance", - "name": "RawRepresentable", - "printedName": "RawRepresentable", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "((Sentry.SentryUserFeedbackThemeConfiguration) -> Swift.Void)?", "children": [ { - "kind": "TypeWitness", - "name": "RawValue", - "printedName": "RawValue", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryUserFeedbackThemeConfiguration) -> Swift.Void", "children": [ { "kind": "TypeNameAlias", - "name": "RawValue", - "printedName": "Sentry.SentryFeedback.SentryFeedbackSource.RawValue", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "Void", + "printedName": "()" } ] + }, + { + "kind": "TypeNominal", + "name": "SentryUserFeedbackThemeConfiguration", + "printedName": "Sentry.SentryUserFeedbackThemeConfiguration", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackThemeConfiguration" } ] } ], - "usr": "s:SY", - "mangledName": "$sSY" + "usr": "s:Sq" } - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(message:name:email:source:associatedEventId:attachments:)", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryFeedback", - "printedName": "Sentry.SentryFeedback", - "usr": "c:@M@Sentry@objc(cs)SentryFeedback" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)configureTheme", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC14configureThemeyAA0abcfD0CcSgvp", + "moduleName": "Sentry", + "declAttributes": [ + "HasInitialValue", + "Final", + "ObjC", + "HasStorage" + ], + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Optional", + "printedName": "((Sentry.SentryUserFeedbackThemeConfiguration) -> Swift.Void)?", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryUserFeedbackThemeConfiguration) -> Swift.Void", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "SentryUserFeedbackThemeConfiguration", + "printedName": "Sentry.SentryUserFeedbackThemeConfiguration", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackThemeConfiguration" + } + ] + } + ], + "usr": "s:Sq" } ], - "usr": "s:Sq" + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)configureTheme", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC14configureThemeyAA0abcfD0CcSgvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" }, { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "SentryFeedbackSource", - "printedName": "Sentry.SentryFeedback.SentryFeedbackSource", - "hasDefaultArg": true, - "usr": "s:6Sentry0A8FeedbackC0aB6SourceO" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryId?", - "children": [ + "name": "Void", + "printedName": "()" + }, { "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" + "name": "Optional", + "printedName": "((Sentry.SentryUserFeedbackThemeConfiguration) -> Swift.Void)?", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryUserFeedbackThemeConfiguration) -> Swift.Void", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "SentryUserFeedbackThemeConfiguration", + "printedName": "Sentry.SentryUserFeedbackThemeConfiguration", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackThemeConfiguration" + } + ] + } + ], + "usr": "s:Sq" } ], - "hasDefaultArg": true, - "usr": "s:Sq" - }, + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setConfigureTheme:", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC14configureThemeyAA0abcfD0CcSgvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" + } + ] + }, + { + "kind": "Var", + "name": "configureDarkTheme", + "printedName": "configureDarkTheme", + "children": [ { "kind": "TypeNominal", "name": "Optional", - "printedName": "[Foundation.Data]?", + "printedName": "((Sentry.SentryUserFeedbackThemeConfiguration) -> Swift.Void)?", "children": [ { - "kind": "TypeNominal", - "name": "Array", - "printedName": "[Foundation.Data]", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryUserFeedbackThemeConfiguration) -> Swift.Void", "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, { "kind": "TypeNominal", - "name": "Data", - "printedName": "Foundation.Data", - "usr": "s:10Foundation4DataV" + "name": "SentryUserFeedbackThemeConfiguration", + "printedName": "Sentry.SentryUserFeedbackThemeConfiguration", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackThemeConfiguration" } - ], - "usr": "s:Sa" + ] } ], - "hasDefaultArg": true, "usr": "s:Sq" } ], - "declKind": "Constructor", - "usr": "c:@M@Sentry@objc(cs)SentryFeedback(im)initWithMessage:name:email:source:associatedEventId:attachments:", - "mangledName": "$s6Sentry0A8FeedbackC7message4name5email6source17associatedEventId11attachmentsACSS_SSSgAjC0aB6SourceOSo0aI0CSgSay10Foundation4DataVGSgtcfc", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)configureDarkTheme", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC18configureDarkThemeyAA0abcgD0CcSgvp", "moduleName": "Sentry", - "objc_name": "initWithMessage:name:email:source:associatedEventId:attachments:", "declAttributes": [ - "ObjC" + "HasInitialValue", + "Final", + "ObjC", + "HasStorage" ], - "init_kind": "Designated" - }, - { - "kind": "Function", - "name": "serialize", - "printedName": "serialize()", - "children": [ + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Optional", + "printedName": "((Sentry.SentryUserFeedbackThemeConfiguration) -> Swift.Void)?", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryUserFeedbackThemeConfiguration) -> Swift.Void", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "SentryUserFeedbackThemeConfiguration", + "printedName": "Sentry.SentryUserFeedbackThemeConfiguration", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackThemeConfiguration" + } + ] + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)configureDarkTheme", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC18configureDarkThemeyAA0abcgD0CcSgvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" }, { "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" + "name": "Optional", + "printedName": "((Sentry.SentryUserFeedbackThemeConfiguration) -> Swift.Void)?", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryUserFeedbackThemeConfiguration) -> Swift.Void", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "SentryUserFeedbackThemeConfiguration", + "printedName": "Sentry.SentryUserFeedbackThemeConfiguration", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackThemeConfiguration" + } + ] + } + ], + "usr": "s:Sq" } ], - "usr": "s:SD" + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setConfigureDarkTheme:", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC18configureDarkThemeyAA0abcgD0CcSgvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" + } + ] + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init()", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryUserFeedbackConfiguration", + "printedName": "Sentry.SentryUserFeedbackConfiguration", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration" } ], - "declKind": "Func", - "usr": "c:@CM@Sentry@objc(cs)SentryFeedback(im)serialize", - "mangledName": "$s6Sentry0A8FeedbackC9serializeSDySSypGyF", + "declKind": "Constructor", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)init", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationCACycfc", "moduleName": "Sentry", - "objc_name": "serialize", + "overriding": true, + "objc_name": "init", "declAttributes": [ "ObjC", - "Final" + "Dynamic", + "Override" ], - "isFromExtension": true, - "funcSelfKind": "NonMutating" + "init_kind": "Designated" } ], "declKind": "Class", - "usr": "c:@M@Sentry@objc(cs)SentryFeedback", - "mangledName": "$s6Sentry0A8FeedbackC", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration", + "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC", "moduleName": "Sentry", "declAttributes": [ "Final", @@ -40430,6 +39676,7 @@ "ObjC" ], "superclassUsr": "c:objc(cs)NSObject", + "inheritsConvenienceInitializers": true, "superclassNames": [ "ObjectiveC.NSObject" ], @@ -40488,570 +39735,523 @@ "printedName": "CustomDebugStringConvertible", "usr": "s:s28CustomDebugStringConvertibleP", "mangledName": "$ss28CustomDebugStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "SentrySerializable", - "printedName": "SentrySerializable", - "usr": "c:objc(pl)SentrySerializable" } ] }, { "kind": "TypeDecl", - "name": "SentryLogMessage", - "printedName": "SentryLogMessage", + "name": "SentryProfileOptions", + "printedName": "SentryProfileOptions", "children": [ - { - "kind": "Constructor", - "name": "init", - "printedName": "init(stringLiteral:)", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryLogMessage", - "printedName": "Sentry.SentryLogMessage", - "usr": "s:6Sentry0A10LogMessageV" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Constructor", - "usr": "s:6Sentry0A10LogMessageV13stringLiteralACSS_tcfc", - "mangledName": "$s6Sentry0A10LogMessageV13stringLiteralACSS_tcfc", - "moduleName": "Sentry", - "init_kind": "Designated" - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(stringInterpolation:)", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryLogMessage", - "printedName": "Sentry.SentryLogMessage", - "usr": "s:6Sentry0A10LogMessageV" - }, - { - "kind": "TypeNominal", - "name": "StringInterpolation", - "printedName": "Sentry.SentryLogMessage.StringInterpolation", - "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV" - } - ], - "declKind": "Constructor", - "usr": "s:6Sentry0A10LogMessageV19stringInterpolationA2C06StringE0V_tcfc", - "mangledName": "$s6Sentry0A10LogMessageV19stringInterpolationA2C06StringE0V_tcfc", - "moduleName": "Sentry", - "init_kind": "Designated" - }, { "kind": "TypeDecl", - "name": "StringInterpolation", - "printedName": "StringInterpolation", + "name": "SentryProfileLifecycle", + "printedName": "SentryProfileLifecycle", "children": [ { - "kind": "Constructor", - "name": "init", - "printedName": "init(literalCapacity:interpolationCount:)", - "children": [ - { - "kind": "TypeNominal", - "name": "StringInterpolation", - "printedName": "Sentry.SentryLogMessage.StringInterpolation", - "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Constructor", - "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV15literalCapacity18interpolationCountAESi_Sitcfc", - "mangledName": "$s6Sentry0A10LogMessageV19StringInterpolationV15literalCapacity18interpolationCountAESi_Sitcfc", - "moduleName": "Sentry", - "init_kind": "Designated" - }, - { - "kind": "Function", - "name": "appendLiteral", - "printedName": "appendLiteral(_:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Func", - "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV13appendLiteralyySSF", - "mangledName": "$s6Sentry0A10LogMessageV19StringInterpolationV13appendLiteralyySSF", - "moduleName": "Sentry", - "funcSelfKind": "Mutating" - }, - { - "kind": "Function", - "name": "appendInterpolation", - "printedName": "appendInterpolation(_:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "() -> Swift.String", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - } - ], - "declKind": "Func", - "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV06appendE0yySSyXAF", - "mangledName": "$s6Sentry0A10LogMessageV19StringInterpolationV06appendE0yySSyXAF", - "moduleName": "Sentry", - "funcSelfKind": "Mutating" - }, - { - "kind": "Function", - "name": "appendInterpolation", - "printedName": "appendInterpolation(_:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "() -> Swift.Bool", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - }, - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - } - ], - "declKind": "Func", - "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV06appendE0yySbyXAF", - "mangledName": "$s6Sentry0A10LogMessageV19StringInterpolationV06appendE0yySbyXAF", - "moduleName": "Sentry", - "funcSelfKind": "Mutating" - }, - { - "kind": "Function", - "name": "appendInterpolation", - "printedName": "appendInterpolation(_:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "() -> Swift.Int", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - }, - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - } - ], - "declKind": "Func", - "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV06appendE0yySiyXAF", - "mangledName": "$s6Sentry0A10LogMessageV19StringInterpolationV06appendE0yySiyXAF", - "moduleName": "Sentry", - "funcSelfKind": "Mutating" - }, - { - "kind": "Function", - "name": "appendInterpolation", - "printedName": "appendInterpolation(_:)", + "kind": "Var", + "name": "manual", + "printedName": "manual", "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, { "kind": "TypeFunc", "name": "Function", - "printedName": "() -> Swift.Double", + "printedName": "(Sentry.SentryProfileOptions.SentryProfileLifecycle.Type) -> Sentry.SentryProfileOptions.SentryProfileLifecycle", "children": [ { "kind": "TypeNominal", - "name": "Double", - "printedName": "Swift.Double", - "usr": "s:Sd" + "name": "SentryProfileLifecycle", + "printedName": "Sentry.SentryProfileOptions.SentryProfileLifecycle", + "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO" }, { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "Metatype", + "printedName": "Sentry.SentryProfileOptions.SentryProfileLifecycle.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryProfileLifecycle", + "printedName": "Sentry.SentryProfileOptions.SentryProfileLifecycle", + "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO" + } + ] } ] } ], - "declKind": "Func", - "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV06appendE0yySdyXAF", - "mangledName": "$s6Sentry0A10LogMessageV19StringInterpolationV06appendE0yySdyXAF", + "declKind": "EnumElement", + "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO6manualyA2EmF", + "mangledName": "$s6Sentry0A14ProfileOptionsC0aB9LifecycleO6manualyA2EmF", "moduleName": "Sentry", - "funcSelfKind": "Mutating" + "declAttributes": [ + "ObjC" + ] }, { - "kind": "Function", - "name": "appendInterpolation", - "printedName": "appendInterpolation(_:)", + "kind": "Var", + "name": "trace", + "printedName": "trace", "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, { "kind": "TypeFunc", "name": "Function", - "printedName": "() -> Swift.Float", + "printedName": "(Sentry.SentryProfileOptions.SentryProfileLifecycle.Type) -> Sentry.SentryProfileOptions.SentryProfileLifecycle", "children": [ { "kind": "TypeNominal", - "name": "Float", - "printedName": "Swift.Float", - "usr": "s:Sf" + "name": "SentryProfileLifecycle", + "printedName": "Sentry.SentryProfileOptions.SentryProfileLifecycle", + "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO" }, { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "Metatype", + "printedName": "Sentry.SentryProfileOptions.SentryProfileLifecycle.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryProfileLifecycle", + "printedName": "Sentry.SentryProfileOptions.SentryProfileLifecycle", + "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO" + } + ] } ] } ], - "declKind": "Func", - "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV06appendE0yySfyXAF", - "mangledName": "$s6Sentry0A10LogMessageV19StringInterpolationV06appendE0yySfyXAF", + "declKind": "EnumElement", + "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO5traceyA2EmF", + "mangledName": "$s6Sentry0A14ProfileOptionsC0aB9LifecycleO5traceyA2EmF", "moduleName": "Sentry", - "funcSelfKind": "Mutating" + "declAttributes": [ + "ObjC" + ] }, { - "kind": "Function", - "name": "appendInterpolation", - "printedName": "appendInterpolation(_:)", + "kind": "Constructor", + "name": "init", + "printedName": "init(rawValue:)", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "() -> T", + "name": "Optional", + "printedName": "Sentry.SentryProfileOptions.SentryProfileLifecycle?", "children": [ { "kind": "TypeNominal", - "name": "GenericTypeParam", - "printedName": "T" - }, - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryProfileLifecycle", + "printedName": "Sentry.SentryProfileOptions.SentryProfileLifecycle", + "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO" } - ] + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], - "declKind": "Func", - "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV06appendE0yyxyXAs06CustomD11ConvertibleRzlF", - "mangledName": "$s6Sentry0A10LogMessageV19StringInterpolationV06appendE0yyxyXAs06CustomD11ConvertibleRzlF", + "declKind": "Constructor", + "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO8rawValueAESgSi_tcfc", + "mangledName": "$s6Sentry0A14ProfileOptionsC0aB9LifecycleO8rawValueAESgSi_tcfc", "moduleName": "Sentry", - "genericSig": "", - "funcSelfKind": "Mutating" + "init_kind": "Designated" }, { "kind": "TypeAlias", - "name": "StringLiteralType", - "printedName": "StringLiteralType", + "name": "RawValue", + "printedName": "RawValue", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], "declKind": "TypeAlias", - "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV0D11LiteralTypea", - "mangledName": "$s6Sentry0A10LogMessageV19StringInterpolationV0D11LiteralTypea", + "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO8RawValuea", + "mangledName": "$s6Sentry0A14ProfileOptionsC0aB9LifecycleO8RawValuea", "moduleName": "Sentry" + }, + { + "kind": "Var", + "name": "rawValue", + "printedName": "rawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Var", + "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO8rawValueSivp", + "mangledName": "$s6Sentry0A14ProfileOptionsC0aB9LifecycleO8rawValueSivp", + "moduleName": "Sentry", + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Accessor", + "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO8rawValueSivg", + "mangledName": "$s6Sentry0A14ProfileOptionsC0aB9LifecycleO8rawValueSivg", + "moduleName": "Sentry", + "accessorKind": "get" + } + ] } ], - "declKind": "Struct", - "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV", - "mangledName": "$s6Sentry0A10LogMessageV19StringInterpolationV", + "declKind": "Enum", + "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO", + "mangledName": "$s6Sentry0A14ProfileOptionsC0aB9LifecycleO", "moduleName": "Sentry", + "declAttributes": [ + "ObjC" + ], + "enumRawTypeName": "Int", "conformances": [ { "kind": "Conformance", - "name": "StringInterpolationProtocol", - "printedName": "StringInterpolationProtocol", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "RawRepresentable", + "printedName": "RawRepresentable", "children": [ { "kind": "TypeWitness", - "name": "StringLiteralType", - "printedName": "StringLiteralType", + "name": "RawValue", + "printedName": "RawValue", "children": [ { "kind": "TypeNameAlias", - "name": "StringLiteralType", - "printedName": "Sentry.SentryLogMessage.StringInterpolation.StringLiteralType", + "name": "RawValue", + "printedName": "Sentry.SentryProfileOptions.SentryProfileLifecycle.RawValue", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ] } ] } ], - "usr": "s:s27StringInterpolationProtocolP", - "mangledName": "$ss27StringInterpolationProtocolP" - }, - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" + "usr": "s:SY", + "mangledName": "$sSY" } ] }, { - "kind": "TypeAlias", - "name": "ExtendedGraphemeClusterLiteralType", - "printedName": "ExtendedGraphemeClusterLiteralType", + "kind": "Var", + "name": "lifecycle", + "printedName": "lifecycle", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "SentryProfileLifecycle", + "printedName": "Sentry.SentryProfileOptions.SentryProfileLifecycle", + "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO" } ], - "declKind": "TypeAlias", - "usr": "s:6Sentry0A10LogMessageV34ExtendedGraphemeClusterLiteralTypea", - "mangledName": "$s6Sentry0A10LogMessageV34ExtendedGraphemeClusterLiteralTypea", - "moduleName": "Sentry" - }, - { - "kind": "TypeAlias", - "name": "StringLiteralType", - "printedName": "StringLiteralType", - "children": [ + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions(py)lifecycle", + "mangledName": "$s6Sentry0A14ProfileOptionsC9lifecycleAC0aB9LifecycleOvp", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC", + "HasStorage" + ], + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryProfileLifecycle", + "printedName": "Sentry.SentryProfileOptions.SentryProfileLifecycle", + "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions(im)lifecycle", + "mangledName": "$s6Sentry0A14ProfileOptionsC9lifecycleAC0aB9LifecycleOvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "SentryProfileLifecycle", + "printedName": "Sentry.SentryProfileOptions.SentryProfileLifecycle", + "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions(im)setLifecycle:", + "mangledName": "$s6Sentry0A14ProfileOptionsC9lifecycleAC0aB9LifecycleOvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "TypeAlias", - "usr": "s:6Sentry0A10LogMessageV17StringLiteralTypea", - "mangledName": "$s6Sentry0A10LogMessageV17StringLiteralTypea", - "moduleName": "Sentry" + ] }, { - "kind": "TypeAlias", - "name": "UnicodeScalarLiteralType", - "printedName": "UnicodeScalarLiteralType", + "kind": "Var", + "name": "sessionSampleRate", + "printedName": "sessionSampleRate", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Float", + "printedName": "Swift.Float", + "usr": "s:Sf" } ], - "declKind": "TypeAlias", - "usr": "s:6Sentry0A10LogMessageV24UnicodeScalarLiteralTypea", - "mangledName": "$s6Sentry0A10LogMessageV24UnicodeScalarLiteralTypea", - "moduleName": "Sentry" - } - ], - "declKind": "Struct", - "usr": "s:6Sentry0A10LogMessageV", - "mangledName": "$s6Sentry0A10LogMessageV", - "moduleName": "Sentry", - "conformances": [ - { - "kind": "Conformance", - "name": "ExpressibleByStringInterpolation", - "printedName": "ExpressibleByStringInterpolation", - "children": [ + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions(py)sessionSampleRate", + "mangledName": "$s6Sentry0A14ProfileOptionsC17sessionSampleRateSfvp", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC", + "HasStorage" + ], + "hasStorage": true, + "accessors": [ { - "kind": "TypeWitness", - "name": "StringInterpolation", - "printedName": "StringInterpolation", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "StringInterpolation", - "printedName": "Sentry.SentryLogMessage.StringInterpolation", - "usr": "s:6Sentry0A10LogMessageV19StringInterpolationV" + "name": "Float", + "printedName": "Swift.Float", + "usr": "s:Sf" } - ] - } - ], - "usr": "s:s32ExpressibleByStringInterpolationP", - "mangledName": "$ss32ExpressibleByStringInterpolationP" - }, - { - "kind": "Conformance", - "name": "ExpressibleByStringLiteral", - "printedName": "ExpressibleByStringLiteral", - "children": [ + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions(im)sessionSampleRate", + "mangledName": "$s6Sentry0A14ProfileOptionsC17sessionSampleRateSfvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, { - "kind": "TypeWitness", - "name": "StringLiteralType", - "printedName": "StringLiteralType", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { - "kind": "TypeNameAlias", - "name": "StringLiteralType", - "printedName": "Sentry.SentryLogMessage.StringLiteralType", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ] + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Float", + "printedName": "Swift.Float", + "usr": "s:Sf" } - ] + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions(im)setSessionSampleRate:", + "mangledName": "$s6Sentry0A14ProfileOptionsC17sessionSampleRateSfvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "usr": "s:s26ExpressibleByStringLiteralP", - "mangledName": "$ss26ExpressibleByStringLiteralP" + ] }, { - "kind": "Conformance", - "name": "ExpressibleByExtendedGraphemeClusterLiteral", - "printedName": "ExpressibleByExtendedGraphemeClusterLiteral", + "kind": "Var", + "name": "profileAppStarts", + "printedName": "profileAppStarts", "children": [ { - "kind": "TypeWitness", - "name": "ExtendedGraphemeClusterLiteralType", - "printedName": "ExtendedGraphemeClusterLiteralType", + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions(py)profileAppStarts", + "mangledName": "$s6Sentry0A14ProfileOptionsC16profileAppStartsSbvp", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC", + "HasStorage" + ], + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { - "kind": "TypeNameAlias", - "name": "ExtendedGraphemeClusterLiteralType", - "printedName": "Sentry.SentryLogMessage.ExtendedGraphemeClusterLiteralType", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ] + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } - ] + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions(im)profileAppStarts", + "mangledName": "$s6Sentry0A14ProfileOptionsC16profileAppStartsSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions(im)setProfileAppStarts:", + "mangledName": "$s6Sentry0A14ProfileOptionsC16profileAppStartsSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "usr": "s:s43ExpressibleByExtendedGraphemeClusterLiteralP", - "mangledName": "$ss43ExpressibleByExtendedGraphemeClusterLiteralP" + ] }, { - "kind": "Conformance", - "name": "ExpressibleByUnicodeScalarLiteral", - "printedName": "ExpressibleByUnicodeScalarLiteral", + "kind": "Constructor", + "name": "init", + "printedName": "init()", "children": [ { - "kind": "TypeWitness", - "name": "UnicodeScalarLiteralType", - "printedName": "UnicodeScalarLiteralType", - "children": [ - { - "kind": "TypeNameAlias", - "name": "UnicodeScalarLiteralType", - "printedName": "Sentry.SentryLogMessage.UnicodeScalarLiteralType", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ] - } - ] + "kind": "TypeNominal", + "name": "SentryProfileOptions", + "printedName": "Sentry.SentryProfileOptions", + "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions" } ], - "usr": "s:s33ExpressibleByUnicodeScalarLiteralP", - "mangledName": "$ss33ExpressibleByUnicodeScalarLiteralP" - }, + "declKind": "Constructor", + "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions(im)init", + "mangledName": "$s6Sentry0A14ProfileOptionsCACycfc", + "moduleName": "Sentry", + "overriding": true, + "objc_name": "init", + "declAttributes": [ + "ObjC", + "Dynamic", + "Override" + ], + "init_kind": "Designated" + } + ], + "declKind": "Class", + "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions", + "mangledName": "$s6Sentry0A14ProfileOptionsC", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjCMembers", + "ObjC" + ], + "superclassUsr": "c:objc(cs)NSObject", + "inheritsConvenienceInitializers": true, + "superclassNames": [ + "ObjectiveC.NSObject" + ], + "conformances": [ { "kind": "Conformance", "name": "Copyable", @@ -41065,36 +40265,84 @@ "printedName": "Escapable", "usr": "s:s9EscapableP", "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" + }, + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" + }, + { + "kind": "Conformance", + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" } ] }, { "kind": "TypeDecl", - "name": "SentryLog", - "printedName": "SentryLog", + "name": "SentrySDK", + "printedName": "SentrySDK", "children": [ { "kind": "Var", - "name": "timestamp", - "printedName": "timestamp", + "name": "span", + "printedName": "span", "children": [ { "kind": "TypeNominal", - "name": "Date", - "printedName": "Foundation.Date", - "usr": "s:10Foundation4DateV" + "name": "Optional", + "printedName": "(any Sentry.Span)?", + "children": [ + { + "kind": "TypeNominal", + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" + } + ], + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryLog(py)timestamp", - "mangledName": "$s6Sentry0A3LogC9timestamp10Foundation4DateVvp", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cpy)span", + "mangledName": "$s6Sentry0A3SDKC4spanSo0A4Span_pSgvpZ", "moduleName": "Sentry", + "static": true, "declAttributes": [ "Final", - "ObjC", - "HasStorage" + "ObjC" ], - "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -41103,74 +40351,100 @@ "children": [ { "kind": "TypeNominal", - "name": "Date", - "printedName": "Foundation.Date", - "usr": "s:10Foundation4DateV" + "name": "Optional", + "printedName": "(any Sentry.Span)?", + "children": [ + { + "kind": "TypeNominal", + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryLog(im)timestamp", - "mangledName": "$s6Sentry0A3LogC9timestamp10Foundation4DateVvg", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)span", + "mangledName": "$s6Sentry0A3SDKC4spanSo0A4Span_pSgvgZ", "moduleName": "Sentry", - "implicit": true, + "static": true, "declAttributes": [ "Final", "ObjC" ], "accessorKind": "get" - }, + } + ] + }, + { + "kind": "Var", + "name": "isEnabled", + "printedName": "isEnabled", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cpy)isEnabled", + "mangledName": "$s6Sentry0A3SDKC9isEnabledSbvpZ", + "moduleName": "Sentry", + "static": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessors": [ { "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Date", - "printedName": "Foundation.Date", - "usr": "s:10Foundation4DateV" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryLog(im)setTimestamp:", - "mangledName": "$s6Sentry0A3LogC9timestamp10Foundation4DateVvs", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)isEnabled", + "mangledName": "$s6Sentry0A3SDKC9isEnabledSbvgZ", "moduleName": "Sentry", - "implicit": true, + "static": true, "declAttributes": [ "Final", "ObjC" ], - "accessorKind": "set" + "accessorKind": "get" } ] }, { "kind": "Var", - "name": "traceId", - "printedName": "traceId", + "name": "replay", + "printedName": "replay", "children": [ { "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" + "name": "SentryReplayApi", + "printedName": "Sentry.SentryReplayApi", + "usr": "c:objc(cs)SentryReplayApi" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryLog(py)traceId", - "mangledName": "$s6Sentry0A3LogC7traceIdSo0aD0Cvp", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cpy)replay", + "mangledName": "$s6Sentry0A3SDKC6replaySo0A9ReplayApiCvpZ", "moduleName": "Sentry", + "static": true, "declAttributes": [ "Final", - "ObjC", - "HasStorage" + "ObjC" ], - "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -41179,213 +40453,497 @@ "children": [ { "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" + "name": "SentryReplayApi", + "printedName": "Sentry.SentryReplayApi", + "usr": "c:objc(cs)SentryReplayApi" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryLog(im)traceId", - "mangledName": "$s6Sentry0A3LogC7traceIdSo0aD0Cvg", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)replay", + "mangledName": "$s6Sentry0A3SDKC6replaySo0A9ReplayApiCvgZ", "moduleName": "Sentry", - "implicit": true, + "static": true, "declAttributes": [ "Final", "ObjC" ], "accessorKind": "get" - }, + } + ] + }, + { + "kind": "Var", + "name": "logger", + "printedName": "logger", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryLogger", + "printedName": "Sentry.SentryLogger", + "usr": "c:@M@Sentry@objc(cs)SentryLogger" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cpy)logger", + "mangledName": "$s6Sentry0A3SDKC6loggerAA0A6LoggerCvpZ", + "moduleName": "Sentry", + "static": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessors": [ { "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" + "name": "SentryLogger", + "printedName": "Sentry.SentryLogger", + "usr": "c:@M@Sentry@objc(cs)SentryLogger" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryLog(im)setTraceId:", - "mangledName": "$s6Sentry0A3LogC7traceIdSo0aD0Cvs", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)logger", + "mangledName": "$s6Sentry0A3SDKC6loggerAA0A6LoggerCvgZ", "moduleName": "Sentry", - "implicit": true, + "static": true, "declAttributes": [ "Final", "ObjC" ], - "accessorKind": "set" + "accessorKind": "get" } ] }, { - "kind": "Var", - "name": "level", - "printedName": "level", + "kind": "Function", + "name": "start", + "printedName": "start(options:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Options", + "printedName": "Sentry.Options", + "usr": "c:@M@Sentry@objc(cs)SentryOptions" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)startWithOptions:", + "mangledName": "$s6Sentry0A3SDKC5start7optionsyAA7OptionsC_tFZ", + "moduleName": "Sentry", + "static": true, + "objc_name": "startWithOptions:", + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "start", + "printedName": "start(configureOptions:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Options) -> Swift.Void", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "Options", + "printedName": "Sentry.Options", + "usr": "c:@M@Sentry@objc(cs)SentryOptions" + } + ] + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)startWithConfigureOptions:", + "mangledName": "$s6Sentry0A3SDKC5start16configureOptionsyyAA0E0Cc_tFZ", + "moduleName": "Sentry", + "static": true, + "objc_name": "startWithConfigureOptions:", + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "capture", + "printedName": "capture(event:)", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" + }, + { + "kind": "TypeNominal", + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureEvent:", + "mangledName": "$s6Sentry0A3SDKC7capture5eventSo0A2IdCSo0A5EventC_tFZ", + "moduleName": "Sentry", + "static": true, + "objc_name": "captureEvent:", + "declAttributes": [ + "Final", + "ObjC", + "DiscardableResult" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "capture", + "printedName": "capture(event:scope:)", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" + }, + { + "kind": "TypeNominal", + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" + }, + { + "kind": "TypeNominal", + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureEvent:withScope:", + "mangledName": "$s6Sentry0A3SDKC7capture5event5scopeSo0A2IdCSo0A5EventC_So0A5ScopeCtFZ", + "moduleName": "Sentry", + "static": true, + "objc_name": "captureEvent:withScope:", + "declAttributes": [ + "Final", + "ObjC", + "DiscardableResult" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "capture", + "printedName": "capture(event:block:)", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" + }, + { + "kind": "TypeNominal", + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Scope) -> Swift.Void", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" + } + ] + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureEvent:withScopeBlock:", + "mangledName": "$s6Sentry0A3SDKC7capture5event5blockSo0A2IdCSo0A5EventC_ySo0A5ScopeCctFZ", + "moduleName": "Sentry", + "static": true, + "objc_name": "captureEvent:withScopeBlock:", + "declAttributes": [ + "Final", + "ObjC", + "DiscardableResult" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "startTransaction", + "printedName": "startTransaction(name:operation:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)startTransactionWithName:operation:", + "mangledName": "$s6Sentry0A3SDKC16startTransaction4name9operationSo0A4Span_pSS_SStFZ", + "moduleName": "Sentry", + "static": true, + "objc_name": "startTransactionWithName:operation:", + "declAttributes": [ + "Final", + "ObjC", + "DiscardableResult" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "startTransaction", + "printedName": "startTransaction(name:operation:bindToScope:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)startTransactionWithName:operation:bindToScope:", + "mangledName": "$s6Sentry0A3SDKC16startTransaction4name9operation11bindToScopeSo0A4Span_pSS_SSSbtFZ", + "moduleName": "Sentry", + "static": true, + "objc_name": "startTransactionWithName:operation:bindToScope:", + "declAttributes": [ + "Final", + "ObjC", + "DiscardableResult" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "startTransaction", + "printedName": "startTransaction(transactionContext:)", "children": [ { "kind": "TypeNominal", - "name": "Level", - "printedName": "Sentry.SentryLog.Level", - "usr": "s:6Sentry0A3LogC5LevelO" + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" + }, + { + "kind": "TypeNominal", + "name": "TransactionContext", + "printedName": "Sentry.TransactionContext", + "usr": "c:objc(cs)SentryTransactionContext" } ], - "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryLog(py)level", - "mangledName": "$s6Sentry0A3LogC5levelAC5LevelOvp", + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)startTransactionWithContext:", + "mangledName": "$s6Sentry0A3SDKC16startTransaction18transactionContextSo0A4Span_pSo0adF0C_tFZ", "moduleName": "Sentry", + "static": true, + "objc_name": "startTransactionWithContext:", "declAttributes": [ "Final", "ObjC", - "HasStorage" + "DiscardableResult" ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Level", - "printedName": "Sentry.SentryLog.Level", - "usr": "s:6Sentry0A3LogC5LevelO" - } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryLog(im)level", - "mangledName": "$s6Sentry0A3LogC5levelAC5LevelOvg", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Level", - "printedName": "Sentry.SentryLog.Level", - "usr": "s:6Sentry0A3LogC5LevelO" - } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryLog(im)setLevel:", - "mangledName": "$s6Sentry0A3LogC5levelAC5LevelOvs", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "set" - } - ] + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "body", - "printedName": "body", + "kind": "Function", + "name": "startTransaction", + "printedName": "startTransaction(transactionContext:bindToScope:)", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" + }, + { + "kind": "TypeNominal", + "name": "TransactionContext", + "printedName": "Sentry.TransactionContext", + "usr": "c:objc(cs)SentryTransactionContext" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryLog(py)body", - "mangledName": "$s6Sentry0A3LogC4bodySSvp", + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)startTransactionWithContext:bindToScope:", + "mangledName": "$s6Sentry0A3SDKC16startTransaction18transactionContext11bindToScopeSo0A4Span_pSo0adF0C_SbtFZ", "moduleName": "Sentry", + "static": true, + "objc_name": "startTransactionWithContext:bindToScope:", "declAttributes": [ "Final", "ObjC", - "HasStorage" + "DiscardableResult" ], - "hasStorage": true, - "accessors": [ + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "startTransaction", + "printedName": "startTransaction(transactionContext:bindToScope:customSamplingContext:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNominal", + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" + }, + { + "kind": "TypeNominal", + "name": "TransactionContext", + "printedName": "Sentry.TransactionContext", + "usr": "c:objc(cs)SentryTransactionContext" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + }, + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", "children": [ { "kind": "TypeNominal", "name": "String", "printedName": "Swift.String", "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryLog(im)body", - "mangledName": "$s6Sentry0A3LogC4bodySSvg", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" }, { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "ProtocolComposition", + "printedName": "Any" } ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryLog(im)setBody:", - "mangledName": "$s6Sentry0A3LogC4bodySSvs", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "set" + "usr": "s:SD" } - ] + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)startTransactionWithContext:bindToScope:customSamplingContext:", + "mangledName": "$s6Sentry0A3SDKC16startTransaction18transactionContext11bindToScope014customSamplingF0So0A4Span_pSo0adF0C_SbSDySSypGtFZ", + "moduleName": "Sentry", + "static": true, + "objc_name": "startTransactionWithContext:bindToScope:customSamplingContext:", + "declAttributes": [ + "Final", + "ObjC", + "DiscardableResult" + ], + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "attributes", - "printedName": "attributes", + "kind": "Function", + "name": "startTransaction", + "printedName": "startTransaction(transactionContext:customSamplingContext:)", "children": [ + { + "kind": "TypeNominal", + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" + }, + { + "kind": "TypeNominal", + "name": "TransactionContext", + "printedName": "Sentry.TransactionContext", + "usr": "c:objc(cs)SentryTransactionContext" + }, { "kind": "TypeNominal", "name": "Dictionary", - "printedName": "[Swift.String : Sentry.SentryLog.Attribute]", + "printedName": "[Swift.String : Any]", "children": [ { "kind": "TypeNominal", @@ -41395,958 +40953,582 @@ }, { "kind": "TypeNominal", - "name": "Attribute", - "printedName": "Sentry.SentryLog.Attribute", - "usr": "s:6Sentry0A3LogC9AttributeC" + "name": "ProtocolComposition", + "printedName": "Any" } ], "usr": "s:SD" } ], - "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryLog(py)attributes", - "mangledName": "$s6Sentry0A3LogC10attributesSDySSAC9AttributeCGvp", + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)startTransactionWithContext:customSamplingContext:", + "mangledName": "$s6Sentry0A3SDKC16startTransaction18transactionContext014customSamplingF0So0A4Span_pSo0adF0C_SDySSypGtFZ", "moduleName": "Sentry", + "static": true, + "objc_name": "startTransactionWithContext:customSamplingContext:", "declAttributes": [ "Final", "ObjC", - "HasStorage" + "DiscardableResult" ], - "hasStorage": true, - "accessors": [ + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "capture", + "printedName": "capture(error:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Sentry.SentryLog.Attribute]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Attribute", - "printedName": "Sentry.SentryLog.Attribute", - "usr": "s:6Sentry0A3LogC9AttributeC" - } - ], - "usr": "s:SD" - } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryLog(im)attributes", - "mangledName": "$s6Sentry0A3LogC10attributesSDySSAC9AttributeCGvg", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "get" + "kind": "TypeNominal", + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" }, { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Sentry.SentryLog.Attribute]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Attribute", - "printedName": "Sentry.SentryLog.Attribute", - "usr": "s:6Sentry0A3LogC9AttributeC" - } - ], - "usr": "s:SD" - } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryLog(im)setAttributes:", - "mangledName": "$s6Sentry0A3LogC10attributesSDySSAC9AttributeCGvs", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "set" + "kind": "TypeNominal", + "name": "Error", + "printedName": "any Swift.Error", + "usr": "s:s5ErrorP" } - ] + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureError:", + "mangledName": "$s6Sentry0A3SDKC7capture5errorSo0A2IdCs5Error_p_tFZ", + "moduleName": "Sentry", + "static": true, + "objc_name": "captureError:", + "declAttributes": [ + "Final", + "ObjC", + "DiscardableResult" + ], + "funcSelfKind": "NonMutating" }, { - "kind": "Var", - "name": "severityNumber", - "printedName": "severityNumber", + "kind": "Function", + "name": "capture", + "printedName": "capture(error:scope:)", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" + }, + { + "kind": "TypeNominal", + "name": "Error", + "printedName": "any Swift.Error", + "usr": "s:s5ErrorP" + }, + { + "kind": "TypeNominal", + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" } ], - "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryLog(py)severityNumber", - "mangledName": "$s6Sentry0A3LogC14severityNumberSo8NSNumberCSgvp", + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureError:withScope:", + "mangledName": "$s6Sentry0A3SDKC7capture5error5scopeSo0A2IdCs5Error_p_So0A5ScopeCtFZ", "moduleName": "Sentry", + "static": true, + "objc_name": "captureError:withScope:", "declAttributes": [ - "HasInitialValue", "Final", "ObjC", - "HasStorage" + "DiscardableResult" ], - "hasStorage": true, - "accessors": [ + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "capture", + "printedName": "capture(error:block:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", - "children": [ - { - "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryLog(im)severityNumber", - "mangledName": "$s6Sentry0A3LogC14severityNumberSo8NSNumberCSgvg", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "get" + "kind": "TypeNominal", + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" }, { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeNominal", + "name": "Error", + "printedName": "any Swift.Error", + "usr": "s:s5ErrorP" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Scope) -> Swift.Void", "children": [ { - "kind": "TypeNominal", + "kind": "TypeNameAlias", "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Foundation.NSNumber?", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "NSNumber", - "printedName": "Foundation.NSNumber", - "usr": "c:objc(cs)NSNumber" + "name": "Void", + "printedName": "()" } - ], - "usr": "s:Sq" + ] + }, + { + "kind": "TypeNominal", + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryLog(im)setSeverityNumber:", - "mangledName": "$s6Sentry0A3LogC14severityNumberSo8NSNumberCSgvs", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "set" - } - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(level:body:)", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryLog", - "printedName": "Sentry.SentryLog", - "usr": "c:@M@Sentry@objc(cs)SentryLog" - }, - { - "kind": "TypeNominal", - "name": "Level", - "printedName": "Sentry.SentryLog.Level", - "usr": "s:6Sentry0A3LogC5LevelO" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + ] } ], - "declKind": "Constructor", - "usr": "c:@M@Sentry@objc(cs)SentryLog(im)initWithLevel:body:", - "mangledName": "$s6Sentry0A3LogC5level4bodyA2C5LevelO_SStcfc", + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureError:withScopeBlock:", + "mangledName": "$s6Sentry0A3SDKC7capture5error5blockSo0A2IdCs5Error_p_ySo0A5ScopeCctFZ", "moduleName": "Sentry", - "objc_name": "initWithLevel:body:", + "static": true, + "objc_name": "captureError:withScopeBlock:", "declAttributes": [ - "ObjC" + "Final", + "ObjC", + "DiscardableResult" ], - "init_kind": "Convenience" + "funcSelfKind": "NonMutating" }, { - "kind": "Constructor", - "name": "init", - "printedName": "init(level:body:attributes:)", + "kind": "Function", + "name": "capture", + "printedName": "capture(exception:)", "children": [ { "kind": "TypeNominal", - "name": "SentryLog", - "printedName": "Sentry.SentryLog", - "usr": "c:@M@Sentry@objc(cs)SentryLog" - }, - { - "kind": "TypeNominal", - "name": "Level", - "printedName": "Sentry.SentryLog.Level", - "usr": "s:6Sentry0A3LogC5LevelO" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" }, { "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Sentry.SentryLog.Attribute]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Attribute", - "printedName": "Sentry.SentryLog.Attribute", - "usr": "s:6Sentry0A3LogC9AttributeC" - } - ], - "usr": "s:SD" + "name": "NSException", + "printedName": "Foundation.NSException", + "usr": "c:objc(cs)NSException" } ], - "declKind": "Constructor", - "usr": "c:@M@Sentry@objc(cs)SentryLog(im)initWithLevel:body:attributes:", - "mangledName": "$s6Sentry0A3LogC5level4body10attributesA2C5LevelO_SSSDySSAC9AttributeCGtcfc", + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureException:", + "mangledName": "$s6Sentry0A3SDKC7capture9exceptionSo0A2IdCSo11NSExceptionC_tFZ", "moduleName": "Sentry", - "objc_name": "initWithLevel:body:attributes:", + "static": true, + "objc_name": "captureException:", "declAttributes": [ - "ObjC" + "Final", + "ObjC", + "DiscardableResult" ], - "init_kind": "Convenience" + "funcSelfKind": "NonMutating" }, { "kind": "Function", - "name": "setAttribute", - "printedName": "setAttribute(_:forKey:)", + "name": "capture", + "printedName": "capture(exception:scope:)", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" }, { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryLog.Attribute?", - "children": [ - { - "kind": "TypeNominal", - "name": "Attribute", - "printedName": "Sentry.SentryLog.Attribute", - "usr": "s:6Sentry0A3LogC9AttributeC" - } - ], - "usr": "s:Sq" + "name": "NSException", + "printedName": "Foundation.NSException", + "usr": "c:objc(cs)NSException" }, { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" } ], "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryLog(im)setAttribute:forKey:", - "mangledName": "$s6Sentry0A3LogC12setAttribute_6forKeyyAC0D0CSg_SStF", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureException:withScope:", + "mangledName": "$s6Sentry0A3SDKC7capture9exception5scopeSo0A2IdCSo11NSExceptionC_So0A5ScopeCtFZ", "moduleName": "Sentry", + "static": true, + "objc_name": "captureException:withScope:", "declAttributes": [ "Final", - "ObjC" + "ObjC", + "DiscardableResult" ], "funcSelfKind": "NonMutating" }, { - "kind": "TypeDecl", - "name": "Level", - "printedName": "Level", + "kind": "Function", + "name": "capture", + "printedName": "capture(exception:block:)", "children": [ { - "kind": "Var", - "name": "trace", - "printedName": "trace", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryLog.Level.Type) -> Sentry.SentryLog.Level", - "children": [ - { - "kind": "TypeNominal", - "name": "Level", - "printedName": "Sentry.SentryLog.Level", - "usr": "s:6Sentry0A3LogC5LevelO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryLog.Level.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "Level", - "printedName": "Sentry.SentryLog.Level", - "usr": "s:6Sentry0A3LogC5LevelO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:6Sentry0A3LogC5LevelO5traceyA2EmF", - "mangledName": "$s6Sentry0A3LogC5LevelO5traceyA2EmF", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - }, - { - "kind": "Var", - "name": "debug", - "printedName": "debug", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryLog.Level.Type) -> Sentry.SentryLog.Level", - "children": [ - { - "kind": "TypeNominal", - "name": "Level", - "printedName": "Sentry.SentryLog.Level", - "usr": "s:6Sentry0A3LogC5LevelO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryLog.Level.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "Level", - "printedName": "Sentry.SentryLog.Level", - "usr": "s:6Sentry0A3LogC5LevelO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:6Sentry0A3LogC5LevelO5debugyA2EmF", - "mangledName": "$s6Sentry0A3LogC5LevelO5debugyA2EmF", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - }, - { - "kind": "Var", - "name": "info", - "printedName": "info", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryLog.Level.Type) -> Sentry.SentryLog.Level", - "children": [ - { - "kind": "TypeNominal", - "name": "Level", - "printedName": "Sentry.SentryLog.Level", - "usr": "s:6Sentry0A3LogC5LevelO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryLog.Level.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "Level", - "printedName": "Sentry.SentryLog.Level", - "usr": "s:6Sentry0A3LogC5LevelO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:6Sentry0A3LogC5LevelO4infoyA2EmF", - "mangledName": "$s6Sentry0A3LogC5LevelO4infoyA2EmF", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - }, - { - "kind": "Var", - "name": "warn", - "printedName": "warn", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryLog.Level.Type) -> Sentry.SentryLog.Level", - "children": [ - { - "kind": "TypeNominal", - "name": "Level", - "printedName": "Sentry.SentryLog.Level", - "usr": "s:6Sentry0A3LogC5LevelO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryLog.Level.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "Level", - "printedName": "Sentry.SentryLog.Level", - "usr": "s:6Sentry0A3LogC5LevelO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:6Sentry0A3LogC5LevelO4warnyA2EmF", - "mangledName": "$s6Sentry0A3LogC5LevelO4warnyA2EmF", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] + "kind": "TypeNominal", + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" }, { - "kind": "Var", - "name": "error", - "printedName": "error", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryLog.Level.Type) -> Sentry.SentryLog.Level", - "children": [ - { - "kind": "TypeNominal", - "name": "Level", - "printedName": "Sentry.SentryLog.Level", - "usr": "s:6Sentry0A3LogC5LevelO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryLog.Level.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "Level", - "printedName": "Sentry.SentryLog.Level", - "usr": "s:6Sentry0A3LogC5LevelO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:6Sentry0A3LogC5LevelO5erroryA2EmF", - "mangledName": "$s6Sentry0A3LogC5LevelO5erroryA2EmF", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] + "kind": "TypeNominal", + "name": "NSException", + "printedName": "Foundation.NSException", + "usr": "c:objc(cs)NSException" }, { - "kind": "Var", - "name": "fatal", - "printedName": "fatal", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Scope) -> Swift.Void", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryLog.Level.Type) -> Sentry.SentryLog.Level", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "Level", - "printedName": "Sentry.SentryLog.Level", - "usr": "s:6Sentry0A3LogC5LevelO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryLog.Level.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "Level", - "printedName": "Sentry.SentryLog.Level", - "usr": "s:6Sentry0A3LogC5LevelO" - } - ] + "name": "Void", + "printedName": "()" } ] - } - ], - "declKind": "EnumElement", - "usr": "s:6Sentry0A3LogC5LevelO5fatalyA2EmF", - "mangledName": "$s6Sentry0A3LogC5LevelO5fatalyA2EmF", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(value:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Level", - "printedName": "Sentry.SentryLog.Level", - "usr": "s:6Sentry0A3LogC5LevelO" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Constructor", - "usr": "s:6Sentry0A3LogC5LevelO5valueAESS_tKcfc", - "mangledName": "$s6Sentry0A3LogC5LevelO5valueAESS_tKcfc", - "moduleName": "Sentry", - "throwing": true, - "init_kind": "Designated" - }, - { - "kind": "Var", - "name": "value", - "printedName": "value", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:6Sentry0A3LogC5LevelO5valueSSvp", - "mangledName": "$s6Sentry0A3LogC5LevelO5valueSSvp", - "moduleName": "Sentry", - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:6Sentry0A3LogC5LevelO5valueSSvg", - "mangledName": "$s6Sentry0A3LogC5LevelO5valueSSvg", - "moduleName": "Sentry", - "accessorKind": "get" - } - ] - }, - { - "kind": "Function", - "name": "toSeverityNumber", - "printedName": "toSeverityNumber()", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Func", - "usr": "s:6Sentry0A3LogC5LevelO16toSeverityNumberSiyF", - "mangledName": "$s6Sentry0A3LogC5LevelO16toSeverityNumberSiyF", - "moduleName": "Sentry", - "funcSelfKind": "NonMutating" - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(rawValue:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryLog.Level?", - "children": [ - { - "kind": "TypeNominal", - "name": "Level", - "printedName": "Sentry.SentryLog.Level", - "usr": "s:6Sentry0A3LogC5LevelO" - } - ], - "usr": "s:Sq" }, { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Constructor", - "usr": "s:6Sentry0A3LogC5LevelO8rawValueAESgSi_tcfc", - "mangledName": "$s6Sentry0A3LogC5LevelO8rawValueAESgSi_tcfc", - "moduleName": "Sentry", - "init_kind": "Designated" - }, - { - "kind": "TypeAlias", - "name": "RawValue", - "printedName": "RawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "TypeAlias", - "usr": "s:6Sentry0A3LogC5LevelO8RawValuea", - "mangledName": "$s6Sentry0A3LogC5LevelO8RawValuea", - "moduleName": "Sentry" - }, - { - "kind": "Var", - "name": "rawValue", - "printedName": "rawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Var", - "usr": "s:6Sentry0A3LogC5LevelO8rawValueSivp", - "mangledName": "$s6Sentry0A3LogC5LevelO8rawValueSivp", - "moduleName": "Sentry", - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Accessor", - "usr": "s:6Sentry0A3LogC5LevelO8rawValueSivg", - "mangledName": "$s6Sentry0A3LogC5LevelO8rawValueSivg", - "moduleName": "Sentry", - "accessorKind": "get" + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" } ] } ], - "declKind": "Enum", - "usr": "s:6Sentry0A3LogC5LevelO", - "mangledName": "$s6Sentry0A3LogC5LevelO", + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureException:withScopeBlock:", + "mangledName": "$s6Sentry0A3SDKC7capture9exception5blockSo0A2IdCSo11NSExceptionC_ySo0A5ScopeCctFZ", "moduleName": "Sentry", - "objc_name": "SentryLogLevel", + "static": true, + "objc_name": "captureException:withScopeBlock:", "declAttributes": [ - "ObjC" + "Final", + "ObjC", + "DiscardableResult" ], - "isFromExtension": true, - "enumRawTypeName": "Int", - "conformances": [ + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "capture", + "printedName": "capture(message:)", + "children": [ { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" + "kind": "TypeNominal", + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" }, { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureMessage:", + "mangledName": "$s6Sentry0A3SDKC7capture7messageSo0A2IdCSS_tFZ", + "moduleName": "Sentry", + "static": true, + "objc_name": "captureMessage:", + "declAttributes": [ + "Final", + "ObjC", + "DiscardableResult" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "capture", + "printedName": "capture(message:scope:)", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" }, { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" }, { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" + "kind": "TypeNominal", + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureMessage:withScope:", + "mangledName": "$s6Sentry0A3SDKC7capture7message5scopeSo0A2IdCSS_So0A5ScopeCtFZ", + "moduleName": "Sentry", + "static": true, + "objc_name": "captureMessage:withScope:", + "declAttributes": [ + "Final", + "ObjC", + "DiscardableResult" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "capture", + "printedName": "capture(message:block:)", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" }, { - "kind": "Conformance", - "name": "RawRepresentable", - "printedName": "RawRepresentable", + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Scope) -> Swift.Void", "children": [ { - "kind": "TypeWitness", - "name": "RawValue", - "printedName": "RawValue", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { - "kind": "TypeNameAlias", - "name": "RawValue", - "printedName": "Sentry.SentryLog.Level.RawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ] + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" } ] + }, + { + "kind": "TypeNominal", + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" } - ], - "usr": "s:SY", - "mangledName": "$sSY" + ] } - ] + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureMessage:withScopeBlock:", + "mangledName": "$s6Sentry0A3SDKC7capture7message5blockSo0A2IdCSS_ySo0A5ScopeCctFZ", + "moduleName": "Sentry", + "static": true, + "objc_name": "captureMessage:withScopeBlock:", + "declAttributes": [ + "Final", + "ObjC", + "DiscardableResult" + ], + "funcSelfKind": "NonMutating" }, { - "kind": "TypeDecl", - "name": "Attribute", - "printedName": "Attribute", + "kind": "Function", + "name": "capture", + "printedName": "capture(feedback:)", "children": [ { - "kind": "Var", - "name": "type", - "printedName": "type", + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "SentryFeedback", + "printedName": "Sentry.SentryFeedback", + "usr": "c:@M@Sentry@objc(cs)SentryFeedback" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureFeedback:", + "mangledName": "$s6Sentry0A3SDKC7capture8feedbackyAA0A8FeedbackC_tFZ", + "moduleName": "Sentry", + "static": true, + "objc_name": "captureFeedback:", + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Var", + "name": "feedback", + "printedName": "feedback", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryFeedbackAPI", + "printedName": "Sentry.SentryFeedbackAPI", + "usr": "c:objc(cs)SentryFeedbackAPI" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cpy)feedback", + "mangledName": "$s6Sentry0A3SDKC8feedbackSo0A11FeedbackAPICvpZ", + "moduleName": "Sentry", + "static": true, + "declAttributes": [ + "Final", + "ObjC", + "HasStorage" + ], + "isLet": true, + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "SentryFeedbackAPI", + "printedName": "Sentry.SentryFeedbackAPI", + "usr": "c:objc(cs)SentryFeedbackAPI" } ], - "declKind": "Var", - "usr": "s:6Sentry0A3LogC9AttributeC4typeSSvp", - "mangledName": "$s6Sentry0A3LogC9AttributeC4typeSSvp", + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)feedback", + "mangledName": "$s6Sentry0A3SDKC8feedbackSo0A11FeedbackAPICvgZ", "moduleName": "Sentry", + "static": true, + "implicit": true, "declAttributes": [ "Final", - "ObjC", - "HasStorage" + "ObjC" ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:6Sentry0A3LogC9AttributeC4typeSSvg", - "mangledName": "$s6Sentry0A3LogC9AttributeC4typeSSvg", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "get" - } - ] + "accessorKind": "get" + } + ] + }, + { + "kind": "Function", + "name": "addBreadcrumb", + "printedName": "addBreadcrumb(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" }, { - "kind": "Var", - "name": "value", - "printedName": "value", + "kind": "TypeNominal", + "name": "Breadcrumb", + "printedName": "Sentry.Breadcrumb", + "usr": "c:objc(cs)SentryBreadcrumb" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)addBreadcrumb:", + "mangledName": "$s6Sentry0A3SDKC13addBreadcrumbyySo0aD0CFZ", + "moduleName": "Sentry", + "static": true, + "objc_name": "addBreadcrumb:", + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "configureScope", + "printedName": "configureScope(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Scope) -> Swift.Void", "children": [ { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "declKind": "Var", - "usr": "s:6Sentry0A3LogC9AttributeC5valueypvp", - "mangledName": "$s6Sentry0A3LogC9AttributeC5valueypvp", - "moduleName": "Sentry", - "declAttributes": [ - "Final", - "ObjC", - "HasStorage" - ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" + "name": "Void", + "printedName": "()" } - ], - "declKind": "Accessor", - "usr": "s:6Sentry0A3LogC9AttributeC5valueypvg", - "mangledName": "$s6Sentry0A3LogC9AttributeC5valueypvg", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "get" - } - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(string:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Attribute", - "printedName": "Sentry.SentryLog.Attribute", - "usr": "s:6Sentry0A3LogC9AttributeC" + ] }, { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" } - ], - "declKind": "Constructor", - "usr": "s:6Sentry0A3LogC9AttributeC6stringAESS_tcfc", - "mangledName": "$s6Sentry0A3LogC9AttributeC6stringAESS_tcfc", - "moduleName": "Sentry", - "objc_name": "initWithString:", - "declAttributes": [ - "ObjC" - ], - "init_kind": "Designated" - }, + ] + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)configureScope:", + "mangledName": "$s6Sentry0A3SDKC14configureScopeyyySo0aD0CcFZ", + "moduleName": "Sentry", + "static": true, + "objc_name": "configureScope:", + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Var", + "name": "crashedLastRun", + "printedName": "crashedLastRun", + "children": [ { - "kind": "Constructor", - "name": "init", - "printedName": "init(boolean:)", + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cpy)crashedLastRun", + "mangledName": "$s6Sentry0A3SDKC14crashedLastRunSbvpZ", + "moduleName": "Sentry", + "static": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ - { - "kind": "TypeNominal", - "name": "Attribute", - "printedName": "Sentry.SentryLog.Attribute", - "usr": "s:6Sentry0A3LogC9AttributeC" - }, { "kind": "TypeNominal", "name": "Bool", @@ -42354,179 +41536,498 @@ "usr": "s:Sb" } ], - "declKind": "Constructor", - "usr": "s:6Sentry0A3LogC9AttributeC7booleanAESb_tcfc", - "mangledName": "$s6Sentry0A3LogC9AttributeC7booleanAESb_tcfc", + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)crashedLastRun", + "mangledName": "$s6Sentry0A3SDKC14crashedLastRunSbvgZ", "moduleName": "Sentry", - "objc_name": "initWithBoolean:", + "static": true, "declAttributes": [ + "Final", "ObjC" ], - "init_kind": "Designated" - }, + "accessorKind": "get" + } + ] + }, + { + "kind": "Var", + "name": "detectedStartUpCrash", + "printedName": "detectedStartUpCrash", + "children": [ { - "kind": "Constructor", - "name": "init", - "printedName": "init(integer:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Attribute", - "printedName": "Sentry.SentryLog.Attribute", - "usr": "s:6Sentry0A3LogC9AttributeC" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Constructor", - "usr": "s:6Sentry0A3LogC9AttributeC7integerAESi_tcfc", - "mangledName": "$s6Sentry0A3LogC9AttributeC7integerAESi_tcfc", - "moduleName": "Sentry", - "objc_name": "initWithInteger:", - "declAttributes": [ - "ObjC" - ], - "init_kind": "Designated" - }, + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cpy)detectedStartUpCrash", + "mangledName": "$s6Sentry0A3SDKC20detectedStartUpCrashSbvpZ", + "moduleName": "Sentry", + "static": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessors": [ { - "kind": "Constructor", - "name": "init", - "printedName": "init(double:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Attribute", - "printedName": "Sentry.SentryLog.Attribute", - "usr": "s:6Sentry0A3LogC9AttributeC" - }, + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ { "kind": "TypeNominal", - "name": "Double", - "printedName": "Swift.Double", - "usr": "s:Sd" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "declKind": "Constructor", - "usr": "s:6Sentry0A3LogC9AttributeC6doubleAESd_tcfc", - "mangledName": "$s6Sentry0A3LogC9AttributeC6doubleAESd_tcfc", + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)detectedStartUpCrash", + "mangledName": "$s6Sentry0A3SDKC20detectedStartUpCrashSbvgZ", "moduleName": "Sentry", - "objc_name": "initWithDouble:", + "static": true, "declAttributes": [ + "Final", "ObjC" ], - "init_kind": "Designated" + "accessorKind": "get" + } + ] + }, + { + "kind": "Function", + "name": "setUser", + "printedName": "setUser(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" }, { - "kind": "Constructor", - "name": "init", - "printedName": "init(float:)", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.User?", "children": [ { "kind": "TypeNominal", - "name": "Attribute", - "printedName": "Sentry.SentryLog.Attribute", - "usr": "s:6Sentry0A3LogC9AttributeC" - }, - { - "kind": "TypeNominal", - "name": "Float", - "printedName": "Swift.Float", - "usr": "s:Sf" + "name": "User", + "printedName": "Sentry.User", + "usr": "c:objc(cs)SentryUser" } ], - "declKind": "Constructor", - "usr": "s:6Sentry0A3LogC9AttributeC5floatAESf_tcfc", - "mangledName": "$s6Sentry0A3LogC9AttributeC5floatAESf_tcfc", - "moduleName": "Sentry", - "objc_name": "initWithFloat:", - "declAttributes": [ - "ObjC" - ], - "init_kind": "Designated" + "usr": "s:Sq" } ], - "declKind": "Class", - "usr": "s:6Sentry0A3LogC9AttributeC", - "mangledName": "$s6Sentry0A3LogC9AttributeC", + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)setUser:", + "mangledName": "$s6Sentry0A3SDKC7setUseryySo0aD0CSgFZ", "moduleName": "Sentry", - "objc_name": "SentryLogAttribute", + "static": true, "declAttributes": [ "Final", - "ObjCMembers", "ObjC" ], - "isFromExtension": true, - "superclassUsr": "c:objc(cs)NSObject", - "hasMissingDesignatedInitializers": true, - "superclassNames": [ - "ObjectiveC.NSObject" + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "startSession", + "printedName": "startSession()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } ], - "conformances": [ + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)startSession", + "mangledName": "$s6Sentry0A3SDKC12startSessionyyFZ", + "moduleName": "Sentry", + "static": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "endSession", + "printedName": "endSession()", + "children": [ { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)endSession", + "mangledName": "$s6Sentry0A3SDKC10endSessionyyFZ", + "moduleName": "Sentry", + "static": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "crash", + "printedName": "crash()", + "children": [ { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)crash", + "mangledName": "$s6Sentry0A3SDKC5crashyyFZ", + "moduleName": "Sentry", + "static": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "reportFullyDisplayed", + "printedName": "reportFullyDisplayed()", + "children": [ { - "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" - }, + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)reportFullyDisplayed", + "mangledName": "$s6Sentry0A3SDKC20reportFullyDisplayedyyFZ", + "moduleName": "Sentry", + "static": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "pauseAppHangTracking", + "printedName": "pauseAppHangTracking()", + "children": [ { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)pauseAppHangTracking", + "mangledName": "$s6Sentry0A3SDKC20pauseAppHangTrackingyyFZ", + "moduleName": "Sentry", + "static": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "resumeAppHangTracking", + "printedName": "resumeAppHangTracking()", + "children": [ { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)resumeAppHangTracking", + "mangledName": "$s6Sentry0A3SDKC21resumeAppHangTrackingyyFZ", + "moduleName": "Sentry", + "static": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "flush", + "printedName": "flush(timeout:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" }, { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" + "kind": "TypeNameAlias", + "name": "TimeInterval", + "printedName": "Foundation.TimeInterval", + "children": [ + { + "kind": "TypeNominal", + "name": "Double", + "printedName": "Swift.Double", + "usr": "s:Sd" + } + ] + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)flush:", + "mangledName": "$s6Sentry0A3SDKC5flush7timeoutySd_tFZ", + "moduleName": "Sentry", + "static": true, + "objc_name": "flush:", + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "close", + "printedName": "close()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)close", + "mangledName": "$s6Sentry0A3SDKC5closeyyFZ", + "moduleName": "Sentry", + "static": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "startProfiler", + "printedName": "startProfiler()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)startProfiler", + "mangledName": "$s6Sentry0A3SDKC13startProfileryyFZ", + "moduleName": "Sentry", + "static": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "stopProfiler", + "printedName": "stopProfiler()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)stopProfiler", + "mangledName": "$s6Sentry0A3SDKC12stopProfileryyFZ", + "moduleName": "Sentry", + "static": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init()", + "children": [ + { + "kind": "TypeNominal", + "name": "SentrySDK", + "printedName": "Sentry.SentrySDK", + "usr": "c:@M@Sentry@objc(cs)SentrySDK" + } + ], + "declKind": "Constructor", + "usr": "c:@M@Sentry@objc(cs)SentrySDK(im)init", + "mangledName": "$s6Sentry0A3SDKCACycfc", + "moduleName": "Sentry", + "overriding": true, + "objc_name": "init", + "declAttributes": [ + "ObjC", + "Dynamic", + "Override" + ], + "init_kind": "Designated" + } + ], + "declKind": "Class", + "usr": "c:@M@Sentry@objc(cs)SentrySDK", + "mangledName": "$s6Sentry0A3SDKC", + "moduleName": "Sentry", + "isOpen": true, + "declAttributes": [ + "ObjC" + ], + "superclassUsr": "c:objc(cs)NSObject", + "inheritsConvenienceInitializers": true, + "superclassNames": [ + "ObjectiveC.NSObject" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" + }, + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" + }, + { + "kind": "Conformance", + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "SentryRedactViewHelper", + "printedName": "SentryRedactViewHelper", + "children": [ + { + "kind": "Function", + "name": "clipOutView", + "printedName": "clipOutView(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" }, { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" + "kind": "TypeNominal", + "name": "UIView", + "printedName": "UIKit.UIView", + "usr": "c:objc(cs)UIView" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryRedactViewHelper(cm)clipOutView:", + "mangledName": "$s6Sentry0A16RedactViewHelperC07clipOutC0yySo6UIViewCFZ", + "moduleName": "Sentry", + "static": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "maskSwiftUI", + "printedName": "maskSwiftUI(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" }, { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" + "kind": "TypeNominal", + "name": "UIView", + "printedName": "UIKit.UIView", + "usr": "c:objc(cs)UIView" } - ] + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryRedactViewHelper(cm)maskSwiftUI:", + "mangledName": "$s6Sentry0A16RedactViewHelperC11maskSwiftUIyySo6UIViewCFZ", + "moduleName": "Sentry", + "static": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" } ], "declKind": "Class", - "usr": "c:@M@Sentry@objc(cs)SentryLog", - "mangledName": "$s6Sentry0A3LogC", + "usr": "c:@M@Sentry@objc(cs)SentryRedactViewHelper", + "mangledName": "$s6Sentry0A16RedactViewHelperC", "moduleName": "Sentry", "declAttributes": [ "Final", @@ -42535,6 +42036,7 @@ ], "superclassUsr": "c:objc(cs)NSObject", "hasMissingDesignatedInitializers": true, + "inheritsConvenienceInitializers": true, "superclassNames": [ "ObjectiveC.NSObject" ], @@ -42598,77 +42100,95 @@ }, { "kind": "TypeDecl", - "name": "SentryLogger", - "printedName": "SentryLogger", - "children": [ - { - "kind": "Function", - "name": "trace", - "printedName": "trace(_:attributes:)", + "name": "SentryHub", + "printedName": "SentryHub", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(client:andScope:)", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryHub", + "printedName": "Sentry.SentryHub", + "usr": "c:@M@Sentry@objc(cs)SentryHub" }, { "kind": "TypeNominal", - "name": "SentryLogMessage", - "printedName": "Sentry.SentryLogMessage", - "usr": "s:6Sentry0A10LogMessageV" + "name": "Optional", + "printedName": "Sentry.SentryClient?", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryClient", + "printedName": "Sentry.SentryClient", + "usr": "c:@M@Sentry@objc(cs)SentryClient" + } + ], + "usr": "s:Sq" }, { "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", + "name": "Optional", + "printedName": "Sentry.Scope?", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" } ], - "hasDefaultArg": true, - "usr": "s:SD" + "usr": "s:Sq" } ], - "declKind": "Func", - "usr": "s:6Sentry0A6LoggerC5trace_10attributesyAA0A10LogMessageV_SDySSypGtF", - "mangledName": "$s6Sentry0A6LoggerC5trace_10attributesyAA0A10LogMessageV_SDySSypGtF", + "declKind": "Constructor", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)initWithClient:andScope:", + "mangledName": "$s6Sentry0A3HubC6client8andScopeAcA0A6ClientCSg_So0aE0CSgtcfc", "moduleName": "Sentry", + "objc_name": "initWithClient:andScope:", "declAttributes": [ - "Final" + "ObjC" ], - "funcSelfKind": "NonMutating" + "init_kind": "Designated" }, { "kind": "Function", - "name": "trace", - "printedName": "trace(_:)", + "name": "startSession", + "printedName": "startSession()", "children": [ { "kind": "TypeNominal", "name": "Void", "printedName": "()" - }, + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)startSession", + "mangledName": "$s6Sentry0A3HubC12startSessionyyF", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "endSession", + "printedName": "endSession()", + "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Void", + "printedName": "()" } ], "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryLogger(im)trace:", - "mangledName": "$s6Sentry0A6LoggerC5traceyySSF", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)endSession", + "mangledName": "$s6Sentry0A3HubC10endSessionyyF", "moduleName": "Sentry", - "objc_name": "trace:", "declAttributes": [ "Final", "ObjC" @@ -42677,8 +42197,8 @@ }, { "kind": "Function", - "name": "trace", - "printedName": "trace(_:attributes:)", + "name": "endSession", + "printedName": "endSession(withTimestamp:)", "children": [ { "kind": "TypeNominal", @@ -42687,96 +42207,104 @@ }, { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Date", + "printedName": "Foundation.Date", + "usr": "s:10Foundation4DateV" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)endSessionWithTimestamp:", + "mangledName": "$s6Sentry0A3HubC10endSession13withTimestampy10Foundation4DateV_tF", + "moduleName": "Sentry", + "objc_name": "endSessionWithTimestamp:", + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "capture", + "printedName": "capture(event:)", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" }, { "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "usr": "s:SD" + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" } ], "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryLogger(im)trace:attributes:", - "mangledName": "$s6Sentry0A6LoggerC5trace_10attributesySS_SDySSypGtF", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)captureEvent:", + "mangledName": "$s6Sentry0A3HubC7capture5eventSo0A2IdCSo0A5EventC_tF", "moduleName": "Sentry", - "objc_name": "trace:attributes:", + "objc_name": "captureEvent:", "declAttributes": [ "Final", - "ObjC" + "ObjC", + "DiscardableResult" ], "funcSelfKind": "NonMutating" }, { "kind": "Function", - "name": "debug", - "printedName": "debug(_:attributes:)", + "name": "capture", + "printedName": "capture(event:scope:)", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" }, { "kind": "TypeNominal", - "name": "SentryLogMessage", - "printedName": "Sentry.SentryLogMessage", - "usr": "s:6Sentry0A10LogMessageV" + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" }, { "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "hasDefaultArg": true, - "usr": "s:SD" + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" } ], "declKind": "Func", - "usr": "s:6Sentry0A6LoggerC5debug_10attributesyAA0A10LogMessageV_SDySSypGtF", - "mangledName": "$s6Sentry0A6LoggerC5debug_10attributesyAA0A10LogMessageV_SDySSypGtF", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)captureEvent:withScope:", + "mangledName": "$s6Sentry0A3HubC7capture5event5scopeSo0A2IdCSo0A5EventC_So0A5ScopeCtF", "moduleName": "Sentry", + "objc_name": "captureEvent:withScope:", "declAttributes": [ - "Final" + "Final", + "ObjC", + "DiscardableResult" ], "funcSelfKind": "NonMutating" }, { "kind": "Function", - "name": "debug", - "printedName": "debug(_:)", + "name": "startTransaction", + "printedName": "startTransaction(name:operation:)", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" }, { "kind": "TypeNominal", @@ -42786,25 +42314,27 @@ } ], "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryLogger(im)debug:", - "mangledName": "$s6Sentry0A6LoggerC5debugyySSF", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)startTransactionWithName:operation:", + "mangledName": "$s6Sentry0A3HubC16startTransaction4name9operationSo0A4Span_pSS_SStF", "moduleName": "Sentry", - "objc_name": "debug:", + "objc_name": "startTransactionWithName:operation:", "declAttributes": [ "Final", - "ObjC" + "ObjC", + "DiscardableResult" ], "funcSelfKind": "NonMutating" }, { "kind": "Function", - "name": "debug", - "printedName": "debug(_:attributes:)", + "name": "startTransaction", + "printedName": "startTransaction(name:operation:bindToScope:)", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" }, { "kind": "TypeNominal", @@ -42814,124 +42344,117 @@ }, { "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "usr": "s:SD" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryLogger(im)debug:attributes:", - "mangledName": "$s6Sentry0A6LoggerC5debug_10attributesySS_SDySSypGtF", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)startTransactionWithName:operation:bindToScope:", + "mangledName": "$s6Sentry0A3HubC16startTransaction4name9operation11bindToScopeSo0A4Span_pSS_SSSbtF", "moduleName": "Sentry", - "objc_name": "debug:attributes:", + "objc_name": "startTransactionWithName:operation:bindToScope:", "declAttributes": [ "Final", - "ObjC" + "ObjC", + "DiscardableResult" ], "funcSelfKind": "NonMutating" }, { "kind": "Function", - "name": "info", - "printedName": "info(_:attributes:)", + "name": "startTransaction", + "printedName": "startTransaction(transactionContext:)", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "SentryLogMessage", - "printedName": "Sentry.SentryLogMessage", - "usr": "s:6Sentry0A10LogMessageV" + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" }, { "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "hasDefaultArg": true, - "usr": "s:SD" + "name": "TransactionContext", + "printedName": "Sentry.TransactionContext", + "usr": "c:objc(cs)SentryTransactionContext" } ], "declKind": "Func", - "usr": "s:6Sentry0A6LoggerC4info_10attributesyAA0A10LogMessageV_SDySSypGtF", - "mangledName": "$s6Sentry0A6LoggerC4info_10attributesyAA0A10LogMessageV_SDySSypGtF", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)startTransactionWithContext:", + "mangledName": "$s6Sentry0A3HubC16startTransaction18transactionContextSo0A4Span_pSo0adF0C_tF", "moduleName": "Sentry", + "objc_name": "startTransactionWithContext:", "declAttributes": [ - "Final" + "Final", + "ObjC", + "DiscardableResult" ], "funcSelfKind": "NonMutating" }, { "kind": "Function", - "name": "info", - "printedName": "info(_:)", + "name": "startTransaction", + "printedName": "startTransaction(transactionContext:bindToScope:)", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" }, { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "TransactionContext", + "printedName": "Sentry.TransactionContext", + "usr": "c:objc(cs)SentryTransactionContext" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryLogger(im)info:", - "mangledName": "$s6Sentry0A6LoggerC4infoyySSF", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)startTransactionWithContext:bindToScope:", + "mangledName": "$s6Sentry0A3HubC16startTransaction18transactionContext11bindToScopeSo0A4Span_pSo0adF0C_SbtF", "moduleName": "Sentry", - "objc_name": "info:", + "objc_name": "startTransactionWithContext:bindToScope:", "declAttributes": [ "Final", - "ObjC" + "ObjC", + "DiscardableResult" ], "funcSelfKind": "NonMutating" }, { "kind": "Function", - "name": "info", - "printedName": "info(_:attributes:)", + "name": "startTransaction", + "printedName": "startTransaction(transactionContext:bindToScope:customSamplingContext:)", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" }, { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "TransactionContext", + "printedName": "Sentry.TransactionContext", + "usr": "c:objc(cs)SentryTransactionContext" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" }, { "kind": "TypeNominal", @@ -42954,31 +42477,33 @@ } ], "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryLogger(im)info:attributes:", - "mangledName": "$s6Sentry0A6LoggerC4info_10attributesySS_SDySSypGtF", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)startTransactionWithContext:bindToScope:customSamplingContext:", + "mangledName": "$s6Sentry0A3HubC16startTransaction18transactionContext11bindToScope014customSamplingF0So0A4Span_pSo0adF0C_SbSDySSypGtF", "moduleName": "Sentry", - "objc_name": "info:attributes:", + "objc_name": "startTransactionWithContext:bindToScope:customSamplingContext:", "declAttributes": [ "Final", - "ObjC" + "ObjC", + "DiscardableResult" ], "funcSelfKind": "NonMutating" }, { "kind": "Function", - "name": "warn", - "printedName": "warn(_:attributes:)", + "name": "startTransaction", + "printedName": "startTransaction(transactionContext:customSamplingContext:)", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" }, { "kind": "TypeNominal", - "name": "SentryLogMessage", - "printedName": "Sentry.SentryLogMessage", - "usr": "s:6Sentry0A10LogMessageV" + "name": "TransactionContext", + "printedName": "Sentry.TransactionContext", + "usr": "c:objc(cs)SentryTransactionContext" }, { "kind": "TypeNominal", @@ -42997,293 +42522,223 @@ "printedName": "Any" } ], - "hasDefaultArg": true, "usr": "s:SD" } ], "declKind": "Func", - "usr": "s:6Sentry0A6LoggerC4warn_10attributesyAA0A10LogMessageV_SDySSypGtF", - "mangledName": "$s6Sentry0A6LoggerC4warn_10attributesyAA0A10LogMessageV_SDySSypGtF", - "moduleName": "Sentry", - "declAttributes": [ - "Final" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "warn", - "printedName": "warn(_:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryLogger(im)warn:", - "mangledName": "$s6Sentry0A6LoggerC4warnyySSF", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)startTransactionWithContext:customSamplingContext:", + "mangledName": "$s6Sentry0A3HubC16startTransaction18transactionContext014customSamplingF0So0A4Span_pSo0adF0C_SDySSypGtF", "moduleName": "Sentry", - "objc_name": "warn:", + "objc_name": "startTransactionWithContext:customSamplingContext:", "declAttributes": [ "Final", - "ObjC" + "ObjC", + "DiscardableResult" ], "funcSelfKind": "NonMutating" }, { "kind": "Function", - "name": "warn", - "printedName": "warn(_:attributes:)", + "name": "capture", + "printedName": "capture(error:)", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" }, { "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "usr": "s:SD" + "name": "NSError", + "printedName": "Foundation.NSError", + "usr": "c:objc(cs)NSError" } ], "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryLogger(im)warn:attributes:", - "mangledName": "$s6Sentry0A6LoggerC4warn_10attributesySS_SDySSypGtF", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)captureError:", + "mangledName": "$s6Sentry0A3HubC7capture5errorSo0A2IdCSo7NSErrorC_tF", "moduleName": "Sentry", - "objc_name": "warn:attributes:", + "objc_name": "captureError:", "declAttributes": [ "Final", - "ObjC" + "ObjC", + "DiscardableResult" ], "funcSelfKind": "NonMutating" }, { "kind": "Function", - "name": "error", - "printedName": "error(_:attributes:)", + "name": "capture", + "printedName": "capture(error:scope:)", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" }, { "kind": "TypeNominal", - "name": "SentryLogMessage", - "printedName": "Sentry.SentryLogMessage", - "usr": "s:6Sentry0A10LogMessageV" + "name": "Error", + "printedName": "any Swift.Error", + "usr": "s:s5ErrorP" }, { "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "hasDefaultArg": true, - "usr": "s:SD" + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" } ], "declKind": "Func", - "usr": "s:6Sentry0A6LoggerC5error_10attributesyAA0A10LogMessageV_SDySSypGtF", - "mangledName": "$s6Sentry0A6LoggerC5error_10attributesyAA0A10LogMessageV_SDySSypGtF", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)captureError:withScope:", + "mangledName": "$s6Sentry0A3HubC7capture5error5scopeSo0A2IdCs5Error_p_So0A5ScopeCtF", "moduleName": "Sentry", + "objc_name": "captureError:withScope:", "declAttributes": [ - "Final" + "Final", + "ObjC", + "DiscardableResult" ], "funcSelfKind": "NonMutating" }, { "kind": "Function", - "name": "error", - "printedName": "error(_:)", + "name": "capture", + "printedName": "capture(exception:)", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" }, { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "NSException", + "printedName": "Foundation.NSException", + "usr": "c:objc(cs)NSException" } ], "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryLogger(im)error:", - "mangledName": "$s6Sentry0A6LoggerC5erroryySSF", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)captureException:", + "mangledName": "$s6Sentry0A3HubC7capture9exceptionSo0A2IdCSo11NSExceptionC_tF", "moduleName": "Sentry", - "objc_name": "error:", + "objc_name": "captureException:", "declAttributes": [ "Final", - "ObjC" + "ObjC", + "DiscardableResult" ], "funcSelfKind": "NonMutating" }, { "kind": "Function", - "name": "error", - "printedName": "error(_:attributes:)", + "name": "capture", + "printedName": "capture(exception:scope:)", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" }, { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "NSException", + "printedName": "Foundation.NSException", + "usr": "c:objc(cs)NSException" }, { "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "usr": "s:SD" + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" } ], "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryLogger(im)error:attributes:", - "mangledName": "$s6Sentry0A6LoggerC5error_10attributesySS_SDySSypGtF", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)captureException:withScope:", + "mangledName": "$s6Sentry0A3HubC7capture9exception5scopeSo0A2IdCSo11NSExceptionC_So0A5ScopeCtF", "moduleName": "Sentry", - "objc_name": "error:attributes:", + "objc_name": "captureException:withScope:", "declAttributes": [ "Final", - "ObjC" + "ObjC", + "DiscardableResult" ], "funcSelfKind": "NonMutating" }, { "kind": "Function", - "name": "fatal", - "printedName": "fatal(_:attributes:)", + "name": "capture", + "printedName": "capture(message:)", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "SentryLogMessage", - "printedName": "Sentry.SentryLogMessage", - "usr": "s:6Sentry0A10LogMessageV" + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" }, { "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "hasDefaultArg": true, - "usr": "s:SD" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "declKind": "Func", - "usr": "s:6Sentry0A6LoggerC5fatal_10attributesyAA0A10LogMessageV_SDySSypGtF", - "mangledName": "$s6Sentry0A6LoggerC5fatal_10attributesyAA0A10LogMessageV_SDySSypGtF", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)captureMessage:", + "mangledName": "$s6Sentry0A3HubC7capture7messageSo0A2IdCSS_tF", "moduleName": "Sentry", + "objc_name": "captureMessage:", "declAttributes": [ - "Final" + "Final", + "ObjC", + "DiscardableResult" ], "funcSelfKind": "NonMutating" }, { "kind": "Function", - "name": "fatal", - "printedName": "fatal(_:)", + "name": "capture", + "printedName": "capture(message:scope:)", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryId", + "printedName": "Sentry.SentryId", + "usr": "c:objc(cs)SentryId" }, { "kind": "TypeNominal", "name": "String", "printedName": "Swift.String", "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" } ], "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryLogger(im)fatal:", - "mangledName": "$s6Sentry0A6LoggerC5fatalyySSF", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)captureMessage:withScope:", + "mangledName": "$s6Sentry0A3HubC7capture7message5scopeSo0A2IdCSS_So0A5ScopeCtF", "moduleName": "Sentry", - "objc_name": "fatal:", + "objc_name": "captureMessage:withScope:", "declAttributes": [ "Final", - "ObjC" + "ObjC", + "DiscardableResult" ], "funcSelfKind": "NonMutating" }, { "kind": "Function", - "name": "fatal", - "printedName": "fatal(_:attributes:)", + "name": "capture", + "printedName": "capture(feedback:)", "children": [ { "kind": "TypeNominal", @@ -43292,1230 +42747,833 @@ }, { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "usr": "s:SD" + "name": "SentryFeedback", + "printedName": "Sentry.SentryFeedback", + "usr": "c:@M@Sentry@objc(cs)SentryFeedback" } ], "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryLogger(im)fatal:attributes:", - "mangledName": "$s6Sentry0A6LoggerC5fatal_10attributesySS_SDySSypGtF", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)captureFeedback:", + "mangledName": "$s6Sentry0A3HubC7capture8feedbackyAA0A8FeedbackC_tF", "moduleName": "Sentry", - "objc_name": "fatal:attributes:", + "objc_name": "captureFeedback:", "declAttributes": [ "Final", "ObjC" ], "funcSelfKind": "NonMutating" - } - ], - "declKind": "Class", - "usr": "c:@M@Sentry@objc(cs)SentryLogger", - "mangledName": "$s6Sentry0A6LoggerC", - "moduleName": "Sentry", - "declAttributes": [ - "Final", - "ObjC" - ], - "superclassUsr": "c:objc(cs)NSObject", - "hasMissingDesignatedInitializers": true, - "inheritsConvenienceInitializers": true, - "superclassNames": [ - "ObjectiveC.NSObject" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" }, { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - } - ] - }, - { - "kind": "TypeDecl", - "name": "SentryReplayOptions", - "printedName": "SentryReplayOptions", - "children": [ - { - "kind": "TypeDecl", - "name": "DefaultValues", - "printedName": "DefaultValues", + "kind": "Function", + "name": "configureScope", + "printedName": "configureScope(_:)", "children": [ { - "kind": "Var", - "name": "sessionSampleRate", - "printedName": "sessionSampleRate", - "children": [ - { - "kind": "TypeNominal", - "name": "Float", - "printedName": "Swift.Float", - "usr": "s:Sf" - } - ], - "declKind": "Var", - "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC17sessionSampleRateSfvpZ", - "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC17sessionSampleRateSfvpZ", - "moduleName": "Sentry", - "static": true, - "declAttributes": [ - "Final", - "HasStorage" - ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Float", - "printedName": "Swift.Float", - "usr": "s:Sf" - } - ], - "declKind": "Accessor", - "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC17sessionSampleRateSfvgZ", - "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC17sessionSampleRateSfvgZ", - "moduleName": "Sentry", - "static": true, - "implicit": true, - "declAttributes": [ - "Final" - ], - "accessorKind": "get" - } - ] - }, - { - "kind": "Var", - "name": "onErrorSampleRate", - "printedName": "onErrorSampleRate", - "children": [ - { - "kind": "TypeNominal", - "name": "Float", - "printedName": "Swift.Float", - "usr": "s:Sf" - } - ], - "declKind": "Var", - "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC17onErrorSampleRateSfvpZ", - "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC17onErrorSampleRateSfvpZ", - "moduleName": "Sentry", - "static": true, - "declAttributes": [ - "Final", - "HasStorage" - ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Float", - "printedName": "Swift.Float", - "usr": "s:Sf" - } - ], - "declKind": "Accessor", - "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC17onErrorSampleRateSfvgZ", - "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC17onErrorSampleRateSfvgZ", - "moduleName": "Sentry", - "static": true, - "implicit": true, - "declAttributes": [ - "Final" - ], - "accessorKind": "get" - } - ] - }, - { - "kind": "Var", - "name": "maskAllText", - "printedName": "maskAllText", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Var", - "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC11maskAllTextSbvpZ", - "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC11maskAllTextSbvpZ", - "moduleName": "Sentry", - "static": true, - "declAttributes": [ - "Final", - "HasStorage" - ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC11maskAllTextSbvgZ", - "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC11maskAllTextSbvgZ", - "moduleName": "Sentry", - "static": true, - "implicit": true, - "declAttributes": [ - "Final" - ], - "accessorKind": "get" - } - ] - }, - { - "kind": "Var", - "name": "maskAllImages", - "printedName": "maskAllImages", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Var", - "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC13maskAllImagesSbvpZ", - "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC13maskAllImagesSbvpZ", - "moduleName": "Sentry", - "static": true, - "declAttributes": [ - "Final", - "HasStorage" - ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC13maskAllImagesSbvgZ", - "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC13maskAllImagesSbvgZ", - "moduleName": "Sentry", - "static": true, - "implicit": true, - "declAttributes": [ - "Final" - ], - "accessorKind": "get" - } - ] - }, - { - "kind": "Var", - "name": "enableViewRendererV2", - "printedName": "enableViewRendererV2", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Var", - "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC20enableViewRendererV2SbvpZ", - "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC20enableViewRendererV2SbvpZ", - "moduleName": "Sentry", - "static": true, - "declAttributes": [ - "Final", - "HasStorage" - ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC20enableViewRendererV2SbvgZ", - "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC20enableViewRendererV2SbvgZ", - "moduleName": "Sentry", - "static": true, - "implicit": true, - "declAttributes": [ - "Final" - ], - "accessorKind": "get" - } - ] + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" }, { - "kind": "Var", - "name": "enableFastViewRendering", - "printedName": "enableFastViewRendering", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Scope) -> Swift.Void", "children": [ { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Var", - "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC23enableFastViewRenderingSbvpZ", - "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC23enableFastViewRenderingSbvpZ", - "moduleName": "Sentry", - "static": true, - "declAttributes": [ - "Final", - "HasStorage" - ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Void", + "printedName": "()" } - ], - "declKind": "Accessor", - "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC23enableFastViewRenderingSbvgZ", - "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC23enableFastViewRenderingSbvgZ", - "moduleName": "Sentry", - "static": true, - "implicit": true, - "declAttributes": [ - "Final" - ], - "accessorKind": "get" + ] + }, + { + "kind": "TypeNominal", + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" } ] + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)configureScope:", + "mangledName": "$s6Sentry0A3HubC14configureScopeyyySo0aD0CcF", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "add", + "printedName": "add(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" }, { - "kind": "Var", - "name": "quality", - "printedName": "quality", + "kind": "TypeNominal", + "name": "Breadcrumb", + "printedName": "Sentry.Breadcrumb", + "usr": "c:objc(cs)SentryBreadcrumb" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)addBreadcrumb:", + "mangledName": "$s6Sentry0A3HubC3addyySo0A10BreadcrumbCF", + "moduleName": "Sentry", + "objc_name": "addBreadcrumb:", + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "getClient", + "printedName": "getClient()", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryClient?", "children": [ { "kind": "TypeNominal", - "name": "SentryReplayQuality", - "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality", - "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO" + "name": "SentryClient", + "printedName": "Sentry.SentryClient", + "usr": "c:@M@Sentry@objc(cs)SentryClient" } ], - "declKind": "Var", - "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC7qualityAC0aB7QualityOvpZ", - "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC7qualityAC0aB7QualityOvpZ", - "moduleName": "Sentry", - "static": true, - "declAttributes": [ - "Final", - "HasStorage" - ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryReplayQuality", - "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality", - "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO" - } - ], - "declKind": "Accessor", - "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC7qualityAC0aB7QualityOvgZ", - "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC7qualityAC0aB7QualityOvgZ", - "moduleName": "Sentry", - "static": true, - "implicit": true, - "declAttributes": [ - "Final" - ], - "accessorKind": "get" - } - ] - }, + "usr": "s:Sq" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)getClient", + "mangledName": "$s6Sentry0A3HubC9getClientAA0aD0CSgyF", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Var", + "name": "scope", + "printedName": "scope", + "children": [ { - "kind": "Var", - "name": "maskedViewClasses", - "printedName": "maskedViewClasses", + "kind": "TypeNominal", + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryHub(py)scope", + "mangledName": "$s6Sentry0A3HubC5scopeSo0A5ScopeCvp", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC" + ], + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.AnyClass]", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyClass", - "printedName": "Swift.AnyClass", - "children": [ - { - "kind": "TypeNominal", - "name": "ExistentialMetatype", - "printedName": "any Swift.AnyObject.Type", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Swift.AnyObject", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Builtin.AnyObject", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "AnyObject" - } - ] - } - ] - } - ] - } - ] - } - ], - "usr": "s:Sa" + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" } ], - "declKind": "Var", - "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC17maskedViewClassesSayyXlXpGvpZ", - "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC17maskedViewClassesSayyXlXpGvpZ", + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)scope", + "mangledName": "$s6Sentry0A3HubC5scopeSo0A5ScopeCvg", "moduleName": "Sentry", - "static": true, "declAttributes": [ "Final", - "HasStorage" + "ObjC" ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.AnyClass]", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyClass", - "printedName": "Swift.AnyClass", - "children": [ - { - "kind": "TypeNominal", - "name": "ExistentialMetatype", - "printedName": "any Swift.AnyObject.Type", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Swift.AnyObject", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Builtin.AnyObject", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "AnyObject" - } - ] - } - ] - } - ] - } - ] - } - ], - "usr": "s:Sa" - } - ], - "declKind": "Accessor", - "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC17maskedViewClassesSayyXlXpGvgZ", - "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC17maskedViewClassesSayyXlXpGvgZ", - "moduleName": "Sentry", - "static": true, - "implicit": true, - "declAttributes": [ - "Final" - ], - "accessorKind": "get" - } - ] - }, + "accessorKind": "get" + } + ] + }, + { + "kind": "Var", + "name": "logger", + "printedName": "logger", + "children": [ { - "kind": "Var", - "name": "unmaskedViewClasses", - "printedName": "unmaskedViewClasses", + "kind": "TypeNominal", + "name": "SentryLogger", + "printedName": "Sentry.SentryLogger", + "usr": "c:@M@Sentry@objc(cs)SentryLogger" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryHub(py)logger", + "mangledName": "$s6Sentry0A3HubC6loggerAA0A6LoggerCvp", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC" + ], + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.AnyClass]", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyClass", - "printedName": "Swift.AnyClass", - "children": [ - { - "kind": "TypeNominal", - "name": "ExistentialMetatype", - "printedName": "any Swift.AnyObject.Type", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Swift.AnyObject", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Builtin.AnyObject", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "AnyObject" - } - ] - } - ] - } - ] - } - ] - } - ], - "usr": "s:Sa" + "name": "SentryLogger", + "printedName": "Sentry.SentryLogger", + "usr": "c:@M@Sentry@objc(cs)SentryLogger" } ], - "declKind": "Var", - "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC19unmaskedViewClassesSayyXlXpGvpZ", - "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC19unmaskedViewClassesSayyXlXpGvpZ", + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)logger", + "mangledName": "$s6Sentry0A3HubC6loggerAA0A6LoggerCvg", "moduleName": "Sentry", - "static": true, "declAttributes": [ "Final", - "HasStorage" + "ObjC" ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.AnyClass]", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyClass", - "printedName": "Swift.AnyClass", - "children": [ - { - "kind": "TypeNominal", - "name": "ExistentialMetatype", - "printedName": "any Swift.AnyObject.Type", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Swift.AnyObject", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Builtin.AnyObject", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "AnyObject" - } - ] - } - ] - } - ] - } - ] - } - ], - "usr": "s:Sa" - } - ], - "declKind": "Accessor", - "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC19unmaskedViewClassesSayyXlXpGvgZ", - "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC19unmaskedViewClassesSayyXlXpGvgZ", - "moduleName": "Sentry", - "static": true, - "implicit": true, - "declAttributes": [ - "Final" - ], - "accessorKind": "get" - } - ] - } - ], - "declKind": "Class", - "usr": "s:6Sentry0A13ReplayOptionsC13DefaultValuesC", - "mangledName": "$s6Sentry0A13ReplayOptionsC13DefaultValuesC", - "moduleName": "Sentry", - "declAttributes": [ - "Final" - ], - "hasMissingDesignatedInitializers": true, - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" + "accessorKind": "get" } ] }, { - "kind": "TypeDecl", - "name": "SentryReplayQuality", - "printedName": "SentryReplayQuality", + "kind": "Function", + "name": "bindClient", + "printedName": "bindClient(_:)", "children": [ { - "kind": "Var", - "name": "low", - "printedName": "low", + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryClient?", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryReplayOptions.SentryReplayQuality.Type) -> Sentry.SentryReplayOptions.SentryReplayQuality", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryReplayQuality", - "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality", - "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryReplayQuality", - "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality", - "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO" - } - ] - } - ] + "kind": "TypeNominal", + "name": "SentryClient", + "printedName": "Sentry.SentryClient", + "usr": "c:@M@Sentry@objc(cs)SentryClient" } ], - "declKind": "EnumElement", - "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO3lowyA2EmF", - "mangledName": "$s6Sentry0A13ReplayOptionsC0aB7QualityO3lowyA2EmF", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] + "usr": "s:Sq" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)bindClient:", + "mangledName": "$s6Sentry0A3HubC10bindClientyyAA0aD0CSgF", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "hasIntegration", + "printedName": "hasIntegration(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" }, { - "kind": "Var", - "name": "medium", - "printedName": "medium", + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)hasIntegration:", + "mangledName": "$s6Sentry0A3HubC14hasIntegrationySbSSF", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "isIntegrationInstalled", + "printedName": "isIntegrationInstalled(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + }, + { + "kind": "TypeNameAlias", + "name": "AnyClass", + "printedName": "Swift.AnyClass", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryReplayOptions.SentryReplayQuality.Type) -> Sentry.SentryReplayOptions.SentryReplayQuality", + "kind": "TypeNominal", + "name": "ExistentialMetatype", + "printedName": "any Swift.AnyObject.Type", "children": [ { - "kind": "TypeNominal", - "name": "SentryReplayQuality", - "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality", - "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality.Type", + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Swift.AnyObject", "children": [ { - "kind": "TypeNominal", - "name": "SentryReplayQuality", - "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality", - "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO" + "kind": "TypeNameAlias", + "name": "AnyObject", + "printedName": "Builtin.AnyObject", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "AnyObject" + } + ] } ] } ] } - ], - "declKind": "EnumElement", - "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO6mediumyA2EmF", - "mangledName": "$s6Sentry0A13ReplayOptionsC0aB7QualityO6mediumyA2EmF", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" ] + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)isIntegrationInstalled:", + "mangledName": "$s6Sentry0A3HubC22isIntegrationInstalledySbyXlXpF", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "setUser", + "printedName": "setUser(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" }, { - "kind": "Var", - "name": "high", - "printedName": "high", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.User?", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryReplayOptions.SentryReplayQuality.Type) -> Sentry.SentryReplayOptions.SentryReplayQuality", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryReplayQuality", - "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality", - "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryReplayQuality", - "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality", - "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO" - } - ] - } - ] + "kind": "TypeNominal", + "name": "User", + "printedName": "Sentry.User", + "usr": "c:objc(cs)SentryUser" } ], - "declKind": "EnumElement", - "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO4highyA2EmF", - "mangledName": "$s6Sentry0A13ReplayOptionsC0aB7QualityO4highyA2EmF", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] + "usr": "s:Sq" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)setUser:", + "mangledName": "$s6Sentry0A3HubC7setUseryySo0aD0CSgF", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "reportFullyDisplayed", + "printedName": "reportFullyDisplayed()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)reportFullyDisplayed", + "mangledName": "$s6Sentry0A3HubC20reportFullyDisplayedyyF", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "flush", + "printedName": "flush(timeout:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" }, { - "kind": "Var", - "name": "description", - "printedName": "description", + "kind": "TypeNameAlias", + "name": "TimeInterval", + "printedName": "Foundation.TimeInterval", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO11descriptionSSvp", - "mangledName": "$s6Sentry0A13ReplayOptionsC0aB7QualityO11descriptionSSvp", - "moduleName": "Sentry", - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO11descriptionSSvg", - "mangledName": "$s6Sentry0A13ReplayOptionsC0aB7QualityO11descriptionSSvg", - "moduleName": "Sentry", - "accessorKind": "get" + "name": "Double", + "printedName": "Swift.Double", + "usr": "s:Sd" } ] - }, + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)flush:", + "mangledName": "$s6Sentry0A3HubC5flush7timeoutySd_tF", + "moduleName": "Sentry", + "objc_name": "flush:", + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "close", + "printedName": "close()", + "children": [ { - "kind": "Constructor", - "name": "init", - "printedName": "init(rawValue:)", + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryHub(im)close", + "mangledName": "$s6Sentry0A3HubC5closeyyF", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Class", + "usr": "c:@M@Sentry@objc(cs)SentryHub", + "mangledName": "$s6Sentry0A3HubC", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC" + ], + "superclassUsr": "c:objc(cs)NSObject", + "superclassNames": [ + "ObjectiveC.NSObject" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" + }, + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" + }, + { + "kind": "Conformance", + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "SentryTransactionNameSource", + "printedName": "SentryTransactionNameSource", + "children": [ + { + "kind": "Var", + "name": "custom", + "printedName": "custom", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryTransactionNameSource.Type) -> Sentry.SentryTransactionNameSource", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality?", + "name": "SentryTransactionNameSource", + "printedName": "Sentry.SentryTransactionNameSource", + "usr": "c:@M@Sentry@E@SentryTransactionNameSource" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryTransactionNameSource.Type", "children": [ { "kind": "TypeNominal", - "name": "SentryReplayQuality", - "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality", - "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO" + "name": "SentryTransactionNameSource", + "printedName": "Sentry.SentryTransactionNameSource", + "usr": "c:@M@Sentry@E@SentryTransactionNameSource" } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + ] } - ], - "declKind": "Constructor", - "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO8rawValueAESgSi_tcfc", - "mangledName": "$s6Sentry0A13ReplayOptionsC0aB7QualityO8rawValueAESgSi_tcfc", - "moduleName": "Sentry", - "init_kind": "Designated" - }, + ] + } + ], + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryTransactionNameSource@kSentryTransactionNameSourceCustom", + "mangledName": "$s6Sentry0A21TransactionNameSourceO6customyA2CmF", + "moduleName": "Sentry", + "objc_name": "kSentryTransactionNameSourceCustom", + "declAttributes": [ + "ObjC" + ] + }, + { + "kind": "Var", + "name": "url", + "printedName": "url", + "children": [ { - "kind": "TypeAlias", - "name": "RawValue", - "printedName": "RawValue", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryTransactionNameSource.Type) -> Sentry.SentryTransactionNameSource", "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "TypeAlias", - "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO8RawValuea", - "mangledName": "$s6Sentry0A13ReplayOptionsC0aB7QualityO8RawValuea", - "moduleName": "Sentry" - }, - { - "kind": "Var", - "name": "rawValue", - "printedName": "rawValue", - "children": [ + "name": "SentryTransactionNameSource", + "printedName": "Sentry.SentryTransactionNameSource", + "usr": "c:@M@Sentry@E@SentryTransactionNameSource" + }, { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Var", - "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO8rawValueSivp", - "mangledName": "$s6Sentry0A13ReplayOptionsC0aB7QualityO8rawValueSivp", - "moduleName": "Sentry", - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "name": "Metatype", + "printedName": "Sentry.SentryTransactionNameSource.Type", "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "SentryTransactionNameSource", + "printedName": "Sentry.SentryTransactionNameSource", + "usr": "c:@M@Sentry@E@SentryTransactionNameSource" } - ], - "declKind": "Accessor", - "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO8rawValueSivg", - "mangledName": "$s6Sentry0A13ReplayOptionsC0aB7QualityO8rawValueSivg", - "moduleName": "Sentry", - "accessorKind": "get" + ] } ] } ], - "declKind": "Enum", - "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO", - "mangledName": "$s6Sentry0A13ReplayOptionsC0aB7QualityO", + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryTransactionNameSource@kSentryTransactionNameSourceUrl", + "mangledName": "$s6Sentry0A21TransactionNameSourceO3urlyA2CmF", "moduleName": "Sentry", + "objc_name": "kSentryTransactionNameSourceUrl", "declAttributes": [ "ObjC" - ], - "enumRawTypeName": "Int", - "conformances": [ - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, + ] + }, + { + "kind": "Var", + "name": "route", + "printedName": "route", + "children": [ { - "kind": "Conformance", - "name": "RawRepresentable", - "printedName": "RawRepresentable", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryTransactionNameSource.Type) -> Sentry.SentryTransactionNameSource", "children": [ { - "kind": "TypeWitness", - "name": "RawValue", - "printedName": "RawValue", + "kind": "TypeNominal", + "name": "SentryTransactionNameSource", + "printedName": "Sentry.SentryTransactionNameSource", + "usr": "c:@M@Sentry@E@SentryTransactionNameSource" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryTransactionNameSource.Type", "children": [ { - "kind": "TypeNameAlias", - "name": "RawValue", - "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality.RawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ] + "kind": "TypeNominal", + "name": "SentryTransactionNameSource", + "printedName": "Sentry.SentryTransactionNameSource", + "usr": "c:@M@Sentry@E@SentryTransactionNameSource" } ] } - ], - "usr": "s:SY", - "mangledName": "$sSY" + ] } + ], + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryTransactionNameSource@kSentryTransactionNameSourceRoute", + "mangledName": "$s6Sentry0A21TransactionNameSourceO5routeyA2CmF", + "moduleName": "Sentry", + "objc_name": "kSentryTransactionNameSourceRoute", + "declAttributes": [ + "ObjC" ] }, { "kind": "Var", - "name": "sessionSampleRate", - "printedName": "sessionSampleRate", + "name": "view", + "printedName": "view", "children": [ { - "kind": "TypeNominal", - "name": "Float", - "printedName": "Swift.Float", - "usr": "s:Sf" - } - ], - "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(py)sessionSampleRate", - "mangledName": "$s6Sentry0A13ReplayOptionsC17sessionSampleRateSfvp", - "moduleName": "Sentry", - "declAttributes": [ - "Final", - "ObjC", - "HasStorage" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryTransactionNameSource.Type) -> Sentry.SentryTransactionNameSource", "children": [ { "kind": "TypeNominal", - "name": "Float", - "printedName": "Swift.Float", - "usr": "s:Sf" + "name": "SentryTransactionNameSource", + "printedName": "Sentry.SentryTransactionNameSource", + "usr": "c:@M@Sentry@E@SentryTransactionNameSource" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryTransactionNameSource.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryTransactionNameSource", + "printedName": "Sentry.SentryTransactionNameSource", + "usr": "c:@M@Sentry@E@SentryTransactionNameSource" + } + ] } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)sessionSampleRate", - "mangledName": "$s6Sentry0A13ReplayOptionsC17sessionSampleRateSfvg", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "get" - }, + ] + } + ], + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryTransactionNameSource@kSentryTransactionNameSourceView", + "mangledName": "$s6Sentry0A21TransactionNameSourceO4viewyA2CmF", + "moduleName": "Sentry", + "objc_name": "kSentryTransactionNameSourceView", + "declAttributes": [ + "ObjC" + ] + }, + { + "kind": "Var", + "name": "component", + "printedName": "component", + "children": [ { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryTransactionNameSource.Type) -> Sentry.SentryTransactionNameSource", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryTransactionNameSource", + "printedName": "Sentry.SentryTransactionNameSource", + "usr": "c:@M@Sentry@E@SentryTransactionNameSource" }, { "kind": "TypeNominal", - "name": "Float", - "printedName": "Swift.Float", - "usr": "s:Sf" + "name": "Metatype", + "printedName": "Sentry.SentryTransactionNameSource.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryTransactionNameSource", + "printedName": "Sentry.SentryTransactionNameSource", + "usr": "c:@M@Sentry@E@SentryTransactionNameSource" + } + ] } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)setSessionSampleRate:", - "mangledName": "$s6Sentry0A13ReplayOptionsC17sessionSampleRateSfvs", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "set" + ] } + ], + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryTransactionNameSource@kSentryTransactionNameSourceComponent", + "mangledName": "$s6Sentry0A21TransactionNameSourceO9componentyA2CmF", + "moduleName": "Sentry", + "objc_name": "kSentryTransactionNameSourceComponent", + "declAttributes": [ + "ObjC" ] }, { "kind": "Var", - "name": "onErrorSampleRate", - "printedName": "onErrorSampleRate", + "name": "sourceTask", + "printedName": "sourceTask", "children": [ { - "kind": "TypeNominal", - "name": "Float", - "printedName": "Swift.Float", - "usr": "s:Sf" + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryTransactionNameSource.Type) -> Sentry.SentryTransactionNameSource", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryTransactionNameSource", + "printedName": "Sentry.SentryTransactionNameSource", + "usr": "c:@M@Sentry@E@SentryTransactionNameSource" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryTransactionNameSource.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryTransactionNameSource", + "printedName": "Sentry.SentryTransactionNameSource", + "usr": "c:@M@Sentry@E@SentryTransactionNameSource" + } + ] + } + ] } ], - "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(py)onErrorSampleRate", - "mangledName": "$s6Sentry0A13ReplayOptionsC17onErrorSampleRateSfvp", + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryTransactionNameSource@kSentryTransactionNameSourceTask", + "mangledName": "$s6Sentry0A21TransactionNameSourceO10sourceTaskyA2CmF", "moduleName": "Sentry", + "objc_name": "kSentryTransactionNameSourceTask", "declAttributes": [ - "Final", - "ObjC", - "HasStorage" - ], - "hasStorage": true, - "accessors": [ + "ObjC" + ] + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(rawValue:)", + "children": [ { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryTransactionNameSource?", "children": [ { "kind": "TypeNominal", - "name": "Float", - "printedName": "Swift.Float", - "usr": "s:Sf" + "name": "SentryTransactionNameSource", + "printedName": "Sentry.SentryTransactionNameSource", + "usr": "c:@M@Sentry@E@SentryTransactionNameSource" } ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)onErrorSampleRate", - "mangledName": "$s6Sentry0A13ReplayOptionsC17onErrorSampleRateSfvg", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "get" + "usr": "s:Sq" }, { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Float", - "printedName": "Swift.Float", - "usr": "s:Sf" - } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)setOnErrorSampleRate:", - "mangledName": "$s6Sentry0A13ReplayOptionsC17onErrorSampleRateSfvs", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "set" + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } - ] + ], + "declKind": "Constructor", + "usr": "s:6Sentry0A21TransactionNameSourceO8rawValueACSgSi_tcfc", + "mangledName": "$s6Sentry0A21TransactionNameSourceO8rawValueACSgSi_tcfc", + "moduleName": "Sentry", + "init_kind": "Designated" + }, + { + "kind": "TypeAlias", + "name": "RawValue", + "printedName": "RawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "TypeAlias", + "usr": "s:6Sentry0A21TransactionNameSourceO8RawValuea", + "mangledName": "$s6Sentry0A21TransactionNameSourceO8RawValuea", + "moduleName": "Sentry" }, { "kind": "Var", - "name": "maskAllText", - "printedName": "maskAllText", + "name": "rawValue", + "printedName": "rawValue", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(py)maskAllText", - "mangledName": "$s6Sentry0A13ReplayOptionsC11maskAllTextSbvp", + "usr": "s:6Sentry0A21TransactionNameSourceO8rawValueSivp", + "mangledName": "$s6Sentry0A21TransactionNameSourceO8rawValueSivp", "moduleName": "Sentry", - "objc_name": "maskAllText", - "declAttributes": [ - "ObjC", - "Final", - "HasStorage" - ], - "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -44524,57 +43582,97 @@ "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)maskAllText", - "mangledName": "$s6Sentry0A13ReplayOptionsC11maskAllTextSbvg", + "usr": "s:6Sentry0A21TransactionNameSourceO8rawValueSivg", + "mangledName": "$s6Sentry0A21TransactionNameSourceO8rawValueSivg", "moduleName": "Sentry", - "implicit": true, - "objc_name": "maskAllText", - "declAttributes": [ - "Final", - "ObjC" - ], "accessorKind": "get" - }, + } + ] + } + ], + "declKind": "Enum", + "usr": "c:@M@Sentry@E@SentryTransactionNameSource", + "mangledName": "$s6Sentry0A21TransactionNameSourceO", + "moduleName": "Sentry", + "declAttributes": [ + "ObjC" + ], + "enumRawTypeName": "Int", + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "RawRepresentable", + "printedName": "RawRepresentable", + "children": [ { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeWitness", + "name": "RawValue", + "printedName": "RawValue", "children": [ { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "kind": "TypeNameAlias", + "name": "RawValue", + "printedName": "Sentry.SentryTransactionNameSource.RawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ] } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)setMaskAllText:", - "mangledName": "$s6Sentry0A13ReplayOptionsC11maskAllTextSbvs", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "set" + ] } - ] - }, + ], + "usr": "s:SY", + "mangledName": "$sSY" + } + ] + }, + { + "kind": "TypeDecl", + "name": "SentryRedactOptions", + "printedName": "SentryRedactOptions", + "children": [ { "kind": "Var", - "name": "maskAllImages", - "printedName": "maskAllImages", + "name": "maskAllText", + "printedName": "maskAllText", "children": [ { "kind": "TypeNominal", @@ -44584,16 +43682,13 @@ } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(py)maskAllImages", - "mangledName": "$s6Sentry0A13ReplayOptionsC13maskAllImagesSbvp", + "usr": "c:@M@Sentry@objc(pl)SentryRedactOptions(py)maskAllText", + "mangledName": "$s6Sentry0A13RedactOptionsP11maskAllTextSbvp", "moduleName": "Sentry", - "objc_name": "maskAllImages", + "protocolReq": true, "declAttributes": [ - "ObjC", - "Final", - "HasStorage" + "ObjC" ], - "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -44608,120 +43703,63 @@ } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)maskAllImages", - "mangledName": "$s6Sentry0A13ReplayOptionsC13maskAllImagesSbvg", + "usr": "c:@M@Sentry@objc(pl)SentryRedactOptions(im)maskAllText", + "mangledName": "$s6Sentry0A13RedactOptionsP11maskAllTextSbvg", "moduleName": "Sentry", - "implicit": true, - "objc_name": "maskAllImages", + "genericSig": "", + "protocolReq": true, "declAttributes": [ - "Final", "ObjC" ], + "reqNewWitnessTableEntry": true, "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)setMaskAllImages:", - "mangledName": "$s6Sentry0A13ReplayOptionsC13maskAllImagesSbvs", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "set" } ] }, { "kind": "Var", - "name": "quality", - "printedName": "quality", + "name": "maskAllImages", + "printedName": "maskAllImages", "children": [ { "kind": "TypeNominal", - "name": "SentryReplayQuality", - "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality", - "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(py)quality", - "mangledName": "$s6Sentry0A13ReplayOptionsC7qualityAC0aB7QualityOvp", + "usr": "c:@M@Sentry@objc(pl)SentryRedactOptions(py)maskAllImages", + "mangledName": "$s6Sentry0A13RedactOptionsP13maskAllImagesSbvp", "moduleName": "Sentry", + "protocolReq": true, "declAttributes": [ - "Final", - "ObjC", - "HasStorage" + "ObjC" ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryReplayQuality", - "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality", - "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO" - } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)quality", - "mangledName": "$s6Sentry0A13ReplayOptionsC7qualityAC0aB7QualityOvg", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "get" - }, + "accessors": [ { "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "SentryReplayQuality", - "printedName": "Sentry.SentryReplayOptions.SentryReplayQuality", - "usr": "s:6Sentry0A13ReplayOptionsC0aB7QualityO" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)setQuality:", - "mangledName": "$s6Sentry0A13ReplayOptionsC7qualityAC0aB7QualityOvs", + "usr": "c:@M@Sentry@objc(pl)SentryRedactOptions(im)maskAllImages", + "mangledName": "$s6Sentry0A13RedactOptionsP13maskAllImagesSbvg", "moduleName": "Sentry", - "implicit": true, + "genericSig": "", + "protocolReq": true, "declAttributes": [ - "Final", "ObjC" ], - "accessorKind": "set" + "reqNewWitnessTableEntry": true, + "accessorKind": "get" } ] }, @@ -44773,16 +43811,13 @@ } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(py)maskedViewClasses", - "mangledName": "$s6Sentry0A13ReplayOptionsC17maskedViewClassesSayyXlXpGvp", + "usr": "c:@M@Sentry@objc(pl)SentryRedactOptions(py)maskedViewClasses", + "mangledName": "$s6Sentry0A13RedactOptionsP17maskedViewClassesSayyXlXpGvp", "moduleName": "Sentry", - "objc_name": "maskedViewClasses", + "protocolReq": true, "declAttributes": [ - "ObjC", - "Final", - "HasStorage" + "ObjC" ], - "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -44832,79 +43867,16 @@ } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)maskedViewClasses", - "mangledName": "$s6Sentry0A13ReplayOptionsC17maskedViewClassesSayyXlXpGvg", + "usr": "c:@M@Sentry@objc(pl)SentryRedactOptions(im)maskedViewClasses", + "mangledName": "$s6Sentry0A13RedactOptionsP17maskedViewClassesSayyXlXpGvg", "moduleName": "Sentry", - "implicit": true, - "objc_name": "maskedViewClasses", + "genericSig": "", + "protocolReq": true, "declAttributes": [ - "Final", "ObjC" ], + "reqNewWitnessTableEntry": true, "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.AnyClass]", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyClass", - "printedName": "Swift.AnyClass", - "children": [ - { - "kind": "TypeNominal", - "name": "ExistentialMetatype", - "printedName": "any Swift.AnyObject.Type", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Swift.AnyObject", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Builtin.AnyObject", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "AnyObject" - } - ] - } - ] - } - ] - } - ] - } - ], - "usr": "s:Sa" - } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)setMaskedViewClasses:", - "mangledName": "$s6Sentry0A13ReplayOptionsC17maskedViewClassesSayyXlXpGvs", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "set" } ] }, @@ -44956,16 +43928,13 @@ } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(py)unmaskedViewClasses", - "mangledName": "$s6Sentry0A13ReplayOptionsC19unmaskedViewClassesSayyXlXpGvp", + "usr": "c:@M@Sentry@objc(pl)SentryRedactOptions(py)unmaskedViewClasses", + "mangledName": "$s6Sentry0A13RedactOptionsP19unmaskedViewClassesSayyXlXpGvp", "moduleName": "Sentry", - "objc_name": "unmaskedViewClasses", + "protocolReq": true, "declAttributes": [ - "ObjC", - "Final", - "HasStorage" + "ObjC" ], - "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -45015,104 +43984,361 @@ } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)unmaskedViewClasses", - "mangledName": "$s6Sentry0A13ReplayOptionsC19unmaskedViewClassesSayyXlXpGvg", + "usr": "c:@M@Sentry@objc(pl)SentryRedactOptions(im)unmaskedViewClasses", + "mangledName": "$s6Sentry0A13RedactOptionsP19unmaskedViewClassesSayyXlXpGvg", "moduleName": "Sentry", - "implicit": true, - "objc_name": "unmaskedViewClasses", + "genericSig": "", + "protocolReq": true, "declAttributes": [ - "Final", "ObjC" ], + "reqNewWitnessTableEntry": true, "accessorKind": "get" - }, + } + ] + } + ], + "declKind": "Protocol", + "usr": "c:@M@Sentry@objc(pl)SentryRedactOptions", + "mangledName": "$s6Sentry0A13RedactOptionsP", + "moduleName": "Sentry", + "genericSig": "", + "declAttributes": [ + "ObjC" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "SentryLevel", + "printedName": "SentryLevel", + "children": [ + { + "kind": "Var", + "name": "none", + "printedName": "none", + "children": [ { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryLevel.Type) -> Sentry.SentryLevel", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "SentryLevel", + "printedName": "Sentry.SentryLevel", + "usr": "c:@M@Sentry@E@SentryLevel" }, { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.AnyClass]", + "name": "Metatype", + "printedName": "Sentry.SentryLevel.Type", "children": [ { - "kind": "TypeNameAlias", - "name": "AnyClass", - "printedName": "Swift.AnyClass", - "children": [ - { - "kind": "TypeNominal", - "name": "ExistentialMetatype", - "printedName": "any Swift.AnyObject.Type", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Swift.AnyObject", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Builtin.AnyObject", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "AnyObject" - } - ] - } - ] - } - ] - } - ] + "kind": "TypeNominal", + "name": "SentryLevel", + "printedName": "Sentry.SentryLevel", + "usr": "c:@M@Sentry@E@SentryLevel" } - ], - "usr": "s:Sa" + ] } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)setUnmaskedViewClasses:", - "mangledName": "$s6Sentry0A13ReplayOptionsC19unmaskedViewClassesSayyXlXpGvs", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "set" + ] } + ], + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryLevel@kSentryLevelNone", + "mangledName": "$s6Sentry0A5LevelO4noneyA2CmF", + "moduleName": "Sentry", + "objc_name": "kSentryLevelNone", + "declAttributes": [ + "ObjC" ] }, { "kind": "Var", - "name": "enableViewRendererV2", - "printedName": "enableViewRendererV2", + "name": "debug", + "printedName": "debug", "children": [ { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryLevel.Type) -> Sentry.SentryLevel", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryLevel", + "printedName": "Sentry.SentryLevel", + "usr": "c:@M@Sentry@E@SentryLevel" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryLevel.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryLevel", + "printedName": "Sentry.SentryLevel", + "usr": "c:@M@Sentry@E@SentryLevel" + } + ] + } + ] } ], - "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(py)enableViewRendererV2", - "mangledName": "$s6Sentry0A13ReplayOptionsC20enableViewRendererV2Sbvp", + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryLevel@kSentryLevelDebug", + "mangledName": "$s6Sentry0A5LevelO5debugyA2CmF", "moduleName": "Sentry", + "objc_name": "kSentryLevelDebug", "declAttributes": [ - "Final", - "ObjC", - "HasStorage" + "ObjC" + ] + }, + { + "kind": "Var", + "name": "info", + "printedName": "info", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryLevel.Type) -> Sentry.SentryLevel", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryLevel", + "printedName": "Sentry.SentryLevel", + "usr": "c:@M@Sentry@E@SentryLevel" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryLevel.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryLevel", + "printedName": "Sentry.SentryLevel", + "usr": "c:@M@Sentry@E@SentryLevel" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryLevel@kSentryLevelInfo", + "mangledName": "$s6Sentry0A5LevelO4infoyA2CmF", + "moduleName": "Sentry", + "objc_name": "kSentryLevelInfo", + "declAttributes": [ + "ObjC" + ] + }, + { + "kind": "Var", + "name": "warning", + "printedName": "warning", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryLevel.Type) -> Sentry.SentryLevel", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryLevel", + "printedName": "Sentry.SentryLevel", + "usr": "c:@M@Sentry@E@SentryLevel" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryLevel.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryLevel", + "printedName": "Sentry.SentryLevel", + "usr": "c:@M@Sentry@E@SentryLevel" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryLevel@kSentryLevelWarning", + "mangledName": "$s6Sentry0A5LevelO7warningyA2CmF", + "moduleName": "Sentry", + "objc_name": "kSentryLevelWarning", + "declAttributes": [ + "ObjC" + ] + }, + { + "kind": "Var", + "name": "error", + "printedName": "error", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryLevel.Type) -> Sentry.SentryLevel", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryLevel", + "printedName": "Sentry.SentryLevel", + "usr": "c:@M@Sentry@E@SentryLevel" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryLevel.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryLevel", + "printedName": "Sentry.SentryLevel", + "usr": "c:@M@Sentry@E@SentryLevel" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryLevel@kSentryLevelError", + "mangledName": "$s6Sentry0A5LevelO5erroryA2CmF", + "moduleName": "Sentry", + "objc_name": "kSentryLevelError", + "declAttributes": [ + "ObjC" + ] + }, + { + "kind": "Var", + "name": "fatal", + "printedName": "fatal", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryLevel.Type) -> Sentry.SentryLevel", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryLevel", + "printedName": "Sentry.SentryLevel", + "usr": "c:@M@Sentry@E@SentryLevel" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "Sentry.SentryLevel.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryLevel", + "printedName": "Sentry.SentryLevel", + "usr": "c:@M@Sentry@E@SentryLevel" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "c:@M@Sentry@E@SentryLevel@kSentryLevelFatal", + "mangledName": "$s6Sentry0A5LevelO5fatalyA2CmF", + "moduleName": "Sentry", + "objc_name": "kSentryLevelFatal", + "declAttributes": [ + "ObjC" + ] + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(rawValue:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryLevel?", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryLevel", + "printedName": "Sentry.SentryLevel", + "usr": "c:@M@Sentry@E@SentryLevel" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" + } + ], + "declKind": "Constructor", + "usr": "s:6Sentry0A5LevelO8rawValueACSgSu_tcfc", + "mangledName": "$s6Sentry0A5LevelO8rawValueACSgSu_tcfc", + "moduleName": "Sentry", + "init_kind": "Designated" + }, + { + "kind": "TypeAlias", + "name": "RawValue", + "printedName": "RawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" + } + ], + "declKind": "TypeAlias", + "usr": "s:6Sentry0A5LevelO8RawValuea", + "mangledName": "$s6Sentry0A5LevelO8RawValuea", + "moduleName": "Sentry" + }, + { + "kind": "Var", + "name": "rawValue", + "printedName": "rawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" + } ], - "hasStorage": true, + "declKind": "Var", + "usr": "s:6Sentry0A5LevelO8rawValueSuvp", + "mangledName": "$s6Sentry0A5LevelO8rawValueSuvp", + "moduleName": "Sentry", "accessors": [ { "kind": "Accessor", @@ -45121,74 +44347,36 @@ "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)enableViewRendererV2", - "mangledName": "$s6Sentry0A13ReplayOptionsC20enableViewRendererV2Sbvg", + "usr": "s:6Sentry0A5LevelO8rawValueSuvg", + "mangledName": "$s6Sentry0A5LevelO8rawValueSuvg", "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)setEnableViewRendererV2:", - "mangledName": "$s6Sentry0A13ReplayOptionsC20enableViewRendererV2Sbvs", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "set" } ] }, { "kind": "Var", - "name": "enableFastViewRendering", - "printedName": "enableFastViewRendering", + "name": "description", + "printedName": "description", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(py)enableFastViewRendering", - "mangledName": "$s6Sentry0A13ReplayOptionsC23enableFastViewRenderingSbvp", + "usr": "s:6Sentry0A5LevelO11descriptionSSvp", + "mangledName": "$s6Sentry0A5LevelO11descriptionSSvp", "moduleName": "Sentry", - "declAttributes": [ - "Final", - "ObjC", - "HasStorage" - ], - "hasStorage": true, + "isFromExtension": true, "accessors": [ { "kind": "Accessor", @@ -45197,165 +44385,30 @@ "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)enableFastViewRendering", - "mangledName": "$s6Sentry0A13ReplayOptionsC23enableFastViewRenderingSbvg", + "usr": "s:6Sentry0A5LevelO11descriptionSSvg", + "mangledName": "$s6Sentry0A5LevelO11descriptionSSvg", "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], + "isFromExtension": true, "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)setEnableFastViewRendering:", - "mangledName": "$s6Sentry0A13ReplayOptionsC23enableFastViewRenderingSbvs", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "set" } ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init()", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryReplayOptions", - "printedName": "Sentry.SentryReplayOptions", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions" - } - ], - "declKind": "Constructor", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)init", - "mangledName": "$s6Sentry0A13ReplayOptionsCACycfc", - "moduleName": "Sentry", - "overriding": true, - "objc_name": "init", - "declAttributes": [ - "ObjC", - "Dynamic", - "Override" - ], - "init_kind": "Convenience" - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(sessionSampleRate:onErrorSampleRate:maskAllText:maskAllImages:enableViewRendererV2:enableFastViewRendering:)", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryReplayOptions", - "printedName": "Sentry.SentryReplayOptions", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions" - }, - { - "kind": "TypeNominal", - "name": "Float", - "printedName": "Swift.Float", - "hasDefaultArg": true, - "usr": "s:Sf" - }, - { - "kind": "TypeNominal", - "name": "Float", - "printedName": "Swift.Float", - "hasDefaultArg": true, - "usr": "s:Sf" - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "hasDefaultArg": true, - "usr": "s:Sb" - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "hasDefaultArg": true, - "usr": "s:Sb" - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "hasDefaultArg": true, - "usr": "s:Sb" - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "hasDefaultArg": true, - "usr": "s:Sb" - } - ], - "declKind": "Constructor", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions(im)initWithSessionSampleRate:onErrorSampleRate:maskAllText:maskAllImages:enableViewRendererV2:enableFastViewRendering:", - "mangledName": "$s6Sentry0A13ReplayOptionsC17sessionSampleRate07onErroreF011maskAllText0iJ6Images20enableViewRendererV20m4FastN9RenderingACSf_SfS4btcfc", - "moduleName": "Sentry", - "objc_name": "initWithSessionSampleRate:onErrorSampleRate:maskAllText:maskAllImages:enableViewRendererV2:enableFastViewRendering:", - "declAttributes": [ - "ObjC" - ], - "init_kind": "Convenience" } ], - "declKind": "Class", - "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions", - "mangledName": "$s6Sentry0A13ReplayOptionsC", + "declKind": "Enum", + "usr": "c:@M@Sentry@E@SentryLevel", + "mangledName": "$s6Sentry0A5LevelO", "moduleName": "Sentry", "declAttributes": [ - "Final", - "ObjCMembers", "ObjC" ], - "superclassUsr": "c:objc(cs)NSObject", - "hasMissingDesignatedInitializers": true, - "inheritsConvenienceInitializers": true, - "superclassNames": [ - "ObjectiveC.NSObject" - ], + "enumRawTypeName": "UInt", "conformances": [ - { - "kind": "Conformance", - "name": "SentryRedactOptions", - "printedName": "SentryRedactOptions", - "usr": "c:@M@Sentry@objc(pl)SentryRedactOptions", - "mangledName": "$s6Sentry0A13RedactOptionsP" - }, { "kind": "Conformance", "name": "Copyable", @@ -45372,9 +44425,10 @@ }, { "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" }, { "kind": "Conformance", @@ -45392,288 +44446,60 @@ }, { "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - } - ] - }, - { - "kind": "TypeDecl", - "name": "SentryUserFeedbackConfiguration", - "printedName": "SentryUserFeedbackConfiguration", - "children": [ - { - "kind": "Var", - "name": "animations", - "printedName": "animations", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)animations", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC10animationsSbvp", - "moduleName": "Sentry", - "declAttributes": [ - "Final", - "ObjC", - "HasStorage" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)animations", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC10animationsSbvg", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setAnimations:", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC10animationsSbvs", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "set" - } - ] - }, - { - "kind": "Var", - "name": "configureWidget", - "printedName": "configureWidget", + "name": "RawRepresentable", + "printedName": "RawRepresentable", "children": [ { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.SentryUserFeedbackWidgetConfiguration) -> Swift.Void)?", + "kind": "TypeWitness", + "name": "RawValue", + "printedName": "RawValue", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryUserFeedbackWidgetConfiguration) -> Swift.Void", + "kind": "TypeNameAlias", + "name": "RawValue", + "printedName": "Sentry.SentryLevel.RawValue", "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, { "kind": "TypeNominal", - "name": "SentryUserFeedbackWidgetConfiguration", - "printedName": "Sentry.SentryUserFeedbackWidgetConfiguration", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackWidgetConfiguration" + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" } ] } - ], - "usr": "s:Sq" + ] } ], - "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)configureWidget", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC15configureWidgetyAA0abcfD0CcSgvp", - "moduleName": "Sentry", - "declAttributes": [ - "HasInitialValue", - "Final", - "ObjC", - "HasStorage" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.SentryUserFeedbackWidgetConfiguration) -> Swift.Void)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryUserFeedbackWidgetConfiguration) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "SentryUserFeedbackWidgetConfiguration", - "printedName": "Sentry.SentryUserFeedbackWidgetConfiguration", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackWidgetConfiguration" - } - ] - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)configureWidget", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC15configureWidgetyAA0abcfD0CcSgvg", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.SentryUserFeedbackWidgetConfiguration) -> Swift.Void)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryUserFeedbackWidgetConfiguration) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "SentryUserFeedbackWidgetConfiguration", - "printedName": "Sentry.SentryUserFeedbackWidgetConfiguration", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackWidgetConfiguration" - } - ] - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setConfigureWidget:", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC15configureWidgetyAA0abcfD0CcSgvs", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "set" - } - ] - }, + "usr": "s:SY", + "mangledName": "$sSY" + } + ] + }, + { + "kind": "TypeDecl", + "name": "SentryUIViewControllerDescriptor", + "printedName": "SentryUIViewControllerDescriptor", + "children": [ { "kind": "Var", - "name": "useShakeGesture", - "printedName": "useShakeGesture", + "name": "sentryName", + "printedName": "sentryName", "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)useShakeGesture", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC15useShakeGestureSbvp", + "usr": "c:@M@Sentry@objc(pl)SentryUIViewControllerDescriptor(py)sentryName", + "mangledName": "$s6Sentry0A26UIViewControllerDescriptorP10sentryNameSSvp", "moduleName": "Sentry", + "protocolReq": true, "declAttributes": [ - "Final", - "ObjC", - "HasStorage" + "ObjC" ], - "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -45682,56 +44508,66 @@ "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)useShakeGesture", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC15useShakeGestureSbvg", + "usr": "c:@M@Sentry@objc(pl)SentryUIViewControllerDescriptor(im)sentryName", + "mangledName": "$s6Sentry0A26UIViewControllerDescriptorP10sentryNameSSvg", "moduleName": "Sentry", - "implicit": true, + "genericSig": "", + "protocolReq": true, "declAttributes": [ - "Final", "ObjC" ], + "reqNewWitnessTableEntry": true, "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setUseShakeGesture:", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC15useShakeGestureSbvs", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "set" } ] + } + ], + "declKind": "Protocol", + "usr": "c:@M@Sentry@objc(pl)SentryUIViewControllerDescriptor", + "mangledName": "$s6Sentry0A26UIViewControllerDescriptorP", + "moduleName": "Sentry", + "genericSig": "", + "declAttributes": [ + "ObjC" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" }, + { + "kind": "Conformance", + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" + } + ] + }, + { + "kind": "TypeDecl", + "name": "SentryExperimentalOptions", + "printedName": "SentryExperimentalOptions", + "children": [ { "kind": "Var", - "name": "showFormForScreenshots", - "printedName": "showFormForScreenshots", + "name": "enableUnhandledCPPExceptionsV2", + "printedName": "enableUnhandledCPPExceptionsV2", "children": [ { "kind": "TypeNominal", @@ -45741,8 +44577,8 @@ } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)showFormForScreenshots", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC22showFormForScreenshotsSbvp", + "usr": "c:@M@Sentry@objc(cs)SentryExperimentalOptions(py)enableUnhandledCPPExceptionsV2", + "mangledName": "$s6Sentry0A19ExperimentalOptionsC30enableUnhandledCPPExceptionsV2Sbvp", "moduleName": "Sentry", "declAttributes": [ "Final", @@ -45764,8 +44600,8 @@ } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)showFormForScreenshots", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC22showFormForScreenshotsSbvg", + "usr": "c:@M@Sentry@objc(cs)SentryExperimentalOptions(im)enableUnhandledCPPExceptionsV2", + "mangledName": "$s6Sentry0A19ExperimentalOptionsC30enableUnhandledCPPExceptionsV2Sbvg", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -45792,8 +44628,8 @@ } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setShowFormForScreenshots:", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC22showFormForScreenshotsSbvs", + "usr": "c:@M@Sentry@objc(cs)SentryExperimentalOptions(im)setEnableUnhandledCPPExceptionsV2:", + "mangledName": "$s6Sentry0A19ExperimentalOptionsC30enableUnhandledCPPExceptionsV2Sbvs", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -45806,30 +44642,21 @@ }, { "kind": "Var", - "name": "customButton", - "printedName": "customButton", + "name": "enableSessionReplayInUnreliableEnvironment", + "printedName": "enableSessionReplayInUnreliableEnvironment", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "UIKit.UIButton?", - "children": [ - { - "kind": "TypeNominal", - "name": "UIButton", - "printedName": "UIKit.UIButton", - "usr": "c:objc(cs)UIButton" - } - ], - "usr": "s:Sq" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)customButton", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC12customButtonSo8UIButtonCSgvp", + "usr": "c:@M@Sentry@objc(cs)SentryExperimentalOptions(py)enableSessionReplayInUnreliableEnvironment", + "mangledName": "$s6Sentry0A19ExperimentalOptionsC42enableSessionReplayInUnreliableEnvironmentSbvp", "moduleName": "Sentry", "declAttributes": [ - "HasInitialValue", "Final", "ObjC", "HasStorage" @@ -45843,22 +44670,14 @@ "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "UIKit.UIButton?", - "children": [ - { - "kind": "TypeNominal", - "name": "UIButton", - "printedName": "UIKit.UIButton", - "usr": "c:objc(cs)UIButton" - } - ], - "usr": "s:Sq" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)customButton", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC12customButtonSo8UIButtonCSgvg", + "usr": "c:@M@Sentry@objc(cs)SentryExperimentalOptions(im)enableSessionReplayInUnreliableEnvironment", + "mangledName": "$s6Sentry0A19ExperimentalOptionsC42enableSessionReplayInUnreliableEnvironmentSbvg", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -45879,22 +44698,14 @@ }, { "kind": "TypeNominal", - "name": "Optional", - "printedName": "UIKit.UIButton?", - "children": [ - { - "kind": "TypeNominal", - "name": "UIButton", - "printedName": "UIKit.UIButton", - "usr": "c:objc(cs)UIButton" - } - ], - "usr": "s:Sq" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setCustomButton:", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC12customButtonSo8UIButtonCSgvs", + "usr": "c:@M@Sentry@objc(cs)SentryExperimentalOptions(im)setEnableSessionReplayInUnreliableEnvironment:", + "mangledName": "$s6Sentry0A19ExperimentalOptionsC42enableSessionReplayInUnreliableEnvironmentSbvs", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -45906,344 +44717,131 @@ ] }, { - "kind": "Var", - "name": "configureForm", - "printedName": "configureForm", + "kind": "Constructor", + "name": "init", + "printedName": "init()", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.SentryUserFeedbackFormConfiguration) -> Swift.Void)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryUserFeedbackFormConfiguration) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "SentryUserFeedbackFormConfiguration", - "printedName": "Sentry.SentryUserFeedbackFormConfiguration", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackFormConfiguration" - } - ] - } - ], - "usr": "s:Sq" + "name": "SentryExperimentalOptions", + "printedName": "Sentry.SentryExperimentalOptions", + "usr": "c:@M@Sentry@objc(cs)SentryExperimentalOptions" } ], - "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)configureForm", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC13configureFormyAA0abcfD0CcSgvp", + "declKind": "Constructor", + "usr": "c:@M@Sentry@objc(cs)SentryExperimentalOptions(im)init", + "mangledName": "$s6Sentry0A19ExperimentalOptionsCACycfc", "moduleName": "Sentry", + "overriding": true, + "objc_name": "init", "declAttributes": [ - "HasInitialValue", - "Final", "ObjC", - "HasStorage" + "Dynamic", + "Override" ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.SentryUserFeedbackFormConfiguration) -> Swift.Void)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryUserFeedbackFormConfiguration) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "SentryUserFeedbackFormConfiguration", - "printedName": "Sentry.SentryUserFeedbackFormConfiguration", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackFormConfiguration" - } - ] - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)configureForm", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC13configureFormyAA0abcfD0CcSgvg", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.SentryUserFeedbackFormConfiguration) -> Swift.Void)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryUserFeedbackFormConfiguration) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "SentryUserFeedbackFormConfiguration", - "printedName": "Sentry.SentryUserFeedbackFormConfiguration", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackFormConfiguration" - } - ] - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setConfigureForm:", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC13configureFormyAA0abcfD0CcSgvs", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "set" - } - ] + "init_kind": "Designated" + } + ], + "declKind": "Class", + "usr": "c:@M@Sentry@objc(cs)SentryExperimentalOptions", + "mangledName": "$s6Sentry0A19ExperimentalOptionsC", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjCMembers", + "ObjC" + ], + "superclassUsr": "c:objc(cs)NSObject", + "inheritsConvenienceInitializers": true, + "superclassNames": [ + "ObjectiveC.NSObject" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" }, { - "kind": "Var", - "name": "tags", - "printedName": "tags", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "[Swift.String : Any]?", - "children": [ - { - "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "usr": "s:SD" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)tags", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC4tagsSDySSypGSgvp", - "moduleName": "Sentry", - "declAttributes": [ - "HasInitialValue", - "Final", - "ObjC", - "HasStorage" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "[Swift.String : Any]?", - "children": [ - { - "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "usr": "s:SD" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)tags", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC4tagsSDySSypGSgvg", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "[Swift.String : Any]?", - "children": [ - { - "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "usr": "s:SD" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setTags:", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC4tagsSDySSypGSgvs", - "moduleName": "Sentry", - "implicit": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "set" - } - ] + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" + }, + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" }, + { + "kind": "Conformance", + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "Options", + "printedName": "Options", + "children": [ { "kind": "Var", - "name": "onFormOpen", - "printedName": "onFormOpen", + "name": "dsn", + "printedName": "dsn", "children": [ { "kind": "TypeNominal", "name": "Optional", - "printedName": "(() -> Swift.Void)?", + "printedName": "Swift.String?", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "() -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)onFormOpen", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC10onFormOpenyycSgvp", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)dsn", + "mangledName": "$s6Sentry7OptionsC3dsnSSSgvp", "moduleName": "Sentry", "declAttributes": [ "HasInitialValue", @@ -46261,39 +44859,21 @@ { "kind": "TypeNominal", "name": "Optional", - "printedName": "(() -> Swift.Void)?", + "printedName": "Swift.String?", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "() -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)onFormOpen", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC10onFormOpenyycSgvg", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)dsn", + "mangledName": "$s6Sentry7OptionsC3dsnSSSgvg", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -46315,39 +44895,21 @@ { "kind": "TypeNominal", "name": "Optional", - "printedName": "(() -> Swift.Void)?", + "printedName": "Swift.String?", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "() -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setOnFormOpen:", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC10onFormOpenyycSgvs", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setDsn:", + "mangledName": "$s6Sentry7OptionsC3dsnSSSgvs", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -46360,45 +44922,27 @@ }, { "kind": "Var", - "name": "onFormClose", - "printedName": "onFormClose", + "name": "parsedDsn", + "printedName": "parsedDsn", "children": [ { "kind": "TypeNominal", "name": "Optional", - "printedName": "(() -> Swift.Void)?", + "printedName": "Sentry.SentryDsn?", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "() -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] + "kind": "TypeNominal", + "name": "SentryDsn", + "printedName": "Sentry.SentryDsn", + "usr": "c:objc(cs)SentryDsn" } ], "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)onFormClose", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC11onFormCloseyycSgvp", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)parsedDsn", + "mangledName": "$s6Sentry7OptionsC9parsedDsnSo0aD0CSgvp", "moduleName": "Sentry", "declAttributes": [ "HasInitialValue", @@ -46416,39 +44960,21 @@ { "kind": "TypeNominal", "name": "Optional", - "printedName": "(() -> Swift.Void)?", + "printedName": "Sentry.SentryDsn?", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "() -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] + "kind": "TypeNominal", + "name": "SentryDsn", + "printedName": "Sentry.SentryDsn", + "usr": "c:objc(cs)SentryDsn" } ], "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)onFormClose", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC11onFormCloseyycSgvg", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)parsedDsn", + "mangledName": "$s6Sentry7OptionsC9parsedDsnSo0aD0CSgvg", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -46470,39 +44996,21 @@ { "kind": "TypeNominal", "name": "Optional", - "printedName": "(() -> Swift.Void)?", + "printedName": "Sentry.SentryDsn?", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "() -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] + "kind": "TypeNominal", + "name": "SentryDsn", + "printedName": "Sentry.SentryDsn", + "usr": "c:objc(cs)SentryDsn" } ], "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setOnFormClose:", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC11onFormCloseyycSgvs", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setParsedDsn:", + "mangledName": "$s6Sentry7OptionsC9parsedDsnSo0aD0CSgvs", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -46515,62 +45023,21 @@ }, { "kind": "Var", - "name": "onSubmitSuccess", - "printedName": "onSubmitSuccess", + "name": "debug", + "printedName": "debug", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "(([Swift.String : Any]) -> Swift.Void)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "([Swift.String : Any]) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "usr": "s:SD" - } - ] - } - ], - "usr": "s:Sq" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)onSubmitSuccess", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC15onSubmitSuccessySDySSypGcSgvp", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)debug", + "mangledName": "$s6Sentry7OptionsC5debugSbvp", "moduleName": "Sentry", "declAttributes": [ - "HasInitialValue", "Final", "ObjC", "HasStorage" @@ -46584,54 +45051,14 @@ "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "(([Swift.String : Any]) -> Swift.Void)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "([Swift.String : Any]) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "usr": "s:SD" - } - ] - } - ], - "usr": "s:Sq" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)onSubmitSuccess", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC15onSubmitSuccessySDySSypGcSgvg", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)debug", + "mangledName": "$s6Sentry7OptionsC5debugSbvg", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -46652,54 +45079,14 @@ }, { "kind": "TypeNominal", - "name": "Optional", - "printedName": "(([Swift.String : Any]) -> Swift.Void)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "([Swift.String : Any]) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" - } - ], - "usr": "s:SD" - } - ] - } - ], - "usr": "s:Sq" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setOnSubmitSuccess:", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC15onSubmitSuccessySDySSypGcSgvs", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setDebug:", + "mangledName": "$s6Sentry7OptionsC5debugSbvs", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -46712,49 +45099,21 @@ }, { "kind": "Var", - "name": "onSubmitError", - "printedName": "onSubmitError", + "name": "diagnosticLevel", + "printedName": "diagnosticLevel", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "((any Swift.Error) -> Swift.Void)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(any Swift.Error) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Error", - "printedName": "any Swift.Error", - "usr": "s:s5ErrorP" - } - ] - } - ], - "usr": "s:Sq" + "name": "SentryLevel", + "printedName": "Sentry.SentryLevel", + "usr": "c:@M@Sentry@E@SentryLevel" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)onSubmitError", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC13onSubmitErrorys0G0_pcSgvp", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)diagnosticLevel", + "mangledName": "$s6Sentry7OptionsC15diagnosticLevelAA0aD0Ovp", "moduleName": "Sentry", "declAttributes": [ - "HasInitialValue", "Final", "ObjC", "HasStorage" @@ -46768,41 +45127,14 @@ "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "((any Swift.Error) -> Swift.Void)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(any Swift.Error) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Error", - "printedName": "any Swift.Error", - "usr": "s:s5ErrorP" - } - ] - } - ], - "usr": "s:Sq" + "name": "SentryLevel", + "printedName": "Sentry.SentryLevel", + "usr": "c:@M@Sentry@E@SentryLevel" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)onSubmitError", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC13onSubmitErrorys0G0_pcSgvg", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)diagnosticLevel", + "mangledName": "$s6Sentry7OptionsC15diagnosticLevelAA0aD0Ovg", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -46823,41 +45155,14 @@ }, { "kind": "TypeNominal", - "name": "Optional", - "printedName": "((any Swift.Error) -> Swift.Void)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(any Swift.Error) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Error", - "printedName": "any Swift.Error", - "usr": "s:s5ErrorP" - } - ] - } - ], - "usr": "s:Sq" + "name": "SentryLevel", + "printedName": "Sentry.SentryLevel", + "usr": "c:@M@Sentry@E@SentryLevel" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setOnSubmitError:", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC13onSubmitErrorys0G0_pcSgvs", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setDiagnosticLevel:", + "mangledName": "$s6Sentry7OptionsC15diagnosticLevelAA0aD0Ovs", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -46870,46 +45175,27 @@ }, { "kind": "Var", - "name": "configureTheme", - "printedName": "configureTheme", + "name": "releaseName", + "printedName": "releaseName", "children": [ { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "((Sentry.SentryUserFeedbackThemeConfiguration) -> Swift.Void)?", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryUserFeedbackThemeConfiguration) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "SentryUserFeedbackThemeConfiguration", - "printedName": "Sentry.SentryUserFeedbackThemeConfiguration", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackThemeConfiguration" - } - ] + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)configureTheme", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC14configureThemeyAA0abcfD0CcSgvp", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)releaseName", + "mangledName": "$s6Sentry7OptionsC11releaseNameSSSgvp", "moduleName": "Sentry", "declAttributes": [ "HasInitialValue", @@ -46927,40 +45213,21 @@ { "kind": "TypeNominal", "name": "Optional", - "printedName": "((Sentry.SentryUserFeedbackThemeConfiguration) -> Swift.Void)?", + "printedName": "Swift.String?", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryUserFeedbackThemeConfiguration) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "SentryUserFeedbackThemeConfiguration", - "printedName": "Sentry.SentryUserFeedbackThemeConfiguration", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackThemeConfiguration" - } - ] + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)configureTheme", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC14configureThemeyAA0abcfD0CcSgvg", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)releaseName", + "mangledName": "$s6Sentry7OptionsC11releaseNameSSSgvg", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -46982,40 +45249,21 @@ { "kind": "TypeNominal", "name": "Optional", - "printedName": "((Sentry.SentryUserFeedbackThemeConfiguration) -> Swift.Void)?", + "printedName": "Swift.String?", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryUserFeedbackThemeConfiguration) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "SentryUserFeedbackThemeConfiguration", - "printedName": "Sentry.SentryUserFeedbackThemeConfiguration", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackThemeConfiguration" - } - ] + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setConfigureTheme:", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC14configureThemeyAA0abcfD0CcSgvs", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setReleaseName:", + "mangledName": "$s6Sentry7OptionsC11releaseNameSSSgvs", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -47028,46 +45276,27 @@ }, { "kind": "Var", - "name": "configureDarkTheme", - "printedName": "configureDarkTheme", + "name": "dist", + "printedName": "dist", "children": [ { "kind": "TypeNominal", "name": "Optional", - "printedName": "((Sentry.SentryUserFeedbackThemeConfiguration) -> Swift.Void)?", + "printedName": "Swift.String?", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryUserFeedbackThemeConfiguration) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "SentryUserFeedbackThemeConfiguration", - "printedName": "Sentry.SentryUserFeedbackThemeConfiguration", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackThemeConfiguration" - } - ] + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(py)configureDarkTheme", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC18configureDarkThemeyAA0abcgD0CcSgvp", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)dist", + "mangledName": "$s6Sentry7OptionsC4distSSSgvp", "moduleName": "Sentry", "declAttributes": [ "HasInitialValue", @@ -47085,40 +45314,21 @@ { "kind": "TypeNominal", "name": "Optional", - "printedName": "((Sentry.SentryUserFeedbackThemeConfiguration) -> Swift.Void)?", + "printedName": "Swift.String?", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryUserFeedbackThemeConfiguration) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "SentryUserFeedbackThemeConfiguration", - "printedName": "Sentry.SentryUserFeedbackThemeConfiguration", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackThemeConfiguration" - } - ] + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)configureDarkTheme", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC18configureDarkThemeyAA0abcgD0CcSgvg", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)dist", + "mangledName": "$s6Sentry7OptionsC4distSSSgvg", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -47140,40 +45350,21 @@ { "kind": "TypeNominal", "name": "Optional", - "printedName": "((Sentry.SentryUserFeedbackThemeConfiguration) -> Swift.Void)?", + "printedName": "Swift.String?", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryUserFeedbackThemeConfiguration) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "SentryUserFeedbackThemeConfiguration", - "printedName": "Sentry.SentryUserFeedbackThemeConfiguration", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackThemeConfiguration" - } - ] + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)setConfigureDarkTheme:", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC18configureDarkThemeyAA0abcgD0CcSgvs", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setDist:", + "mangledName": "$s6Sentry7OptionsC4distSSSgvs", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -47185,363 +45376,172 @@ ] }, { - "kind": "Constructor", - "name": "init", - "printedName": "init()", + "kind": "Var", + "name": "environment", + "printedName": "environment", "children": [ { "kind": "TypeNominal", - "name": "SentryUserFeedbackConfiguration", - "printedName": "Sentry.SentryUserFeedbackConfiguration", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], - "declKind": "Constructor", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration(im)init", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationCACycfc", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)environment", + "mangledName": "$s6Sentry7OptionsC11environmentSSvp", "moduleName": "Sentry", - "overriding": true, - "objc_name": "init", "declAttributes": [ + "Final", "ObjC", - "Dynamic", - "Override" + "HasStorage" ], - "init_kind": "Designated" - } - ], - "declKind": "Class", - "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration", - "mangledName": "$s6Sentry0A25UserFeedbackConfigurationC", - "moduleName": "Sentry", - "declAttributes": [ - "Final", - "ObjCMembers", - "ObjC" - ], - "superclassUsr": "c:objc(cs)NSObject", - "inheritsConvenienceInitializers": true, - "superclassNames": [ - "ObjectiveC.NSObject" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - } - ] - }, - { - "kind": "TypeDecl", - "name": "SentryProfileOptions", - "printedName": "SentryProfileOptions", - "children": [ - { - "kind": "TypeDecl", - "name": "SentryProfileLifecycle", - "printedName": "SentryProfileLifecycle", - "children": [ + "hasStorage": true, + "accessors": [ { - "kind": "Var", - "name": "manual", - "printedName": "manual", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryProfileOptions.SentryProfileLifecycle.Type) -> Sentry.SentryProfileOptions.SentryProfileLifecycle", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryProfileLifecycle", - "printedName": "Sentry.SentryProfileOptions.SentryProfileLifecycle", - "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryProfileOptions.SentryProfileLifecycle.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryProfileLifecycle", - "printedName": "Sentry.SentryProfileOptions.SentryProfileLifecycle", - "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO" - } - ] - } - ] + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], - "declKind": "EnumElement", - "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO6manualyA2EmF", - "mangledName": "$s6Sentry0A14ProfileOptionsC0aB9LifecycleO6manualyA2EmF", + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)environment", + "mangledName": "$s6Sentry7OptionsC11environmentSSvg", "moduleName": "Sentry", + "implicit": true, "declAttributes": [ + "Final", "ObjC" - ] - }, - { - "kind": "Var", - "name": "trace", - "printedName": "trace", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryProfileOptions.SentryProfileLifecycle.Type) -> Sentry.SentryProfileOptions.SentryProfileLifecycle", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryProfileLifecycle", - "printedName": "Sentry.SentryProfileOptions.SentryProfileLifecycle", - "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryProfileOptions.SentryProfileLifecycle.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryProfileLifecycle", - "printedName": "Sentry.SentryProfileOptions.SentryProfileLifecycle", - "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO" - } - ] - } - ] - } ], - "declKind": "EnumElement", - "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO5traceyA2EmF", - "mangledName": "$s6Sentry0A14ProfileOptionsC0aB9LifecycleO5traceyA2EmF", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ] + "accessorKind": "get" }, { - "kind": "Constructor", - "name": "init", - "printedName": "init(rawValue:)", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryProfileOptions.SentryProfileLifecycle?", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryProfileLifecycle", - "printedName": "Sentry.SentryProfileOptions.SentryProfileLifecycle", - "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO" - } - ], - "usr": "s:Sq" + "name": "Void", + "printedName": "()" }, { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], - "declKind": "Constructor", - "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO8rawValueAESgSi_tcfc", - "mangledName": "$s6Sentry0A14ProfileOptionsC0aB9LifecycleO8rawValueAESgSi_tcfc", + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnvironment:", + "mangledName": "$s6Sentry7OptionsC11environmentSSvs", "moduleName": "Sentry", - "init_kind": "Designated" - }, - { - "kind": "TypeAlias", - "name": "RawValue", - "printedName": "RawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" ], - "declKind": "TypeAlias", - "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO8RawValuea", - "mangledName": "$s6Sentry0A14ProfileOptionsC0aB9LifecycleO8RawValuea", - "moduleName": "Sentry" - }, + "accessorKind": "set" + } + ] + }, + { + "kind": "Var", + "name": "enabled", + "printedName": "enabled", + "children": [ { - "kind": "Var", - "name": "rawValue", - "printedName": "rawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Var", - "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO8rawValueSivp", - "mangledName": "$s6Sentry0A14ProfileOptionsC0aB9LifecycleO8rawValueSivp", - "moduleName": "Sentry", - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Accessor", - "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO8rawValueSivg", - "mangledName": "$s6Sentry0A14ProfileOptionsC0aB9LifecycleO8rawValueSivg", - "moduleName": "Sentry", - "accessorKind": "get" - } - ] + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "declKind": "Enum", - "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO", - "mangledName": "$s6Sentry0A14ProfileOptionsC0aB9LifecycleO", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enabled", + "mangledName": "$s6Sentry7OptionsC7enabledSbvp", "moduleName": "Sentry", "declAttributes": [ - "ObjC" + "Final", + "ObjC", + "HasStorage" ], - "enumRawTypeName": "Int", - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, + "hasStorage": true, + "accessors": [ { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enabled", + "mangledName": "$s6Sentry7OptionsC7enabledSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" }, { - "kind": "Conformance", - "name": "RawRepresentable", - "printedName": "RawRepresentable", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { - "kind": "TypeWitness", - "name": "RawValue", - "printedName": "RawValue", - "children": [ - { - "kind": "TypeNameAlias", - "name": "RawValue", - "printedName": "Sentry.SentryProfileOptions.SentryProfileLifecycle.RawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ] - } - ] + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "usr": "s:SY", - "mangledName": "$sSY" + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnabled:", + "mangledName": "$s6Sentry7OptionsC7enabledSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } ] }, { "kind": "Var", - "name": "lifecycle", - "printedName": "lifecycle", + "name": "shutdownTimeInterval", + "printedName": "shutdownTimeInterval", "children": [ { "kind": "TypeNominal", - "name": "SentryProfileLifecycle", - "printedName": "Sentry.SentryProfileOptions.SentryProfileLifecycle", - "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO" + "name": "Double", + "printedName": "Swift.Double", + "usr": "s:Sd" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions(py)lifecycle", - "mangledName": "$s6Sentry0A14ProfileOptionsC9lifecycleAC0aB9LifecycleOvp", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)shutdownTimeInterval", + "mangledName": "$s6Sentry7OptionsC20shutdownTimeIntervalSdvp", "moduleName": "Sentry", "declAttributes": [ "Final", @@ -47557,14 +45557,14 @@ "children": [ { "kind": "TypeNominal", - "name": "SentryProfileLifecycle", - "printedName": "Sentry.SentryProfileOptions.SentryProfileLifecycle", - "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO" + "name": "Double", + "printedName": "Swift.Double", + "usr": "s:Sd" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions(im)lifecycle", - "mangledName": "$s6Sentry0A14ProfileOptionsC9lifecycleAC0aB9LifecycleOvg", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)shutdownTimeInterval", + "mangledName": "$s6Sentry7OptionsC20shutdownTimeIntervalSdvg", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -47585,14 +45585,14 @@ }, { "kind": "TypeNominal", - "name": "SentryProfileLifecycle", - "printedName": "Sentry.SentryProfileOptions.SentryProfileLifecycle", - "usr": "s:6Sentry0A14ProfileOptionsC0aB9LifecycleO" + "name": "Double", + "printedName": "Swift.Double", + "usr": "s:Sd" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions(im)setLifecycle:", - "mangledName": "$s6Sentry0A14ProfileOptionsC9lifecycleAC0aB9LifecycleOvs", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setShutdownTimeInterval:", + "mangledName": "$s6Sentry7OptionsC20shutdownTimeIntervalSdvs", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -47605,19 +45605,19 @@ }, { "kind": "Var", - "name": "sessionSampleRate", - "printedName": "sessionSampleRate", + "name": "enableCrashHandler", + "printedName": "enableCrashHandler", "children": [ { "kind": "TypeNominal", - "name": "Float", - "printedName": "Swift.Float", - "usr": "s:Sf" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions(py)sessionSampleRate", - "mangledName": "$s6Sentry0A14ProfileOptionsC17sessionSampleRateSfvp", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enableCrashHandler", + "mangledName": "$s6Sentry7OptionsC18enableCrashHandlerSbvp", "moduleName": "Sentry", "declAttributes": [ "Final", @@ -47633,14 +45633,14 @@ "children": [ { "kind": "TypeNominal", - "name": "Float", - "printedName": "Swift.Float", - "usr": "s:Sf" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions(im)sessionSampleRate", - "mangledName": "$s6Sentry0A14ProfileOptionsC17sessionSampleRateSfvg", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableCrashHandler", + "mangledName": "$s6Sentry7OptionsC18enableCrashHandlerSbvg", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -47661,14 +45661,14 @@ }, { "kind": "TypeNominal", - "name": "Float", - "printedName": "Swift.Float", - "usr": "s:Sf" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions(im)setSessionSampleRate:", - "mangledName": "$s6Sentry0A14ProfileOptionsC17sessionSampleRateSfvs", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableCrashHandler:", + "mangledName": "$s6Sentry7OptionsC18enableCrashHandlerSbvs", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -47681,8 +45681,8 @@ }, { "kind": "Var", - "name": "profileAppStarts", - "printedName": "profileAppStarts", + "name": "enableSigtermReporting", + "printedName": "enableSigtermReporting", "children": [ { "kind": "TypeNominal", @@ -47692,8 +45692,8 @@ } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions(py)profileAppStarts", - "mangledName": "$s6Sentry0A14ProfileOptionsC16profileAppStartsSbvp", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enableSigtermReporting", + "mangledName": "$s6Sentry7OptionsC22enableSigtermReportingSbvp", "moduleName": "Sentry", "declAttributes": [ "Final", @@ -47715,8 +45715,8 @@ } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions(im)profileAppStarts", - "mangledName": "$s6Sentry0A14ProfileOptionsC16profileAppStartsSbvg", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableSigtermReporting", + "mangledName": "$s6Sentry7OptionsC22enableSigtermReportingSbvg", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -47743,8 +45743,8 @@ } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions(im)setProfileAppStarts:", - "mangledName": "$s6Sentry0A14ProfileOptionsC16profileAppStartsSbvs", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableSigtermReporting:", + "mangledName": "$s6Sentry7OptionsC22enableSigtermReportingSbvs", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -47756,137 +45756,103 @@ ] }, { - "kind": "Constructor", - "name": "init", - "printedName": "init()", + "kind": "Var", + "name": "maxBreadcrumbs", + "printedName": "maxBreadcrumbs", "children": [ { "kind": "TypeNominal", - "name": "SentryProfileOptions", - "printedName": "Sentry.SentryProfileOptions", - "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions" + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" } ], - "declKind": "Constructor", - "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions(im)init", - "mangledName": "$s6Sentry0A14ProfileOptionsCACycfc", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)maxBreadcrumbs", + "mangledName": "$s6Sentry7OptionsC14maxBreadcrumbsSuvp", "moduleName": "Sentry", - "overriding": true, - "objc_name": "init", "declAttributes": [ + "Final", "ObjC", - "Dynamic", - "Override" + "HasStorage" ], - "init_kind": "Designated" - } - ], - "declKind": "Class", - "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions", - "mangledName": "$s6Sentry0A14ProfileOptionsC", - "moduleName": "Sentry", - "declAttributes": [ - "Final", - "ObjCMembers", - "ObjC" - ], - "superclassUsr": "c:objc(cs)NSObject", - "inheritsConvenienceInitializers": true, - "superclassNames": [ - "ObjectiveC.NSObject" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - } - ] - }, - { - "kind": "TypeDecl", - "name": "SentrySDK", - "printedName": "SentrySDK", - "children": [ - { - "kind": "Var", - "name": "span", - "printedName": "span", - "children": [ + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "(any Sentry.Span)?", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" } ], - "usr": "s:Sq" + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)maxBreadcrumbs", + "mangledName": "$s6Sentry7OptionsC14maxBreadcrumbsSuvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setMaxBreadcrumbs:", + "mangledName": "$s6Sentry7OptionsC14maxBreadcrumbsSuvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" + } + ] + }, + { + "kind": "Var", + "name": "enableNetworkBreadcrumbs", + "printedName": "enableNetworkBreadcrumbs", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cpy)span", - "mangledName": "$s6Sentry0A3SDKC4spanSo0A4Span_pSgvpZ", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enableNetworkBreadcrumbs", + "mangledName": "$s6Sentry7OptionsC24enableNetworkBreadcrumbsSbvp", "moduleName": "Sentry", - "static": true, "declAttributes": [ "Final", - "ObjC" + "ObjC", + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -47895,53 +45861,74 @@ "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "(any Sentry.Span)?", - "children": [ - { - "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" - } - ], - "usr": "s:Sq" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)span", - "mangledName": "$s6Sentry0A3SDKC4spanSo0A4Span_pSgvgZ", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableNetworkBreadcrumbs", + "mangledName": "$s6Sentry7OptionsC24enableNetworkBreadcrumbsSbvg", "moduleName": "Sentry", - "static": true, + "implicit": true, "declAttributes": [ "Final", "ObjC" ], "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableNetworkBreadcrumbs:", + "mangledName": "$s6Sentry7OptionsC24enableNetworkBreadcrumbsSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } ] }, { "kind": "Var", - "name": "isEnabled", - "printedName": "isEnabled", + "name": "maxCacheItems", + "printedName": "maxCacheItems", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cpy)isEnabled", - "mangledName": "$s6Sentry0A3SDKC9isEnabledSbvpZ", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)maxCacheItems", + "mangledName": "$s6Sentry7OptionsC13maxCacheItemsSuvp", "moduleName": "Sentry", - "static": true, "declAttributes": [ "Final", - "ObjC" + "ObjC", + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -47950,45 +45937,111 @@ "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)isEnabled", - "mangledName": "$s6Sentry0A3SDKC9isEnabledSbvgZ", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)maxCacheItems", + "mangledName": "$s6Sentry7OptionsC13maxCacheItemsSuvg", "moduleName": "Sentry", - "static": true, + "implicit": true, "declAttributes": [ "Final", "ObjC" ], "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setMaxCacheItems:", + "mangledName": "$s6Sentry7OptionsC13maxCacheItemsSuvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } ] }, { "kind": "Var", - "name": "replay", - "printedName": "replay", + "name": "beforeSend", + "printedName": "beforeSend", "children": [ { "kind": "TypeNominal", - "name": "SentryReplayApi", - "printedName": "Sentry.SentryReplayApi", - "usr": "c:objc(cs)SentryReplayApi" + "name": "Optional", + "printedName": "Sentry.SentryBeforeSendEventCallback?", + "children": [ + { + "kind": "TypeNameAlias", + "name": "SentryBeforeSendEventCallback", + "printedName": "Sentry.SentryBeforeSendEventCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Event) -> Sentry.Event?", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.Event?", + "children": [ + { + "kind": "TypeNominal", + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" + } + ] + } + ] + } + ], + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cpy)replay", - "mangledName": "$s6Sentry0A3SDKC6replaySo0A9ReplayApiCvpZ", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)beforeSend", + "mangledName": "$s6Sentry7OptionsC10beforeSendSo0A5EventCSgAFcSgvp", "moduleName": "Sentry", - "static": true, "declAttributes": [ + "HasInitialValue", "Final", - "ObjC" + "ObjC", + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -47997,45 +46050,183 @@ "children": [ { "kind": "TypeNominal", - "name": "SentryReplayApi", - "printedName": "Sentry.SentryReplayApi", - "usr": "c:objc(cs)SentryReplayApi" + "name": "Optional", + "printedName": "Sentry.SentryBeforeSendEventCallback?", + "children": [ + { + "kind": "TypeNameAlias", + "name": "SentryBeforeSendEventCallback", + "printedName": "Sentry.SentryBeforeSendEventCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Event) -> Sentry.Event?", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.Event?", + "children": [ + { + "kind": "TypeNominal", + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" + } + ] + } + ] + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)beforeSend", + "mangledName": "$s6Sentry7OptionsC10beforeSendSo0A5EventCSgAFcSgvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryBeforeSendEventCallback?", + "children": [ + { + "kind": "TypeNameAlias", + "name": "SentryBeforeSendEventCallback", + "printedName": "Sentry.SentryBeforeSendEventCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Event) -> Sentry.Event?", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.Event?", + "children": [ + { + "kind": "TypeNominal", + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" + } + ] + } + ] + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)replay", - "mangledName": "$s6Sentry0A3SDKC6replaySo0A9ReplayApiCvgZ", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setBeforeSend:", + "mangledName": "$s6Sentry7OptionsC10beforeSendSo0A5EventCSgAFcSgvs", "moduleName": "Sentry", - "static": true, + "implicit": true, "declAttributes": [ "Final", "ObjC" ], - "accessorKind": "get" + "accessorKind": "set" } ] }, { "kind": "Var", - "name": "logger", - "printedName": "logger", + "name": "beforeSendSpan", + "printedName": "beforeSendSpan", "children": [ { "kind": "TypeNominal", - "name": "SentryLogger", - "printedName": "Sentry.SentryLogger", - "usr": "c:@M@Sentry@objc(cs)SentryLogger" + "name": "Optional", + "printedName": "Sentry.SentryBeforeSendSpanCallback?", + "children": [ + { + "kind": "TypeNameAlias", + "name": "SentryBeforeSendSpanCallback", + "printedName": "Sentry.SentryBeforeSendSpanCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(any Sentry.Span) -> (any Sentry.Span)?", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "(any Sentry.Span)?", + "children": [ + { + "kind": "TypeNominal", + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" + } + ] + } + ] + } + ], + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cpy)logger", - "mangledName": "$s6Sentry0A3SDKC6loggerAA0A6LoggerCvpZ", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)beforeSendSpan", + "mangledName": "$s6Sentry7OptionsC14beforeSendSpanSo0aE0_pSgSoAE_pcSgvp", "moduleName": "Sentry", - "static": true, "declAttributes": [ + "HasInitialValue", "Final", - "ObjC" + "ObjC", + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -48044,353 +46235,129 @@ "children": [ { "kind": "TypeNominal", - "name": "SentryLogger", - "printedName": "Sentry.SentryLogger", - "usr": "c:@M@Sentry@objc(cs)SentryLogger" + "name": "Optional", + "printedName": "Sentry.SentryBeforeSendSpanCallback?", + "children": [ + { + "kind": "TypeNameAlias", + "name": "SentryBeforeSendSpanCallback", + "printedName": "Sentry.SentryBeforeSendSpanCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(any Sentry.Span) -> (any Sentry.Span)?", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "(any Sentry.Span)?", + "children": [ + { + "kind": "TypeNominal", + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" + } + ] + } + ] + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)logger", - "mangledName": "$s6Sentry0A3SDKC6loggerAA0A6LoggerCvgZ", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)beforeSendSpan", + "mangledName": "$s6Sentry7OptionsC14beforeSendSpanSo0aE0_pSgSoAE_pcSgvg", "moduleName": "Sentry", - "static": true, + "implicit": true, "declAttributes": [ "Final", "ObjC" ], "accessorKind": "get" - } - ] - }, - { - "kind": "Function", - "name": "start", - "printedName": "start(options:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Options", - "printedName": "Sentry.Options", - "usr": "c:objc(cs)SentryOptions" - } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)startWithOptions:", - "mangledName": "$s6Sentry0A3SDKC5start7optionsySo0A7OptionsC_tFZ", - "moduleName": "Sentry", - "static": true, - "objc_name": "startWithOptions:", - "declAttributes": [ - "Final", - "ObjC" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "start", - "printedName": "start(configureOptions:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" }, { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Options) -> Swift.Void", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { - "kind": "TypeNameAlias", + "kind": "TypeNominal", "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] + "printedName": "()" }, { "kind": "TypeNominal", - "name": "Options", - "printedName": "Sentry.Options", - "usr": "c:objc(cs)SentryOptions" - } - ] - } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)startWithConfigureOptions:", - "mangledName": "$s6Sentry0A3SDKC5start16configureOptionsyySo0aE0Cc_tFZ", - "moduleName": "Sentry", - "static": true, - "objc_name": "startWithConfigureOptions:", - "declAttributes": [ - "Final", - "ObjC" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "capture", - "printedName": "capture(event:)", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, - { - "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" - } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureEvent:", - "mangledName": "$s6Sentry0A3SDKC7capture5eventSo0A2IdCSo0A5EventC_tFZ", - "moduleName": "Sentry", - "static": true, - "objc_name": "captureEvent:", - "declAttributes": [ - "Final", - "ObjC", - "DiscardableResult" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "capture", - "printedName": "capture(event:scope:)", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, - { - "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" - }, - { - "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" - } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureEvent:withScope:", - "mangledName": "$s6Sentry0A3SDKC7capture5event5scopeSo0A2IdCSo0A5EventC_So0A5ScopeCtFZ", - "moduleName": "Sentry", - "static": true, - "objc_name": "captureEvent:withScope:", - "declAttributes": [ - "Final", - "ObjC", - "DiscardableResult" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "capture", - "printedName": "capture(event:block:)", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, - { - "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" - }, - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Scope) -> Swift.Void", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "name": "Optional", + "printedName": "Sentry.SentryBeforeSendSpanCallback?", "children": [ { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "kind": "TypeNameAlias", + "name": "SentryBeforeSendSpanCallback", + "printedName": "Sentry.SentryBeforeSendSpanCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(any Sentry.Span) -> (any Sentry.Span)?", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "(any Sentry.Span)?", + "children": [ + { + "kind": "TypeNominal", + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Span", + "printedName": "any Sentry.Span", + "usr": "c:objc(pl)SentrySpan" + } + ] + } + ] } - ] - }, - { - "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" + ], + "usr": "s:Sq" } - ] - } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureEvent:withScopeBlock:", - "mangledName": "$s6Sentry0A3SDKC7capture5event5blockSo0A2IdCSo0A5EventC_ySo0A5ScopeCctFZ", - "moduleName": "Sentry", - "static": true, - "objc_name": "captureEvent:withScopeBlock:", - "declAttributes": [ - "Final", - "ObjC", - "DiscardableResult" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "startTransaction", - "printedName": "startTransaction(name:operation:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)startTransactionWithName:operation:", - "mangledName": "$s6Sentry0A3SDKC16startTransaction4name9operationSo0A4Span_pSS_SStFZ", - "moduleName": "Sentry", - "static": true, - "objc_name": "startTransactionWithName:operation:", - "declAttributes": [ - "Final", - "ObjC", - "DiscardableResult" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "startTransaction", - "printedName": "startTransaction(name:operation:bindToScope:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)startTransactionWithName:operation:bindToScope:", - "mangledName": "$s6Sentry0A3SDKC16startTransaction4name9operation11bindToScopeSo0A4Span_pSS_SSSbtFZ", - "moduleName": "Sentry", - "static": true, - "objc_name": "startTransactionWithName:operation:bindToScope:", - "declAttributes": [ - "Final", - "ObjC", - "DiscardableResult" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "startTransaction", - "printedName": "startTransaction(transactionContext:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" - }, - { - "kind": "TypeNominal", - "name": "TransactionContext", - "printedName": "Sentry.TransactionContext", - "usr": "c:objc(cs)SentryTransactionContext" + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setBeforeSendSpan:", + "mangledName": "$s6Sentry7OptionsC14beforeSendSpanSo0aE0_pSgSoAE_pcSgvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)startTransactionWithContext:", - "mangledName": "$s6Sentry0A3SDKC16startTransaction18transactionContextSo0A4Span_pSo0adF0C_tFZ", - "moduleName": "Sentry", - "static": true, - "objc_name": "startTransactionWithContext:", - "declAttributes": [ - "Final", - "ObjC", - "DiscardableResult" - ], - "funcSelfKind": "NonMutating" + ] }, { - "kind": "Function", - "name": "startTransaction", - "printedName": "startTransaction(transactionContext:bindToScope:)", + "kind": "Var", + "name": "enableLogs", + "printedName": "enableLogs", "children": [ - { - "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" - }, - { - "kind": "TypeNominal", - "name": "TransactionContext", - "printedName": "Sentry.TransactionContext", - "usr": "c:objc(cs)SentryTransactionContext" - }, { "kind": "TypeNominal", "name": "Bool", @@ -48398,549 +46365,971 @@ "usr": "s:Sb" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)startTransactionWithContext:bindToScope:", - "mangledName": "$s6Sentry0A3SDKC16startTransaction18transactionContext11bindToScopeSo0A4Span_pSo0adF0C_SbtFZ", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enableLogs", + "mangledName": "$s6Sentry7OptionsC10enableLogsSbvp", "moduleName": "Sentry", - "static": true, - "objc_name": "startTransactionWithContext:bindToScope:", "declAttributes": [ "Final", "ObjC", - "DiscardableResult" + "HasStorage" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "startTransaction", - "printedName": "startTransaction(transactionContext:bindToScope:customSamplingContext:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" - }, - { - "kind": "TypeNominal", - "name": "TransactionContext", - "printedName": "Sentry.TransactionContext", - "usr": "c:objc(cs)SentryTransactionContext" - }, + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableLogs", + "mangledName": "$s6Sentry7OptionsC10enableLogsSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" }, { - "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Void", + "printedName": "()" }, { "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "usr": "s:SD" + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableLogs:", + "mangledName": "$s6Sentry7OptionsC10enableLogsSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)startTransactionWithContext:bindToScope:customSamplingContext:", - "mangledName": "$s6Sentry0A3SDKC16startTransaction18transactionContext11bindToScope014customSamplingF0So0A4Span_pSo0adF0C_SbSDySSypGtFZ", - "moduleName": "Sentry", - "static": true, - "objc_name": "startTransactionWithContext:bindToScope:customSamplingContext:", - "declAttributes": [ - "Final", - "ObjC", - "DiscardableResult" - ], - "funcSelfKind": "NonMutating" + ] }, { - "kind": "Function", - "name": "startTransaction", - "printedName": "startTransaction(transactionContext:customSamplingContext:)", + "kind": "Var", + "name": "beforeSendLog", + "printedName": "beforeSendLog", "children": [ { "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" - }, - { - "kind": "TypeNominal", - "name": "TransactionContext", - "printedName": "Sentry.TransactionContext", - "usr": "c:objc(cs)SentryTransactionContext" - }, - { - "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", + "name": "Optional", + "printedName": "Sentry.SentryBeforeSendLogCallback?", "children": [ { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" + "kind": "TypeNameAlias", + "name": "SentryBeforeSendLogCallback", + "printedName": "Sentry.SentryBeforeSendLogCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryLog) -> Sentry.SentryLog?", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryLog?", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryLog", + "printedName": "Sentry.SentryLog", + "usr": "c:@M@Sentry@objc(cs)SentryLog" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "SentryLog", + "printedName": "Sentry.SentryLog", + "usr": "c:@M@Sentry@objc(cs)SentryLog" + } + ] + } + ] } ], - "usr": "s:SD" - } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)startTransactionWithContext:customSamplingContext:", - "mangledName": "$s6Sentry0A3SDKC16startTransaction18transactionContext014customSamplingF0So0A4Span_pSo0adF0C_SDySSypGtFZ", - "moduleName": "Sentry", - "static": true, - "objc_name": "startTransactionWithContext:customSamplingContext:", - "declAttributes": [ - "Final", - "ObjC", - "DiscardableResult" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "capture", - "printedName": "capture(error:)", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, - { - "kind": "TypeNominal", - "name": "Error", - "printedName": "any Swift.Error", - "usr": "s:s5ErrorP" + "usr": "s:Sq" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureError:", - "mangledName": "$s6Sentry0A3SDKC7capture5errorSo0A2IdCs5Error_p_tFZ", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)beforeSendLog", + "mangledName": "$s6Sentry7OptionsC13beforeSendLogAA0aE0CSgAFcSgvp", "moduleName": "Sentry", - "static": true, - "objc_name": "captureError:", "declAttributes": [ + "HasInitialValue", "Final", "ObjC", - "DiscardableResult" + "HasStorage" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "capture", - "printedName": "capture(error:scope:)", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Error", - "printedName": "any Swift.Error", - "usr": "s:s5ErrorP" + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryBeforeSendLogCallback?", + "children": [ + { + "kind": "TypeNameAlias", + "name": "SentryBeforeSendLogCallback", + "printedName": "Sentry.SentryBeforeSendLogCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryLog) -> Sentry.SentryLog?", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryLog?", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryLog", + "printedName": "Sentry.SentryLog", + "usr": "c:@M@Sentry@objc(cs)SentryLog" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "SentryLog", + "printedName": "Sentry.SentryLog", + "usr": "c:@M@Sentry@objc(cs)SentryLog" + } + ] + } + ] + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)beforeSendLog", + "mangledName": "$s6Sentry7OptionsC13beforeSendLogAA0aE0CSgAFcSgvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" }, { - "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryBeforeSendLogCallback?", + "children": [ + { + "kind": "TypeNameAlias", + "name": "SentryBeforeSendLogCallback", + "printedName": "Sentry.SentryBeforeSendLogCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryLog) -> Sentry.SentryLog?", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryLog?", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryLog", + "printedName": "Sentry.SentryLog", + "usr": "c:@M@Sentry@objc(cs)SentryLog" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "SentryLog", + "printedName": "Sentry.SentryLog", + "usr": "c:@M@Sentry@objc(cs)SentryLog" + } + ] + } + ] + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setBeforeSendLog:", + "mangledName": "$s6Sentry7OptionsC13beforeSendLogAA0aE0CSgAFcSgvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureError:withScope:", - "mangledName": "$s6Sentry0A3SDKC7capture5error5scopeSo0A2IdCs5Error_p_So0A5ScopeCtFZ", - "moduleName": "Sentry", - "static": true, - "objc_name": "captureError:withScope:", - "declAttributes": [ - "Final", - "ObjC", - "DiscardableResult" - ], - "funcSelfKind": "NonMutating" + ] }, { - "kind": "Function", - "name": "capture", - "printedName": "capture(error:block:)", + "kind": "Var", + "name": "beforeBreadcrumb", + "printedName": "beforeBreadcrumb", "children": [ { "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, - { - "kind": "TypeNominal", - "name": "Error", - "printedName": "any Swift.Error", - "usr": "s:s5ErrorP" - }, - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Scope) -> Swift.Void", + "name": "Optional", + "printedName": "Sentry.SentryBeforeBreadcrumbCallback?", "children": [ { "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "name": "SentryBeforeBreadcrumbCallback", + "printedName": "Sentry.SentryBeforeBreadcrumbCallback", "children": [ { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Breadcrumb) -> Sentry.Breadcrumb?", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.Breadcrumb?", + "children": [ + { + "kind": "TypeNominal", + "name": "Breadcrumb", + "printedName": "Sentry.Breadcrumb", + "usr": "c:objc(cs)SentryBreadcrumb" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Breadcrumb", + "printedName": "Sentry.Breadcrumb", + "usr": "c:objc(cs)SentryBreadcrumb" + } + ] } ] - }, - { - "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" } - ] + ], + "usr": "s:Sq" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureError:withScopeBlock:", - "mangledName": "$s6Sentry0A3SDKC7capture5error5blockSo0A2IdCs5Error_p_ySo0A5ScopeCctFZ", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)beforeBreadcrumb", + "mangledName": "$s6Sentry7OptionsC16beforeBreadcrumbSo0aD0CSgAFcSgvp", "moduleName": "Sentry", - "static": true, - "objc_name": "captureError:withScopeBlock:", "declAttributes": [ + "HasInitialValue", "Final", "ObjC", - "DiscardableResult" + "HasStorage" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "capture", - "printedName": "capture(exception:)", - "children": [ + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryBeforeBreadcrumbCallback?", + "children": [ + { + "kind": "TypeNameAlias", + "name": "SentryBeforeBreadcrumbCallback", + "printedName": "Sentry.SentryBeforeBreadcrumbCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Breadcrumb) -> Sentry.Breadcrumb?", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.Breadcrumb?", + "children": [ + { + "kind": "TypeNominal", + "name": "Breadcrumb", + "printedName": "Sentry.Breadcrumb", + "usr": "c:objc(cs)SentryBreadcrumb" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Breadcrumb", + "printedName": "Sentry.Breadcrumb", + "usr": "c:objc(cs)SentryBreadcrumb" + } + ] + } + ] + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)beforeBreadcrumb", + "mangledName": "$s6Sentry7OptionsC16beforeBreadcrumbSo0aD0CSgAFcSgvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" }, { - "kind": "TypeNominal", - "name": "NSException", - "printedName": "Foundation.NSException", - "usr": "c:objc(cs)NSException" + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryBeforeBreadcrumbCallback?", + "children": [ + { + "kind": "TypeNameAlias", + "name": "SentryBeforeBreadcrumbCallback", + "printedName": "Sentry.SentryBeforeBreadcrumbCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Breadcrumb) -> Sentry.Breadcrumb?", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.Breadcrumb?", + "children": [ + { + "kind": "TypeNominal", + "name": "Breadcrumb", + "printedName": "Sentry.Breadcrumb", + "usr": "c:objc(cs)SentryBreadcrumb" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Breadcrumb", + "printedName": "Sentry.Breadcrumb", + "usr": "c:objc(cs)SentryBreadcrumb" + } + ] + } + ] + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setBeforeBreadcrumb:", + "mangledName": "$s6Sentry7OptionsC16beforeBreadcrumbSo0aD0CSgAFcSgvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureException:", - "mangledName": "$s6Sentry0A3SDKC7capture9exceptionSo0A2IdCSo11NSExceptionC_tFZ", - "moduleName": "Sentry", - "static": true, - "objc_name": "captureException:", - "declAttributes": [ - "Final", - "ObjC", - "DiscardableResult" - ], - "funcSelfKind": "NonMutating" + ] }, { - "kind": "Function", - "name": "capture", - "printedName": "capture(exception:scope:)", + "kind": "Var", + "name": "beforeCaptureScreenshot", + "printedName": "beforeCaptureScreenshot", "children": [ { "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, - { - "kind": "TypeNominal", - "name": "NSException", - "printedName": "Foundation.NSException", - "usr": "c:objc(cs)NSException" - }, - { - "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" - } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureException:withScope:", - "mangledName": "$s6Sentry0A3SDKC7capture9exception5scopeSo0A2IdCSo11NSExceptionC_So0A5ScopeCtFZ", + "name": "Optional", + "printedName": "Sentry.SentryBeforeCaptureScreenshotCallback?", + "children": [ + { + "kind": "TypeNameAlias", + "name": "SentryBeforeCaptureScreenshotCallback", + "printedName": "Sentry.SentryBeforeCaptureScreenshotCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Event) -> Swift.Bool", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + }, + { + "kind": "TypeNominal", + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" + } + ] + } + ] + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)beforeCaptureScreenshot", + "mangledName": "$s6Sentry7OptionsC23beforeCaptureScreenshotSbSo0A5EventCcSgvp", "moduleName": "Sentry", - "static": true, - "objc_name": "captureException:withScope:", "declAttributes": [ + "HasInitialValue", "Final", "ObjC", - "DiscardableResult" + "HasStorage" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "capture", - "printedName": "capture(exception:block:)", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, - { - "kind": "TypeNominal", - "name": "NSException", - "printedName": "Foundation.NSException", - "usr": "c:objc(cs)NSException" - }, + "hasStorage": true, + "accessors": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Scope) -> Swift.Void", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryBeforeCaptureScreenshotCallback?", "children": [ { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "kind": "TypeNameAlias", + "name": "SentryBeforeCaptureScreenshotCallback", + "printedName": "Sentry.SentryBeforeCaptureScreenshotCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Event) -> Swift.Bool", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + }, + { + "kind": "TypeNominal", + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" + } + ] + } + ] } - ] + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)beforeCaptureScreenshot", + "mangledName": "$s6Sentry7OptionsC23beforeCaptureScreenshotSbSo0A5EventCcSgvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" }, { "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" + "name": "Optional", + "printedName": "Sentry.SentryBeforeCaptureScreenshotCallback?", + "children": [ + { + "kind": "TypeNameAlias", + "name": "SentryBeforeCaptureScreenshotCallback", + "printedName": "Sentry.SentryBeforeCaptureScreenshotCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Event) -> Swift.Bool", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + }, + { + "kind": "TypeNominal", + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" + } + ] + } + ] + } + ], + "usr": "s:Sq" } - ] + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setBeforeCaptureScreenshot:", + "mangledName": "$s6Sentry7OptionsC23beforeCaptureScreenshotSbSo0A5EventCcSgvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureException:withScopeBlock:", - "mangledName": "$s6Sentry0A3SDKC7capture9exception5blockSo0A2IdCSo11NSExceptionC_ySo0A5ScopeCctFZ", - "moduleName": "Sentry", - "static": true, - "objc_name": "captureException:withScopeBlock:", - "declAttributes": [ - "Final", - "ObjC", - "DiscardableResult" - ], - "funcSelfKind": "NonMutating" + ] }, { - "kind": "Function", - "name": "capture", - "printedName": "capture(message:)", + "kind": "Var", + "name": "beforeCaptureViewHierarchy", + "printedName": "beforeCaptureViewHierarchy", "children": [ { "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Optional", + "printedName": "Sentry.SentryBeforeCaptureScreenshotCallback?", + "children": [ + { + "kind": "TypeNameAlias", + "name": "SentryBeforeCaptureScreenshotCallback", + "printedName": "Sentry.SentryBeforeCaptureScreenshotCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Event) -> Swift.Bool", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + }, + { + "kind": "TypeNominal", + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" + } + ] + } + ] + } + ], + "usr": "s:Sq" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureMessage:", - "mangledName": "$s6Sentry0A3SDKC7capture7messageSo0A2IdCSS_tFZ", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)beforeCaptureViewHierarchy", + "mangledName": "$s6Sentry7OptionsC26beforeCaptureViewHierarchySbSo0A5EventCcSgvp", "moduleName": "Sentry", - "static": true, - "objc_name": "captureMessage:", "declAttributes": [ + "HasInitialValue", "Final", "ObjC", - "DiscardableResult" + "HasStorage" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "capture", - "printedName": "capture(message:scope:)", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryBeforeCaptureScreenshotCallback?", + "children": [ + { + "kind": "TypeNameAlias", + "name": "SentryBeforeCaptureScreenshotCallback", + "printedName": "Sentry.SentryBeforeCaptureScreenshotCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Event) -> Swift.Bool", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + }, + { + "kind": "TypeNominal", + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" + } + ] + } + ] + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)beforeCaptureViewHierarchy", + "mangledName": "$s6Sentry7OptionsC26beforeCaptureViewHierarchySbSo0A5EventCcSgvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" }, { - "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryBeforeCaptureScreenshotCallback?", + "children": [ + { + "kind": "TypeNameAlias", + "name": "SentryBeforeCaptureScreenshotCallback", + "printedName": "Sentry.SentryBeforeCaptureScreenshotCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Event) -> Swift.Bool", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + }, + { + "kind": "TypeNominal", + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" + } + ] + } + ] + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setBeforeCaptureViewHierarchy:", + "mangledName": "$s6Sentry7OptionsC26beforeCaptureViewHierarchySbSo0A5EventCcSgvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureMessage:withScope:", - "mangledName": "$s6Sentry0A3SDKC7capture7message5scopeSo0A2IdCSS_So0A5ScopeCtFZ", - "moduleName": "Sentry", - "static": true, - "objc_name": "captureMessage:withScope:", - "declAttributes": [ - "Final", - "ObjC", - "DiscardableResult" - ], - "funcSelfKind": "NonMutating" + ] }, { - "kind": "Function", - "name": "capture", - "printedName": "capture(message:block:)", + "kind": "Var", + "name": "onCrashedLastRun", + "printedName": "onCrashedLastRun", "children": [ { "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Scope) -> Swift.Void", + "name": "Optional", + "printedName": "Sentry.SentryOnCrashedLastRunCallback?", "children": [ { "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "name": "SentryOnCrashedLastRunCallback", + "printedName": "Sentry.SentryOnCrashedLastRunCallback", "children": [ { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Event) -> Swift.Void", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" + } + ] } ] - }, - { - "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" } - ] + ], + "usr": "s:Sq" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureMessage:withScopeBlock:", - "mangledName": "$s6Sentry0A3SDKC7capture7message5blockSo0A2IdCSS_ySo0A5ScopeCctFZ", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)onCrashedLastRun", + "mangledName": "$s6Sentry7OptionsC16onCrashedLastRunySo0A5EventCcSgvp", "moduleName": "Sentry", - "static": true, - "objc_name": "captureMessage:withScopeBlock:", "declAttributes": [ + "HasInitialValue", "Final", "ObjC", - "DiscardableResult" + "HasStorage" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "capture", - "printedName": "capture(feedback:)", - "children": [ + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryOnCrashedLastRunCallback?", + "children": [ + { + "kind": "TypeNameAlias", + "name": "SentryOnCrashedLastRunCallback", + "printedName": "Sentry.SentryOnCrashedLastRunCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Event) -> Swift.Void", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" + } + ] + } + ] + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)onCrashedLastRun", + "mangledName": "$s6Sentry7OptionsC16onCrashedLastRunySo0A5EventCcSgvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" }, { - "kind": "TypeNominal", - "name": "SentryFeedback", - "printedName": "Sentry.SentryFeedback", - "usr": "c:@M@Sentry@objc(cs)SentryFeedback" + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryOnCrashedLastRunCallback?", + "children": [ + { + "kind": "TypeNameAlias", + "name": "SentryOnCrashedLastRunCallback", + "printedName": "Sentry.SentryOnCrashedLastRunCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Event) -> Swift.Void", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "Event", + "printedName": "Sentry.Event", + "usr": "c:objc(cs)SentryEvent" + } + ] + } + ] + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setOnCrashedLastRun:", + "mangledName": "$s6Sentry7OptionsC16onCrashedLastRunySo0A5EventCcSgvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)captureFeedback:", - "mangledName": "$s6Sentry0A3SDKC7capture8feedbackyAA0A8FeedbackC_tFZ", - "moduleName": "Sentry", - "static": true, - "objc_name": "captureFeedback:", - "declAttributes": [ - "Final", - "ObjC" - ], - "funcSelfKind": "NonMutating" + ] }, { "kind": "Var", - "name": "feedback", - "printedName": "feedback", + "name": "sampleRate", + "printedName": "sampleRate", "children": [ { "kind": "TypeNominal", - "name": "SentryFeedbackAPI", - "printedName": "Sentry.SentryFeedbackAPI", - "usr": "c:objc(cs)SentryFeedbackAPI" + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cpy)feedback", - "mangledName": "$s6Sentry0A3SDKC8feedbackSo0A11FeedbackAPICvpZ", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)sampleRate", + "mangledName": "$s6Sentry7OptionsC10sampleRateSo8NSNumberCSgvp", "moduleName": "Sentry", - "static": true, "declAttributes": [ + "HasInitialValue", "Final", "ObjC", "HasStorage" ], - "isLet": true, "hasStorage": true, "accessors": [ { @@ -48950,106 +47339,72 @@ "children": [ { "kind": "TypeNominal", - "name": "SentryFeedbackAPI", - "printedName": "Sentry.SentryFeedbackAPI", - "usr": "c:objc(cs)SentryFeedbackAPI" + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)feedback", - "mangledName": "$s6Sentry0A3SDKC8feedbackSo0A11FeedbackAPICvgZ", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)sampleRate", + "mangledName": "$s6Sentry7OptionsC10sampleRateSo8NSNumberCSgvg", "moduleName": "Sentry", - "static": true, "implicit": true, "declAttributes": [ "Final", "ObjC" ], "accessorKind": "get" - } - ] - }, - { - "kind": "Function", - "name": "addBreadcrumb", - "printedName": "addBreadcrumb(_:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Breadcrumb", - "printedName": "Sentry.Breadcrumb", - "usr": "c:objc(cs)SentryBreadcrumb" - } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)addBreadcrumb:", - "mangledName": "$s6Sentry0A3SDKC13addBreadcrumbyySo0aD0CFZ", - "moduleName": "Sentry", - "static": true, - "objc_name": "addBreadcrumb:", - "declAttributes": [ - "Final", - "ObjC" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "configureScope", - "printedName": "configureScope(_:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" }, { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Scope) -> Swift.Void", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { - "kind": "TypeNameAlias", + "kind": "TypeNominal", "name": "Void", - "printedName": "Swift.Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.NSNumber?", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" } - ] - }, - { - "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" + ], + "usr": "s:Sq" } - ] + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setSampleRate:", + "mangledName": "$s6Sentry7OptionsC10sampleRateSo8NSNumberCSgvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)configureScope:", - "mangledName": "$s6Sentry0A3SDKC14configureScopeyyySo0aD0CcFZ", - "moduleName": "Sentry", - "static": true, - "objc_name": "configureScope:", - "declAttributes": [ - "Final", - "ObjC" - ], - "funcSelfKind": "NonMutating" + ] }, { "kind": "Var", - "name": "crashedLastRun", - "printedName": "crashedLastRun", + "name": "enableAutoSessionTracking", + "printedName": "enableAutoSessionTracking", "children": [ { "kind": "TypeNominal", @@ -49059,14 +47414,15 @@ } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cpy)crashedLastRun", - "mangledName": "$s6Sentry0A3SDKC14crashedLastRunSbvpZ", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enableAutoSessionTracking", + "mangledName": "$s6Sentry7OptionsC25enableAutoSessionTrackingSbvp", "moduleName": "Sentry", - "static": true, "declAttributes": [ "Final", - "ObjC" + "ObjC", + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -49081,22 +47437,50 @@ } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)crashedLastRun", - "mangledName": "$s6Sentry0A3SDKC14crashedLastRunSbvgZ", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableAutoSessionTracking", + "mangledName": "$s6Sentry7OptionsC25enableAutoSessionTrackingSbvg", "moduleName": "Sentry", - "static": true, + "implicit": true, "declAttributes": [ "Final", "ObjC" ], "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableAutoSessionTracking:", + "mangledName": "$s6Sentry7OptionsC25enableAutoSessionTrackingSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } ] }, { "kind": "Var", - "name": "detectedStartUpCrash", - "printedName": "detectedStartUpCrash", + "name": "enableGraphQLOperationTracking", + "printedName": "enableGraphQLOperationTracking", "children": [ { "kind": "TypeNominal", @@ -49106,14 +47490,15 @@ } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cpy)detectedStartUpCrash", - "mangledName": "$s6Sentry0A3SDKC20detectedStartUpCrashSbvpZ", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enableGraphQLOperationTracking", + "mangledName": "$s6Sentry7OptionsC30enableGraphQLOperationTrackingSbvp", "moduleName": "Sentry", - "static": true, "declAttributes": [ "Final", - "ObjC" + "ObjC", + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -49128,770 +47513,1078 @@ } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)detectedStartUpCrash", - "mangledName": "$s6Sentry0A3SDKC20detectedStartUpCrashSbvgZ", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableGraphQLOperationTracking", + "mangledName": "$s6Sentry7OptionsC30enableGraphQLOperationTrackingSbvg", "moduleName": "Sentry", - "static": true, + "implicit": true, "declAttributes": [ "Final", "ObjC" ], "accessorKind": "get" - } - ] - }, - { - "kind": "Function", - "name": "setUser", - "printedName": "setUser(_:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" }, { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.User?", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { "kind": "TypeNominal", - "name": "User", - "printedName": "Sentry.User", - "usr": "c:objc(cs)SentryUser" + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "usr": "s:Sq" + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableGraphQLOperationTracking:", + "mangledName": "$s6Sentry7OptionsC30enableGraphQLOperationTrackingSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)setUser:", - "mangledName": "$s6Sentry0A3SDKC7setUseryySo0aD0CSgFZ", - "moduleName": "Sentry", - "static": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "funcSelfKind": "NonMutating" + ] }, { - "kind": "Function", - "name": "startSession", - "printedName": "startSession()", + "kind": "Var", + "name": "enableWatchdogTerminationTracking", + "printedName": "enableWatchdogTerminationTracking", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)startSession", - "mangledName": "$s6Sentry0A3SDKC12startSessionyyFZ", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enableWatchdogTerminationTracking", + "mangledName": "$s6Sentry7OptionsC33enableWatchdogTerminationTrackingSbvp", "moduleName": "Sentry", - "static": true, "declAttributes": [ "Final", - "ObjC" + "ObjC", + "HasStorage" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "endSession", - "printedName": "endSession()", - "children": [ + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)endSession", - "mangledName": "$s6Sentry0A3SDKC10endSessionyyFZ", - "moduleName": "Sentry", - "static": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "crash", - "printedName": "crash()", - "children": [ + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableWatchdogTerminationTracking", + "mangledName": "$s6Sentry7OptionsC33enableWatchdogTerminationTrackingSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableWatchdogTerminationTracking:", + "mangledName": "$s6Sentry7OptionsC33enableWatchdogTerminationTrackingSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)crash", - "mangledName": "$s6Sentry0A3SDKC5crashyyFZ", - "moduleName": "Sentry", - "static": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "funcSelfKind": "NonMutating" + ] }, { - "kind": "Function", - "name": "reportFullyDisplayed", - "printedName": "reportFullyDisplayed()", + "kind": "Var", + "name": "sessionTrackingIntervalMillis", + "printedName": "sessionTrackingIntervalMillis", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)reportFullyDisplayed", - "mangledName": "$s6Sentry0A3SDKC20reportFullyDisplayedyyFZ", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)sessionTrackingIntervalMillis", + "mangledName": "$s6Sentry7OptionsC29sessionTrackingIntervalMillisSuvp", "moduleName": "Sentry", - "static": true, "declAttributes": [ "Final", - "ObjC" + "ObjC", + "HasStorage" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "pauseAppHangTracking", - "printedName": "pauseAppHangTracking()", - "children": [ + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)sessionTrackingIntervalMillis", + "mangledName": "$s6Sentry7OptionsC29sessionTrackingIntervalMillisSuvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setSessionTrackingIntervalMillis:", + "mangledName": "$s6Sentry7OptionsC29sessionTrackingIntervalMillisSuvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)pauseAppHangTracking", - "mangledName": "$s6Sentry0A3SDKC20pauseAppHangTrackingyyFZ", - "moduleName": "Sentry", - "static": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "funcSelfKind": "NonMutating" + ] }, { - "kind": "Function", - "name": "resumeAppHangTracking", - "printedName": "resumeAppHangTracking()", + "kind": "Var", + "name": "attachStacktrace", + "printedName": "attachStacktrace", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)resumeAppHangTracking", - "mangledName": "$s6Sentry0A3SDKC21resumeAppHangTrackingyyFZ", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)attachStacktrace", + "mangledName": "$s6Sentry7OptionsC16attachStacktraceSbvp", "moduleName": "Sentry", - "static": true, "declAttributes": [ "Final", - "ObjC" + "ObjC", + "HasStorage" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "flush", - "printedName": "flush(timeout:)", - "children": [ + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)attachStacktrace", + "mangledName": "$s6Sentry7OptionsC16attachStacktraceSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" }, { - "kind": "TypeNameAlias", - "name": "TimeInterval", - "printedName": "Foundation.TimeInterval", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { "kind": "TypeNominal", - "name": "Double", - "printedName": "Swift.Double", - "usr": "s:Sd" + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } - ] - } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)flush:", - "mangledName": "$s6Sentry0A3SDKC5flush7timeoutySd_tFZ", - "moduleName": "Sentry", - "static": true, - "objc_name": "flush:", - "declAttributes": [ - "Final", - "ObjC" - ], - "funcSelfKind": "NonMutating" + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setAttachStacktrace:", + "mangledName": "$s6Sentry7OptionsC16attachStacktraceSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" + } + ] }, { - "kind": "Function", - "name": "close", - "printedName": "close()", + "kind": "Var", + "name": "maxAttachmentSize", + "printedName": "maxAttachmentSize", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)close", - "mangledName": "$s6Sentry0A3SDKC5closeyyFZ", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)maxAttachmentSize", + "mangledName": "$s6Sentry7OptionsC17maxAttachmentSizeSuvp", "moduleName": "Sentry", - "static": true, "declAttributes": [ "Final", - "ObjC" + "ObjC", + "HasStorage" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "startProfiler", - "printedName": "startProfiler()", - "children": [ + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)maxAttachmentSize", + "mangledName": "$s6Sentry7OptionsC17maxAttachmentSizeSuvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "UInt", + "printedName": "Swift.UInt", + "usr": "s:Su" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setMaxAttachmentSize:", + "mangledName": "$s6Sentry7OptionsC17maxAttachmentSizeSuvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)startProfiler", - "mangledName": "$s6Sentry0A3SDKC13startProfileryyFZ", - "moduleName": "Sentry", - "static": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "funcSelfKind": "NonMutating" + ] }, { - "kind": "Function", - "name": "stopProfiler", - "printedName": "stopProfiler()", + "kind": "Var", + "name": "sendDefaultPii", + "printedName": "sendDefaultPii", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(cm)stopProfiler", - "mangledName": "$s6Sentry0A3SDKC12stopProfileryyFZ", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)sendDefaultPii", + "mangledName": "$s6Sentry7OptionsC14sendDefaultPiiSbvp", "moduleName": "Sentry", - "static": true, "declAttributes": [ "Final", - "ObjC" + "ObjC", + "HasStorage" ], - "funcSelfKind": "NonMutating" + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)sendDefaultPii", + "mangledName": "$s6Sentry7OptionsC14sendDefaultPiiSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setSendDefaultPii:", + "mangledName": "$s6Sentry7OptionsC14sendDefaultPiiSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" + } + ] }, { - "kind": "Constructor", - "name": "init", - "printedName": "init()", + "kind": "Var", + "name": "enableAutoPerformanceTracing", + "printedName": "enableAutoPerformanceTracing", "children": [ { "kind": "TypeNominal", - "name": "SentrySDK", - "printedName": "Sentry.SentrySDK", - "usr": "c:@M@Sentry@objc(cs)SentrySDK" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "declKind": "Constructor", - "usr": "c:@M@Sentry@objc(cs)SentrySDK(im)init", - "mangledName": "$s6Sentry0A3SDKCACycfc", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enableAutoPerformanceTracing", + "mangledName": "$s6Sentry7OptionsC28enableAutoPerformanceTracingSbvp", "moduleName": "Sentry", - "overriding": true, - "objc_name": "init", "declAttributes": [ + "Final", "ObjC", - "Dynamic", - "Override" + "HasStorage" ], - "init_kind": "Designated" - } - ], - "declKind": "Class", - "usr": "c:@M@Sentry@objc(cs)SentrySDK", - "mangledName": "$s6Sentry0A3SDKC", - "moduleName": "Sentry", - "isOpen": true, - "declAttributes": [ - "ObjC" - ], - "superclassUsr": "c:objc(cs)NSObject", - "inheritsConvenienceInitializers": true, - "superclassNames": [ - "ObjectiveC.NSObject" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - } - ] - }, - { - "kind": "TypeDecl", - "name": "SentryRedactViewHelper", - "printedName": "SentryRedactViewHelper", - "children": [ - { - "kind": "Function", - "name": "clipOutView", - "printedName": "clipOutView(_:)", - "children": [ + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableAutoPerformanceTracing", + "mangledName": "$s6Sentry7OptionsC28enableAutoPerformanceTracingSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" }, { - "kind": "TypeNominal", - "name": "UIView", - "printedName": "UIKit.UIView", - "usr": "c:objc(cs)UIView" + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableAutoPerformanceTracing:", + "mangledName": "$s6Sentry7OptionsC28enableAutoPerformanceTracingSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryRedactViewHelper(cm)clipOutView:", - "mangledName": "$s6Sentry0A16RedactViewHelperC07clipOutC0yySo6UIViewCFZ", - "moduleName": "Sentry", - "static": true, - "declAttributes": [ - "Final", - "ObjC" - ], - "funcSelfKind": "NonMutating" + ] }, { - "kind": "Function", - "name": "maskSwiftUI", - "printedName": "maskSwiftUI(_:)", + "kind": "Var", + "name": "enablePersistingTracesWhenCrashing", + "printedName": "enablePersistingTracesWhenCrashing", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "UIView", - "printedName": "UIKit.UIView", - "usr": "c:objc(cs)UIView" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryRedactViewHelper(cm)maskSwiftUI:", - "mangledName": "$s6Sentry0A16RedactViewHelperC11maskSwiftUIyySo6UIViewCFZ", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enablePersistingTracesWhenCrashing", + "mangledName": "$s6Sentry7OptionsC34enablePersistingTracesWhenCrashingSbvp", "moduleName": "Sentry", - "static": true, "declAttributes": [ "Final", - "ObjC" + "ObjC", + "HasStorage" ], - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Class", - "usr": "c:@M@Sentry@objc(cs)SentryRedactViewHelper", - "mangledName": "$s6Sentry0A16RedactViewHelperC", - "moduleName": "Sentry", - "declAttributes": [ - "Final", - "ObjCMembers", - "ObjC" - ], - "superclassUsr": "c:objc(cs)NSObject", - "hasMissingDesignatedInitializers": true, - "inheritsConvenienceInitializers": true, - "superclassNames": [ - "ObjectiveC.NSObject" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enablePersistingTracesWhenCrashing", + "mangledName": "$s6Sentry7OptionsC34enablePersistingTracesWhenCrashingSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnablePersistingTracesWhenCrashing:", + "mangledName": "$s6Sentry7OptionsC34enablePersistingTracesWhenCrashingSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" + } + ] }, { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - } - ] - }, - { - "kind": "TypeDecl", - "name": "SentryHub", - "printedName": "SentryHub", - "children": [ - { - "kind": "Constructor", - "name": "init", - "printedName": "init(client:andScope:)", + "kind": "Var", + "name": "initialScope", + "printedName": "initialScope", "children": [ { - "kind": "TypeNominal", - "name": "SentryHub", - "printedName": "Sentry.SentryHub", - "usr": "c:@M@Sentry@objc(cs)SentryHub" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryClient?", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Scope) -> Sentry.Scope", "children": [ { "kind": "TypeNominal", - "name": "SentryClient", - "printedName": "Sentry.SentryClient", - "usr": "c:@M@Sentry@objc(cs)SentryClient" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.Scope?", - "children": [ + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" + }, { "kind": "TypeNominal", "name": "Scope", "printedName": "Sentry.Scope", "usr": "c:objc(cs)SentryScope" } - ], - "usr": "s:Sq" + ] } ], - "declKind": "Constructor", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)initWithClient:andScope:", - "mangledName": "$s6Sentry0A3HubC6client8andScopeAcA0A6ClientCSg_So0aE0CSgtcfc", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)initialScope", + "mangledName": "$s6Sentry7OptionsC12initialScopeySo0aD0CAFcvp", "moduleName": "Sentry", - "objc_name": "initWithClient:andScope:", "declAttributes": [ - "ObjC" + "Final", + "ObjC", + "HasStorage" ], - "init_kind": "Designated" + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Scope) -> Sentry.Scope", + "children": [ + { + "kind": "TypeNominal", + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" + }, + { + "kind": "TypeNominal", + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" + } + ] + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)initialScope", + "mangledName": "$s6Sentry7OptionsC12initialScopeySo0aD0CAFcvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.Scope) -> Sentry.Scope", + "children": [ + { + "kind": "TypeNominal", + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" + }, + { + "kind": "TypeNominal", + "name": "Scope", + "printedName": "Sentry.Scope", + "usr": "c:objc(cs)SentryScope" + } + ] + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setInitialScope:", + "mangledName": "$s6Sentry7OptionsC12initialScopeySo0aD0CAFcvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" + } + ] }, { - "kind": "Function", - "name": "startSession", - "printedName": "startSession()", + "kind": "Var", + "name": "enableUIViewControllerTracing", + "printedName": "enableUIViewControllerTracing", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)startSession", - "mangledName": "$s6Sentry0A3HubC12startSessionyyF", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enableUIViewControllerTracing", + "mangledName": "$s6Sentry7OptionsC29enableUIViewControllerTracingSbvp", "moduleName": "Sentry", "declAttributes": [ "Final", - "ObjC" + "ObjC", + "HasStorage" ], - "funcSelfKind": "NonMutating" + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableUIViewControllerTracing", + "mangledName": "$s6Sentry7OptionsC29enableUIViewControllerTracingSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableUIViewControllerTracing:", + "mangledName": "$s6Sentry7OptionsC29enableUIViewControllerTracingSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" + } + ] }, { - "kind": "Function", - "name": "endSession", - "printedName": "endSession()", + "kind": "Var", + "name": "attachScreenshot", + "printedName": "attachScreenshot", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)endSession", - "mangledName": "$s6Sentry0A3HubC10endSessionyyF", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)attachScreenshot", + "mangledName": "$s6Sentry7OptionsC16attachScreenshotSbvp", "moduleName": "Sentry", "declAttributes": [ "Final", - "ObjC" + "ObjC", + "HasStorage" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "endSession", - "printedName": "endSession(withTimestamp:)", - "children": [ + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)attachScreenshot", + "mangledName": "$s6Sentry7OptionsC16attachScreenshotSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" }, { - "kind": "TypeNominal", - "name": "Date", - "printedName": "Foundation.Date", - "usr": "s:10Foundation4DateV" + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setAttachScreenshot:", + "mangledName": "$s6Sentry7OptionsC16attachScreenshotSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)endSessionWithTimestamp:", - "mangledName": "$s6Sentry0A3HubC10endSession13withTimestampy10Foundation4DateV_tF", - "moduleName": "Sentry", - "objc_name": "endSessionWithTimestamp:", - "declAttributes": [ - "Final", - "ObjC" - ], - "funcSelfKind": "NonMutating" + ] }, { - "kind": "Function", - "name": "capture", - "printedName": "capture(event:)", + "kind": "Var", + "name": "screenshot", + "printedName": "screenshot", "children": [ { "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, - { - "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" + "name": "SentryViewScreenshotOptions", + "printedName": "Sentry.SentryViewScreenshotOptions", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)captureEvent:", - "mangledName": "$s6Sentry0A3HubC7capture5eventSo0A2IdCSo0A5EventC_tF", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)screenshot", + "mangledName": "$s6Sentry7OptionsC10screenshotAA0a14ViewScreenshotB0Cvp", "moduleName": "Sentry", - "objc_name": "captureEvent:", "declAttributes": [ "Final", "ObjC", - "DiscardableResult" + "HasStorage" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "capture", - "printedName": "capture(event:scope:)", - "children": [ + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryViewScreenshotOptions", + "printedName": "Sentry.SentryViewScreenshotOptions", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)screenshot", + "mangledName": "$s6Sentry7OptionsC10screenshotAA0a14ViewScreenshotB0Cvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" }, { - "kind": "TypeNominal", - "name": "Event", - "printedName": "Sentry.Event", - "usr": "c:objc(cs)SentryEvent" - }, + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "SentryViewScreenshotOptions", + "printedName": "Sentry.SentryViewScreenshotOptions", + "usr": "c:@M@Sentry@objc(cs)SentryViewScreenshotOptions" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setScreenshot:", + "mangledName": "$s6Sentry7OptionsC10screenshotAA0a14ViewScreenshotB0Cvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" + } + ] + }, + { + "kind": "Var", + "name": "attachViewHierarchy", + "printedName": "attachViewHierarchy", + "children": [ { "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)captureEvent:withScope:", - "mangledName": "$s6Sentry0A3HubC7capture5event5scopeSo0A2IdCSo0A5EventC_So0A5ScopeCtF", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)attachViewHierarchy", + "mangledName": "$s6Sentry7OptionsC19attachViewHierarchySbvp", "moduleName": "Sentry", - "objc_name": "captureEvent:withScope:", "declAttributes": [ "Final", "ObjC", - "DiscardableResult" + "HasStorage" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "startTransaction", - "printedName": "startTransaction(name:operation:)", - "children": [ + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)attachViewHierarchy", + "mangledName": "$s6Sentry7OptionsC19attachViewHierarchySbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" }, { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setAttachViewHierarchy:", + "mangledName": "$s6Sentry7OptionsC19attachViewHierarchySbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" + } + ] + }, + { + "kind": "Var", + "name": "reportAccessibilityIdentifier", + "printedName": "reportAccessibilityIdentifier", + "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)startTransactionWithName:operation:", - "mangledName": "$s6Sentry0A3HubC16startTransaction4name9operationSo0A4Span_pSS_SStF", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)reportAccessibilityIdentifier", + "mangledName": "$s6Sentry7OptionsC29reportAccessibilityIdentifierSbvp", "moduleName": "Sentry", - "objc_name": "startTransactionWithName:operation:", "declAttributes": [ "Final", "ObjC", - "DiscardableResult" + "HasStorage" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "startTransaction", - "printedName": "startTransaction(name:operation:bindToScope:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" - }, + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)reportAccessibilityIdentifier", + "mangledName": "$s6Sentry7OptionsC29reportAccessibilityIdentifierSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" }, { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setReportAccessibilityIdentifier:", + "mangledName": "$s6Sentry7OptionsC29reportAccessibilityIdentifierSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" + } + ] + }, + { + "kind": "Var", + "name": "enableUserInteractionTracing", + "printedName": "enableUserInteractionTracing", + "children": [ { "kind": "TypeNominal", "name": "Bool", @@ -49899,65 +48592,151 @@ "usr": "s:Sb" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)startTransactionWithName:operation:bindToScope:", - "mangledName": "$s6Sentry0A3HubC16startTransaction4name9operation11bindToScopeSo0A4Span_pSS_SSSbtF", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enableUserInteractionTracing", + "mangledName": "$s6Sentry7OptionsC28enableUserInteractionTracingSbvp", "moduleName": "Sentry", - "objc_name": "startTransactionWithName:operation:bindToScope:", "declAttributes": [ "Final", "ObjC", - "DiscardableResult" + "HasStorage" ], - "funcSelfKind": "NonMutating" + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableUserInteractionTracing", + "mangledName": "$s6Sentry7OptionsC28enableUserInteractionTracingSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableUserInteractionTracing:", + "mangledName": "$s6Sentry7OptionsC28enableUserInteractionTracingSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" + } + ] }, { - "kind": "Function", - "name": "startTransaction", - "printedName": "startTransaction(transactionContext:)", + "kind": "Var", + "name": "idleTimeout", + "printedName": "idleTimeout", "children": [ { "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" - }, - { - "kind": "TypeNominal", - "name": "TransactionContext", - "printedName": "Sentry.TransactionContext", - "usr": "c:objc(cs)SentryTransactionContext" + "name": "Double", + "printedName": "Swift.Double", + "usr": "s:Sd" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)startTransactionWithContext:", - "mangledName": "$s6Sentry0A3HubC16startTransaction18transactionContextSo0A4Span_pSo0adF0C_tF", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)idleTimeout", + "mangledName": "$s6Sentry7OptionsC11idleTimeoutSdvp", "moduleName": "Sentry", - "objc_name": "startTransactionWithContext:", "declAttributes": [ "Final", "ObjC", - "DiscardableResult" + "HasStorage" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "startTransaction", - "printedName": "startTransaction(transactionContext:bindToScope:)", - "children": [ + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Double", + "printedName": "Swift.Double", + "usr": "s:Sd" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)idleTimeout", + "mangledName": "$s6Sentry7OptionsC11idleTimeoutSdvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" }, { - "kind": "TypeNominal", - "name": "TransactionContext", - "printedName": "Sentry.TransactionContext", - "usr": "c:objc(cs)SentryTransactionContext" - }, + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Double", + "printedName": "Swift.Double", + "usr": "s:Sd" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setIdleTimeout:", + "mangledName": "$s6Sentry7OptionsC11idleTimeoutSdvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" + } + ] + }, + { + "kind": "Var", + "name": "enablePreWarmedAppStartTracing", + "printedName": "enablePreWarmedAppStartTracing", + "children": [ { "kind": "TypeNominal", "name": "Bool", @@ -49965,467 +48744,827 @@ "usr": "s:Sb" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)startTransactionWithContext:bindToScope:", - "mangledName": "$s6Sentry0A3HubC16startTransaction18transactionContext11bindToScopeSo0A4Span_pSo0adF0C_SbtF", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enablePreWarmedAppStartTracing", + "mangledName": "$s6Sentry7OptionsC30enablePreWarmedAppStartTracingSbvp", "moduleName": "Sentry", - "objc_name": "startTransactionWithContext:bindToScope:", "declAttributes": [ "Final", "ObjC", - "DiscardableResult" + "HasStorage" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "startTransaction", - "printedName": "startTransaction(transactionContext:bindToScope:customSamplingContext:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" - }, - { - "kind": "TypeNominal", - "name": "TransactionContext", - "printedName": "Sentry.TransactionContext", - "usr": "c:objc(cs)SentryTransactionContext" - }, + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enablePreWarmedAppStartTracing", + "mangledName": "$s6Sentry7OptionsC30enablePreWarmedAppStartTracingSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" }, { - "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Void", + "printedName": "()" }, { "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "usr": "s:SD" + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnablePreWarmedAppStartTracing:", + "mangledName": "$s6Sentry7OptionsC30enablePreWarmedAppStartTracingSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" + } + ] + }, + { + "kind": "Var", + "name": "enableReportNonFullyBlockingAppHangs", + "printedName": "enableReportNonFullyBlockingAppHangs", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)startTransactionWithContext:bindToScope:customSamplingContext:", - "mangledName": "$s6Sentry0A3HubC16startTransaction18transactionContext11bindToScope014customSamplingF0So0A4Span_pSo0adF0C_SbSDySSypGtF", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enableReportNonFullyBlockingAppHangs", + "mangledName": "$s6Sentry7OptionsC36enableReportNonFullyBlockingAppHangsSbvp", "moduleName": "Sentry", - "objc_name": "startTransactionWithContext:bindToScope:customSamplingContext:", "declAttributes": [ "Final", "ObjC", - "DiscardableResult" + "HasStorage" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "startTransaction", - "printedName": "startTransaction(transactionContext:customSamplingContext:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Span", - "printedName": "any Sentry.Span", - "usr": "c:objc(pl)SentrySpan" - }, + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "TransactionContext", - "printedName": "Sentry.TransactionContext", - "usr": "c:objc(cs)SentryTransactionContext" + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableReportNonFullyBlockingAppHangs", + "mangledName": "$s6Sentry7OptionsC36enableReportNonFullyBlockingAppHangsSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" }, { - "kind": "TypeNominal", - "name": "Dictionary", - "printedName": "[Swift.String : Any]", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Void", + "printedName": "()" }, { "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "Any" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "usr": "s:SD" + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableReportNonFullyBlockingAppHangs:", + "mangledName": "$s6Sentry7OptionsC36enableReportNonFullyBlockingAppHangsSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)startTransactionWithContext:customSamplingContext:", - "mangledName": "$s6Sentry0A3HubC16startTransaction18transactionContext014customSamplingF0So0A4Span_pSo0adF0C_SDySSypGtF", - "moduleName": "Sentry", - "objc_name": "startTransactionWithContext:customSamplingContext:", - "declAttributes": [ - "Final", - "ObjC", - "DiscardableResult" - ], - "funcSelfKind": "NonMutating" + ] }, { - "kind": "Function", - "name": "capture", - "printedName": "capture(error:)", + "kind": "Var", + "name": "sessionReplay", + "printedName": "sessionReplay", "children": [ { "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, - { - "kind": "TypeNominal", - "name": "NSError", - "printedName": "Foundation.NSError", - "usr": "c:objc(cs)NSError" + "name": "SentryReplayOptions", + "printedName": "Sentry.SentryReplayOptions", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)captureError:", - "mangledName": "$s6Sentry0A3HubC7capture5errorSo0A2IdCSo7NSErrorC_tF", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)sessionReplay", + "mangledName": "$s6Sentry7OptionsC13sessionReplayAA0adB0Cvp", "moduleName": "Sentry", - "objc_name": "captureError:", "declAttributes": [ "Final", "ObjC", - "DiscardableResult" + "HasStorage" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "capture", - "printedName": "capture(error:scope:)", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Error", - "printedName": "any Swift.Error", - "usr": "s:s5ErrorP" + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryReplayOptions", + "printedName": "Sentry.SentryReplayOptions", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)sessionReplay", + "mangledName": "$s6Sentry7OptionsC13sessionReplayAA0adB0Cvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" }, { - "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "SentryReplayOptions", + "printedName": "Sentry.SentryReplayOptions", + "usr": "c:@M@Sentry@objc(cs)SentryReplayOptions" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setSessionReplay:", + "mangledName": "$s6Sentry7OptionsC13sessionReplayAA0adB0Cvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)captureError:withScope:", - "mangledName": "$s6Sentry0A3HubC7capture5error5scopeSo0A2IdCs5Error_p_So0A5ScopeCtF", - "moduleName": "Sentry", - "objc_name": "captureError:withScope:", - "declAttributes": [ - "Final", - "ObjC", - "DiscardableResult" - ], - "funcSelfKind": "NonMutating" + ] }, { - "kind": "Function", - "name": "capture", - "printedName": "capture(exception:)", + "kind": "Var", + "name": "enableNetworkTracking", + "printedName": "enableNetworkTracking", "children": [ { "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, - { - "kind": "TypeNominal", - "name": "NSException", - "printedName": "Foundation.NSException", - "usr": "c:objc(cs)NSException" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)captureException:", - "mangledName": "$s6Sentry0A3HubC7capture9exceptionSo0A2IdCSo11NSExceptionC_tF", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enableNetworkTracking", + "mangledName": "$s6Sentry7OptionsC21enableNetworkTrackingSbvp", "moduleName": "Sentry", - "objc_name": "captureException:", "declAttributes": [ "Final", "ObjC", - "DiscardableResult" + "HasStorage" ], - "funcSelfKind": "NonMutating" + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableNetworkTracking", + "mangledName": "$s6Sentry7OptionsC21enableNetworkTrackingSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableNetworkTracking:", + "mangledName": "$s6Sentry7OptionsC21enableNetworkTrackingSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" + } + ] }, { - "kind": "Function", - "name": "capture", - "printedName": "capture(exception:scope:)", + "kind": "Var", + "name": "enableFileIOTracing", + "printedName": "enableFileIOTracing", "children": [ { "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, - { - "kind": "TypeNominal", - "name": "NSException", - "printedName": "Foundation.NSException", - "usr": "c:objc(cs)NSException" - }, - { - "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)captureException:withScope:", - "mangledName": "$s6Sentry0A3HubC7capture9exception5scopeSo0A2IdCSo11NSExceptionC_So0A5ScopeCtF", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enableFileIOTracing", + "mangledName": "$s6Sentry7OptionsC19enableFileIOTracingSbvp", "moduleName": "Sentry", - "objc_name": "captureException:withScope:", "declAttributes": [ "Final", "ObjC", - "DiscardableResult" + "HasStorage" ], - "funcSelfKind": "NonMutating" + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableFileIOTracing", + "mangledName": "$s6Sentry7OptionsC19enableFileIOTracingSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableFileIOTracing:", + "mangledName": "$s6Sentry7OptionsC19enableFileIOTracingSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" + } + ] }, { - "kind": "Function", - "name": "capture", - "printedName": "capture(message:)", + "kind": "Var", + "name": "enableDataSwizzling", + "printedName": "enableDataSwizzling", "children": [ { "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)captureMessage:", - "mangledName": "$s6Sentry0A3HubC7capture7messageSo0A2IdCSS_tF", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enableDataSwizzling", + "mangledName": "$s6Sentry7OptionsC19enableDataSwizzlingSbvp", "moduleName": "Sentry", - "objc_name": "captureMessage:", "declAttributes": [ "Final", "ObjC", - "DiscardableResult" + "HasStorage" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "capture", - "printedName": "capture(message:scope:)", - "children": [ + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "SentryId", - "printedName": "Sentry.SentryId", - "usr": "c:objc(cs)SentryId" + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableDataSwizzling", + "mangledName": "$s6Sentry7OptionsC19enableDataSwizzlingSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" }, { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableDataSwizzling:", + "mangledName": "$s6Sentry7OptionsC19enableDataSwizzlingSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" + } + ] + }, + { + "kind": "Var", + "name": "enableFileManagerSwizzling", + "printedName": "enableFileManagerSwizzling", + "children": [ { "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)captureMessage:withScope:", - "mangledName": "$s6Sentry0A3HubC7capture7message5scopeSo0A2IdCSS_So0A5ScopeCtF", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enableFileManagerSwizzling", + "mangledName": "$s6Sentry7OptionsC26enableFileManagerSwizzlingSbvp", "moduleName": "Sentry", - "objc_name": "captureMessage:withScope:", "declAttributes": [ "Final", "ObjC", - "DiscardableResult" + "HasStorage" ], - "funcSelfKind": "NonMutating" + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableFileManagerSwizzling", + "mangledName": "$s6Sentry7OptionsC26enableFileManagerSwizzlingSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableFileManagerSwizzling:", + "mangledName": "$s6Sentry7OptionsC26enableFileManagerSwizzlingSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" + } + ] }, { - "kind": "Function", - "name": "capture", - "printedName": "capture(feedback:)", + "kind": "Var", + "name": "tracesSampleRate", + "printedName": "tracesSampleRate", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "SentryFeedback", - "printedName": "Sentry.SentryFeedback", - "usr": "c:@M@Sentry@objc(cs)SentryFeedback" + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)captureFeedback:", - "mangledName": "$s6Sentry0A3HubC7capture8feedbackyAA0A8FeedbackC_tF", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)tracesSampleRate", + "mangledName": "$s6Sentry7OptionsC16tracesSampleRateSo8NSNumberCSgvp", "moduleName": "Sentry", - "objc_name": "captureFeedback:", "declAttributes": [ + "HasInitialValue", "Final", - "ObjC" + "ObjC", + "HasStorage" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "configureScope", - "printedName": "configureScope(_:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, + "hasStorage": true, + "accessors": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.Scope) -> Swift.Void", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.NSNumber?", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" } - ] + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)tracesSampleRate", + "mangledName": "$s6Sentry7OptionsC16tracesSampleRateSo8NSNumberCSgvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" }, { "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" } - ] + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setTracesSampleRate:", + "mangledName": "$s6Sentry7OptionsC16tracesSampleRateSo8NSNumberCSgvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)configureScope:", - "mangledName": "$s6Sentry0A3HubC14configureScopeyyySo0aD0CcF", - "moduleName": "Sentry", - "declAttributes": [ - "Final", - "ObjC" - ], - "funcSelfKind": "NonMutating" + ] }, { - "kind": "Function", - "name": "add", - "printedName": "add(_:)", + "kind": "Var", + "name": "tracesSampler", + "printedName": "tracesSampler", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Breadcrumb", - "printedName": "Sentry.Breadcrumb", - "usr": "c:objc(cs)SentryBreadcrumb" + "name": "Optional", + "printedName": "Sentry.SentryTracesSamplerCallback?", + "children": [ + { + "kind": "TypeNameAlias", + "name": "SentryTracesSamplerCallback", + "printedName": "Sentry.SentryTracesSamplerCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SamplingContext) -> Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "SamplingContext", + "printedName": "Sentry.SamplingContext", + "usr": "c:objc(cs)SentrySamplingContext" + } + ] + } + ] + } + ], + "usr": "s:Sq" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)addBreadcrumb:", - "mangledName": "$s6Sentry0A3HubC3addyySo0A10BreadcrumbCF", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)tracesSampler", + "mangledName": "$s6Sentry7OptionsC13tracesSamplerSo8NSNumberCSgSo0A15SamplingContextCcSgvp", "moduleName": "Sentry", - "objc_name": "addBreadcrumb:", "declAttributes": [ + "HasInitialValue", "Final", - "ObjC" + "ObjC", + "HasStorage" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "getClient", - "printedName": "getClient()", - "children": [ + "hasStorage": true, + "accessors": [ { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryClient?", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "SentryClient", - "printedName": "Sentry.SentryClient", - "usr": "c:@M@Sentry@objc(cs)SentryClient" + "name": "Optional", + "printedName": "Sentry.SentryTracesSamplerCallback?", + "children": [ + { + "kind": "TypeNameAlias", + "name": "SentryTracesSamplerCallback", + "printedName": "Sentry.SentryTracesSamplerCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SamplingContext) -> Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "SamplingContext", + "printedName": "Sentry.SamplingContext", + "usr": "c:objc(cs)SentrySamplingContext" + } + ] + } + ] + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)tracesSampler", + "mangledName": "$s6Sentry7OptionsC13tracesSamplerSo8NSNumberCSgSo0A15SamplingContextCcSgvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryTracesSamplerCallback?", + "children": [ + { + "kind": "TypeNameAlias", + "name": "SentryTracesSamplerCallback", + "printedName": "Sentry.SentryTracesSamplerCallback", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SamplingContext) -> Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.NSNumber?", + "children": [ + { + "kind": "TypeNominal", + "name": "NSNumber", + "printedName": "Foundation.NSNumber", + "usr": "c:objc(cs)NSNumber" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "SamplingContext", + "printedName": "Sentry.SamplingContext", + "usr": "c:objc(cs)SentrySamplingContext" + } + ] + } + ] + } + ], + "usr": "s:Sq" } ], - "usr": "s:Sq" + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setTracesSampler:", + "mangledName": "$s6Sentry7OptionsC13tracesSamplerSo8NSNumberCSgSo0A15SamplingContextCcSgvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)getClient", - "mangledName": "$s6Sentry0A3HubC9getClientAA0aD0CSgyF", - "moduleName": "Sentry", - "declAttributes": [ - "Final", - "ObjC" - ], - "funcSelfKind": "NonMutating" + ] }, { "kind": "Var", - "name": "scope", - "printedName": "scope", + "name": "isTracingEnabled", + "printedName": "isTracingEnabled", "children": [ { "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryHub(py)scope", - "mangledName": "$s6Sentry0A3HubC5scopeSo0A5ScopeCvp", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)isTracingEnabled", + "mangledName": "$s6Sentry7OptionsC16isTracingEnabledSbvp", "moduleName": "Sentry", "declAttributes": [ "Final", @@ -50439,14 +49578,14 @@ "children": [ { "kind": "TypeNominal", - "name": "Scope", - "printedName": "Sentry.Scope", - "usr": "c:objc(cs)SentryScope" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)scope", - "mangledName": "$s6Sentry0A3HubC5scopeSo0A5ScopeCvg", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)isTracingEnabled", + "mangledName": "$s6Sentry7OptionsC16isTracingEnabledSbvg", "moduleName": "Sentry", "declAttributes": [ "Final", @@ -50458,19 +49597,27 @@ }, { "kind": "Var", - "name": "logger", - "printedName": "logger", + "name": "inAppIncludes", + "printedName": "inAppIncludes", "children": [ { "kind": "TypeNominal", - "name": "SentryLogger", - "printedName": "Sentry.SentryLogger", - "usr": "c:@M@Sentry@objc(cs)SentryLogger" + "name": "Array", + "printedName": "[Swift.String]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sa" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryHub(py)logger", - "mangledName": "$s6Sentry0A3HubC6loggerAA0A6LoggerCvp", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)inAppIncludes", + "mangledName": "$s6Sentry7OptionsC13inAppIncludesSaySSGvp", "moduleName": "Sentry", "declAttributes": [ "Final", @@ -50484,14 +49631,22 @@ "children": [ { "kind": "TypeNominal", - "name": "SentryLogger", - "printedName": "Sentry.SentryLogger", - "usr": "c:@M@Sentry@objc(cs)SentryLogger" + "name": "Array", + "printedName": "[Swift.String]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sa" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)logger", - "mangledName": "$s6Sentry0A3HubC6loggerAA0A6LoggerCvg", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)inAppIncludes", + "mangledName": "$s6Sentry7OptionsC13inAppIncludesSaySSGvg", "moduleName": "Sentry", "declAttributes": [ "Final", @@ -50503,8 +49658,8 @@ }, { "kind": "Function", - "name": "bindClient", - "printedName": "bindClient(_:)", + "name": "add", + "printedName": "add(inAppInclude:)", "children": [ { "kind": "TypeNominal", @@ -50513,23 +49668,16 @@ }, { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryClient?", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryClient", - "printedName": "Sentry.SentryClient", - "usr": "c:@M@Sentry@objc(cs)SentryClient" - } - ], - "usr": "s:Sq" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)bindClient:", - "mangledName": "$s6Sentry0A3HubC10bindClientyyAA0aD0CSgF", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)addInAppInclude:", + "mangledName": "$s6Sentry7OptionsC3add12inAppIncludeySS_tF", "moduleName": "Sentry", + "objc_name": "addInAppInclude:", "declAttributes": [ "Final", "ObjC" @@ -50537,92 +49685,70 @@ "funcSelfKind": "NonMutating" }, { - "kind": "Function", - "name": "hasIntegration", - "printedName": "hasIntegration(_:)", + "kind": "Var", + "name": "inAppExcludes", + "printedName": "inAppExcludes", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Array", + "printedName": "[Swift.String]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sa" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)hasIntegration:", - "mangledName": "$s6Sentry0A3HubC14hasIntegrationySbSSF", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)inAppExcludes", + "mangledName": "$s6Sentry7OptionsC13inAppExcludesSaySSGvp", "moduleName": "Sentry", "declAttributes": [ "Final", "ObjC" ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "isIntegrationInstalled", - "printedName": "isIntegrationInstalled(_:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - }, + "accessors": [ { - "kind": "TypeNameAlias", - "name": "AnyClass", - "printedName": "Swift.AnyClass", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "ExistentialMetatype", - "printedName": "any Swift.AnyObject.Type", + "name": "Array", + "printedName": "[Swift.String]", "children": [ { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Swift.AnyObject", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Builtin.AnyObject", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "AnyObject" - } - ] - } - ] + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } - ] + ], + "usr": "s:Sa" } - ] + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)inAppExcludes", + "mangledName": "$s6Sentry7OptionsC13inAppExcludesSaySSGvg", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)isIntegrationInstalled:", - "mangledName": "$s6Sentry0A3HubC22isIntegrationInstalledySbyXlXpF", - "moduleName": "Sentry", - "declAttributes": [ - "Final", - "ObjC" - ], - "funcSelfKind": "NonMutating" + ] }, { "kind": "Function", - "name": "setUser", - "printedName": "setUser(_:)", + "name": "add", + "printedName": "add(inAppExclude:)", "children": [ { "kind": "TypeNominal", @@ -50631,23 +49757,16 @@ }, { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.User?", - "children": [ - { - "kind": "TypeNominal", - "name": "User", - "printedName": "Sentry.User", - "usr": "c:objc(cs)SentryUser" - } - ], - "usr": "s:Sq" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } ], "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)setUser:", - "mangledName": "$s6Sentry0A3HubC7setUseryySo0aD0CSgF", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)addInAppExclude:", + "mangledName": "$s6Sentry7OptionsC3add12inAppExcludeySS_tF", "moduleName": "Sentry", + "objc_name": "addInAppExclude:", "declAttributes": [ "Final", "ObjC" @@ -50655,469 +49774,784 @@ "funcSelfKind": "NonMutating" }, { - "kind": "Function", - "name": "reportFullyDisplayed", - "printedName": "reportFullyDisplayed()", + "kind": "Var", + "name": "urlSessionDelegate", + "printedName": "urlSessionDelegate", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "WeakStorage", + "printedName": "(any Foundation.URLSessionDelegate)?" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)reportFullyDisplayed", - "mangledName": "$s6Sentry0A3HubC20reportFullyDisplayedyyF", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)urlSessionDelegate", + "mangledName": "$s6Sentry7OptionsC18urlSessionDelegateSo012NSURLSessionE0_pSgvp", "moduleName": "Sentry", "declAttributes": [ + "HasInitialValue", "Final", - "ObjC" + "ObjC", + "ReferenceOwnership", + "HasStorage" ], - "funcSelfKind": "NonMutating" + "ownership": 1, + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "(any Foundation.URLSessionDelegate)?", + "children": [ + { + "kind": "TypeNominal", + "name": "URLSessionDelegate", + "printedName": "any Foundation.URLSessionDelegate", + "usr": "c:objc(pl)NSURLSessionDelegate" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)urlSessionDelegate", + "mangledName": "$s6Sentry7OptionsC18urlSessionDelegateSo012NSURLSessionE0_pSgvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "(any Foundation.URLSessionDelegate)?", + "children": [ + { + "kind": "TypeNominal", + "name": "URLSessionDelegate", + "printedName": "any Foundation.URLSessionDelegate", + "usr": "c:objc(pl)NSURLSessionDelegate" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setUrlSessionDelegate:", + "mangledName": "$s6Sentry7OptionsC18urlSessionDelegateSo012NSURLSessionE0_pSgvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" + } + ] }, { - "kind": "Function", - "name": "flush", - "printedName": "flush(timeout:)", + "kind": "Var", + "name": "urlSession", + "printedName": "urlSession", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNameAlias", - "name": "TimeInterval", - "printedName": "Foundation.TimeInterval", + "name": "Optional", + "printedName": "Foundation.URLSession?", "children": [ { "kind": "TypeNominal", - "name": "Double", - "printedName": "Swift.Double", - "usr": "s:Sd" + "name": "URLSession", + "printedName": "Foundation.URLSession", + "usr": "c:objc(cs)NSURLSession" } - ] + ], + "usr": "s:Sq" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)flush:", - "mangledName": "$s6Sentry0A3HubC5flush7timeoutySd_tF", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)urlSession", + "mangledName": "$s6Sentry7OptionsC10urlSessionSo12NSURLSessionCSgvp", "moduleName": "Sentry", - "objc_name": "flush:", "declAttributes": [ + "HasInitialValue", "Final", - "ObjC" + "ObjC", + "HasStorage" ], - "funcSelfKind": "NonMutating" + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.URLSession?", + "children": [ + { + "kind": "TypeNominal", + "name": "URLSession", + "printedName": "Foundation.URLSession", + "usr": "c:objc(cs)NSURLSession" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)urlSession", + "mangledName": "$s6Sentry7OptionsC10urlSessionSo12NSURLSessionCSgvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Foundation.URLSession?", + "children": [ + { + "kind": "TypeNominal", + "name": "URLSession", + "printedName": "Foundation.URLSession", + "usr": "c:objc(cs)NSURLSession" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setUrlSession:", + "mangledName": "$s6Sentry7OptionsC10urlSessionSo12NSURLSessionCSgvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" + } + ] }, { - "kind": "Function", - "name": "close", - "printedName": "close()", + "kind": "Var", + "name": "enableSwizzling", + "printedName": "enableSwizzling", "children": [ { "kind": "TypeNominal", - "name": "Void", - "printedName": "()" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryHub(im)close", - "mangledName": "$s6Sentry0A3HubC5closeyyF", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enableSwizzling", + "mangledName": "$s6Sentry7OptionsC15enableSwizzlingSbvp", "moduleName": "Sentry", "declAttributes": [ "Final", - "ObjC" + "ObjC", + "HasStorage" ], - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Class", - "usr": "c:@M@Sentry@objc(cs)SentryHub", - "mangledName": "$s6Sentry0A3HubC", - "moduleName": "Sentry", - "declAttributes": [ - "Final", - "ObjC" - ], - "superclassUsr": "c:objc(cs)NSObject", - "superclassNames": [ - "ObjectiveC.NSObject" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - } - ] - }, - { - "kind": "TypeDecl", - "name": "SentryTransactionNameSource", - "printedName": "SentryTransactionNameSource", - "children": [ - { - "kind": "Var", - "name": "custom", - "printedName": "custom", - "children": [ + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableSwizzling", + "mangledName": "$s6Sentry7OptionsC15enableSwizzlingSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryTransactionNameSource.Type) -> Sentry.SentryTransactionNameSource", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { "kind": "TypeNominal", - "name": "SentryTransactionNameSource", - "printedName": "Sentry.SentryTransactionNameSource", - "usr": "c:@M@Sentry@E@SentryTransactionNameSource" + "name": "Void", + "printedName": "()" }, { "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryTransactionNameSource.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryTransactionNameSource", - "printedName": "Sentry.SentryTransactionNameSource", - "usr": "c:@M@Sentry@E@SentryTransactionNameSource" - } - ] + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } - ] + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableSwizzling:", + "mangledName": "$s6Sentry7OptionsC15enableSwizzlingSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryTransactionNameSource@kSentryTransactionNameSourceCustom", - "mangledName": "$s6Sentry0A21TransactionNameSourceO6customyA2CmF", - "moduleName": "Sentry", - "objc_name": "kSentryTransactionNameSourceCustom", - "declAttributes": [ - "ObjC" ] }, { "kind": "Var", - "name": "url", - "printedName": "url", + "name": "swizzleClassNameExcludes", + "printedName": "swizzleClassNameExcludes", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryTransactionNameSource.Type) -> Sentry.SentryTransactionNameSource", + "kind": "TypeNominal", + "name": "Set", + "printedName": "Swift.Set", "children": [ { "kind": "TypeNominal", - "name": "SentryTransactionNameSource", - "printedName": "Sentry.SentryTransactionNameSource", - "usr": "c:@M@Sentry@E@SentryTransactionNameSource" - }, + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sh" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)swizzleClassNameExcludes", + "mangledName": "$s6Sentry7OptionsC24swizzleClassNameExcludesShySSGvp", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC", + "HasStorage" + ], + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ { "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryTransactionNameSource.Type", + "name": "Set", + "printedName": "Swift.Set", "children": [ { "kind": "TypeNominal", - "name": "SentryTransactionNameSource", - "printedName": "Sentry.SentryTransactionNameSource", - "usr": "c:@M@Sentry@E@SentryTransactionNameSource" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } - ] + ], + "usr": "s:Sh" } - ] - } - ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryTransactionNameSource@kSentryTransactionNameSourceUrl", - "mangledName": "$s6Sentry0A21TransactionNameSourceO3urlyA2CmF", - "moduleName": "Sentry", - "objc_name": "kSentryTransactionNameSourceUrl", - "declAttributes": [ - "ObjC" - ] - }, - { - "kind": "Var", - "name": "route", - "printedName": "route", - "children": [ + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)swizzleClassNameExcludes", + "mangledName": "$s6Sentry7OptionsC24swizzleClassNameExcludesShySSGvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryTransactionNameSource.Type) -> Sentry.SentryTransactionNameSource", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { "kind": "TypeNominal", - "name": "SentryTransactionNameSource", - "printedName": "Sentry.SentryTransactionNameSource", - "usr": "c:@M@Sentry@E@SentryTransactionNameSource" + "name": "Void", + "printedName": "()" }, { "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryTransactionNameSource.Type", + "name": "Set", + "printedName": "Swift.Set", "children": [ { "kind": "TypeNominal", - "name": "SentryTransactionNameSource", - "printedName": "Sentry.SentryTransactionNameSource", - "usr": "c:@M@Sentry@E@SentryTransactionNameSource" + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" } - ] + ], + "usr": "s:Sh" } - ] + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setSwizzleClassNameExcludes:", + "mangledName": "$s6Sentry7OptionsC24swizzleClassNameExcludesShySSGvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryTransactionNameSource@kSentryTransactionNameSourceRoute", - "mangledName": "$s6Sentry0A21TransactionNameSourceO5routeyA2CmF", - "moduleName": "Sentry", - "objc_name": "kSentryTransactionNameSourceRoute", - "declAttributes": [ - "ObjC" ] }, { "kind": "Var", - "name": "view", - "printedName": "view", + "name": "enableCoreDataTracing", + "printedName": "enableCoreDataTracing", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryTransactionNameSource.Type) -> Sentry.SentryTransactionNameSource", + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enableCoreDataTracing", + "mangledName": "$s6Sentry7OptionsC21enableCoreDataTracingSbvp", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC", + "HasStorage" + ], + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "SentryTransactionNameSource", - "printedName": "Sentry.SentryTransactionNameSource", - "usr": "c:@M@Sentry@E@SentryTransactionNameSource" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableCoreDataTracing", + "mangledName": "$s6Sentry7OptionsC21enableCoreDataTracingSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" }, { "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryTransactionNameSource.Type", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableCoreDataTracing:", + "mangledName": "$s6Sentry7OptionsC21enableCoreDataTracingSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" + } + ] + }, + { + "kind": "Var", + "name": "configureProfiling", + "printedName": "configureProfiling", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "((Sentry.SentryProfileOptions) -> Swift.Void)?", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryProfileOptions) -> Swift.Void", "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, { "kind": "TypeNominal", - "name": "SentryTransactionNameSource", - "printedName": "Sentry.SentryTransactionNameSource", - "usr": "c:@M@Sentry@E@SentryTransactionNameSource" + "name": "SentryProfileOptions", + "printedName": "Sentry.SentryProfileOptions", + "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions" } ] } - ] + ], + "usr": "s:Sq" } ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryTransactionNameSource@kSentryTransactionNameSourceView", - "mangledName": "$s6Sentry0A21TransactionNameSourceO4viewyA2CmF", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)configureProfiling", + "mangledName": "$s6Sentry7OptionsC18configureProfilingyAA0a7ProfileB0CcSgvp", "moduleName": "Sentry", - "objc_name": "kSentryTransactionNameSourceView", "declAttributes": [ - "ObjC" - ] - }, - { - "kind": "Var", - "name": "component", - "printedName": "component", - "children": [ + "HasInitialValue", + "Final", + "ObjC", + "HasStorage" + ], + "hasStorage": true, + "accessors": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryTransactionNameSource.Type) -> Sentry.SentryTransactionNameSource", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "SentryTransactionNameSource", - "printedName": "Sentry.SentryTransactionNameSource", - "usr": "c:@M@Sentry@E@SentryTransactionNameSource" + "name": "Optional", + "printedName": "((Sentry.SentryProfileOptions) -> Swift.Void)?", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryProfileOptions) -> Swift.Void", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "SentryProfileOptions", + "printedName": "Sentry.SentryProfileOptions", + "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions" + } + ] + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)configureProfiling", + "mangledName": "$s6Sentry7OptionsC18configureProfilingyAA0a7ProfileB0CcSgvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" }, { "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryTransactionNameSource.Type", + "name": "Optional", + "printedName": "((Sentry.SentryProfileOptions) -> Swift.Void)?", "children": [ { - "kind": "TypeNominal", - "name": "SentryTransactionNameSource", - "printedName": "Sentry.SentryTransactionNameSource", - "usr": "c:@M@Sentry@E@SentryTransactionNameSource" + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryProfileOptions) -> Swift.Void", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "SentryProfileOptions", + "printedName": "Sentry.SentryProfileOptions", + "usr": "c:@M@Sentry@objc(cs)SentryProfileOptions" + } + ] } - ] + ], + "usr": "s:Sq" } - ] + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setConfigureProfiling:", + "mangledName": "$s6Sentry7OptionsC18configureProfilingyAA0a7ProfileB0CcSgvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryTransactionNameSource@kSentryTransactionNameSourceComponent", - "mangledName": "$s6Sentry0A21TransactionNameSourceO9componentyA2CmF", - "moduleName": "Sentry", - "objc_name": "kSentryTransactionNameSourceComponent", - "declAttributes": [ - "ObjC" ] }, { "kind": "Var", - "name": "sourceTask", - "printedName": "sourceTask", + "name": "sendClientReports", + "printedName": "sendClientReports", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryTransactionNameSource.Type) -> Sentry.SentryTransactionNameSource", + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)sendClientReports", + "mangledName": "$s6Sentry7OptionsC17sendClientReportsSbvp", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC", + "HasStorage" + ], + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "SentryTransactionNameSource", - "printedName": "Sentry.SentryTransactionNameSource", - "usr": "c:@M@Sentry@E@SentryTransactionNameSource" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)sendClientReports", + "mangledName": "$s6Sentry7OptionsC17sendClientReportsSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" }, { "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryTransactionNameSource.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryTransactionNameSource", - "printedName": "Sentry.SentryTransactionNameSource", - "usr": "c:@M@Sentry@E@SentryTransactionNameSource" - } - ] + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } - ] + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setSendClientReports:", + "mangledName": "$s6Sentry7OptionsC17sendClientReportsSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryTransactionNameSource@kSentryTransactionNameSourceTask", - "mangledName": "$s6Sentry0A21TransactionNameSourceO10sourceTaskyA2CmF", - "moduleName": "Sentry", - "objc_name": "kSentryTransactionNameSourceTask", - "declAttributes": [ - "ObjC" ] }, { - "kind": "Constructor", - "name": "init", - "printedName": "init(rawValue:)", + "kind": "Var", + "name": "enableAppHangTracking", + "printedName": "enableAppHangTracking", "children": [ { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryTransactionNameSource?", + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enableAppHangTracking", + "mangledName": "$s6Sentry7OptionsC21enableAppHangTrackingSbvp", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC", + "HasStorage" + ], + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "SentryTransactionNameSource", - "printedName": "Sentry.SentryTransactionNameSource", - "usr": "c:@M@Sentry@E@SentryTransactionNameSource" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "usr": "s:Sq" + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableAppHangTracking", + "mangledName": "$s6Sentry7OptionsC21enableAppHangTrackingSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" }, { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Constructor", - "usr": "s:6Sentry0A21TransactionNameSourceO8rawValueACSgSi_tcfc", - "mangledName": "$s6Sentry0A21TransactionNameSourceO8rawValueACSgSi_tcfc", - "moduleName": "Sentry", - "init_kind": "Designated" - }, - { - "kind": "TypeAlias", - "name": "RawValue", - "printedName": "RawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableAppHangTracking:", + "mangledName": "$s6Sentry7OptionsC21enableAppHangTrackingSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "TypeAlias", - "usr": "s:6Sentry0A21TransactionNameSourceO8RawValuea", - "mangledName": "$s6Sentry0A21TransactionNameSourceO8RawValuea", - "moduleName": "Sentry" + ] }, { "kind": "Var", - "name": "rawValue", - "printedName": "rawValue", + "name": "appHangTimeoutInterval", + "printedName": "appHangTimeoutInterval", "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "Double", + "printedName": "Swift.Double", + "usr": "s:Sd" } ], "declKind": "Var", - "usr": "s:6Sentry0A21TransactionNameSourceO8rawValueSivp", - "mangledName": "$s6Sentry0A21TransactionNameSourceO8rawValueSivp", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)appHangTimeoutInterval", + "mangledName": "$s6Sentry7OptionsC22appHangTimeoutIntervalSdvp", "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC", + "HasStorage" + ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -51126,97 +50560,56 @@ "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "Double", + "printedName": "Swift.Double", + "usr": "s:Sd" } ], "declKind": "Accessor", - "usr": "s:6Sentry0A21TransactionNameSourceO8rawValueSivg", - "mangledName": "$s6Sentry0A21TransactionNameSourceO8rawValueSivg", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)appHangTimeoutInterval", + "mangledName": "$s6Sentry7OptionsC22appHangTimeoutIntervalSdvg", "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], "accessorKind": "get" - } - ] - } - ], - "declKind": "Enum", - "usr": "c:@M@Sentry@E@SentryTransactionNameSource", - "mangledName": "$s6Sentry0A21TransactionNameSourceO", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ], - "enumRawTypeName": "Int", - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "RawRepresentable", - "printedName": "RawRepresentable", - "children": [ + }, { - "kind": "TypeWitness", - "name": "RawValue", - "printedName": "RawValue", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { - "kind": "TypeNameAlias", - "name": "RawValue", - "printedName": "Sentry.SentryTransactionNameSource.RawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ] + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Double", + "printedName": "Swift.Double", + "usr": "s:Sd" } - ] + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setAppHangTimeoutInterval:", + "mangledName": "$s6Sentry7OptionsC22appHangTimeoutIntervalSdvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "usr": "s:SY", - "mangledName": "$sSY" - } - ] - }, - { - "kind": "TypeDecl", - "name": "SentryRedactOptions", - "printedName": "SentryRedactOptions", - "children": [ + ] + }, { "kind": "Var", - "name": "maskAllText", - "printedName": "maskAllText", + "name": "enableAutoBreadcrumbTracking", + "printedName": "enableAutoBreadcrumbTracking", "children": [ { "kind": "TypeNominal", @@ -51226,13 +50619,15 @@ } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(pl)SentryRedactOptions(py)maskAllText", - "mangledName": "$s6Sentry0A13RedactOptionsP11maskAllTextSbvp", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enableAutoBreadcrumbTracking", + "mangledName": "$s6Sentry7OptionsC28enableAutoBreadcrumbTrackingSbvp", "moduleName": "Sentry", - "protocolReq": true, "declAttributes": [ - "ObjC" + "Final", + "ObjC", + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -51247,23 +50642,50 @@ } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(pl)SentryRedactOptions(im)maskAllText", - "mangledName": "$s6Sentry0A13RedactOptionsP11maskAllTextSbvg", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableAutoBreadcrumbTracking", + "mangledName": "$s6Sentry7OptionsC28enableAutoBreadcrumbTrackingSbvg", "moduleName": "Sentry", - "genericSig": "", - "protocolReq": true, + "implicit": true, "declAttributes": [ + "Final", "ObjC" ], - "reqNewWitnessTableEntry": true, "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableAutoBreadcrumbTracking:", + "mangledName": "$s6Sentry7OptionsC28enableAutoBreadcrumbTrackingSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } ] }, { "kind": "Var", - "name": "maskAllImages", - "printedName": "maskAllImages", + "name": "enablePropagateTraceparent", + "printedName": "enablePropagateTraceparent", "children": [ { "kind": "TypeNominal", @@ -51273,13 +50695,15 @@ } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(pl)SentryRedactOptions(py)maskAllImages", - "mangledName": "$s6Sentry0A13RedactOptionsP13maskAllImagesSbvp", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enablePropagateTraceparent", + "mangledName": "$s6Sentry7OptionsC26enablePropagateTraceparentSbvp", "moduleName": "Sentry", - "protocolReq": true, "declAttributes": [ - "ObjC" + "Final", + "ObjC", + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -51294,74 +50718,75 @@ } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(pl)SentryRedactOptions(im)maskAllImages", - "mangledName": "$s6Sentry0A13RedactOptionsP13maskAllImagesSbvg", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enablePropagateTraceparent", + "mangledName": "$s6Sentry7OptionsC26enablePropagateTraceparentSbvg", "moduleName": "Sentry", - "genericSig": "", - "protocolReq": true, + "implicit": true, "declAttributes": [ + "Final", "ObjC" ], - "reqNewWitnessTableEntry": true, "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnablePropagateTraceparent:", + "mangledName": "$s6Sentry7OptionsC26enablePropagateTraceparentSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } ] }, { "kind": "Var", - "name": "maskedViewClasses", - "printedName": "maskedViewClasses", + "name": "tracePropagationTargets", + "printedName": "tracePropagationTargets", "children": [ { "kind": "TypeNominal", "name": "Array", - "printedName": "[Swift.AnyClass]", + "printedName": "[Any]", "children": [ { - "kind": "TypeNameAlias", - "name": "AnyClass", - "printedName": "Swift.AnyClass", - "children": [ - { - "kind": "TypeNominal", - "name": "ExistentialMetatype", - "printedName": "any Swift.AnyObject.Type", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Swift.AnyObject", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Builtin.AnyObject", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "AnyObject" - } - ] - } - ] - } - ] - } - ] + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" } ], "usr": "s:Sa" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(pl)SentryRedactOptions(py)maskedViewClasses", - "mangledName": "$s6Sentry0A13RedactOptionsP17maskedViewClassesSayyXlXpGvp", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)tracePropagationTargets", + "mangledName": "$s6Sentry7OptionsC23tracePropagationTargetsSayypGvp", "moduleName": "Sentry", - "protocolReq": true, "declAttributes": [ - "ObjC" + "Final", + "ObjC", + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -51371,114 +50796,171 @@ { "kind": "TypeNominal", "name": "Array", - "printedName": "[Swift.AnyClass]", + "printedName": "[Any]", "children": [ { - "kind": "TypeNameAlias", - "name": "AnyClass", - "printedName": "Swift.AnyClass", - "children": [ - { - "kind": "TypeNominal", - "name": "ExistentialMetatype", - "printedName": "any Swift.AnyObject.Type", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Swift.AnyObject", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Builtin.AnyObject", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "AnyObject" - } - ] - } - ] - } - ] - } - ] + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" } ], "usr": "s:Sa" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(pl)SentryRedactOptions(im)maskedViewClasses", - "mangledName": "$s6Sentry0A13RedactOptionsP17maskedViewClassesSayyXlXpGvg", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)tracePropagationTargets", + "mangledName": "$s6Sentry7OptionsC23tracePropagationTargetsSayypGvg", "moduleName": "Sentry", - "genericSig": "", - "protocolReq": true, + "implicit": true, "declAttributes": [ + "Final", "ObjC" ], - "reqNewWitnessTableEntry": true, "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Array", + "printedName": "[Any]", + "children": [ + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" + } + ], + "usr": "s:Sa" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setTracePropagationTargets:", + "mangledName": "$s6Sentry7OptionsC23tracePropagationTargetsSayypGvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } ] }, { "kind": "Var", - "name": "unmaskedViewClasses", - "printedName": "unmaskedViewClasses", + "name": "enableCaptureFailedRequests", + "printedName": "enableCaptureFailedRequests", "children": [ { "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.AnyClass]", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enableCaptureFailedRequests", + "mangledName": "$s6Sentry7OptionsC27enableCaptureFailedRequestsSbvp", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC", + "HasStorage" + ], + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { - "kind": "TypeNameAlias", - "name": "AnyClass", - "printedName": "Swift.AnyClass", - "children": [ - { - "kind": "TypeNominal", - "name": "ExistentialMetatype", - "printedName": "any Swift.AnyObject.Type", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Swift.AnyObject", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Builtin.AnyObject", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "AnyObject" - } - ] - } - ] - } - ] - } - ] + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableCaptureFailedRequests", + "mangledName": "$s6Sentry7OptionsC27enableCaptureFailedRequestsSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableCaptureFailedRequests:", + "mangledName": "$s6Sentry7OptionsC27enableCaptureFailedRequestsSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" + } + ] + }, + { + "kind": "Var", + "name": "failedRequestStatusCodes", + "printedName": "failedRequestStatusCodes", + "children": [ + { + "kind": "TypeNominal", + "name": "Array", + "printedName": "[Sentry.HttpStatusCodeRange]", + "children": [ + { + "kind": "TypeNominal", + "name": "HttpStatusCodeRange", + "printedName": "Sentry.HttpStatusCodeRange", + "usr": "c:objc(cs)SentryHttpStatusCodeRange" } ], "usr": "s:Sa" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(pl)SentryRedactOptions(py)unmaskedViewClasses", - "mangledName": "$s6Sentry0A13RedactOptionsP19unmaskedViewClassesSayyXlXpGvp", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)failedRequestStatusCodes", + "mangledName": "$s6Sentry7OptionsC24failedRequestStatusCodesSaySo0a4HttpE9CodeRangeCGvp", "moduleName": "Sentry", - "protocolReq": true, "declAttributes": [ - "ObjC" + "Final", + "ObjC", + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -51488,401 +50970,414 @@ { "kind": "TypeNominal", "name": "Array", - "printedName": "[Swift.AnyClass]", + "printedName": "[Sentry.HttpStatusCodeRange]", "children": [ { - "kind": "TypeNameAlias", - "name": "AnyClass", - "printedName": "Swift.AnyClass", - "children": [ - { - "kind": "TypeNominal", - "name": "ExistentialMetatype", - "printedName": "any Swift.AnyObject.Type", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Swift.AnyObject", - "children": [ - { - "kind": "TypeNameAlias", - "name": "AnyObject", - "printedName": "Builtin.AnyObject", - "children": [ - { - "kind": "TypeNominal", - "name": "ProtocolComposition", - "printedName": "AnyObject" - } - ] - } - ] - } - ] - } - ] + "kind": "TypeNominal", + "name": "HttpStatusCodeRange", + "printedName": "Sentry.HttpStatusCodeRange", + "usr": "c:objc(cs)SentryHttpStatusCodeRange" } ], "usr": "s:Sa" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(pl)SentryRedactOptions(im)unmaskedViewClasses", - "mangledName": "$s6Sentry0A13RedactOptionsP19unmaskedViewClassesSayyXlXpGvg", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)failedRequestStatusCodes", + "mangledName": "$s6Sentry7OptionsC24failedRequestStatusCodesSaySo0a4HttpE9CodeRangeCGvg", "moduleName": "Sentry", - "genericSig": "", - "protocolReq": true, + "implicit": true, "declAttributes": [ + "Final", "ObjC" ], - "reqNewWitnessTableEntry": true, "accessorKind": "get" - } - ] - } - ], - "declKind": "Protocol", - "usr": "c:@M@Sentry@objc(pl)SentryRedactOptions", - "mangledName": "$s6Sentry0A13RedactOptionsP", - "moduleName": "Sentry", - "genericSig": "", - "declAttributes": [ - "ObjC" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - } - ] - }, - { - "kind": "TypeDecl", - "name": "SentryLevel", - "printedName": "SentryLevel", - "children": [ - { - "kind": "Var", - "name": "none", - "printedName": "none", - "children": [ + }, { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryLevel.Type) -> Sentry.SentryLevel", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { "kind": "TypeNominal", - "name": "SentryLevel", - "printedName": "Sentry.SentryLevel", - "usr": "c:@M@Sentry@E@SentryLevel" + "name": "Void", + "printedName": "()" }, { "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryLevel.Type", + "name": "Array", + "printedName": "[Sentry.HttpStatusCodeRange]", "children": [ { "kind": "TypeNominal", - "name": "SentryLevel", - "printedName": "Sentry.SentryLevel", - "usr": "c:@M@Sentry@E@SentryLevel" + "name": "HttpStatusCodeRange", + "printedName": "Sentry.HttpStatusCodeRange", + "usr": "c:objc(cs)SentryHttpStatusCodeRange" } - ] + ], + "usr": "s:Sa" } - ] + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setFailedRequestStatusCodes:", + "mangledName": "$s6Sentry7OptionsC24failedRequestStatusCodesSaySo0a4HttpE9CodeRangeCGvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryLevel@kSentryLevelNone", - "mangledName": "$s6Sentry0A5LevelO4noneyA2CmF", - "moduleName": "Sentry", - "objc_name": "kSentryLevelNone", - "declAttributes": [ - "ObjC" ] }, { "kind": "Var", - "name": "debug", - "printedName": "debug", + "name": "failedRequestTargets", + "printedName": "failedRequestTargets", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryLevel.Type) -> Sentry.SentryLevel", + "kind": "TypeNominal", + "name": "Array", + "printedName": "[Any]", "children": [ { "kind": "TypeNominal", - "name": "SentryLevel", - "printedName": "Sentry.SentryLevel", - "usr": "c:@M@Sentry@E@SentryLevel" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryLevel.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryLevel", - "printedName": "Sentry.SentryLevel", - "usr": "c:@M@Sentry@E@SentryLevel" - } - ] + "name": "ProtocolComposition", + "printedName": "Any" } - ] + ], + "usr": "s:Sa" } ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryLevel@kSentryLevelDebug", - "mangledName": "$s6Sentry0A5LevelO5debugyA2CmF", + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)failedRequestTargets", + "mangledName": "$s6Sentry7OptionsC20failedRequestTargetsSayypGvp", "moduleName": "Sentry", - "objc_name": "kSentryLevelDebug", "declAttributes": [ - "ObjC" - ] - }, - { - "kind": "Var", - "name": "info", - "printedName": "info", - "children": [ + "Final", + "ObjC", + "HasStorage" + ], + "hasStorage": true, + "accessors": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryLevel.Type) -> Sentry.SentryLevel", + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "SentryLevel", - "printedName": "Sentry.SentryLevel", - "usr": "c:@M@Sentry@E@SentryLevel" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryLevel.Type", + "name": "Array", + "printedName": "[Any]", "children": [ { "kind": "TypeNominal", - "name": "SentryLevel", - "printedName": "Sentry.SentryLevel", - "usr": "c:@M@Sentry@E@SentryLevel" + "name": "ProtocolComposition", + "printedName": "Any" } - ] + ], + "usr": "s:Sa" } - ] - } - ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryLevel@kSentryLevelInfo", - "mangledName": "$s6Sentry0A5LevelO4infoyA2CmF", - "moduleName": "Sentry", - "objc_name": "kSentryLevelInfo", - "declAttributes": [ - "ObjC" - ] - }, - { - "kind": "Var", - "name": "warning", - "printedName": "warning", - "children": [ + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)failedRequestTargets", + "mangledName": "$s6Sentry7OptionsC20failedRequestTargetsSayypGvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryLevel.Type) -> Sentry.SentryLevel", + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", "children": [ { "kind": "TypeNominal", - "name": "SentryLevel", - "printedName": "Sentry.SentryLevel", - "usr": "c:@M@Sentry@E@SentryLevel" + "name": "Void", + "printedName": "()" }, { "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryLevel.Type", + "name": "Array", + "printedName": "[Any]", "children": [ { "kind": "TypeNominal", - "name": "SentryLevel", - "printedName": "Sentry.SentryLevel", - "usr": "c:@M@Sentry@E@SentryLevel" + "name": "ProtocolComposition", + "printedName": "Any" } - ] + ], + "usr": "s:Sa" } - ] + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setFailedRequestTargets:", + "mangledName": "$s6Sentry7OptionsC20failedRequestTargetsSayypGvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryLevel@kSentryLevelWarning", - "mangledName": "$s6Sentry0A5LevelO7warningyA2CmF", - "moduleName": "Sentry", - "objc_name": "kSentryLevelWarning", - "declAttributes": [ - "ObjC" ] }, { "kind": "Var", - "name": "error", - "printedName": "error", + "name": "enableMetricKit", + "printedName": "enableMetricKit", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryLevel.Type) -> Sentry.SentryLevel", + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enableMetricKit", + "mangledName": "$s6Sentry7OptionsC15enableMetricKitSbvp", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC", + "HasStorage" + ], + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "SentryLevel", - "printedName": "Sentry.SentryLevel", - "usr": "c:@M@Sentry@E@SentryLevel" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableMetricKit", + "mangledName": "$s6Sentry7OptionsC15enableMetricKitSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" }, { "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryLevel.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryLevel", - "printedName": "Sentry.SentryLevel", - "usr": "c:@M@Sentry@E@SentryLevel" - } - ] + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } - ] + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableMetricKit:", + "mangledName": "$s6Sentry7OptionsC15enableMetricKitSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryLevel@kSentryLevelError", - "mangledName": "$s6Sentry0A5LevelO5erroryA2CmF", - "moduleName": "Sentry", - "objc_name": "kSentryLevelError", - "declAttributes": [ - "ObjC" ] }, { "kind": "Var", - "name": "fatal", - "printedName": "fatal", + "name": "enableMetricKitRawPayload", + "printedName": "enableMetricKitRawPayload", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryLevel.Type) -> Sentry.SentryLevel", + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enableMetricKitRawPayload", + "mangledName": "$s6Sentry7OptionsC25enableMetricKitRawPayloadSbvp", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC", + "HasStorage" + ], + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "SentryLevel", - "printedName": "Sentry.SentryLevel", - "usr": "c:@M@Sentry@E@SentryLevel" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableMetricKitRawPayload", + "mangledName": "$s6Sentry7OptionsC25enableMetricKitRawPayloadSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" }, { "kind": "TypeNominal", - "name": "Metatype", - "printedName": "Sentry.SentryLevel.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryLevel", - "printedName": "Sentry.SentryLevel", - "usr": "c:@M@Sentry@E@SentryLevel" - } - ] + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } - ] + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableMetricKitRawPayload:", + "mangledName": "$s6Sentry7OptionsC25enableMetricKitRawPayloadSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "EnumElement", - "usr": "c:@M@Sentry@E@SentryLevel@kSentryLevelFatal", - "mangledName": "$s6Sentry0A5LevelO5fatalyA2CmF", - "moduleName": "Sentry", - "objc_name": "kSentryLevelFatal", - "declAttributes": [ - "ObjC" ] }, { - "kind": "Constructor", - "name": "init", - "printedName": "init(rawValue:)", + "kind": "Var", + "name": "enableTimeToFullDisplayTracing", + "printedName": "enableTimeToFullDisplayTracing", "children": [ { "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryLevel?", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enableTimeToFullDisplayTracing", + "mangledName": "$s6Sentry7OptionsC30enableTimeToFullDisplayTracingSbvp", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC", + "HasStorage" + ], + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { "kind": "TypeNominal", - "name": "SentryLevel", - "printedName": "Sentry.SentryLevel", - "usr": "c:@M@Sentry@E@SentryLevel" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableTimeToFullDisplayTracing", + "mangledName": "$s6Sentry7OptionsC30enableTimeToFullDisplayTracingSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "UInt", - "printedName": "Swift.UInt", - "usr": "s:Su" - } - ], - "declKind": "Constructor", - "usr": "s:6Sentry0A5LevelO8rawValueACSgSu_tcfc", - "mangledName": "$s6Sentry0A5LevelO8rawValueACSgSu_tcfc", - "moduleName": "Sentry", - "init_kind": "Designated" - }, - { - "kind": "TypeAlias", - "name": "RawValue", - "printedName": "RawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "UInt", - "printedName": "Swift.UInt", - "usr": "s:Su" + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableTimeToFullDisplayTracing:", + "mangledName": "$s6Sentry7OptionsC30enableTimeToFullDisplayTracingSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "declKind": "TypeAlias", - "usr": "s:6Sentry0A5LevelO8RawValuea", - "mangledName": "$s6Sentry0A5LevelO8RawValuea", - "moduleName": "Sentry" + ] }, { "kind": "Var", - "name": "rawValue", - "printedName": "rawValue", + "name": "swiftAsyncStacktraces", + "printedName": "swiftAsyncStacktraces", "children": [ { "kind": "TypeNominal", - "name": "UInt", - "printedName": "Swift.UInt", - "usr": "s:Su" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Var", - "usr": "s:6Sentry0A5LevelO8rawValueSuvp", - "mangledName": "$s6Sentry0A5LevelO8rawValueSuvp", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)swiftAsyncStacktraces", + "mangledName": "$s6Sentry7OptionsC21swiftAsyncStacktracesSbvp", "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC", + "HasStorage" + ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -51891,23 +51386,56 @@ "children": [ { "kind": "TypeNominal", - "name": "UInt", - "printedName": "Swift.UInt", - "usr": "s:Su" + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } ], "declKind": "Accessor", - "usr": "s:6Sentry0A5LevelO8rawValueSuvg", - "mangledName": "$s6Sentry0A5LevelO8rawValueSuvg", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)swiftAsyncStacktraces", + "mangledName": "$s6Sentry7OptionsC21swiftAsyncStacktracesSbvg", "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setSwiftAsyncStacktraces:", + "mangledName": "$s6Sentry7OptionsC21swiftAsyncStacktracesSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } ] }, { "kind": "Var", - "name": "description", - "printedName": "description", + "name": "cacheDirectoryPath", + "printedName": "cacheDirectoryPath", "children": [ { "kind": "TypeNominal", @@ -51917,10 +51445,15 @@ } ], "declKind": "Var", - "usr": "s:6Sentry0A5LevelO11descriptionSSvp", - "mangledName": "$s6Sentry0A5LevelO11descriptionSSvp", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)cacheDirectoryPath", + "mangledName": "$s6Sentry7OptionsC18cacheDirectoryPathSSvp", "moduleName": "Sentry", - "isFromExtension": true, + "declAttributes": [ + "Final", + "ObjC", + "HasStorage" + ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -51935,99 +51468,126 @@ } ], "declKind": "Accessor", - "usr": "s:6Sentry0A5LevelO11descriptionSSvg", - "mangledName": "$s6Sentry0A5LevelO11descriptionSSvg", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)cacheDirectoryPath", + "mangledName": "$s6Sentry7OptionsC18cacheDirectoryPathSSvg", "moduleName": "Sentry", - "isFromExtension": true, + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setCacheDirectoryPath:", + "mangledName": "$s6Sentry7OptionsC18cacheDirectoryPathSSvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } ] - } - ], - "declKind": "Enum", - "usr": "c:@M@Sentry@E@SentryLevel", - "mangledName": "$s6Sentry0A5LevelO", - "moduleName": "Sentry", - "declAttributes": [ - "ObjC" - ], - "enumRawTypeName": "UInt", - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" }, { - "kind": "Conformance", - "name": "RawRepresentable", - "printedName": "RawRepresentable", + "kind": "Var", + "name": "enableSpotlight", + "printedName": "enableSpotlight", "children": [ { - "kind": "TypeWitness", - "name": "RawValue", - "printedName": "RawValue", + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)enableSpotlight", + "mangledName": "$s6Sentry7OptionsC15enableSpotlightSbvp", + "moduleName": "Sentry", + "declAttributes": [ + "Final", + "ObjC", + "HasStorage" + ], + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", "children": [ { - "kind": "TypeNameAlias", - "name": "RawValue", - "printedName": "Sentry.SentryLevel.RawValue", - "children": [ - { - "kind": "TypeNominal", - "name": "UInt", - "printedName": "Swift.UInt", - "usr": "s:Su" - } - ] + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" } - ] + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableSpotlight", + "mangledName": "$s6Sentry7OptionsC15enableSpotlightSbvg", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableSpotlight:", + "mangledName": "$s6Sentry7OptionsC15enableSpotlightSbvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } - ], - "usr": "s:SY", - "mangledName": "$sSY" - } - ] - }, - { - "kind": "TypeDecl", - "name": "SentryUIViewControllerDescriptor", - "printedName": "SentryUIViewControllerDescriptor", - "children": [ + ] + }, { "kind": "Var", - "name": "sentryName", - "printedName": "sentryName", + "name": "spotlightUrl", + "printedName": "spotlightUrl", "children": [ { "kind": "TypeNominal", @@ -52037,13 +51597,15 @@ } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(pl)SentryUIViewControllerDescriptor(py)sentryName", - "mangledName": "$s6Sentry0A26UIViewControllerDescriptorP10sentryNameSSvp", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)spotlightUrl", + "mangledName": "$s6Sentry7OptionsC12spotlightUrlSSvp", "moduleName": "Sentry", - "protocolReq": true, "declAttributes": [ - "ObjC" + "Final", + "ObjC", + "HasStorage" ], + "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -52058,71 +51620,61 @@ } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(pl)SentryUIViewControllerDescriptor(im)sentryName", - "mangledName": "$s6Sentry0A26UIViewControllerDescriptorP10sentryNameSSvg", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)spotlightUrl", + "mangledName": "$s6Sentry7OptionsC12spotlightUrlSSvg", "moduleName": "Sentry", - "genericSig": "", - "protocolReq": true, + "implicit": true, "declAttributes": [ + "Final", "ObjC" ], - "reqNewWitnessTableEntry": true, "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setSpotlightUrl:", + "mangledName": "$s6Sentry7OptionsC12spotlightUrlSSvs", + "moduleName": "Sentry", + "implicit": true, + "declAttributes": [ + "Final", + "ObjC" + ], + "accessorKind": "set" } ] - } - ], - "declKind": "Protocol", - "usr": "c:@M@Sentry@objc(pl)SentryUIViewControllerDescriptor", - "mangledName": "$s6Sentry0A26UIViewControllerDescriptorP", - "moduleName": "Sentry", - "genericSig": "", - "declAttributes": [ - "ObjC" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" }, - { - "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" - } - ] - }, - { - "kind": "TypeDecl", - "name": "SentryExperimentalOptions", - "printedName": "SentryExperimentalOptions", - "children": [ { "kind": "Var", - "name": "enableUnhandledCPPExceptionsV2", - "printedName": "enableUnhandledCPPExceptionsV2", + "name": "experimental", + "printedName": "experimental", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "SentryExperimentalOptions", + "printedName": "Sentry.SentryExperimentalOptions", + "usr": "c:@M@Sentry@objc(cs)SentryExperimentalOptions" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryExperimentalOptions(py)enableUnhandledCPPExceptionsV2", - "mangledName": "$s6Sentry0A19ExperimentalOptionsC30enableUnhandledCPPExceptionsV2Sbvp", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)experimental", + "mangledName": "$s6Sentry7OptionsC12experimentalAA0a12ExperimentalB0Cvp", "moduleName": "Sentry", "declAttributes": [ "Final", @@ -52138,14 +51690,14 @@ "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "SentryExperimentalOptions", + "printedName": "Sentry.SentryExperimentalOptions", + "usr": "c:@M@Sentry@objc(cs)SentryExperimentalOptions" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryExperimentalOptions(im)enableUnhandledCPPExceptionsV2", - "mangledName": "$s6Sentry0A19ExperimentalOptionsC30enableUnhandledCPPExceptionsV2Sbvg", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)experimental", + "mangledName": "$s6Sentry7OptionsC12experimentalAA0a12ExperimentalB0Cvg", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -52166,14 +51718,14 @@ }, { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "SentryExperimentalOptions", + "printedName": "Sentry.SentryExperimentalOptions", + "usr": "c:@M@Sentry@objc(cs)SentryExperimentalOptions" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryExperimentalOptions(im)setEnableUnhandledCPPExceptionsV2:", - "mangledName": "$s6Sentry0A19ExperimentalOptionsC30enableUnhandledCPPExceptionsV2Sbvs", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setExperimental:", + "mangledName": "$s6Sentry7OptionsC12experimentalAA0a12ExperimentalB0Cvs", "moduleName": "Sentry", "implicit": true, "declAttributes": [ @@ -52186,26 +51738,52 @@ }, { "kind": "Var", - "name": "enableSessionReplayInUnreliableEnvironment", - "printedName": "enableSessionReplayInUnreliableEnvironment", + "name": "configureUserFeedback", + "printedName": "configureUserFeedback", "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "((Sentry.SentryUserFeedbackConfiguration) -> Swift.Void)?", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryUserFeedbackConfiguration) -> Swift.Void", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "SentryUserFeedbackConfiguration", + "printedName": "Sentry.SentryUserFeedbackConfiguration", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration" + } + ] + } + ], + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryExperimentalOptions(py)enableSessionReplayInUnreliableEnvironment", - "mangledName": "$s6Sentry0A19ExperimentalOptionsC42enableSessionReplayInUnreliableEnvironmentSbvp", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)configureUserFeedback", + "mangledName": "$s6Sentry7OptionsC21configureUserFeedbackyAA0adE13ConfigurationCcSgvp", "moduleName": "Sentry", "declAttributes": [ "Final", "ObjC", - "HasStorage" + "Available" ], - "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -52214,16 +51792,42 @@ "children": [ { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "((Sentry.SentryUserFeedbackConfiguration) -> Swift.Void)?", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryUserFeedbackConfiguration) -> Swift.Void", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "SentryUserFeedbackConfiguration", + "printedName": "Sentry.SentryUserFeedbackConfiguration", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration" + } + ] + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryExperimentalOptions(im)enableSessionReplayInUnreliableEnvironment", - "mangledName": "$s6Sentry0A19ExperimentalOptionsC42enableSessionReplayInUnreliableEnvironmentSbvg", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)configureUserFeedback", + "mangledName": "$s6Sentry7OptionsC21configureUserFeedbackyAA0adE13ConfigurationCcSgvg", "moduleName": "Sentry", - "implicit": true, "declAttributes": [ "Final", "ObjC" @@ -52242,16 +51846,43 @@ }, { "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" + "name": "Optional", + "printedName": "((Sentry.SentryUserFeedbackConfiguration) -> Swift.Void)?", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryUserFeedbackConfiguration) -> Swift.Void", + "children": [ + { + "kind": "TypeNameAlias", + "name": "Void", + "printedName": "Swift.Void", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + }, + { + "kind": "TypeNominal", + "name": "SentryUserFeedbackConfiguration", + "printedName": "Sentry.SentryUserFeedbackConfiguration", + "usr": "c:@M@Sentry@objc(cs)SentryUserFeedbackConfiguration" + } + ] + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryExperimentalOptions(im)setEnableSessionReplayInUnreliableEnvironment:", - "mangledName": "$s6Sentry0A19ExperimentalOptionsC42enableSessionReplayInUnreliableEnvironmentSbvs", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setConfigureUserFeedback:", + "mangledName": "$s6Sentry7OptionsC21configureUserFeedbackyAA0adE13ConfigurationCcSgvs", "moduleName": "Sentry", - "implicit": true, + "objc_name": "setConfigureUserFeedback:", "declAttributes": [ "Final", "ObjC" @@ -52267,14 +51898,14 @@ "children": [ { "kind": "TypeNominal", - "name": "SentryExperimentalOptions", - "printedName": "Sentry.SentryExperimentalOptions", - "usr": "c:@M@Sentry@objc(cs)SentryExperimentalOptions" + "name": "Options", + "printedName": "Sentry.Options", + "usr": "c:@M@Sentry@objc(cs)SentryOptions" } ], "declKind": "Constructor", - "usr": "c:@M@Sentry@objc(cs)SentryExperimentalOptions(im)init", - "mangledName": "$s6Sentry0A19ExperimentalOptionsCACycfc", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)init", + "mangledName": "$s6Sentry7OptionsCACycfc", "moduleName": "Sentry", "overriding": true, "objc_name": "init", @@ -52287,12 +51918,12 @@ } ], "declKind": "Class", - "usr": "c:@M@Sentry@objc(cs)SentryExperimentalOptions", - "mangledName": "$s6Sentry0A19ExperimentalOptionsC", + "usr": "c:@M@Sentry@objc(cs)SentryOptions", + "mangledName": "$s6Sentry7OptionsC", "moduleName": "Sentry", + "objc_name": "SentryOptions", "declAttributes": [ "Final", - "ObjCMembers", "ObjC" ], "superclassUsr": "c:objc(cs)NSObject", @@ -54355,12 +53986,12 @@ "kind": "TypeNominal", "name": "Options", "printedName": "Sentry.Options", - "usr": "c:objc(cs)SentryOptions" + "usr": "c:@M@Sentry@objc(cs)SentryOptions" } ], "declKind": "Constructor", "usr": "c:@M@Sentry@objc(cs)SentryClient(im)initWithOptions:", - "mangledName": "$s6Sentry0A6ClientC7optionsACSgSo0A7OptionsC_tcfc", + "mangledName": "$s6Sentry0A6ClientC7optionsACSgAA7OptionsC_tcfc", "moduleName": "Sentry", "objc_name": "initWithOptions:", "declAttributes": [ @@ -54422,12 +54053,12 @@ "kind": "TypeNominal", "name": "Options", "printedName": "Sentry.Options", - "usr": "c:objc(cs)SentryOptions" + "usr": "c:@M@Sentry@objc(cs)SentryOptions" } ], "declKind": "Var", "usr": "c:@M@Sentry@objc(cs)SentryClient(py)options", - "mangledName": "$s6Sentry0A6ClientC7optionsSo0A7OptionsCvp", + "mangledName": "$s6Sentry0A6ClientC7optionsAA7OptionsCvp", "moduleName": "Sentry", "declAttributes": [ "Final", @@ -54443,12 +54074,12 @@ "kind": "TypeNominal", "name": "Options", "printedName": "Sentry.Options", - "usr": "c:objc(cs)SentryOptions" + "usr": "c:@M@Sentry@objc(cs)SentryOptions" } ], "declKind": "Accessor", "usr": "c:@M@Sentry@objc(cs)SentryClient(im)options", - "mangledName": "$s6Sentry0A6ClientC7optionsSo0A7OptionsCvg", + "mangledName": "$s6Sentry0A6ClientC7optionsAA7OptionsCvg", "moduleName": "Sentry", "declAttributes": [ "Final", @@ -54470,12 +54101,12 @@ "kind": "TypeNominal", "name": "Options", "printedName": "Sentry.Options", - "usr": "c:objc(cs)SentryOptions" + "usr": "c:@M@Sentry@objc(cs)SentryOptions" } ], "declKind": "Accessor", "usr": "c:@M@Sentry@objc(cs)SentryClient(im)setOptions:", - "mangledName": "$s6Sentry0A6ClientC7optionsSo0A7OptionsCvs", + "mangledName": "$s6Sentry0A6ClientC7optionsAA7OptionsCvs", "moduleName": "Sentry", "objc_name": "setOptions:", "declAttributes": [ From 129c713080e094453322b70683022f66b6ceb1ec Mon Sep 17 00:00:00 2001 From: Noah Martin Date: Wed, 5 Nov 2025 11:31:54 -0500 Subject: [PATCH 2/4] Renames --- Sources/Sentry/PrivateSentrySDKOnly.m | 7 ++-- .../Sentry/Profiling/SentryLaunchProfiling.m | 9 ++--- .../SentryProfiledTracerConcurrency.mm | 2 - .../Profiling/SentryProfilerSerialization.m | 1 - .../Profiling/SentryProfilingSwiftHelpers.m | 1 - Sources/Sentry/Public/SentryTraceContext.h | 2 - Sources/Sentry/SentryANRTrackingIntegration.m | 7 ++-- .../SentryAppStartTrackingIntegration.m | 3 +- .../SentryAutoBreadcrumbTrackingIntegration.m | 5 +-- .../SentryAutoSessionTrackingIntegration.m | 6 +-- Sources/Sentry/SentryBaggage.m | 1 - Sources/Sentry/SentryBaseIntegration.m | 8 ++-- Sources/Sentry/SentryClient.m | 24 ++++++++---- .../SentryCoreDataTrackingIntegration.m | 7 ++-- Sources/Sentry/SentryCrashIntegration.m | 8 ++-- Sources/Sentry/SentryDefaultAppStateManager.m | 1 - ...efaultUIViewControllerPerformanceTracker.m | 3 +- .../SentryDependencyContainerSwiftHelper.m | 37 ------------------ Sources/Sentry/SentryFileIOTrackerHelper.m | 1 - .../Sentry/SentryFileIOTrackingIntegration.m | 2 +- .../Sentry/SentryFramesTrackingIntegration.m | 2 +- Sources/Sentry/SentryHub.m | 6 +-- Sources/Sentry/SentryMetricKitIntegration.m | 3 +- Sources/Sentry/SentryNSDataSwizzling.m | 3 +- Sources/Sentry/SentryNSFileManagerSwizzling.m | 3 +- Sources/Sentry/SentryNetworkTracker.m | 3 +- .../Sentry/SentryNetworkTrackingIntegration.m | 4 +- Sources/Sentry/SentryOptionsConverter.m | 7 ++++ Sources/Sentry/SentryOptionsInternal.m | 26 ------------- .../SentryPerformanceTrackingIntegration.m | 3 +- Sources/Sentry/SentryProfiler.mm | 6 ++- Sources/Sentry/SentryReplayApi.m | 5 +-- Sources/Sentry/SentryRequestOperation.m | 1 - Sources/Sentry/SentrySDKInternal.m | 27 +++++++++---- Sources/Sentry/SentrySampling.m | 2 +- Sources/Sentry/SentryScreenshotIntegration.m | 4 +- .../Sentry/SentrySessionReplayIntegration.m | 5 +-- Sources/Sentry/SentrySpotlightTransport.m | 5 +-- Sources/Sentry/SentryTraceContext.m | 6 +-- Sources/Sentry/SentryTracer.m | 1 + Sources/Sentry/SentryTransportAdapter.m | 4 +- Sources/Sentry/SentryTransportFactory.m | 5 +-- .../Sentry/SentryUIEventTrackingIntegration.m | 3 +- .../Sentry/SentryUIViewControllerSwizzling.m | 4 +- .../Sentry/SentryUserFeedbackIntegration.m | 7 ++-- .../Sentry/SentryViewHierarchyIntegration.m | 4 +- .../Sentry/SentryWatchdogTerminationLogic.m | 4 +- .../Sentry/SentryWatchdogTerminationTracker.m | 4 +- ...ryWatchdogTerminationTrackingIntegration.m | 5 +-- .../HybridPublic/PrivateSentrySDKOnly.h | 4 +- .../HybridPublic/SentryBaseIntegration.h | 6 +-- .../HybridPublic/SentryIntegrationProtocol.h | 4 +- .../SentrySessionReplayIntegration.h | 4 +- Sources/Sentry/include/SentryANRTrackerV1.h | 1 - Sources/Sentry/include/SentryClient.h | 5 ++- .../include/SentryDefaultAppStateManager.h | 1 - .../SentryDependencyContainerSwiftHelper.h | 16 -------- .../Sentry/include/SentryLaunchProfiling.h | 4 +- .../Sentry/include/SentryNSDataSwizzling.h | 4 +- .../include/SentryNSFileManagerSwizzling.h | 4 +- .../Sentry/include/SentryOptionsConverter.h | 2 + .../include/SentryOptionsInternal+Private.h | 16 -------- .../Sentry/include/SentryProfiler+Private.h | 7 ++-- Sources/Sentry/include/SentrySDK+Private.h | 5 ++- Sources/Sentry/include/SentrySampling.h | 4 +- .../Sentry/include/SentrySpotlightTransport.h | 4 +- .../include/SentryTraceContext+Private.h | 9 ++--- .../Sentry/include/SentryTransportAdapter.h | 4 +- .../Sentry/include/SentryTransportFactory.h | 4 +- .../include/SentryUIViewControllerSwizzling.h | 4 +- .../include/SentryWatchdogTerminationLogic.h | 4 +- .../SentryWatchdogTerminationTracker.h | 4 +- Sources/Swift/Helper/SentrySdkInfo.swift | 2 +- Sources/Swift/Options.swift | 21 +++++++++- Sources/Swift/SentryAppStateManager.swift | 4 +- Sources/Swift/SentryClient.swift | 4 +- .../SentryCrash/SentryThreadInspector.swift | 2 +- Sources/Swift/SentryDependencyContainer.swift | 39 ++++--------------- .../SentryCrash/SentryTestIntegration.h | 4 +- .../SentryCrash/SentryTestIntegration.m | 2 +- 80 files changed, 198 insertions(+), 297 deletions(-) diff --git a/Sources/Sentry/PrivateSentrySDKOnly.m b/Sources/Sentry/PrivateSentrySDKOnly.m index 2fc7ac5684e..9a6eeeeadf3 100644 --- a/Sources/Sentry/PrivateSentrySDKOnly.m +++ b/Sources/Sentry/PrivateSentrySDKOnly.m @@ -6,7 +6,6 @@ #import "SentryInstallation.h" #import "SentryInternalDefines.h" #import "SentryMeta.h" -#import "SentryOptionsInternal+Private.h" #import "SentryProfileCollector.h" #import "SentryPropagationContext.h" #import "SentrySDK+Private.h" @@ -117,13 +116,13 @@ + (NSString *)installationID return [SentryInstallation idWithCacheDirectoryPath:self.options.cacheDirectoryPath]; } -+ (SentryOptionsInternal *)options ++ (SentryOptions *)options { - SentryOptionsInternal *options = [[SentrySDKInternal currentHub] client].options; + SentryOptions *options = [[SentrySDKInternal currentHub] client].options; if (options != nil) { return options; } - return [[SentryOptionsInternal alloc] init]; + return [[SentryOptions alloc] init]; } + (SentryOnAppStartMeasurementAvailable)onAppStartMeasurementAvailable diff --git a/Sources/Sentry/Profiling/SentryLaunchProfiling.m b/Sources/Sentry/Profiling/SentryLaunchProfiling.m index 829ee2cc590..13f12109b3c 100644 --- a/Sources/Sentry/Profiling/SentryLaunchProfiling.m +++ b/Sources/Sentry/Profiling/SentryLaunchProfiling.m @@ -7,7 +7,6 @@ # import "SentryInternalDefines.h" # import "SentryLaunchProfiling.h" # import "SentryLogC.h" -# import "SentryOptionsInternal+Private.h" # import "SentryProfileConfiguration.h" # import "SentryProfiler+Private.h" # import "SentrySamplerDecision.h" @@ -148,7 +147,7 @@ } SentryLaunchProfileDecision -sentry_launchShouldHaveContinuousProfiling(SentryOptionsInternal *options) +sentry_launchShouldHaveContinuousProfiling(SentryOptions *options) { if (!options.profiling.profileAppStarts) { SENTRY_LOG_DEBUG(@"Continuous profiling v2 enabled but disabled app start profiling, " @@ -203,7 +202,7 @@ } SentryLaunchProfileDecision -sentry_shouldProfileNextLaunch(SentryOptionsInternal *options) +sentry_shouldProfileNextLaunch(SentryOptions *options) { if ([options isContinuousProfilingEnabled]) { return sentry_launchShouldHaveContinuousProfiling(options); @@ -228,7 +227,7 @@ # if defined(SENTRY_TEST) || defined(SENTRY_TEST_CI) || defined(DEBUG) BOOL -sentry_willProfileNextLaunch(SentryOptionsInternal *options) +sentry_willProfileNextLaunch(SentryOptions *options) { return sentry_shouldProfileNextLaunch(options).shouldProfile; } @@ -307,7 +306,7 @@ BOOL sentry_isTracingAppLaunch; void -sentry_configureLaunchProfilingForNextLaunch(SentryOptionsInternal *options) +sentry_configureLaunchProfilingForNextLaunch(SentryOptions *options) { [SentryDependencyContainer.sharedInstance.dispatchQueueWrapper dispatchAsyncWithBlock:^{ SentryLaunchProfileDecision config = sentry_shouldProfileNextLaunch(options); diff --git a/Sources/Sentry/Profiling/SentryProfiledTracerConcurrency.mm b/Sources/Sentry/Profiling/SentryProfiledTracerConcurrency.mm index 5743b264751..cdc52910c36 100644 --- a/Sources/Sentry/Profiling/SentryProfiledTracerConcurrency.mm +++ b/Sources/Sentry/Profiling/SentryProfiledTracerConcurrency.mm @@ -5,7 +5,6 @@ # import "SentryContinuousProfiler.h" # import "SentryInternalDefines.h" # import "SentryLogC.h" -# import "SentryOptionsInternal+Private.h" # import "SentryProfiler+Private.h" # include @@ -13,7 +12,6 @@ # import "SentryHub+Private.h" # import "SentryInternalDefines.h" # import "SentryLaunchProfiling.h" -# import "SentryOptionsInternal+Private.h" # import "SentryProfileConfiguration.h" # import "SentryProfiledTracerConcurrency.h" # import "SentryProfiler+Private.h" diff --git a/Sources/Sentry/Profiling/SentryProfilerSerialization.m b/Sources/Sentry/Profiling/SentryProfilerSerialization.m index b95f9672ec1..f7d561fed5d 100644 --- a/Sources/Sentry/Profiling/SentryProfilerSerialization.m +++ b/Sources/Sentry/Profiling/SentryProfilerSerialization.m @@ -13,7 +13,6 @@ # import "SentryLogC.h" # import "SentryMeta.h" # import "SentryMetricProfiler.h" -# import "SentryOptionsInternal.h" # import "SentryProfileTimeseries.h" # import "SentryProfiledTracerConcurrency.h" # import "SentryProfiler+Private.h" diff --git a/Sources/Sentry/Profiling/SentryProfilingSwiftHelpers.m b/Sources/Sentry/Profiling/SentryProfilingSwiftHelpers.m index 494c216f4d2..8274d3c9d24 100644 --- a/Sources/Sentry/Profiling/SentryProfilingSwiftHelpers.m +++ b/Sources/Sentry/Profiling/SentryProfilingSwiftHelpers.m @@ -3,7 +3,6 @@ # import "SentryClient.h" # import "SentryLogC.h" -# import "SentryOptionsInternal+Private.h" # import "SentryProfiler+Private.h" # import "SentrySamplerDecision.h" # import "SentrySwift.h" diff --git a/Sources/Sentry/Public/SentryTraceContext.h b/Sources/Sentry/Public/SentryTraceContext.h index 8663fa02d8b..fe1eff150ab 100644 --- a/Sources/Sentry/Public/SentryTraceContext.h +++ b/Sources/Sentry/Public/SentryTraceContext.h @@ -11,7 +11,6 @@ NS_ASSUME_NONNULL_BEGIN @class SentryBaggage; @class SentryId; -@class SentryOptionsInternal; @class SentryScope; @class SentryTracer; @class SentryUser; @@ -66,7 +65,6 @@ NS_SWIFT_NAME(TraceContext) @property (nullable, nonatomic, readonly) NSString *replayId; /** - options:(SentryOptionsInternal *)options; * Create a SentryBaggage with the information of this SentryTraceContext. */ - (SentryBaggage *)toBaggage; diff --git a/Sources/Sentry/SentryANRTrackingIntegration.m b/Sources/Sentry/SentryANRTrackingIntegration.m index db5b5ee78e5..acdba72e4d4 100644 --- a/Sources/Sentry/SentryANRTrackingIntegration.m +++ b/Sources/Sentry/SentryANRTrackingIntegration.m @@ -11,7 +11,6 @@ #import "SentryStacktrace.h" #import "SentrySwift.h" #import "SentryThread.h" -#import #if SENTRY_HAS_UIKIT # import @@ -24,7 +23,7 @@ @interface SentryANRTrackingIntegration () @property (nonatomic, strong) SentryANRTracker *tracker; -@property (nonatomic, strong) SentryOptionsInternal *options; +@property (nonatomic, strong) SentryOptions *options; @property (nonatomic, strong) SentryFileManager *fileManager; @property (nonatomic, strong) SentryDispatchQueueWrapper *dispatchQueueWrapper; @property (nonatomic, strong) SentryCrashWrapper *crashWrapper; @@ -37,7 +36,7 @@ @interface SentryANRTrackingIntegration () @implementation SentryANRTrackingIntegration -- (BOOL)installWithOptions:(SentryOptionsInternal *)options +- (BOOL)installWithOptions:(SentryOptions *)options { if (![super installWithOptions:options]) { return NO; @@ -164,7 +163,7 @@ - (void)anrDetectedWithType:(enum SentryANRType)type // we would lose the scope. Furthermore, we want to know in which state the app was when the // app hang started. SentryScope *scope = [SentrySDKInternal currentHub].scope; - SentryOptionsInternal *options = SentrySDKInternal.options; + SentryOptions *options = SentrySDKInternal.options; if (scope != nil && options != nil) { [scope applyToEvent:event maxBreadcrumb:options.maxBreadcrumbs]; } diff --git a/Sources/Sentry/SentryAppStartTrackingIntegration.m b/Sources/Sentry/SentryAppStartTrackingIntegration.m index 6e815e2bd30..38ef3312cd0 100644 --- a/Sources/Sentry/SentryAppStartTrackingIntegration.m +++ b/Sources/Sentry/SentryAppStartTrackingIntegration.m @@ -4,7 +4,6 @@ # import "SentryAppStartTracker.h" # import "SentryLogC.h" -# import "SentryOptionsInternal.h" # import "SentrySwift.h" # import @@ -16,7 +15,7 @@ @interface SentryAppStartTrackingIntegration () @implementation SentryAppStartTrackingIntegration -- (BOOL)installWithOptions:(SentryOptionsInternal *)options +- (BOOL)installWithOptions:(SentryOptions *)options { if (!PrivateSentrySDKOnly.appStartMeasurementHybridSDKMode && ![super installWithOptions:options]) { diff --git a/Sources/Sentry/SentryAutoBreadcrumbTrackingIntegration.m b/Sources/Sentry/SentryAutoBreadcrumbTrackingIntegration.m index 84189908011..6755dc98b9d 100644 --- a/Sources/Sentry/SentryAutoBreadcrumbTrackingIntegration.m +++ b/Sources/Sentry/SentryAutoBreadcrumbTrackingIntegration.m @@ -1,7 +1,6 @@ #import "SentryAutoBreadcrumbTrackingIntegration.h" #import "SentryBreadcrumbTracker.h" #import "SentryLogC.h" -#import "SentryOptionsInternal.h" #import "SentrySDKInternal.h" #import "SentrySwift.h" #import "SentrySystemEventBreadcrumbs.h" @@ -20,7 +19,7 @@ @interface SentryAutoBreadcrumbTrackingIntegration () @implementation SentryAutoBreadcrumbTrackingIntegration -- (BOOL)installWithOptions:(SentryOptionsInternal *)options +- (BOOL)installWithOptions:(SentryOptions *)options { if (![super installWithOptions:options]) { return NO; @@ -59,7 +58,7 @@ - (SentryIntegrationOption)integrationOptions /** * For testing. */ -- (void)installWithOptions:(nonnull SentryOptionsInternal *)options +- (void)installWithOptions:(nonnull SentryOptions *)options breadcrumbTracker:(SentryBreadcrumbTracker *)breadcrumbTracker #if TARGET_OS_IOS && SENTRY_HAS_UIKIT systemEventBreadcrumbs:(SentrySystemEventBreadcrumbs *)systemEventBreadcrumbs diff --git a/Sources/Sentry/SentryAutoSessionTrackingIntegration.m b/Sources/Sentry/SentryAutoSessionTrackingIntegration.m index 447d6a2ed63..59c7f282d34 100644 --- a/Sources/Sentry/SentryAutoSessionTrackingIntegration.m +++ b/Sources/Sentry/SentryAutoSessionTrackingIntegration.m @@ -1,7 +1,6 @@ #import "SentryAutoSessionTrackingIntegration.h" #import "SentryLogC.h" #import "SentryOptionsConverter.h" -#import "SentryOptionsInternal.h" #import "SentrySDKInternal.h" #import "SentrySwift.h" @@ -15,14 +14,13 @@ @interface SentryAutoSessionTrackingIntegration () @implementation SentryAutoSessionTrackingIntegration -- (BOOL)installWithOptions:(SentryOptionsInternal *)options +- (BOOL)installWithOptions:(SentryOptions *)options { if (![super installWithOptions:options]) { return NO; } - self.tracker = [SentryDependencyContainer.sharedInstance - getSessionTrackerWithOptions:[SentryOptionsConverter fromInternal:options]]; + self.tracker = [SentryDependencyContainer.sharedInstance getSessionTrackerWithOptions:options]; [self.tracker start]; return YES; diff --git a/Sources/Sentry/SentryBaggage.m b/Sources/Sentry/SentryBaggage.m index 49725541b09..6b0615ef7e7 100644 --- a/Sources/Sentry/SentryBaggage.m +++ b/Sources/Sentry/SentryBaggage.m @@ -1,7 +1,6 @@ #import "SentryBaggage.h" #import "SentryDsn.h" #import "SentryLogC.h" -#import "SentryOptionsInternal+Private.h" #import "SentryScope+Private.h" #import "SentrySwift.h" #import "SentryTraceContext.h" diff --git a/Sources/Sentry/SentryBaseIntegration.m b/Sources/Sentry/SentryBaseIntegration.m index b2c498cec03..c40208f7058 100644 --- a/Sources/Sentry/SentryBaseIntegration.m +++ b/Sources/Sentry/SentryBaseIntegration.m @@ -2,7 +2,6 @@ #import "SentryLogC.h" #import "SentryOptionsConverter.h" #import "SentrySwift.h" -#import NS_ASSUME_NONNULL_BEGIN @@ -13,7 +12,7 @@ - (NSString *)integrationName return NSStringFromClass([self classForCoder]); } -- (BOOL)installWithOptions:(SentryOptionsInternal *)options +- (BOOL)installWithOptions:(SentryOptions *)options { return [self shouldBeEnabledWithOptions:options]; } @@ -28,7 +27,7 @@ - (void)logWithReason:(NSString *)reason SENTRY_LOG_DEBUG(@"Not going to enable %@ %@.", self.integrationName, reason); } -- (BOOL)shouldBeEnabledWithOptions:(SentryOptionsInternal *)options +- (BOOL)shouldBeEnabledWithOptions:(SentryOptions *)options { SentryIntegrationOption integrationOptions = [self integrationOptions]; @@ -149,8 +148,7 @@ - (BOOL)shouldBeEnabledWithOptions:(SentryOptionsInternal *)options #endif #if SENTRY_TARGET_REPLAY_SUPPORTED if (integrationOptions & kIntegrationOptionEnableReplay) { - SentryReplayOptions *replayOptions = - [SentryOptionsConverter fromInternal:options].sessionReplay; + SentryReplayOptions *replayOptions = options.sessionReplay; if (replayOptions.onErrorSampleRate == 0 && replayOptions.sessionSampleRate == 0) { [self logWithOptionName:@"sessionReplaySettings"]; return NO; diff --git a/Sources/Sentry/SentryClient.m b/Sources/Sentry/SentryClient.m index 2ca0290d54a..7cc87462060 100644 --- a/Sources/Sentry/SentryClient.m +++ b/Sources/Sentry/SentryClient.m @@ -61,11 +61,12 @@ @interface SentryClientInternal () @implementation SentryClientInternal -- (_Nullable instancetype)initWithOptions:(SentryOptionsInternal *)options +- (_Nullable instancetype)initWithOptions:(SentryOptionsInternal *)internalOptions { + SentryOptions *options = [SentryOptionsConverter fromInternal:internalOptions]; NSError *error; SentryFileManager *fileManager = [[SentryFileManager alloc] - initWithOptions:[SentryOptionsConverter fromInternal:options] + initWithOptions:options dateProvider:SentryDependencyContainer.sharedInstance.dateProvider dispatchQueueWrapper:SentryDependencyContainer.sharedInstance.dispatchQueueWrapper error:&error]; @@ -84,9 +85,9 @@ - (_Nullable instancetype)initWithOptions:(SentryOptionsInternal *)options [[SentryTransportAdapter alloc] initWithTransports:transports options:options]; SentryDefaultThreadInspector *threadInspector = - [[SentryDefaultThreadInspector alloc] initWithOptions:options]; + [[SentryDefaultThreadInspector alloc] initWithOptions:internalOptions]; - return [self initWithOptions:options + return [self initWithOptions:internalOptions transportAdapter:transportAdapter fileManager:fileManager threadInspector:threadInspector @@ -107,7 +108,7 @@ - (instancetype)initWithOptions:(SentryOptionsInternal *)options { if (self = [super init]) { _isEnabled = YES; - self.options = options; + self.optionsInternal = options; self.transportAdapter = transportAdapter; self.fileManager = fileManager; self.threadInspector = threadInspector; @@ -130,6 +131,14 @@ - (instancetype)initWithOptions:(SentryOptionsInternal *)options return self; } +- (SentryOptions *)options +{ + if (self.optionsInternal) { + return [SentryOptionsConverter fromInternal:self.optionsInternal]; + } + return NULL; +} + - (SentryId *)captureMessage:(NSString *)message { return [self captureMessage:message withScope:[[SentryScope alloc] init]]; @@ -384,7 +393,7 @@ - (nullable SentryTraceContext *)getTraceStateWithEvent:(SentryEvent *)event SentryTracer *tracer = [SentryTracer getTracer:span]; if (tracer != nil) { - return [[SentryTraceContext alloc] initWithTracer:tracer scope:scope options:_options]; + return [[SentryTraceContext alloc] initWithTracer:tracer scope:scope options:self.options]; } if (event.error || event.exceptions.count > 0) { @@ -902,8 +911,7 @@ - (void)setSdk:(SentryEvent *)event return; } - event.sdk = [[[SentrySdkInfo alloc] - initWithOptions:[SentryOptionsConverter fromInternal:self.options]] serialize]; + event.sdk = [[[SentrySdkInfo alloc] initWithOptions:self.options] serialize]; } - (void)setUserInfo:(NSDictionary *_Nullable)userInfo withEvent:(SentryEvent *_Nullable)event diff --git a/Sources/Sentry/SentryCoreDataTrackingIntegration.m b/Sources/Sentry/SentryCoreDataTrackingIntegration.m index fe2f1a3d266..41c906c3250 100644 --- a/Sources/Sentry/SentryCoreDataTrackingIntegration.m +++ b/Sources/Sentry/SentryCoreDataTrackingIntegration.m @@ -4,7 +4,7 @@ #import "SentryDefaultThreadInspector.h" #import "SentryLogC.h" #import "SentryNSDataSwizzling.h" -#import "SentryOptionsInternal.h" +#import "SentryOptionsConverter.h" #import "SentrySwift.h" @interface SentryCoreDataTrackingIntegration () @@ -15,14 +15,15 @@ @interface SentryCoreDataTrackingIntegration () @implementation SentryCoreDataTrackingIntegration -- (BOOL)installWithOptions:(SentryOptionsInternal *)options +- (BOOL)installWithOptions:(SentryOptions *)options { if (![super installWithOptions:options]) { return NO; } self.tracker = [[SentryCoreDataTracker alloc] - initWithThreadInspector:[[SentryDefaultThreadInspector alloc] initWithOptions:options] + initWithThreadInspector:[[SentryDefaultThreadInspector alloc] + initWithOptions:[SentryOptionsConverter toInternal:options]] processInfoWrapper:[SentryDependencyContainer.sharedInstance processInfoWrapper]]; [SentryCoreDataSwizzling.sharedInstance startWithTracker:self.tracker]; diff --git a/Sources/Sentry/SentryCrashIntegration.m b/Sources/Sentry/SentryCrashIntegration.m index 66ac2efcbf1..35f6ba14112 100644 --- a/Sources/Sentry/SentryCrashIntegration.m +++ b/Sources/Sentry/SentryCrashIntegration.m @@ -8,7 +8,6 @@ #import "SentryHub.h" #import "SentryInternalDefines.h" #import "SentryOptionsConverter.h" -#import "SentryOptionsInternal.h" #import "SentrySDK+Private.h" #import "SentryScope+Private.h" #import "SentryScope+PrivateSwift.h" @@ -50,7 +49,7 @@ @interface SentryCrashScopeObserver () @interface SentryCrashIntegration () -@property (nonatomic, weak) SentryOptionsInternal *options; +@property (nonatomic, weak) SentryOptions *options; @property (nonatomic, strong) SentryDispatchQueueWrapper *dispatchQueueWrapper; @property (nonatomic, strong) SentryCrashWrapper *crashAdapter; @property (nonatomic, strong) SentryCrashIntegrationSessionHandler *sessionHandler; @@ -80,7 +79,7 @@ - (instancetype)initWithCrashAdapter:(SentryCrashWrapper *)crashAdapter return self; } -- (BOOL)installWithOptions:(nonnull SentryOptionsInternal *)options +- (BOOL)installWithOptions:(nonnull SentryOptions *)options { if (![super installWithOptions:options]) { return NO; @@ -121,8 +120,7 @@ - (BOOL)installWithOptions:(nonnull SentryOptionsInternal *)options [self startCrashHandler:options.cacheDirectoryPath enableSigtermReporting:enableSigtermReporting enableReportingUncaughtExceptions:enableUncaughtNSExceptionReporting - enableCppExceptionsV2:[SentryOptionsConverter fromInternal:options] - .experimental.enableUnhandledCPPExceptionsV2]; + enableCppExceptionsV2:options.experimental.enableUnhandledCPPExceptionsV2]; [self configureScope]; diff --git a/Sources/Sentry/SentryDefaultAppStateManager.m b/Sources/Sentry/SentryDefaultAppStateManager.m index 55275eb7fb5..f0a141fba97 100644 --- a/Sources/Sentry/SentryDefaultAppStateManager.m +++ b/Sources/Sentry/SentryDefaultAppStateManager.m @@ -1,7 +1,6 @@ #import "SentryCrashSysCtl.h" #import "SentryNotificationNames.h" #import -#import #import #if SENTRY_HAS_UIKIT diff --git a/Sources/Sentry/SentryDefaultUIViewControllerPerformanceTracker.m b/Sources/Sentry/SentryDefaultUIViewControllerPerformanceTracker.m index 12dd63e4064..59a37fe5348 100644 --- a/Sources/Sentry/SentryDefaultUIViewControllerPerformanceTracker.m +++ b/Sources/Sentry/SentryDefaultUIViewControllerPerformanceTracker.m @@ -5,7 +5,6 @@ # import "SentryHub.h" # import "SentryLogC.h" -# import "SentryOptionsInternal.h" # import "SentryPerformanceTracker.h" # import "SentrySDK+Private.h" # import "SentrySpanId.h" @@ -120,7 +119,7 @@ - (void)viewControllerLoadView:(UIViewController *)controller return; } - SentryOptionsInternal *options = [SentrySDKInternal options]; + SentryOptions *options = [SentrySDKInternal options]; if ([SentrySwizzleClassNameExclude shouldExcludeClassWithClassName:NSStringFromClass([controller class]) diff --git a/Sources/Sentry/SentryDependencyContainerSwiftHelper.m b/Sources/Sentry/SentryDependencyContainerSwiftHelper.m index f69877e471d..b4a7b7717e9 100644 --- a/Sources/Sentry/SentryDependencyContainerSwiftHelper.m +++ b/Sources/Sentry/SentryDependencyContainerSwiftHelper.m @@ -5,24 +5,6 @@ #import "SentrySDK+Private.h" #import "SentrySwift.h" -@implementation SentryDefaultRedactOptions -- (instancetype)initWithMaskAllText:(BOOL)maskAllText - maskAllImages:(BOOL)maskAllImages - maskedViewClasses:(NSArray *)maskedViewClasses - unmaskedViewClasses:(NSArray *)unmaskedViewClasses -{ - if (self = [super init]) { - _maskAllText = maskAllText; - _maskAllImages = maskAllImages; - _maskedViewClasses = maskedViewClasses; - _unmaskedViewClasses = unmaskedViewClasses; - return self; - } - return nil; -} - -@end - @implementation SentryDependencyContainerSwiftHelper #if SENTRY_HAS_UIKIT @@ -32,25 +14,6 @@ @implementation SentryDependencyContainerSwiftHelper return [SentryDependencyContainer.sharedInstance.application getWindows]; } -+ (BOOL)fastViewRenderingEnabled:(SentryOptionsInternal *)options -{ - return options.screenshot.enableFastViewRendering; -} - -+ (BOOL)viewRendererV2Enabled:(SentryOptionsInternal *)options -{ - return options.screenshot.enableViewRendererV2; -} - -+ (SentryDefaultRedactOptions *)redactOptions:(SentryOptionsInternal *)options -{ - return [[SentryDefaultRedactOptions alloc] - initWithMaskAllText:options.screenshot.maskAllText - maskAllImages:options.screenshot.maskAllImages - maskedViewClasses:options.screenshot.maskedViewClasses - unmaskedViewClasses:options.screenshot.unmaskedViewClasses]; -} - #endif // SENTRY_HAS_UIKIT + (SentryDispatchQueueWrapper *)dispatchQueueWrapper diff --git a/Sources/Sentry/SentryFileIOTrackerHelper.m b/Sources/Sentry/SentryFileIOTrackerHelper.m index 7b79079ef0f..8f3d30512b3 100644 --- a/Sources/Sentry/SentryFileIOTrackerHelper.m +++ b/Sources/Sentry/SentryFileIOTrackerHelper.m @@ -5,7 +5,6 @@ #import "SentryHub+Private.h" #import "SentryInternalDefines.h" #import "SentryLogC.h" -#import "SentryOptionsInternal.h" #import "SentrySDK+Private.h" #import "SentryScope+Private.h" #import "SentrySpan.h" diff --git a/Sources/Sentry/SentryFileIOTrackingIntegration.m b/Sources/Sentry/SentryFileIOTrackingIntegration.m index b04afccb9c5..575fc80bf34 100644 --- a/Sources/Sentry/SentryFileIOTrackingIntegration.m +++ b/Sources/Sentry/SentryFileIOTrackingIntegration.m @@ -11,7 +11,7 @@ @interface SentryFileIOTrackingIntegration () @implementation SentryFileIOTrackingIntegration -- (BOOL)installWithOptions:(SentryOptionsInternal *)options +- (BOOL)installWithOptions:(SentryOptions *)options { if (![super installWithOptions:options]) { return NO; diff --git a/Sources/Sentry/SentryFramesTrackingIntegration.m b/Sources/Sentry/SentryFramesTrackingIntegration.m index 15dd45cc550..78c1b95e91e 100644 --- a/Sources/Sentry/SentryFramesTrackingIntegration.m +++ b/Sources/Sentry/SentryFramesTrackingIntegration.m @@ -15,7 +15,7 @@ @interface SentryFramesTrackingIntegration () @implementation SentryFramesTrackingIntegration -- (BOOL)installWithOptions:(SentryOptionsInternal *)options +- (BOOL)installWithOptions:(SentryOptions *)options { if (!PrivateSentrySDKOnly.framesTrackingMeasurementHybridSDKMode && ![super installWithOptions:options]) { diff --git a/Sources/Sentry/SentryHub.m b/Sources/Sentry/SentryHub.m index 5c7792e71a7..0d52590c790 100644 --- a/Sources/Sentry/SentryHub.m +++ b/Sources/Sentry/SentryHub.m @@ -7,7 +7,7 @@ #import "SentryInternalDefines.h" #import "SentryLevelMapper.h" #import "SentryLogC.h" -#import "SentryOptionsInternal+Private.h" +#import "SentryOptionsConverter.h" #import "SentryPerformanceTracker.h" #import "SentryProfilingConditionals.h" #import "SentrySDK+Private.h" @@ -86,7 +86,7 @@ - (void)startSession { SentrySession *lastSession = nil; SentryScope *scope = self.scope; - SentryOptionsInternal *options = [self.client options]; + SentryOptions *options = [self.client options]; if (options == nil) { SENTRY_LOG_ERROR(@"Options of the client are nil. Not starting a session."); return; @@ -553,7 +553,7 @@ - (void)captureSerializedFeedback:(NSDictionary *)serializedFeedback - (void)addBreadcrumb:(SentryBreadcrumb *)crumb { - SentryOptionsInternal *options = [[self client] options]; + SentryOptions *options = [[self client] options]; if (options.maxBreadcrumbs < 1) { return; } diff --git a/Sources/Sentry/SentryMetricKitIntegration.m b/Sources/Sentry/SentryMetricKitIntegration.m index b668b47087e..3291797fb64 100644 --- a/Sources/Sentry/SentryMetricKitIntegration.m +++ b/Sources/Sentry/SentryMetricKitIntegration.m @@ -3,7 +3,6 @@ #if SENTRY_HAS_METRIC_KIT # import "SentryInternalDefines.h" -# import "SentryOptionsInternal.h" # import "SentryScope.h" # import "SentrySwift.h" # import @@ -55,7 +54,7 @@ @interface SentryMetricKitIntegration () @implementation SentryMetricKitIntegration -- (BOOL)installWithOptions:(SentryOptionsInternal *)options +- (BOOL)installWithOptions:(SentryOptions *)options { if (![super installWithOptions:options]) { return NO; diff --git a/Sources/Sentry/SentryNSDataSwizzling.m b/Sources/Sentry/SentryNSDataSwizzling.m index 06402c15c54..ebd4a3ad855 100644 --- a/Sources/Sentry/SentryNSDataSwizzling.m +++ b/Sources/Sentry/SentryNSDataSwizzling.m @@ -1,6 +1,5 @@ #import "SentryNSDataSwizzling.h" #import "SentryLogC.h" -#import "SentryOptionsInternal.h" #import "SentrySwift.h" #import "SentrySwizzle.h" #import "SentryTraceOrigin.h" @@ -22,7 +21,7 @@ + (SentryNSDataSwizzling *)shared return instance; } -- (void)startWithOptions:(SentryOptionsInternal *)options tracker:(SentryFileIOTracker *)tracker +- (void)startWithOptions:(SentryOptions *)options tracker:(SentryFileIOTracker *)tracker { self.tracker = tracker; diff --git a/Sources/Sentry/SentryNSFileManagerSwizzling.m b/Sources/Sentry/SentryNSFileManagerSwizzling.m index 82ec318d221..fb6afc20715 100644 --- a/Sources/Sentry/SentryNSFileManagerSwizzling.m +++ b/Sources/Sentry/SentryNSFileManagerSwizzling.m @@ -1,6 +1,5 @@ #import "SentryNSFileManagerSwizzling.h" #import "SentryLogC.h" -#import "SentryOptionsInternal.h" #import "SentrySwift.h" #import "SentrySwizzle.h" #import "SentryTraceOrigin.h" @@ -22,7 +21,7 @@ + (SentryNSFileManagerSwizzling *)shared return instance; } -- (void)startWithOptions:(SentryOptionsInternal *)options tracker:(SentryFileIOTracker *)tracker +- (void)startWithOptions:(SentryOptions *)options tracker:(SentryFileIOTracker *)tracker { self.tracker = tracker; diff --git a/Sources/Sentry/SentryNetworkTracker.m b/Sources/Sentry/SentryNetworkTracker.m index 9e423701075..43e99dff9d1 100644 --- a/Sources/Sentry/SentryNetworkTracker.m +++ b/Sources/Sentry/SentryNetworkTracker.m @@ -14,7 +14,6 @@ #import "SentryLogC.h" #import "SentryMechanism.h" #import "SentryNoOpSpan.h" -#import "SentryOptionsInternal.h" #import "SentryPropagationContext.h" #import "SentryRequest.h" #import "SentrySDK+Private.h" @@ -217,7 +216,7 @@ - (void)addTraceWithoutTransactionToTask:(NSURLSessionTask *)sessionTask SentryTraceContext *traceContext = [[SentryTraceContext alloc] initWithTraceId:propagationContext.traceId - options:SENTRY_UNWRAP_NULLABLE(SentryOptionsInternal, + options:SENTRY_UNWRAP_NULLABLE(SentryOptions, SentrySDKInternal.currentHub.client.options) replayId:SentrySDKInternal.currentHub.scope.replayId]; diff --git a/Sources/Sentry/SentryNetworkTrackingIntegration.m b/Sources/Sentry/SentryNetworkTrackingIntegration.m index 33ff71dff7c..817ddd0a060 100644 --- a/Sources/Sentry/SentryNetworkTrackingIntegration.m +++ b/Sources/Sentry/SentryNetworkTrackingIntegration.m @@ -2,13 +2,13 @@ #import "SentryLogC.h" #import "SentryNSURLSessionTaskSearch.h" #import "SentryNetworkTracker.h" -#import "SentryOptionsInternal.h" +#import "SentrySwift.h" #import "SentrySwizzle.h" #import @implementation SentryNetworkTrackingIntegration -- (BOOL)installWithOptions:(SentryOptionsInternal *)options +- (BOOL)installWithOptions:(SentryOptions *)options { if (!options.enableSwizzling) { [self logWithOptionName:@"enableSwizzling"]; diff --git a/Sources/Sentry/SentryOptionsConverter.m b/Sources/Sentry/SentryOptionsConverter.m index 228340d8547..d9e67bf7e44 100644 --- a/Sources/Sentry/SentryOptionsConverter.m +++ b/Sources/Sentry/SentryOptionsConverter.m @@ -11,4 +11,11 @@ + (SentryOptions *)fromInternal:(SentryOptionsInternal *)internalOptions return options; } ++ (SentryOptionsInternal *)toInternal:(SentryOptions *)options +{ + SentryOptionsInternal *internalOptions = [[SentryOptionsInternal alloc] init]; + internalOptions.dsn = options.dsn; + return internalOptions; +} + @end diff --git a/Sources/Sentry/SentryOptionsInternal.m b/Sources/Sentry/SentryOptionsInternal.m index 186dc2800d9..7b07d7a7c55 100644 --- a/Sources/Sentry/SentryOptionsInternal.m +++ b/Sources/Sentry/SentryOptionsInternal.m @@ -255,25 +255,6 @@ - (void)setTracesSampleRate:(NSNumber *)tracesSampleRate } } -- (BOOL)isTracingEnabled -{ - return (_tracesSampleRate != nil && [_tracesSampleRate doubleValue] > 0) - || _tracesSampler != nil; -} - -#if SENTRY_TARGET_PROFILING_SUPPORTED - -- (BOOL)isContinuousProfilingEnabled -{ - return _profiling != nil; -} - -- (BOOL)isProfilingCorrelatedToTraces -{ - return _profiling != nil && _profiling.lifecycle == SentryProfileLifecycleTrace; -} -#endif // SENTRY_TARGET_PROFILING_SUPPORTED - - (void)setEnableSpotlight:(BOOL)value { _enableSpotlight = value; @@ -285,13 +266,6 @@ - (void)setEnableSpotlight:(BOOL)value #endif // defined(RELEASE) } -#if SENTRY_HAS_UIKIT -- (BOOL)isAppHangTrackingDisabled -{ - return !self.enableAppHangTracking || self.appHangTimeoutInterval <= 0; -} -#endif // SENTRY_HAS_UIKIT - #if defined(DEBUG) || defined(SENTRY_TEST) || defined(SENTRY_TEST_CI) - (NSString *)debugDescription { diff --git a/Sources/Sentry/SentryPerformanceTrackingIntegration.m b/Sources/Sentry/SentryPerformanceTrackingIntegration.m index 79a449dabda..54c58b1a644 100644 --- a/Sources/Sentry/SentryPerformanceTrackingIntegration.m +++ b/Sources/Sentry/SentryPerformanceTrackingIntegration.m @@ -3,7 +3,6 @@ #if SENTRY_HAS_UIKIT # import "SentryLogC.h" -# import "SentryOptionsInternal.h" # import "SentrySubClassFinder.h" # import "SentrySwift.h" # import "SentryUIViewControllerSwizzling.h" @@ -16,7 +15,7 @@ @interface SentryPerformanceTrackingIntegration () @implementation SentryPerformanceTrackingIntegration -- (BOOL)installWithOptions:(SentryOptionsInternal *)options +- (BOOL)installWithOptions:(SentryOptions *)options { if (![super installWithOptions:options]) { return NO; diff --git a/Sources/Sentry/SentryProfiler.mm b/Sources/Sentry/SentryProfiler.mm index 8f17847b404..bdaf98947fb 100644 --- a/Sources/Sentry/SentryProfiler.mm +++ b/Sources/Sentry/SentryProfiler.mm @@ -10,6 +10,7 @@ # import "SentryLaunchProfiling.h" # import "SentryLogC.h" # import "SentryMetricProfiler.h" +# import "SentryOptionsConverter.h" # import "SentryOptionsInternal+Private.h" # import "SentryProfileConfiguration.h" # import "SentryProfilerState+ObjCpp.h" @@ -17,6 +18,7 @@ # import "SentryProfilingSwiftHelpers.h" # import "SentrySDK+Private.h" # import "SentrySamplingProfiler.hpp" +# import "SentrySwift.h" # import "SentryTime.h" # import "SentryTracer+Private.h" @@ -64,7 +66,7 @@ } void -sentry_configureContinuousProfiling(SentryOptionsInternal *options) +sentry_configureContinuousProfiling(SentryOptions *options) { if (options.configureProfiling == nil) { SENTRY_LOG_DEBUG(@"Continuous profiling V2 configuration not set by SDK consumer, nothing " @@ -102,7 +104,7 @@ } void -sentry_sdkInitProfilerTasks(SentryOptionsInternal *options, SentryHubInternal *hub) +sentry_sdkInitProfilerTasks(SentryOptions *options, SentryHubInternal *hub) { // get the configuration options from the last time the launch config was written; it may be // different than the new options the SDK was just started with diff --git a/Sources/Sentry/SentryReplayApi.m b/Sources/Sentry/SentryReplayApi.m index 2e0d0f79b18..472463d63bd 100644 --- a/Sources/Sentry/SentryReplayApi.m +++ b/Sources/Sentry/SentryReplayApi.m @@ -7,7 +7,6 @@ # import "SentryInternalCDefines.h" # import "SentryInternalDefines.h" # import "SentryLogC.h" -# import "SentryOptionsInternal+Private.h" # import "SentrySDK+Private.h" # import "SentrySessionReplayIntegration+Private.h" # import "SentrySwift.h" @@ -58,8 +57,8 @@ - (void)start SENTRY_DISABLE_THREAD_SANITIZER("double-checked lock produce false replayIntegration = (SentrySessionReplayIntegration *)[SentrySDKInternal.currentHub getInstalledIntegration:SentrySessionReplayIntegration.class]; if (replayIntegration == nil && SentrySDKInternal.currentHub.client.options) { - SentryOptionsInternal *currentOptions = SENTRY_UNWRAP_NULLABLE( - SentryOptionsInternal, SentrySDKInternal.currentHub.client.options); + SentryOptions *currentOptions = SENTRY_UNWRAP_NULLABLE( + SentryOptions, SentrySDKInternal.currentHub.client.options); if (![SentrySessionReplayIntegration shouldEnableForOptions:currentOptions]) { SENTRY_LOG_ERROR(@"[Session Replay] Session replay is disabled due to " @"environment potentially causing PII leaks."); diff --git a/Sources/Sentry/SentryRequestOperation.m b/Sources/Sentry/SentryRequestOperation.m index fb31afe392d..33c511185e2 100644 --- a/Sources/Sentry/SentryRequestOperation.m +++ b/Sources/Sentry/SentryRequestOperation.m @@ -4,7 +4,6 @@ #import "SentryHub.h" #import "SentryInternalDefines.h" #import "SentryLogC.h" -#import "SentryOptionsInternal.h" #import "SentrySDK+Private.h" #import "SentrySwift.h" diff --git a/Sources/Sentry/SentrySDKInternal.m b/Sources/Sentry/SentrySDKInternal.m index d2f094a5fff..383cbbe4d53 100644 --- a/Sources/Sentry/SentrySDKInternal.m +++ b/Sources/Sentry/SentrySDKInternal.m @@ -15,6 +15,7 @@ #import "SentryLogC.h" #import "SentryMeta.h" #import "SentryNetworkTrackingIntegration.h" +#import "SentryOptionsConverter.h" #import "SentryOptionsInternal+Private.h" #import "SentryProfilingConditionals.h" #import "SentryReplayApi.h" @@ -76,7 +77,7 @@ @implementation SentrySDKInternal static SentryAppStartMeasurement *_Nullable sentrySDKappStartMeasurement; static NSObject *sentrySDKappStartMeasurementLock; static BOOL _detectedStartUpCrash; -static SentryOptionsInternal *_Nullable startOption; +static SentryOptions *_Nullable startOption; static NSObject *startOptionsLock; /** @@ -111,12 +112,20 @@ + (SentryHubInternal *)currentHub } } -+ (nullable SentryOptionsInternal *)options ++ (nullable SentryOptions *)options { @synchronized(startOptionsLock) { return startOption; } } ++ (nullable SentryOptionsInternal *)optionsInternal +{ + SentryOptions *internal = [SentrySDKInternal options]; + if (internal) { + return [SentryOptionsConverter toInternal:internal]; + } + return NULL; +} #if SENTRY_TARGET_REPLAY_SUPPORTED + (SentryReplayApi *)replay { @@ -135,7 +144,7 @@ + (void)setCurrentHub:(nullable SentryHubInternal *)hub } } /** Internal, only needed for testing. */ -+ (void)setStartOptions:(nullable SentryOptionsInternal *)options ++ (void)setStartOptions:(nullable SentryOptions *)options { @synchronized(startOptionsLock) { startOption = options; @@ -217,10 +226,11 @@ + (void)setStartTimestamp:(NSDate *)value startTimestamp = value; } -+ (void)startWithOptions:(SentryOptionsInternal *)options ++ (void)startWithOptions:(SentryOptionsInternal *)internalOptions { // We save the options before checking for Xcode preview because // we will use this options in the preview + SentryOptions *options = [SentryOptionsConverter fromInternal:internalOptions]; startOption = options; if ([SentryDependencyContainer.sharedInstance.processInfoWrapper .environment[SENTRY_XCODE_PREVIEW_ENVIRONMENT_KEY] isEqualToString:@"1"]) { @@ -251,7 +261,8 @@ + (void)startWithOptions:(SentryOptionsInternal *)options startInvocations++; startTimestamp = [SentryDependencyContainer.sharedInstance.dateProvider date]; - SentryClientInternal *newClient = [[SentryClientInternal alloc] initWithOptions:options]; + SentryClientInternal *newClient = + [[SentryClientInternal alloc] initWithOptions:internalOptions]; [newClient.fileManager moveAppStateToPreviousAppState]; [newClient.fileManager moveBreadcrumbsToPreviousBreadcrumbs]; [SentryDependencyContainer.sharedInstance @@ -579,7 +590,7 @@ + (void)installIntegrations // Gatekeeper return; } - SentryOptionsInternal *options = [SentrySDKInternal.currentHub getClient].options; + SentryOptions *options = [SentrySDKInternal.currentHub getClient].options; NSArray *integrationClasses = [SentrySDKInternal defaultIntegrationClasses]; @@ -682,7 +693,7 @@ + (void)crash #if SENTRY_TARGET_PROFILING_SUPPORTED + (void)startProfiler { - SentryOptionsInternal *options = currentHub.client.options; + SentryOptions *options = currentHub.client.options; if (options == nil) { SENTRY_LOG_WARN(@"Cannot start profiling when options are nil."); return; @@ -737,7 +748,7 @@ + (void)stopProfiler return; } - SentryOptionsInternal *options = currentHub.client.options; + SentryOptions *options = currentHub.client.options; if (options == nil) { SENTRY_LOG_WARN(@"Cannot stop profiling when options are nil."); return; diff --git a/Sources/Sentry/SentrySampling.m b/Sources/Sentry/SentrySampling.m index a96e4ce12fd..f4132ee993a 100644 --- a/Sources/Sentry/SentrySampling.m +++ b/Sources/Sentry/SentrySampling.m @@ -57,7 +57,7 @@ #pragma mark - Public SentrySamplerDecision * -sentry_sampleTrace(SentrySamplingContext *context, SentryOptionsInternal *_Nullable options) +sentry_sampleTrace(SentrySamplingContext *context, SentryOptions *_Nullable options) { // check this transaction's sampling decision, if already decided if (context.transactionContext.sampled != kSentrySampleDecisionUndecided) { diff --git a/Sources/Sentry/SentryScreenshotIntegration.m b/Sources/Sentry/SentryScreenshotIntegration.m index 1d997db6e6a..3c13df7492c 100644 --- a/Sources/Sentry/SentryScreenshotIntegration.m +++ b/Sources/Sentry/SentryScreenshotIntegration.m @@ -26,13 +26,13 @@ @interface SentryScreenshotIntegration () -@property (nonatomic, strong) SentryOptionsInternal *options; +@property (nonatomic, strong) SentryOptions *options; @end @implementation SentryScreenshotIntegration -- (BOOL)installWithOptions:(nonnull SentryOptionsInternal *)options +- (BOOL)installWithOptions:(nonnull SentryOptions *)options { self.options = options; diff --git a/Sources/Sentry/SentrySessionReplayIntegration.m b/Sources/Sentry/SentrySessionReplayIntegration.m index 1d8c712c312..12aad7cfa8e 100644 --- a/Sources/Sentry/SentrySessionReplayIntegration.m +++ b/Sources/Sentry/SentrySessionReplayIntegration.m @@ -91,14 +91,13 @@ - (instancetype)initForManualUse:(nonnull SentryOptionsInternal *)options return self; } -- (BOOL)installWithOptions:(nonnull SentryOptionsInternal *)options +- (BOOL)installWithOptions:(nonnull SentryOptions *)options { if ([super installWithOptions:options] == NO || [SentrySessionReplayIntegration shouldEnableForOptions:options] == NO) { return NO; } - SentryReplayOptions *replayOptions = - [SentryOptionsConverter fromInternal:options].sessionReplay; + SentryReplayOptions *replayOptions = options.sessionReplay; [self setupWith:replayOptions enableTouchTracker:options.enableSwizzling diff --git a/Sources/Sentry/SentrySpotlightTransport.m b/Sources/Sentry/SentrySpotlightTransport.m index 92971d983f4..1f581a5866b 100644 --- a/Sources/Sentry/SentrySpotlightTransport.m +++ b/Sources/Sentry/SentrySpotlightTransport.m @@ -3,7 +3,6 @@ #import "SentryInternalDefines.h" #import "SentryLogC.h" #import "SentryNSURLRequestBuilder.h" -#import "SentryOptionsInternal.h" #import "SentrySerialization.h" #import "SentrySwift.h" #import "SentryTransport.h" @@ -14,7 +13,7 @@ @interface SentrySpotlightTransport () @property (nonatomic, strong) id requestManager; @property (nonatomic, strong) SentryNSURLRequestBuilder *requestBuilder; -@property (nonatomic, strong) SentryOptionsInternal *options; +@property (nonatomic, strong) SentryOptions *options; @property (nonatomic, strong) SentryDispatchQueueWrapper *dispatchQueue; @property (nonatomic, strong, nullable) NSURL *apiURL; @@ -22,7 +21,7 @@ @interface SentrySpotlightTransport () @implementation SentrySpotlightTransport -- (id)initWithOptions:(SentryOptionsInternal *)options +- (id)initWithOptions:(SentryOptions *)options requestManager:(id)requestManager requestBuilder:(SentryNSURLRequestBuilder *)requestBuilder dispatchQueueWrapper:(SentryDispatchQueueWrapper *)dispatchQueueWrapper diff --git a/Sources/Sentry/SentryTraceContext.m b/Sources/Sentry/SentryTraceContext.m index 9d6b5deac09..c247e2912f7 100644 --- a/Sources/Sentry/SentryTraceContext.m +++ b/Sources/Sentry/SentryTraceContext.m @@ -62,7 +62,7 @@ - (instancetype)initWithTraceId:(SentryId *)traceId return self; } -- (nullable instancetype)initWithScope:(SentryScope *)scope options:(SentryOptionsInternal *)options +- (nullable instancetype)initWithScope:(SentryScope *)scope options:(SentryOptions *)options { SentryTracer *tracer = [SentryTracer getTracer:scope.span]; if (tracer == nil) { @@ -73,7 +73,7 @@ - (nullable instancetype)initWithScope:(SentryScope *)scope options:(SentryOptio - (nullable instancetype)initWithTracer:(SentryTracer *)tracer scope:(nullable SentryScope *)scope - options:(SentryOptionsInternal *)options + options:(SentryOptions *)options { if (tracer.traceId == nil || options.parsedDsn == nil) { return nil; @@ -108,7 +108,7 @@ - (nullable instancetype)initWithTracer:(SentryTracer *)tracer } - (instancetype)initWithTraceId:(SentryId *)traceId - options:(SentryOptionsInternal *)options + options:(SentryOptions *)options replayId:(nullable NSString *)replayId; { return [[SentryTraceContext alloc] diff --git a/Sources/Sentry/SentryTracer.m b/Sources/Sentry/SentryTracer.m index 4110f817eb2..d2c00d8ce84 100644 --- a/Sources/Sentry/SentryTracer.m +++ b/Sources/Sentry/SentryTracer.m @@ -7,6 +7,7 @@ #import "SentryLogC.h" #import "SentryNSDictionarySanitize.h" #import "SentryNoOpSpan.h" +#import "SentryOptionsConverter.h" #import "SentryProfilingConditionals.h" #import "SentrySDK+Private.h" #import "SentrySamplerDecision.h" diff --git a/Sources/Sentry/SentryTransportAdapter.m b/Sources/Sentry/SentryTransportAdapter.m index 82693c6f73d..075ec243fce 100644 --- a/Sources/Sentry/SentryTransportAdapter.m +++ b/Sources/Sentry/SentryTransportAdapter.m @@ -8,14 +8,14 @@ @interface SentryTransportAdapter () @property (nonatomic, strong) NSArray> *transports; -@property (nonatomic, strong) SentryOptionsInternal *options; +@property (nonatomic, strong) SentryOptions *options; @end @implementation SentryTransportAdapter - (instancetype)initWithTransports:(NSArray> *)transports - options:(SentryOptionsInternal *)options + options:(SentryOptions *)options { if (self = [super init]) { self.transports = transports; diff --git a/Sources/Sentry/SentryTransportFactory.m b/Sources/Sentry/SentryTransportFactory.m index 699f1a5626c..26a0435eb32 100644 --- a/Sources/Sentry/SentryTransportFactory.m +++ b/Sources/Sentry/SentryTransportFactory.m @@ -4,7 +4,6 @@ #import "SentryInternalDefines.h" #import "SentryLogC.h" #import "SentryNSURLRequestBuilder.h" -#import "SentryOptionsInternal.h" #import "SentryQueueableRequestManager.h" #import "SentrySpotlightTransport.h" #import "SentrySwift.h" @@ -18,7 +17,7 @@ @interface SentryTransportFactory () @implementation SentryTransportFactory -+ (NSArray> *)initTransports:(SentryOptionsInternal *)options ++ (NSArray> *)initTransports:(SentryOptions *)options dateProvider:(id)dateProvider sentryFileManager:(SentryFileManager *)sentryFileManager rateLimits:(id)rateLimits @@ -73,7 +72,7 @@ @implementation SentryTransportFactory return transports; } -+ (NSURLSession *)getUrlSession:(SentryOptionsInternal *_Nonnull)options ++ (NSURLSession *)getUrlSession:(SentryOptions *_Nonnull)options { if (options.urlSession) { SENTRY_LOG_DEBUG(@"Using URL session provided in SDK options for HTTP transport."); diff --git a/Sources/Sentry/SentryUIEventTrackingIntegration.m b/Sources/Sentry/SentryUIEventTrackingIntegration.m index 49537539c36..a5fa0a027fc 100644 --- a/Sources/Sentry/SentryUIEventTrackingIntegration.m +++ b/Sources/Sentry/SentryUIEventTrackingIntegration.m @@ -2,6 +2,7 @@ #if SENTRY_HAS_UIKIT +# import "SentrySwift.h" # import # import # import @@ -17,7 +18,7 @@ @interface SentryUIEventTrackingIntegration () @implementation SentryUIEventTrackingIntegration -- (BOOL)installWithOptions:(SentryOptionsInternal *)options +- (BOOL)installWithOptions:(SentryOptions *)options { if (![super installWithOptions:options]) { return NO; diff --git a/Sources/Sentry/SentryUIViewControllerSwizzling.m b/Sources/Sentry/SentryUIViewControllerSwizzling.m index 40360e16d4e..a285d87a932 100644 --- a/Sources/Sentry/SentryUIViewControllerSwizzling.m +++ b/Sources/Sentry/SentryUIViewControllerSwizzling.m @@ -29,7 +29,7 @@ @interface UIApplication (SentryUIApplication) @interface SentryUIViewControllerSwizzling () -@property (nonatomic, strong) SentryOptionsInternal *options; +@property (nonatomic, strong) SentryOptions *options; @property (nonatomic, strong) SentryInAppLogic *inAppLogic; @property (nonatomic, strong) SentryDispatchQueueWrapper *dispatchQueue; @property (nonatomic, strong) id objcRuntimeWrapper; @@ -42,7 +42,7 @@ @interface SentryUIViewControllerSwizzling () @implementation SentryUIViewControllerSwizzling -- (instancetype)initWithOptions:(SentryOptionsInternal *)options +- (instancetype)initWithOptions:(SentryOptions *)options dispatchQueue:(SentryDispatchQueueWrapper *)dispatchQueue objcRuntimeWrapper:(id)objcRuntimeWrapper subClassFinder:(SentrySubClassFinder *)subClassFinder diff --git a/Sources/Sentry/SentryUserFeedbackIntegration.m b/Sources/Sentry/SentryUserFeedbackIntegration.m index b22dfaf8585..4a8ace019ef 100644 --- a/Sources/Sentry/SentryUserFeedbackIntegration.m +++ b/Sources/Sentry/SentryUserFeedbackIntegration.m @@ -14,10 +14,9 @@ @implementation SentryUserFeedbackIntegration { SentryUserFeedbackIntegrationDriver *_driver; } -- (BOOL)installWithOptions:(SentryOptionsInternal *)options +- (BOOL)installWithOptions:(SentryOptions *)options { - SentryOptions *convertedOptions = [SentryOptionsConverter fromInternal:options]; - if (convertedOptions.userFeedbackConfiguration == nil) { + if (options.userFeedbackConfiguration == nil) { return NO; } @@ -27,7 +26,7 @@ - (BOOL)installWithOptions:(SentryOptionsInternal *)options = SentryDependencyContainer.sharedInstance.screenshotSource; _driver = [[SentryUserFeedbackIntegrationDriver alloc] initWithConfiguration:SENTRY_UNWRAP_NULLABLE(SentryUserFeedbackConfiguration, - convertedOptions.userFeedbackConfiguration) + options.userFeedbackConfiguration) delegate:self screenshotSource:screenshotSource]; return YES; diff --git a/Sources/Sentry/SentryViewHierarchyIntegration.m b/Sources/Sentry/SentryViewHierarchyIntegration.m index a459f66c3e7..322065cdd7a 100644 --- a/Sources/Sentry/SentryViewHierarchyIntegration.m +++ b/Sources/Sentry/SentryViewHierarchyIntegration.m @@ -29,13 +29,13 @@ @interface SentryViewHierarchyIntegration () -@property (nonatomic, strong) SentryOptionsInternal *options; +@property (nonatomic, strong) SentryOptions *options; @end @implementation SentryViewHierarchyIntegration -- (BOOL)installWithOptions:(nonnull SentryOptionsInternal *)options +- (BOOL)installWithOptions:(nonnull SentryOptions *)options { if (![super installWithOptions:options]) { return NO; diff --git a/Sources/Sentry/SentryWatchdogTerminationLogic.m b/Sources/Sentry/SentryWatchdogTerminationLogic.m index 01cac1ad7c0..20924d1607a 100644 --- a/Sources/Sentry/SentryWatchdogTerminationLogic.m +++ b/Sources/Sentry/SentryWatchdogTerminationLogic.m @@ -9,7 +9,7 @@ @interface SentryWatchdogTerminationLogic () -@property (nonatomic, strong) SentryOptionsInternal *options; +@property (nonatomic, strong) SentryOptions *options; @property (nonatomic, strong) SentryCrashWrapper *crashAdapter; @property (nonatomic, strong) SentryAppStateManager *appStateManager; @@ -17,7 +17,7 @@ @interface SentryWatchdogTerminationLogic () @implementation SentryWatchdogTerminationLogic -- (instancetype)initWithOptions:(SentryOptionsInternal *)options +- (instancetype)initWithOptions:(SentryOptions *)options crashAdapter:(SentryCrashWrapper *)crashAdapter appStateManager:(SentryAppStateManager *)appStateManager { diff --git a/Sources/Sentry/SentryWatchdogTerminationTracker.m b/Sources/Sentry/SentryWatchdogTerminationTracker.m index 36030d1d2e2..fd936bbd36f 100644 --- a/Sources/Sentry/SentryWatchdogTerminationTracker.m +++ b/Sources/Sentry/SentryWatchdogTerminationTracker.m @@ -14,7 +14,7 @@ @interface SentryWatchdogTerminationTracker () -@property (nonatomic, strong) SentryOptionsInternal *options; +@property (nonatomic, strong) SentryOptions *options; @property (nonatomic, strong) SentryWatchdogTerminationLogic *watchdogTerminationLogic; @property (nonatomic, strong) SentryDispatchQueueWrapper *dispatchQueue; @property (nonatomic, strong) SentryAppStateManager *appStateManager; @@ -25,7 +25,7 @@ @interface SentryWatchdogTerminationTracker () @implementation SentryWatchdogTerminationTracker -- (instancetype)initWithOptions:(SentryOptionsInternal *)options +- (instancetype)initWithOptions:(SentryOptions *)options watchdogTerminationLogic:(SentryWatchdogTerminationLogic *)watchdogTerminationLogic appStateManager:(SentryAppStateManager *)appStateManager dispatchQueueWrapper:(SentryDispatchQueueWrapper *)dispatchQueueWrapper diff --git a/Sources/Sentry/SentryWatchdogTerminationTrackingIntegration.m b/Sources/Sentry/SentryWatchdogTerminationTrackingIntegration.m index 7b995ced64d..2215c778180 100644 --- a/Sources/Sentry/SentryWatchdogTerminationTrackingIntegration.m +++ b/Sources/Sentry/SentryWatchdogTerminationTrackingIntegration.m @@ -38,7 +38,7 @@ - (instancetype)init return self; } -- (BOOL)installWithOptions:(SentryOptionsInternal *)options +- (BOOL)installWithOptions:(SentryOptions *)options { if (self.testConfigurationFilePath) { return NO; @@ -81,8 +81,7 @@ - (BOOL)installWithOptions:(SentryOptionsInternal *)options self.appStateManager = appStateManager; id scopeObserver = [SentryDependencyContainer.sharedInstance - getWatchdogTerminationScopeObserverWithOptions:[SentryOptionsConverter - fromInternal:options]]; + getWatchdogTerminationScopeObserverWithOptions:options]; [SentrySDKInternal.currentHub configureScope:^(SentryScope *_Nonnull outerScope) { // Add the observer to the scope so that it can be notified when the scope changes. diff --git a/Sources/Sentry/include/HybridPublic/PrivateSentrySDKOnly.h b/Sources/Sentry/include/HybridPublic/PrivateSentrySDKOnly.h index 28b564ccf17..3d7c7d79851 100644 --- a/Sources/Sentry/include/HybridPublic/PrivateSentrySDKOnly.h +++ b/Sources/Sentry/include/HybridPublic/PrivateSentrySDKOnly.h @@ -7,7 +7,7 @@ @class SentryDebugMeta; @class SentryScreenFrames; @class SentryAppStartMeasurement; -@class SentryOptionsInternal; +@class SentryOptions; @class SentryBreadcrumb; @class SentryUser; @class SentryEnvelope; @@ -114,7 +114,7 @@ typedef void (^SentryOnAppStartMeasurementAvailable)( @property (class, nonatomic, readonly, copy) NSString *installationID; -@property (class, nonatomic, readonly, copy) SentryOptionsInternal *options; +@property (class, nonatomic, readonly, copy) SentryOptions *options; /** * If enabled, the SDK won't send the app start measurement with the first transaction. Instead, if diff --git a/Sources/Sentry/include/HybridPublic/SentryBaseIntegration.h b/Sources/Sentry/include/HybridPublic/SentryBaseIntegration.h index 55b81c89976..87edbbf5771 100644 --- a/Sources/Sentry/include/HybridPublic/SentryBaseIntegration.h +++ b/Sources/Sentry/include/HybridPublic/SentryBaseIntegration.h @@ -32,15 +32,15 @@ typedef NS_OPTIONS(NSUInteger, SentryIntegrationOption) { kIntegrationOptionStartFramesTracker = 1 << 19, }; -@class SentryOptionsInternal; +@class SentryOptions; @interface SentryBaseIntegration : NSObject - (NSString *)integrationName; -- (BOOL)installWithOptions:(SentryOptionsInternal *)options; +- (BOOL)installWithOptions:(SentryOptions *)options; - (void)logWithOptionName:(NSString *)optionName; - (void)logWithReason:(NSString *)reason; -- (BOOL)shouldBeEnabledWithOptions:(SentryOptionsInternal *)options; +- (BOOL)shouldBeEnabledWithOptions:(SentryOptions *)options; - (SentryIntegrationOption)integrationOptions; - (void)uninstall; @end diff --git a/Sources/Sentry/include/HybridPublic/SentryIntegrationProtocol.h b/Sources/Sentry/include/HybridPublic/SentryIntegrationProtocol.h index 6b08e193cb7..021d6a7acb7 100644 --- a/Sources/Sentry/include/HybridPublic/SentryIntegrationProtocol.h +++ b/Sources/Sentry/include/HybridPublic/SentryIntegrationProtocol.h @@ -2,14 +2,14 @@ NS_ASSUME_NONNULL_BEGIN -@class SentryOptionsInternal; +@class SentryOptions; @protocol SentryIntegrationProtocol /** * Installs the integration and returns YES if successful. */ -- (BOOL)installWithOptions:(SentryOptionsInternal *)options NS_SWIFT_NAME(install(with:)); +- (BOOL)installWithOptions:(SentryOptions *)options NS_SWIFT_NAME(install(with:)); /** * Uninstalls the integration. diff --git a/Sources/Sentry/include/HybridPublic/SentrySessionReplayIntegration.h b/Sources/Sentry/include/HybridPublic/SentrySessionReplayIntegration.h index c5f5a884534..7f67b6b68cd 100644 --- a/Sources/Sentry/include/HybridPublic/SentrySessionReplayIntegration.h +++ b/Sources/Sentry/include/HybridPublic/SentrySessionReplayIntegration.h @@ -18,7 +18,7 @@ NS_ASSUME_NONNULL_BEGIN @interface SentrySessionReplayIntegration : SentryBaseIntegration -- (instancetype)initForManualUse:(nonnull SentryOptionsInternal *)options; +- (instancetype)initForManualUse:(nonnull SentryOptions *)options; /** * Captures Replay. Used by the Hybrid SDKs. @@ -49,7 +49,7 @@ NS_ASSUME_NONNULL_BEGIN * Verifies the device environment and options and returns wether it is safe to enable * SessionReplay or not */ -+ (BOOL)shouldEnableForOptions:(SentryOptionsInternal *)options; ++ (BOOL)shouldEnableForOptions:(SentryOptions *)options; @end #endif // SENTRY_TARGET_REPLAY_SUPPORTED diff --git a/Sources/Sentry/include/SentryANRTrackerV1.h b/Sources/Sentry/include/SentryANRTrackerV1.h index 90b4af3380f..92861c82875 100644 --- a/Sources/Sentry/include/SentryANRTrackerV1.h +++ b/Sources/Sentry/include/SentryANRTrackerV1.h @@ -1,6 +1,5 @@ #import "SentryDefines.h" -@class SentryOptionsInternal; @class SentryCrashWrapper; @class SentryDispatchQueueWrapper; @class SentryThreadWrapper; diff --git a/Sources/Sentry/include/SentryClient.h b/Sources/Sentry/include/SentryClient.h index a89ede40b54..4efb23f77a6 100644 --- a/Sources/Sentry/include/SentryClient.h +++ b/Sources/Sentry/include/SentryClient.h @@ -9,6 +9,7 @@ @class SentryEvent; @class SentryFeedback; @class SentryOptionsInternal; +@class SentryOptions; @class SentryScope; @class SentryId; @class SentryTransaction; @@ -20,7 +21,9 @@ SENTRY_NO_INIT @property (nonatomic, assign, readonly) BOOL isEnabled; -@property (nonatomic, strong) SentryOptionsInternal *options; +@property (nonatomic, strong) SentryOptionsInternal *optionsInternal; + +@property (nonatomic, strong, readonly) SentryOptions *options; /** * Initializes a @c SentryClient. Pass in a dictionary of options. diff --git a/Sources/Sentry/include/SentryDefaultAppStateManager.h b/Sources/Sentry/include/SentryDefaultAppStateManager.h index 0bccf57a5a2..1bb88780033 100644 --- a/Sources/Sentry/include/SentryDefaultAppStateManager.h +++ b/Sources/Sentry/include/SentryDefaultAppStateManager.h @@ -4,7 +4,6 @@ @class SentryCrashWrapper; @class SentryDispatchQueueWrapper; @class SentryFileManager; -@class SentryOptionsInternal; @protocol SentryNSNotificationCenterWrapper; diff --git a/Sources/Sentry/include/SentryDependencyContainerSwiftHelper.h b/Sources/Sentry/include/SentryDependencyContainerSwiftHelper.h index a26df13b3bb..f19388419e3 100644 --- a/Sources/Sentry/include/SentryDependencyContainerSwiftHelper.h +++ b/Sources/Sentry/include/SentryDependencyContainerSwiftHelper.h @@ -8,19 +8,9 @@ @class SentryHubInternal; @class SentryDispatchQueueWrapper; -@class SentryOptionsInternal; NS_ASSUME_NONNULL_BEGIN -@interface SentryDefaultRedactOptions : NSObject - -@property (nonatomic) BOOL maskAllText; -@property (nonatomic) BOOL maskAllImages; -@property (nonatomic) NSArray *maskedViewClasses; -@property (nonatomic) NSArray *unmaskedViewClasses; - -@end - // Some Swift code needs to access Sentry types that we don’t want to completely // expose to Swift. This class is exposed to Swift // and bridges some functionality from without importing large amounts of the @@ -31,12 +21,6 @@ NS_ASSUME_NONNULL_BEGIN + (nullable NSArray *)windows; -// Since SentryOptionsInternal is in ObjC, Swift code can't see the SentryViewScreenshotOptions -// property -+ (BOOL)fastViewRenderingEnabled:(SentryOptionsInternal *)options; -+ (BOOL)viewRendererV2Enabled:(SentryOptionsInternal *)options; -+ (SentryDefaultRedactOptions *)redactOptions:(SentryOptionsInternal *)options; - #endif // SENTRY_HAS_UIKIT + (SentryDispatchQueueWrapper *)dispatchQueueWrapper; diff --git a/Sources/Sentry/include/SentryLaunchProfiling.h b/Sources/Sentry/include/SentryLaunchProfiling.h index 1d5174618d2..033e7154965 100644 --- a/Sources/Sentry/include/SentryLaunchProfiling.h +++ b/Sources/Sentry/include/SentryLaunchProfiling.h @@ -7,7 +7,7 @@ @class SentryHubInternal; @class SentryId; -@class SentryOptionsInternal; +@class SentryOptions; @class SentryTracerConfiguration; @class SentryTransactionContext; @class SentryTracer; @@ -48,7 +48,7 @@ SENTRY_EXTERN void sentry_stopAndDiscardLaunchProfileTracer(SentryHubInternal *_ * sampling decisions through to SentryHub later when it needs to start a transaction for the * profile to be attached to. */ -SENTRY_EXTERN void sentry_configureLaunchProfilingForNextLaunch(SentryOptionsInternal *options); +SENTRY_EXTERN void sentry_configureLaunchProfilingForNextLaunch(SentryOptions *options); NS_ASSUME_NONNULL_END diff --git a/Sources/Sentry/include/SentryNSDataSwizzling.h b/Sources/Sentry/include/SentryNSDataSwizzling.h index ef663c23c2c..f546443b415 100644 --- a/Sources/Sentry/include/SentryNSDataSwizzling.h +++ b/Sources/Sentry/include/SentryNSDataSwizzling.h @@ -2,7 +2,7 @@ NS_ASSUME_NONNULL_BEGIN -@class SentryOptionsInternal; +@class SentryOptions; @class SentryFileIOTracker; @interface SentryNSDataSwizzling : NSObject @@ -10,7 +10,7 @@ SENTRY_NO_INIT @property (class, readonly) SentryNSDataSwizzling *shared; -- (void)startWithOptions:(SentryOptionsInternal *)options tracker:(SentryFileIOTracker *)tracker; +- (void)startWithOptions:(SentryOptions *)options tracker:(SentryFileIOTracker *)tracker; - (void)stop; diff --git a/Sources/Sentry/include/SentryNSFileManagerSwizzling.h b/Sources/Sentry/include/SentryNSFileManagerSwizzling.h index b6aa1c8529a..020e9f99461 100644 --- a/Sources/Sentry/include/SentryNSFileManagerSwizzling.h +++ b/Sources/Sentry/include/SentryNSFileManagerSwizzling.h @@ -2,7 +2,7 @@ NS_ASSUME_NONNULL_BEGIN -@class SentryOptionsInternal; +@class SentryOptions; @class SentryFileIOTracker; @interface SentryNSFileManagerSwizzling : NSObject @@ -10,7 +10,7 @@ SENTRY_NO_INIT @property (class, readonly) SentryNSFileManagerSwizzling *shared; -- (void)startWithOptions:(SentryOptionsInternal *)options tracker:(SentryFileIOTracker *)tracker; +- (void)startWithOptions:(SentryOptions *)options tracker:(SentryFileIOTracker *)tracker; - (void)stop; diff --git a/Sources/Sentry/include/SentryOptionsConverter.h b/Sources/Sentry/include/SentryOptionsConverter.h index a4a9b0aee9a..da0498c5261 100644 --- a/Sources/Sentry/include/SentryOptionsConverter.h +++ b/Sources/Sentry/include/SentryOptionsConverter.h @@ -9,6 +9,8 @@ NS_ASSUME_NONNULL_BEGIN + (SentryOptions *)fromInternal:(SentryOptionsInternal *)internalOptions; ++ (SentryOptionsInternal *)toInternal:(SentryOptions *)internalOptions; + @end NS_ASSUME_NONNULL_END diff --git a/Sources/Sentry/include/SentryOptionsInternal+Private.h b/Sources/Sentry/include/SentryOptionsInternal+Private.h index 0e55f37285f..a0431997cfe 100644 --- a/Sources/Sentry/include/SentryOptionsInternal+Private.h +++ b/Sources/Sentry/include/SentryOptionsInternal+Private.h @@ -12,19 +12,6 @@ FOUNDATION_EXPORT NSString *const kSentryDefaultEnvironment; #if SENTRY_TARGET_PROFILING_SUPPORTED @property (nonatomic, assign) BOOL enableProfiling_DEPRECATED_TEST_ONLY; -/** - * If UI profiling mode ("continuous v2") is enabled. - * @note Not for use with launch profiles. See functions in @c SentryLaunchProfiling . - */ -- (BOOL)isContinuousProfilingEnabled; - -/** - * Whether or not the SDK was configured with a profile mode that automatically starts and tracks - * profiles with traces. - * @note Not for use with launch profiles. See functions in @c SentryLaunchProfiling . - */ -- (BOOL)isProfilingCorrelatedToTraces; - /** * UI Profiling options set on SDK start. * @note Not for use with launch profiles. See functions in @c SentryLaunchProfiling . @@ -34,9 +21,6 @@ FOUNDATION_EXPORT NSString *const kSentryDefaultEnvironment; SENTRY_EXTERN BOOL sentry_isValidSampleRate(NSNumber *sampleRate); -#if SENTRY_HAS_UIKIT -- (BOOL)isAppHangTrackingDisabled; -#endif // SENTRY_HAS_UIKIT @end NS_ASSUME_NONNULL_END diff --git a/Sources/Sentry/include/SentryProfiler+Private.h b/Sources/Sentry/include/SentryProfiler+Private.h index 64c488133cf..daa7b923aad 100644 --- a/Sources/Sentry/include/SentryProfiler+Private.h +++ b/Sources/Sentry/include/SentryProfiler+Private.h @@ -9,7 +9,7 @@ @class SentryHubInternal; @class SentryId; @class SentryMetricProfiler; -@class SentryOptionsInternal; +@class SentryOptions; @class SentryProfileConfiguration; @class SentryProfileOptions; @class SentryProfilerState; @@ -35,8 +35,7 @@ typedef struct { * launch's profiling, stop tracer profiling if no automatic performance transaction is running, * start the continuous profiler if enabled and not profiling from launch. */ -SENTRY_EXTERN void sentry_sdkInitProfilerTasks( - SentryOptionsInternal *options, SentryHubInternal *hub); +SENTRY_EXTERN void sentry_sdkInitProfilerTasks(SentryOptions *options, SentryHubInternal *hub); SENTRY_EXTERN SentryProfileConfiguration *_Nullable sentry_profileConfiguration; @@ -44,7 +43,7 @@ SENTRY_EXTERN BOOL sentry_isLaunchProfileCorrelatedToTraces(void); SENTRY_EXTERN void sentry_reevaluateSessionSampleRate(void); -SENTRY_EXTERN void sentry_configureContinuousProfiling(SentryOptionsInternal *options); +SENTRY_EXTERN void sentry_configureContinuousProfiling(SentryOptions *options); /** * A wrapper around the low-level components used to gather sampled backtrace profiles. diff --git a/Sources/Sentry/include/SentrySDK+Private.h b/Sources/Sentry/include/SentrySDK+Private.h index 830f2dc7472..dbcd441adca 100644 --- a/Sources/Sentry/include/SentrySDK+Private.h +++ b/Sources/Sentry/include/SentrySDK+Private.h @@ -13,6 +13,8 @@ @class SentryAppStartMeasurement; @class SentryEnvelope; @class SentryFeedback; +@class SentryOptions; +@class SentryOptionsInternal; @class SentryId; @class SentryHubInternal; @@ -47,7 +49,8 @@ NS_ASSUME_NONNULL_BEGIN /** * The option used to start the SDK */ -@property (nonatomic, nullable, readonly, class) SentryOptionsInternal *options; +@property (nonatomic, nullable, readonly, class) SentryOptions *options; +@property (nonatomic, nullable, readonly, class) SentryOptionsInternal *optionsInternal; /** * Needed by hybrid SDKs as react-native to synchronously store an envelope to disk. diff --git a/Sources/Sentry/include/SentrySampling.h b/Sources/Sentry/include/SentrySampling.h index 4e6387f196e..5afb9ae9ecb 100644 --- a/Sources/Sentry/include/SentrySampling.h +++ b/Sources/Sentry/include/SentrySampling.h @@ -3,7 +3,7 @@ NS_ASSUME_NONNULL_BEGIN -@class SentryOptionsInternal; +@class SentryOptions; @class SentrySamplerDecision; @class SentrySamplingContext; @@ -11,7 +11,7 @@ NS_ASSUME_NONNULL_BEGIN * Determines whether a trace should be sampled based on the context and options. */ SENTRY_EXTERN SentrySamplerDecision *sentry_sampleTrace( - SentrySamplingContext *context, SentryOptionsInternal *_Nullable options); + SentrySamplingContext *context, SentryOptions *_Nullable options); #if SENTRY_TARGET_PROFILING_SUPPORTED SENTRY_EXTERN SentrySamplerDecision *sentry_sampleProfileSession(float sessionSampleRate); diff --git a/Sources/Sentry/include/SentrySpotlightTransport.h b/Sources/Sentry/include/SentrySpotlightTransport.h index b9ae99a3aaf..4cc93b34500 100644 --- a/Sources/Sentry/include/SentrySpotlightTransport.h +++ b/Sources/Sentry/include/SentrySpotlightTransport.h @@ -4,14 +4,14 @@ @class SentryDispatchQueueWrapper; @class SentryNSURLRequestBuilder; -@class SentryOptionsInternal; +@class SentryOptions; NS_ASSUME_NONNULL_BEGIN @interface SentrySpotlightTransport : NSObject SENTRY_NO_INIT -- (id)initWithOptions:(SentryOptionsInternal *)options +- (id)initWithOptions:(SentryOptions *)options requestManager:(id)requestManager requestBuilder:(SentryNSURLRequestBuilder *)requestBuilder dispatchQueueWrapper:(SentryDispatchQueueWrapper *)dispatchQueueWrapper; diff --git a/Sources/Sentry/include/SentryTraceContext+Private.h b/Sources/Sentry/include/SentryTraceContext+Private.h index 4a619faf1ca..0191dc3a1e0 100644 --- a/Sources/Sentry/include/SentryTraceContext+Private.h +++ b/Sources/Sentry/include/SentryTraceContext+Private.h @@ -4,7 +4,7 @@ @class SentryId; @class SentryTracer; @class SentryScope; -@class SentryOptionsInternal; +@class SentryOptions; NS_ASSUME_NONNULL_BEGIN @@ -38,8 +38,7 @@ NS_ASSUME_NONNULL_BEGIN /** * Initializes a SentryTraceContext with data from scope and options. */ -- (nullable instancetype)initWithScope:(SentryScope *)scope - options:(SentryOptionsInternal *)options; +- (nullable instancetype)initWithScope:(SentryScope *)scope options:(SentryOptions *)options; /** * Initializes a SentryTraceContext with data from a dictionary. @@ -51,7 +50,7 @@ NS_ASSUME_NONNULL_BEGIN */ - (nullable instancetype)initWithTracer:(SentryTracer *)tracer scope:(nullable SentryScope *)scope - options:(SentryOptionsInternal *)options; + options:(SentryOptions *)options; /** * Initializes a SentryTraceContext with data from a traceId, options and replayId. @@ -61,7 +60,7 @@ NS_ASSUME_NONNULL_BEGIN * @param replayId The current session replay. */ - (instancetype)initWithTraceId:(SentryId *)traceId - options:(SentryOptionsInternal *)options + options:(SentryOptions *)options replayId:(nullable NSString *)replayId; @end diff --git a/Sources/Sentry/include/SentryTransportAdapter.h b/Sources/Sentry/include/SentryTransportAdapter.h index 7af79375559..b21ddd1e952 100644 --- a/Sources/Sentry/include/SentryTransportAdapter.h +++ b/Sources/Sentry/include/SentryTransportAdapter.h @@ -8,7 +8,7 @@ @class SentryEnvelopeItem; @class SentryEvent; @class SentryFeedback; -@class SentryOptionsInternal; +@class SentryOptions; @class SentrySession; @class SentryTraceContext; @@ -23,7 +23,7 @@ NS_ASSUME_NONNULL_BEGIN SENTRY_NO_INIT - (instancetype)initWithTransports:(NSArray> *)transports - options:(SentryOptionsInternal *)options; + options:(SentryOptions *)options; - (void)sendEvent:(SentryEvent *)event session:(SentrySession *)session diff --git a/Sources/Sentry/include/SentryTransportFactory.h b/Sources/Sentry/include/SentryTransportFactory.h index 69fcea5c939..29afbc40023 100644 --- a/Sources/Sentry/include/SentryTransportFactory.h +++ b/Sources/Sentry/include/SentryTransportFactory.h @@ -1,7 +1,7 @@ #import "SentryTransport.h" @class SentryFileManager; -@class SentryOptionsInternal; +@class SentryOptions; @protocol SentryCurrentDateProvider; @protocol SentryRateLimits; @@ -10,7 +10,7 @@ NS_ASSUME_NONNULL_BEGIN NS_SWIFT_NAME(TransportInitializer) @interface SentryTransportFactory : NSObject -+ (NSArray> *)initTransports:(SentryOptionsInternal *)options ++ (NSArray> *)initTransports:(SentryOptions *)options dateProvider:(id)dateProvider sentryFileManager:(SentryFileManager *)sentryFileManager rateLimits:(id)rateLimits; diff --git a/Sources/Sentry/include/SentryUIViewControllerSwizzling.h b/Sources/Sentry/include/SentryUIViewControllerSwizzling.h index 7631531b4eb..b1f4100cc80 100644 --- a/Sources/Sentry/include/SentryUIViewControllerSwizzling.h +++ b/Sources/Sentry/include/SentryUIViewControllerSwizzling.h @@ -11,7 +11,7 @@ NS_ASSUME_NONNULL_BEGIN @class SentryBinaryImageCache; @class SentryDispatchQueueWrapper; -@class SentryOptionsInternal; +@class SentryOptions; @class SentrySubClassFinder; /** @@ -31,7 +31,7 @@ NS_ASSUME_NONNULL_BEGIN @interface SentryUIViewControllerSwizzling : NSObject SENTRY_NO_INIT -- (instancetype)initWithOptions:(SentryOptionsInternal *)options +- (instancetype)initWithOptions:(SentryOptions *)options dispatchQueue:(SentryDispatchQueueWrapper *)dispatchQueue objcRuntimeWrapper:(id)objcRuntimeWrapper subClassFinder:(SentrySubClassFinder *)subClassFinder diff --git a/Sources/Sentry/include/SentryWatchdogTerminationLogic.h b/Sources/Sentry/include/SentryWatchdogTerminationLogic.h index 0784c7b2029..ee0add889ba 100644 --- a/Sources/Sentry/include/SentryWatchdogTerminationLogic.h +++ b/Sources/Sentry/include/SentryWatchdogTerminationLogic.h @@ -6,14 +6,14 @@ @class SentryAppStateManager; @class SentryCrashWrapper; @class SentryFileManager; -@class SentryOptionsInternal; +@class SentryOptions; NS_ASSUME_NONNULL_BEGIN @interface SentryWatchdogTerminationLogic : NSObject SENTRY_NO_INIT -- (instancetype)initWithOptions:(SentryOptionsInternal *)options +- (instancetype)initWithOptions:(SentryOptions *)options crashAdapter:(SentryCrashWrapper *)crashAdapter appStateManager:(SentryAppStateManager *)appStateManager; diff --git a/Sources/Sentry/include/SentryWatchdogTerminationTracker.h b/Sources/Sentry/include/SentryWatchdogTerminationTracker.h index 306f5a11091..50e3e329f7e 100644 --- a/Sources/Sentry/include/SentryWatchdogTerminationTracker.h +++ b/Sources/Sentry/include/SentryWatchdogTerminationTracker.h @@ -3,7 +3,7 @@ @class SentryAppStateManager; @class SentryDispatchQueueWrapper; @class SentryFileManager; -@class SentryOptionsInternal; +@class SentryOptions; @class SentryWatchdogTerminationLogic; @class SentryScopePersistentStore; @@ -23,7 +23,7 @@ static NSString *const SentryWatchdogTerminationMechanismType = @"watchdog_termi @interface SentryWatchdogTerminationTracker : NSObject SENTRY_NO_INIT -- (instancetype)initWithOptions:(SentryOptionsInternal *)options +- (instancetype)initWithOptions:(SentryOptions *)options watchdogTerminationLogic:(SentryWatchdogTerminationLogic *)watchdogTerminationLogic appStateManager:(SentryAppStateManager *)appStateManager dispatchQueueWrapper:(SentryDispatchQueueWrapper *)dispatchQueueWrapper diff --git a/Sources/Swift/Helper/SentrySdkInfo.swift b/Sources/Swift/Helper/SentrySdkInfo.swift index 4970102e664..d833245a75c 100644 --- a/Sources/Swift/Helper/SentrySdkInfo.swift +++ b/Sources/Swift/Helper/SentrySdkInfo.swift @@ -9,7 +9,7 @@ import Foundation @_spi(Private) @objc public final class SentrySdkInfo: NSObject, SentrySerializable { @objc public static func global() -> Self { - Self(withOptions: SentrySDKInternal.currentHub().getClient()?.options.toOptions()) + Self(withOptions: SentrySDKInternal.currentHub().getClient()?.optionsInternal.toOptions()) } /** diff --git a/Sources/Swift/Options.swift b/Sources/Swift/Options.swift index ff731b11a06..c47db717b80 100644 --- a/Sources/Swift/Options.swift +++ b/Sources/Swift/Options.swift @@ -263,6 +263,10 @@ /// @note The default is @c YES. @objc public var enableReportNonFullyBlockingAppHangs: Bool = true + @_spi(Private) @objc public func isAppHangTrackingDisabled() -> Bool { + !enableAppHangTracking || appHangTimeoutInterval <= 0 + } + #endif #if (os(iOS) || os(tvOS)) && !SENTRY_NO_UIKIT @@ -377,7 +381,22 @@ /// Configuration for the Sentry profiler. /// @warning: Continuous profiling is an experimental feature and may still contain bugs. /// @warning: Profiling is automatically disabled if a thread sanitizer is attached. - @objc public var configureProfiling: ((SentryProfileOptions) -> Void)? + @objc public var configureProfiling: ((SentryProfileOptions) -> Void)? { + didSet { + let profiling = SentryProfileOptions() + configureProfiling?(profiling) + self.profiling = profiling + } + } + @_spi(Private) @objc public var profiling: SentryProfileOptions? + + @_spi(Private) @objc public func isContinuousProfilingEnabled() -> Bool { + profiling != nil + } + + @_spi(Private) @objc public func isProfilingCorrelatedToTraces() -> Bool { + profiling?.lifecycle == .trace + } #endif // SENTRY_TARGET_PROFILING_SUPPORTED diff --git a/Sources/Swift/SentryAppStateManager.swift b/Sources/Swift/SentryAppStateManager.swift index d64cb07f36a..b7cc0f2c7d7 100644 --- a/Sources/Swift/SentryAppStateManager.swift +++ b/Sources/Swift/SentryAppStateManager.swift @@ -6,7 +6,7 @@ import UIKit @_spi(Private) @objc public final class SentryAppStateManager: NSObject { - private let options: SentryOptionsInternal? + private let options: Options? private let crashWrapper: SentryCrashWrapper private let fileManager: SentryFileManager? #if (os(iOS) || os(tvOS) || (swift(>=5.9) && os(visionOS))) && !SENTRY_NO_UIKIT @@ -15,7 +15,7 @@ import UIKit private let helper: SentryDefaultAppStateManager #endif - init(options: SentryOptionsInternal?, crashWrapper: SentryCrashWrapper, fileManager: SentryFileManager?, sysctlWrapper: SentrySysctl) { + init(options: Options?, crashWrapper: SentryCrashWrapper, fileManager: SentryFileManager?, sysctlWrapper: SentrySysctl) { self.options = options self.crashWrapper = crashWrapper self.fileManager = fileManager diff --git a/Sources/Swift/SentryClient.swift b/Sources/Swift/SentryClient.swift index e0cc0ecc65c..7cd511366b5 100644 --- a/Sources/Swift/SentryClient.swift +++ b/Sources/Swift/SentryClient.swift @@ -23,8 +23,8 @@ import Foundation } @objc public var options: Options { - get { helper.options.toOptions() } - set { helper.options = newValue.toInternal() } + get { helper.optionsInternal.toOptions() } + set { helper.optionsInternal = newValue.toInternal() } } /// Captures a manually created event and sends it to Sentry. diff --git a/Sources/Swift/SentryCrash/SentryThreadInspector.swift b/Sources/Swift/SentryCrash/SentryThreadInspector.swift index 4a334ba4a08..32082380d08 100644 --- a/Sources/Swift/SentryCrash/SentryThreadInspector.swift +++ b/Sources/Swift/SentryCrash/SentryThreadInspector.swift @@ -4,7 +4,7 @@ private let internalHelper: SentryDefaultThreadInspector override init() { - internalHelper = SentryDefaultThreadInspector(options: SentrySDKInternal.options) + internalHelper = SentryDefaultThreadInspector(options: SentrySDKInternal.optionsInternal) } init(options: SentryOptionsInternal) { diff --git a/Sources/Swift/SentryDependencyContainer.swift b/Sources/Swift/SentryDependencyContainer.swift index 1630a08c081..05037b19c44 100644 --- a/Sources/Swift/SentryDependencyContainer.swift +++ b/Sources/Swift/SentryDependencyContainer.swift @@ -17,31 +17,6 @@ let defaultApplicationProvider: () -> SentryApplication? = { let SENTRY_AUTO_TRANSACTION_MAX_DURATION = 500.0 -// MARK: - RedactWrapper - -final class RedactWrapper: SentryRedactOptions { - var maskAllText: Bool { - defaultOptions.maskAllText - } - - var maskAllImages: Bool { - defaultOptions.maskAllImages - } - - var maskedViewClasses: [AnyClass] { - defaultOptions.maskedViewClasses - } - - var unmaskedViewClasses: [AnyClass] { - defaultOptions.unmaskedViewClasses - } - - private let defaultOptions: SentryDefaultRedactOptions - init(_ defaultOptions: SentryDefaultRedactOptions) { - self.defaultOptions = defaultOptions - } -} - // MARK: - Extensions extension SentryFileManager: SentryFileManagerProtocol { } @@ -206,21 +181,21 @@ extension SentryFileManager: SentryFileManagerProtocol { } @objc public lazy var screenshotSource: SentryScreenshotSource? = getOptionalLazyVar(\._screenshotSource) { // The options could be null here, but this is a general issue in the dependency // container and will be fixed in a future refactoring. - guard let options = SentrySDKInternal.options else { + guard let options = SentrySDKInternal.optionsInternal?.toOptions() else { return nil } let viewRenderer: SentryViewRenderer - if SentryDependencyContainerSwiftHelper.viewRendererV2Enabled(options) { - viewRenderer = SentryViewRendererV2(enableFastViewRendering: SentryDependencyContainerSwiftHelper.fastViewRenderingEnabled(options)) + if options.screenshot.enableViewRendererV2 { + viewRenderer = SentryViewRendererV2(enableFastViewRendering: options.screenshot.enableFastViewRendering) } else { viewRenderer = SentryDefaultViewRenderer() } let photographer = SentryViewPhotographer( renderer: viewRenderer, - redactOptions: RedactWrapper(SentryDependencyContainerSwiftHelper.redactOptions(options)), - enableMaskRendererV2: SentryDependencyContainerSwiftHelper.viewRendererV2Enabled(options)) + redactOptions: options.screenshot, + enableMaskRendererV2: options.screenshot.enableViewRendererV2) return SentryScreenshotSource(photographer: photographer) } #endif @@ -228,7 +203,7 @@ extension SentryFileManager: SentryFileManagerProtocol { } private var _fileManager: SentryFileManager? @objc public lazy var fileManager: SentryFileManager? = getOptionalLazyVar(\._fileManager) { do { - return try SentryFileManager(options: SentrySDKInternal.options?.toOptions(), dateProvider: Dependencies.dateProvider, dispatchQueueWrapper: Dependencies.dispatchQueueWrapper) + return try SentryFileManager(options: SentrySDKInternal.optionsInternal?.toOptions(), dateProvider: Dependencies.dateProvider, dispatchQueueWrapper: Dependencies.dispatchQueueWrapper) } catch { SentrySDKLog.debug("Could not create file manager - \(error)") return nil @@ -245,7 +220,7 @@ extension SentryFileManager: SentryFileManagerProtocol { } private var _appStateManager: SentryAppStateManager? @objc public lazy var appStateManager = getLazyVar(\._appStateManager) { SentryAppStateManager( - options: SentrySDKInternal.options, + options: SentrySDKInternal.optionsInternal?.toOptions(), crashWrapper: crashWrapper, fileManager: fileManager, sysctlWrapper: sysctlWrapper) diff --git a/Tests/SentryTests/Integrations/SentryCrash/SentryTestIntegration.h b/Tests/SentryTests/Integrations/SentryCrash/SentryTestIntegration.h index 7a4fb4c870e..ad6e84f95db 100644 --- a/Tests/SentryTests/Integrations/SentryCrash/SentryTestIntegration.h +++ b/Tests/SentryTests/Integrations/SentryCrash/SentryTestIntegration.h @@ -1,13 +1,13 @@ #import "Sentry/SentryIntegrationProtocol.h" #import -@class SentryOptionsInternal; +@class SentryOptions; NS_ASSUME_NONNULL_BEGIN @interface SentryTestIntegration : NSObject -@property (nonatomic, strong) SentryOptionsInternal *options; +@property (nonatomic, strong) SentryOptions *options; @end diff --git a/Tests/SentryTests/Integrations/SentryCrash/SentryTestIntegration.m b/Tests/SentryTests/Integrations/SentryCrash/SentryTestIntegration.m index 2fc03dc3cc8..3e15ab822e4 100644 --- a/Tests/SentryTests/Integrations/SentryCrash/SentryTestIntegration.m +++ b/Tests/SentryTests/Integrations/SentryCrash/SentryTestIntegration.m @@ -4,7 +4,7 @@ @implementation SentryTestIntegration -- (BOOL)installWithOptions:(SentryOptionsInternal *)options +- (BOOL)installWithOptions:(SentryOptions *)options { self.options = options; return YES; From a5539d5b070295a956d13e194209ded11dafa88e Mon Sep 17 00:00:00 2001 From: Noah Martin Date: Wed, 5 Nov 2025 12:03:52 -0500 Subject: [PATCH 3/4] Improve defaults --- .../iOS-Swift/Tools/SentryExposure.h | 2 +- Sources/Sentry/SentryOptionsInternal.m | 131 ------------------ Sources/Sentry/SentrySampling.m | 5 +- .../Sentry/include/SentryInternalDefines.h | 3 - .../include/SentryOptionsInternal+Private.h | 7 - Sources/Swift/Options.swift | 112 +++++++++++++-- 6 files changed, 105 insertions(+), 155 deletions(-) diff --git a/Samples/iOS-Swift/iOS-Swift/Tools/SentryExposure.h b/Samples/iOS-Swift/iOS-Swift/Tools/SentryExposure.h index db1aa2ee139..2e753d7d163 100644 --- a/Samples/iOS-Swift/iOS-Swift/Tools/SentryExposure.h +++ b/Samples/iOS-Swift/iOS-Swift/Tools/SentryExposure.h @@ -15,7 +15,7 @@ NS_ASSUME_NONNULL_BEGIN @interface SentryClientInternal : NSObject -@property (nonatomic) SentryOptionsInternal *options; +@property (nonatomic) SentryOptions *options; @end diff --git a/Sources/Sentry/SentryOptionsInternal.m b/Sources/Sentry/SentryOptionsInternal.m index 7b07d7a7c55..340f045096d 100644 --- a/Sources/Sentry/SentryOptionsInternal.m +++ b/Sources/Sentry/SentryOptionsInternal.m @@ -70,7 +70,6 @@ - (instancetype)init { if (self = [super init]) { self.enabled = YES; - self.shutdownTimeInterval = 2.0; self.enableCrashHandler = YES; #if TARGET_OS_OSX self.enableUncaughtNSExceptionReporting = NO; @@ -81,16 +80,10 @@ - (instancetype)init self.diagnosticLevel = kSentryLevelDebug; self.debug = NO; self.maxBreadcrumbs = defaultMaxBreadcrumbs; - self.maxCacheItems = 30; - self.sampleRate = SENTRY_DEFAULT_SAMPLE_RATE; self.enableAutoSessionTracking = YES; self.enableGraphQLOperationTracking = NO; self.enableWatchdogTerminationTracking = YES; - self.sessionTrackingIntervalMillis = [@30000 unsignedIntValue]; self.attachStacktrace = YES; - // Maximum attachment size is 100 MiB, matches Relay's limit: - // https://develop.sentry.dev/sdk/data-model/envelopes/#size-limits - self.maxAttachmentSize = 100 * 1024 * 1024; self.sendDefaultPii = NO; self.enableAutoPerformanceTracing = YES; self.enablePersistingTracesWhenCrashing = NO; @@ -133,59 +126,6 @@ - (instancetype)init self.sendClientReports = YES; self.swiftAsyncStacktraces = NO; self.enableSpotlight = NO; - self.spotlightUrl = @"http://localhost:8969/stream"; - -#if TARGET_OS_OSX - NSString *dsn = [[[NSProcessInfo processInfo] environment] objectForKey:@"SENTRY_DSN"]; - if (dsn.length > 0) { - self.dsn = dsn; - } -#endif // TARGET_OS_OSX - - // Use the name of the bundle's executable file as inAppInclude, so SentryInAppLogic - // marks frames coming from there as inApp. With this approach, the SDK marks public - // frameworks such as UIKitCore, CoreFoundation, GraphicsServices, and so forth, as not - // inApp. For private frameworks, such as Sentry, dynamic and static frameworks differ. - // Suppose you use dynamic frameworks inside your app. In that case, the SDK marks these as - // not inApp as these frameworks are located in the application bundle, but their location - // is different from the main executable. In case you have a private framework that should - // be inApp you can add it to inAppInclude. When using static frameworks, the frameworks end - // up in the main executable. Therefore, the SDK currently can't detect if a frame of the - // main executable originates from the application or a private framework and marks all of - // them as inApp. To fix this, the user can use stack trace rules on Sentry. - NSDictionary *infoDict = [[NSBundle mainBundle] infoDictionary]; - NSString *bundleExecutable = infoDict[@"CFBundleExecutable"]; - if (bundleExecutable == nil) { - _inAppIncludes = [NSArray new]; - } else { - _inAppIncludes = @[ bundleExecutable ]; - } - - _inAppExcludes = [NSArray new]; - - // Set default release name - if (infoDict != nil) { - self.releaseName = - [NSString stringWithFormat:@"%@@%@+%@", infoDict[@"CFBundleIdentifier"], - infoDict[@"CFBundleShortVersionString"], infoDict[@"CFBundleVersion"]]; - } - - NSRegularExpression *everythingAllowedRegex = - [NSRegularExpression regularExpressionWithPattern:@".*" - options:NSRegularExpressionCaseInsensitive - error:NULL]; - self.tracePropagationTargets = @[ everythingAllowedRegex ]; - self.failedRequestTargets = @[ everythingAllowedRegex ]; - - // defaults to 500 to 599 - SentryHttpStatusCodeRange *defaultHttpStatusCodeRange = - [[SentryHttpStatusCodeRange alloc] initWithMin:500 max:599]; - self.failedRequestStatusCodes = @[ defaultHttpStatusCodeRange ]; - - self.cacheDirectoryPath - = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) - .firstObject - ?: @""; #if SENTRY_HAS_METRIC_KIT self.enableMetricKit = NO; @@ -195,77 +135,6 @@ - (instancetype)init return self; } -- (void)setTracePropagationTargets:(NSArray *)tracePropagationTargets -{ - for (id targetCheck in tracePropagationTargets) { - if (![targetCheck isKindOfClass:[NSRegularExpression class]] - && ![targetCheck isKindOfClass:[NSString class]]) { - SENTRY_LOG_WARN(@"Only instances of NSString and NSRegularExpression are supported " - @"inside tracePropagationTargets."); - } - } - - _tracePropagationTargets = tracePropagationTargets; -} - -- (void)setFailedRequestTargets:(NSArray *)failedRequestTargets -{ - for (id targetCheck in failedRequestTargets) { - if (![targetCheck isKindOfClass:[NSRegularExpression class]] - && ![targetCheck isKindOfClass:[NSString class]]) { - SENTRY_LOG_WARN(@"Only instances of NSString and NSRegularExpression are supported " - @"inside failedRequestTargets."); - } - } - - _failedRequestTargets = failedRequestTargets; -} - -- (void)setDsn:(NSString *)dsn -{ - NSError *error = nil; - self.parsedDsn = [[SentryDsn alloc] initWithString:dsn didFailWithError:&error]; - - if (error == nil) { - _dsn = dsn; - } else { - SENTRY_LOG_ERROR(@"Could not parse the DSN: %@.", error); - } -} - -- (void)setSampleRate:(NSNumber *)sampleRate -{ - if (sampleRate == nil) { - _sampleRate = nil; - } else if (sentry_isValidSampleRate(sampleRate)) { - _sampleRate = sampleRate; - } else { - _sampleRate = SENTRY_DEFAULT_SAMPLE_RATE; - } -} - -- (void)setTracesSampleRate:(NSNumber *)tracesSampleRate -{ - if (tracesSampleRate == nil) { - _tracesSampleRate = nil; - } else if (sentry_isValidSampleRate(tracesSampleRate)) { - _tracesSampleRate = tracesSampleRate; - } else { - _tracesSampleRate = SENTRY_DEFAULT_TRACES_SAMPLE_RATE; - } -} - -- (void)setEnableSpotlight:(BOOL)value -{ - _enableSpotlight = value; -#if defined(RELEASE) - if (value) { - SENTRY_LOG_WARN(@"Enabling Spotlight for a release build. We recommend running Spotlight " - @"only for local development."); - } -#endif // defined(RELEASE) -} - #if defined(DEBUG) || defined(SENTRY_TEST) || defined(SENTRY_TEST_CI) - (NSString *)debugDescription { diff --git a/Sources/Sentry/SentrySampling.m b/Sources/Sentry/SentrySampling.m index f4132ee993a..1eb11399f8e 100644 --- a/Sources/Sentry/SentrySampling.m +++ b/Sources/Sentry/SentrySampling.m @@ -24,7 +24,7 @@ } NSNumber *callbackRate = callback(context); - if (!sentry_isValidSampleRate(callbackRate)) { + if (![SentryOptions isValidSampleRate:callbackRate]) { return defaultSampleRate; } @@ -67,8 +67,7 @@ withSampleRand:context.transactionContext.sampleRand]; } - NSNumber *callbackRate = _sentry_samplerCallbackRate( - options.tracesSampler, context, SENTRY_DEFAULT_TRACES_SAMPLE_RATE); + NSNumber *callbackRate = _sentry_samplerCallbackRate(options.tracesSampler, context, 0); if (callbackRate != nil) { return _sentry_calcSample(callbackRate); } diff --git a/Sources/Sentry/include/SentryInternalDefines.h b/Sources/Sentry/include/SentryInternalDefines.h index 27f3e6f053c..25bed560626 100644 --- a/Sources/Sentry/include/SentryInternalDefines.h +++ b/Sources/Sentry/include/SentryInternalDefines.h @@ -4,9 +4,6 @@ static NSString *const SentryDebugImageType = @"macho"; static NSString *const SentryPlatformName = @"cocoa"; -#define SENTRY_DEFAULT_SAMPLE_RATE @1 -#define SENTRY_DEFAULT_TRACES_SAMPLE_RATE @0 - /** * The value we give when initializing the options object, and what it will be if a consumer never * modifies it in their SDK config. diff --git a/Sources/Sentry/include/SentryOptionsInternal+Private.h b/Sources/Sentry/include/SentryOptionsInternal+Private.h index a0431997cfe..448fefd4e2a 100644 --- a/Sources/Sentry/include/SentryOptionsInternal+Private.h +++ b/Sources/Sentry/include/SentryOptionsInternal+Private.h @@ -12,15 +12,8 @@ FOUNDATION_EXPORT NSString *const kSentryDefaultEnvironment; #if SENTRY_TARGET_PROFILING_SUPPORTED @property (nonatomic, assign) BOOL enableProfiling_DEPRECATED_TEST_ONLY; -/** - * UI Profiling options set on SDK start. - * @note Not for use with launch profiles. See functions in @c SentryLaunchProfiling . - */ -@property (nonatomic, nullable, strong) SentryProfileOptions *profiling; #endif // SENTRY_TARGET_PROFILING_SUPPORTED -SENTRY_EXTERN BOOL sentry_isValidSampleRate(NSNumber *sampleRate); - @end NS_ASSUME_NONNULL_END diff --git a/Sources/Swift/Options.swift b/Sources/Swift/Options.swift index c47db717b80..727d11f93f5 100644 --- a/Sources/Swift/Options.swift +++ b/Sources/Swift/Options.swift @@ -2,7 +2,25 @@ @objc(SentryOptions) public final class Options: NSObject { /// The DSN tells the SDK where to send the events to. If this value is not provided, the SDK will /// not send any events. - @objc public var dsn: String? + @objc public var dsn: String? = { + #if os(macOS) + if let dsn = ProcessInfo.processInfo.environment["SENTRY_DSN"] as? String, dsn.count > 0 { + return dsn + } + #else + return nil + #endif + }() { + didSet { + guard let dsn else { return } + + do { + self.parsedDsn = try SentryDsn(string: dsn) + } catch { + SentrySDKLog.error("Could not parse the DSN: \(error)") + } + } + } /// The parsed internal DSN. @objc public var parsedDsn: SentryDsn? @@ -17,7 +35,11 @@ @objc public var diagnosticLevel: SentryLevel = .debug /// This property will be filled before the event is sent. - @objc public var releaseName: String? + @objc public var releaseName: String? = { + guard let infoDict = Bundle.main.infoDictionary else { return nil } + + return "\(infoDict["CFBundleIdentifier"] ?? "")@\(infoDict["CFBundleShortVersionString"] ?? "")+\(infoDict["CFBundleVersion"] ?? "")" + }() /// The distribution of the application. /// @discussion Distributions are used to disambiguate build or deployment variants of the same @@ -33,7 +55,7 @@ @objc public var enabled: Bool = true /// Controls the flush duration when calling SentrySDK/close. - @objc public var shutdownTimeInterval: TimeInterval = 0 + @objc public var shutdownTimeInterval: TimeInterval = 2.0 /// When enabled, the SDK sends crashes to Sentry. /// @note Disabling this feature disables the SentryWatchdogTerminationTrackingIntegration, @@ -133,7 +155,23 @@ /// @note The value needs to be >= 0.0 and <= 1.0. When setting a value out of range the SDK sets /// it to the default of 1.0. /// @note The default is 1. - @objc public var sampleRate: NSNumber? + @objc public var sampleRate: NSNumber? { + set { + guard let newValue else { + _sampleRate = nil + return + } + if newValue.isValidSampleRate() { + _sampleRate = newValue + } else { + _sampleRate = 1 + } + } + get { + _tracesSampleRate + } + } + var _sampleRate: NSNumber? = 1 /// Whether to enable automatic session tracking or not. /// @note Default is YES. @@ -303,7 +341,23 @@ /// @note The value needs to be >= 0.0 and \<= 1.0. When setting a value out of range the SDK sets it /// to the default. /// @note The default is @c 0 . - @objc public var tracesSampleRate: NSNumber? + @objc public var tracesSampleRate: NSNumber? { + set { + guard let newValue else { + _tracesSampleRate = nil + return + } + if newValue.isValidSampleRate() { + _tracesSampleRate = newValue + } else { + _tracesSampleRate = 0 + } + } + get { + _tracesSampleRate + } + } + var _tracesSampleRate: NSNumber? = 0 /// A callback to a user defined traces sampler function. /// @discussion Specifying @c 0 or @c nil discards all trace data, @c 1.0 collects all trace data, @@ -323,7 +377,7 @@ /// @note This option takes precedence over @c inAppExcludes. /// @note By default, this contains @c CFBundleExecutable to mark it as "in-app". @objc public internal(set) var inAppIncludes: [String] = { - if let executable = Bundle.main.object(forInfoDictionaryKey: "CFBundleExecutable") as? String { + if let executable = Bundle.main.infoDictionary?["CFBundleExecutable"] as? String { return [executable] } return [] @@ -443,6 +497,8 @@ /// /// @note Default value is @c NO. @objc public var enablePropagateTraceparent: Bool = false + + static let everythingAllowedRegex = try? NSRegularExpression(pattern: ".*", options: .caseInsensitive) /// An array of hosts or regexes that determines if outgoing HTTP requests will get /// extra @c trace_id and @c baggage headers added. @@ -451,7 +507,15 @@ /// URL. /// @note The default value adds the header to all outgoing requests. /// @see https://docs.sentry.io/platforms/apple/configuration/options/#trace-propagation-targets - @objc public var tracePropagationTargets: [Any] = [] + @objc public var tracePropagationTargets: [Any] = [everythingAllowedRegex as Any] { + didSet { + for value in tracePropagationTargets { + if !(value is NSRegularExpression || value is String) { + SentrySDKLog.warning("Only instances of NSString and NSRegularExpression are supported inside tracePropagationTargets.") + } + } + } + } /// When enabled, the SDK captures HTTP Client errors. /// @note This feature requires @c enableSwizzling enabled as well. @@ -461,7 +525,8 @@ /// The SDK will only capture HTTP Client errors if the HTTP Response status code is within the /// defined range. /// @note Defaults to 500 - 599. - @objc public var failedRequestStatusCodes: [HttpStatusCodeRange] = [] + /// SentryHttpStatusCodeRange *defaultHttpStatusCodeRange = + @objc public var failedRequestStatusCodes: [HttpStatusCodeRange] = [HttpStatusCodeRange(min: 500, max: 599)] /// An array of hosts or regexes that determines if HTTP Client errors will be automatically /// captured. @@ -469,7 +534,15 @@ /// @c contains ), and instances of @c NSRegularExpression, which will be used to check the whole /// URL. /// @note The default value automatically captures HTTP Client errors of all outgoing requests. - @objc public var failedRequestTargets: [Any] = [] + @objc public var failedRequestTargets: [Any] = [everythingAllowedRegex as Any] { + didSet { + for value in failedRequestTargets { + if !(value is NSRegularExpression || value is String) { + SentrySDKLog.warning("Only instances of NSString and NSRegularExpression are supported inside failedRequestTargets.") + } + } + } + } #if canImport(MetricKit) && !os(tvOS) && !os(visionOS) @@ -520,7 +593,15 @@ /// https://spotlightjs.com/. /// /// @note Only set this option to @c YES while developing, not in production! - @objc public var enableSpotlight: Bool = false + @objc public var enableSpotlight: Bool = false { + didSet { + #if !DEBUG + if enableSpotlight { + SentrySDKLog.warning("Enabling Spotlight for a release build. We recommend running Spotlight only for local development.") + } + #endif + } + } /// The Spotlight URL. Defaults to http://localhost:8969/stream. For more information see /// https://spotlightjs.com/ @@ -540,5 +621,16 @@ } } #endif + + @_spi(Private) @objc public static func isValidSampleRate(_ rate: NSNumber) -> Bool { + rate.isValidSampleRate() + } } + +extension NSNumber { + func isValidSampleRate() -> Bool { + doubleValue >= 0 && doubleValue <= 1.0 + } +} + // swiftlint:enable file_length From 2a4de7b17dbd3c65a28f494626185c8c366e695a Mon Sep 17 00:00:00 2001 From: Noah Martin Date: Wed, 5 Nov 2025 12:59:28 -0500 Subject: [PATCH 4/4] Fix --- .../Profiling/ProfilingViewController.swift | 2 +- .../iOS-Swift/Tools/SentryExposure.h | 2 +- .../Tools/iOS-Swift-Bridging-Header.h | 1 - Sentry.xcodeproj/project.pbxproj | 51 +- .../Headers/SentryLaunchProfiling+Tests.h | 4 +- SentryTestUtils/Sources/TestClient.swift | 8 +- Sources/Resources/Sentry.modulemap | 1 + .../Profiling/SentryProfilingSwiftHelpers.m | 105 +++ Sources/Sentry/Public/SentryDefines.h | 6 - Sources/Sentry/Public/SentryDsn.h | 2 +- Sources/Sentry/Public/SentryTraceContext.h | 1 + .../SentryAutoSessionTrackingIntegration.m | 1 - Sources/Sentry/SentryBaseIntegration.m | 5 +- Sources/Sentry/SentryClient.m | 18 +- .../SentryCoreDataTrackingIntegration.m | 3 +- Sources/Sentry/SentryCrashIntegration.m | 1 - Sources/Sentry/SentryDefaultThreadInspector.m | 3 +- .../SentryDependencyContainerSwiftHelper.m | 1 - Sources/Sentry/SentryDsn.m | 4 +- Sources/Sentry/SentryFileManagerHelper.m | 6 +- Sources/Sentry/SentryHub.m | 1 - Sources/Sentry/SentryOptionsConverter.m | 21 - Sources/Sentry/SentryOptionsInternal.m | 433 +++++++---- Sources/Sentry/SentryProfiler.mm | 97 +-- Sources/Sentry/SentrySDKInternal.m | 14 +- Sources/Sentry/SentrySampling.m | 2 - Sources/Sentry/SentryScreenshotIntegration.m | 1 - .../Sentry/SentrySessionReplayIntegration.m | 45 +- Sources/Sentry/SentrySpan.m | 1 - Sources/Sentry/SentrySwiftAsyncIntegration.m | 4 +- Sources/Sentry/SentryTimeToDisplayTracker.m | 1 - Sources/Sentry/SentryTraceContext.m | 1 - Sources/Sentry/SentryTracer.m | 1 - Sources/Sentry/SentryTransportAdapter.m | 1 - .../Sentry/SentryUIEventTrackingIntegration.m | 2 - .../Sentry/SentryUIViewControllerSwizzling.m | 1 - .../SentryUseNSExceptionCallstackWrapper.m | 3 +- .../Sentry/SentryUserFeedbackIntegration.m | 2 - .../Sentry/SentryViewHierarchyIntegration.m | 1 - .../Sentry/SentryWatchdogTerminationLogic.m | 1 - .../Sentry/SentryWatchdogTerminationTracker.m | 1 - ...ryWatchdogTerminationTrackingIntegration.m | 2 - .../HybridPublic/SentryOptionsInternal.h | 14 + Sources/Sentry/include/SentryANRTrackerV1.h | 1 + Sources/Sentry/include/SentryClient.h | 8 +- .../include/SentryDefaultAppStateManager.h | 1 + .../include/SentryDefaultThreadInspector.h | 4 +- .../Sentry/include/SentryFileManagerHelper.h | 4 +- .../Sentry/include/SentryOptionsConverter.h | 16 - .../include/SentryOptionsInternal+Private.h | 19 - .../Sentry/include/SentryOptionsInternal.h | 675 ------------------ Sources/Sentry/include/SentryOptionsObjC.h | 1 + Sources/Sentry/include/SentryPrivate.h | 2 - .../include/SentryProfilingSwiftHelpers.h | 2 + Sources/Sentry/include/SentrySDK+Private.h | 5 +- Sources/Sentry/include/SentrySDKInternal.h | 4 +- .../SentryInternal/SentryInternal.h | 13 +- Sources/Swift/Helper/SentryLog+SPM.swift | 31 - ...ryUIViewControllerPerformanceTracker.swift | 2 +- .../SessionReplay/SentryReplayOptions.swift | 18 - .../SentryUserFeedbackConfiguration.swift | 12 - Sources/Swift/Options+Internal.swift | 153 ---- Sources/Swift/Options.swift | 79 +- .../SentryCrash/SentryThreadInspector.swift | 2 +- Sources/Swift/SentryDependencyContainer.swift | 2 +- Sources/Swift/SentryExperimentalOptions.swift | 21 - Sources/Swift/Tools/SentryLogBatcher.swift | 1 - .../SentryAppLaunchProfilingTests.swift | 21 +- ...artProfilingConfigurationChangeTests.swift | 16 +- ...yAppStartProfilingConfigurationTests.swift | 6 +- .../SentryContinuousProfilerTests.swift | 2 +- .../SentryProfilingPublicAPITests.swift | 38 +- .../SentryProfilingSwiftHelpersTests.m | 9 +- .../Helper/SentryAppStateManagerTests.swift | 2 +- .../SentryDependencyContainerTests.swift | 14 +- .../Helper/SentryLogSPMTests.swift | 155 ---- .../SentryANRTrackingIntegrationTests.swift | 10 +- ...ryAutoBreadcrumbTrackingIntegration+Test.h | 4 +- ...toBreadcrumbTrackingIntegrationTests.swift | 8 +- .../Feedback/SentryFeedbackTests.swift | 6 +- .../SentryMetricKitIntegrationTests.swift | 6 +- .../SentryAppStartTrackerTests.swift | 2 +- ...ntryAppStartTrackingIntegrationTests.swift | 14 +- ...entryCoreDataTrackingIntegrationTest.swift | 5 +- ...SentryFramesTrackingIntegrationTests.swift | 16 +- .../IO/FileIOTrackerTestHelpers.swift | 2 +- ...SentryFileIOTrackingIntegrationObjCTests.m | 1 - .../IO/SentryFileIoTrackingUnitTests.swift | 4 +- .../IO/SentryNSFileManagerSwizzlingTests.m | 4 +- ...SentryNetworkTrackerIntegrationTests.swift | 2 +- .../Network/SentryNetworkTrackerTests.swift | 6 +- ...yPerformanceTrackingIntegrationTests.swift | 14 +- ...SentryUIViewControllerSwizzlingTests.swift | 6 +- .../SentryScreenshotIntegrationTests.swift | 2 +- .../SentryBaseIntegrationTests.swift | 2 +- .../SentryCrashIntegrationTests.swift | 66 +- ...yAutoSessionTrackingIntegrationTests.swift | 5 +- .../Session/SentrySessionGeneratorTests.swift | 14 +- .../SentryReplayOptionsObjcTests.m | 1 - .../SentrySessionReplayIntegrationTests.swift | 10 +- ...entryUIEventTrackingIntegrationTests.swift | 4 +- .../SentryViewHierarchyIntegrationTests.swift | 2 +- ...entryWatchdogTerminationTrackerTests.swift | 7 +- ...gTerminationTrackingIntegrationTests.swift | 20 +- .../SentrySpotlightTransportTests.swift | 2 +- .../SentryTransportAdapterTests.swift | 2 +- .../SentryTransportFactoryTests.swift | 10 +- .../SentryTransportInitializerTests.swift | 2 +- Tests/SentryTests/SentryClient+TestInit.h | 2 +- Tests/SentryTests/SentryClientTests.swift | 8 +- Tests/SentryTests/SentryOptionsTest.m | 131 ++-- .../SentrySDKIntegrationTestsBase.swift | 2 +- Tests/SentryTests/SentrySDKInternal+Tests.h | 2 +- .../SentryTests/SentrySDKInternalTests.swift | 14 +- Tests/SentryTests/SentrySDKTests.swift | 4 +- Tests/SentryTests/SentrySDKThreadTests.swift | 2 +- Tests/SentryTests/SentryScopeTests.m | 3 +- .../SentryTests/SentryTests-Bridging-Header.h | 2 +- Tests/SentryTests/SentryTests.m | 4 +- Tests/SentryTests/SwiftDescriptorTests.swift | 2 +- .../TestUtils/EmptyIntegration.swift | 2 +- .../SentryTests/TestUtils/OptionsUtils.swift | 8 - .../Transaction/SentrySpanTests.swift | 28 +- .../Transaction/SentryTraceContextTests.swift | 13 +- .../Transaction/SentryTransactionTests.swift | 6 +- sdk_api.json | 392 +++------- 126 files changed, 964 insertions(+), 2134 deletions(-) delete mode 100644 Sources/Sentry/SentryOptionsConverter.m create mode 100644 Sources/Sentry/include/HybridPublic/SentryOptionsInternal.h delete mode 100644 Sources/Sentry/include/SentryOptionsConverter.h delete mode 100644 Sources/Sentry/include/SentryOptionsInternal+Private.h delete mode 100644 Sources/Sentry/include/SentryOptionsInternal.h create mode 100644 Sources/Sentry/include/SentryOptionsObjC.h delete mode 100644 Sources/Swift/Helper/SentryLog+SPM.swift delete mode 100644 Sources/Swift/Options+Internal.swift delete mode 100644 Tests/SentryTests/Helper/SentryLogSPMTests.swift delete mode 100644 Tests/SentryTests/TestUtils/OptionsUtils.swift diff --git a/Samples/iOS-Swift/iOS-Swift/Profiling/ProfilingViewController.swift b/Samples/iOS-Swift/iOS-Swift/Profiling/ProfilingViewController.swift index aaa959eb40a..5bf95fb87d8 100644 --- a/Samples/iOS-Swift/iOS-Swift/Profiling/ProfilingViewController.swift +++ b/Samples/iOS-Swift/iOS-Swift/Profiling/ProfilingViewController.swift @@ -1,4 +1,4 @@ -import Sentry +@_spi(Private) import Sentry import SentrySampleShared import UIKit diff --git a/Samples/iOS-Swift/iOS-Swift/Tools/SentryExposure.h b/Samples/iOS-Swift/iOS-Swift/Tools/SentryExposure.h index 2e753d7d163..7712f4be68e 100644 --- a/Samples/iOS-Swift/iOS-Swift/Tools/SentryExposure.h +++ b/Samples/iOS-Swift/iOS-Swift/Tools/SentryExposure.h @@ -2,7 +2,7 @@ #import #import -@class SentryOptionsInternal; +@class SentryOptions; NS_ASSUME_NONNULL_BEGIN diff --git a/Samples/iOS-Swift/iOS-Swift/Tools/iOS-Swift-Bridging-Header.h b/Samples/iOS-Swift/iOS-Swift/Tools/iOS-Swift-Bridging-Header.h index 14c39b66e92..23bb4e828bc 100644 --- a/Samples/iOS-Swift/iOS-Swift/Tools/iOS-Swift-Bridging-Header.h +++ b/Samples/iOS-Swift/iOS-Swift/Tools/iOS-Swift-Bridging-Header.h @@ -3,4 +3,3 @@ #import "SentryExposure.h" #import #import -#import diff --git a/Sentry.xcodeproj/project.pbxproj b/Sentry.xcodeproj/project.pbxproj index 1474c1ad0ba..1312e0bca83 100644 --- a/Sentry.xcodeproj/project.pbxproj +++ b/Sentry.xcodeproj/project.pbxproj @@ -721,8 +721,6 @@ 9241AC442EBA39A500E611ED /* SentrySwiftLog.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9241AC132EBA38CB00E611ED /* SentrySwiftLog.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 9241AC4F2EBA3A0C00E611ED /* SentryLogHandlerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9241AC4D2EBA3A0C00E611ED /* SentryLogHandlerTests.swift */; }; 925824C22CB5897700C9B20B /* SentrySessionReplayIntegration-Hybrid.h in Headers */ = {isa = PBXBuildFile; fileRef = D80382BE2C09C6FD0090E048 /* SentrySessionReplayIntegration-Hybrid.h */; settings = {ATTRIBUTES = (Private, ); }; }; - 92622E092EABB71000ABE7FF /* SentryLogSPMTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 92622E082EABB71000ABE7FF /* SentryLogSPMTests.swift */; }; - 92622E142EABBDA900ABE7FF /* SentryLog+SPM.swift in Sources */ = {isa = PBXBuildFile; fileRef = 92622E132EABBDA900ABE7FF /* SentryLog+SPM.swift */; }; 9264E1EB2E2E385E00B077CF /* SentryLogMessage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9264E1EA2E2E385B00B077CF /* SentryLogMessage.swift */; }; 9264E1ED2E2E397C00B077CF /* SentryLogMessageTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9264E1EC2E2E397400B077CF /* SentryLogMessageTests.swift */; }; 92672BB629C9A2A9006B021C /* SentryBreadcrumb+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 92672BB529C9A2A9006B021C /* SentryBreadcrumb+Private.h */; settings = {ATTRIBUTES = (Private, ); }; }; @@ -1042,17 +1040,13 @@ FA1841832E4B457F005DEDC7 /* SentryApplication.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA18417D2E4B457B005DEDC7 /* SentryApplication.swift */; }; FA21A2EF2E60E9CB00E7EADB /* EnvelopeComparison.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA21A2E92E60E9C700E7EADB /* EnvelopeComparison.swift */; }; FA21F0B42E4A2A80008B4E5A /* SentryAppState.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA4C32972DF7513F001D7B01 /* SentryAppState.swift */; }; + FA24E02A2EBBF6F900EFD92E /* SentryOptionsObjC.h in Headers */ = {isa = PBXBuildFile; fileRef = FA24E0292EBBF6F500EFD92E /* SentryOptionsObjC.h */; }; FA27EBDC2EB639D400F2ECF7 /* SentryId.h in Headers */ = {isa = PBXBuildFile; fileRef = FA27EBDB2EB639D100F2ECF7 /* SentryId.h */; settings = {ATTRIBUTES = (Public, ); }; }; FA27EBDE2EB639D900F2ECF7 /* SentryId.m in Sources */ = {isa = PBXBuildFile; fileRef = FA27EBDD2EB639D700F2ECF7 /* SentryId.m */; }; FA27EBF52EB82FAD00F2ECF7 /* FileIOTrackerTestHelpers.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA27EBEF2EB82FA800F2ECF7 /* FileIOTrackerTestHelpers.swift */; }; - FA27ECA12EBA325A00F2ECF7 /* SentryTraceContext+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = FA27EC9B2EBA325400F2ECF7 /* SentryTraceContext+Private.h */; }; FA27EC0E2EB922F200F2ECF7 /* SentryOptionsInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = FA27EC0D2EB922F200F2ECF7 /* SentryOptionsInternal.h */; settings = {ATTRIBUTES = (Private, ); }; }; - FA27EC102EB922F900F2ECF7 /* SentryOptionsInternal+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = FA27EC0F2EB922F900F2ECF7 /* SentryOptionsInternal+Private.h */; settings = {ATTRIBUTES = (Private, ); }; }; - FA27EC122EB9231D00F2ECF7 /* SentryOptionsConverter.h in Headers */ = {isa = PBXBuildFile; fileRef = FA27EC112EB9231D00F2ECF7 /* SentryOptionsConverter.h */; }; - FA27EC142EB9232600F2ECF7 /* SentryOptionsConverter.m in Sources */ = {isa = PBXBuildFile; fileRef = FA27EC132EB9232600F2ECF7 /* SentryOptionsConverter.m */; }; FA27EC162EB9236000F2ECF7 /* Options.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA27EC152EB9236000F2ECF7 /* Options.swift */; }; - FA27EC182EB9236400F2ECF7 /* Options+Internal.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA27EC172EB9236400F2ECF7 /* Options+Internal.swift */; }; - FA27EC222EB9466D00F2ECF7 /* OptionsUtils.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA27EC1C2EB9466900F2ECF7 /* OptionsUtils.swift */; }; + FA27ECA12EBA325A00F2ECF7 /* SentryTraceContext+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = FA27EC9B2EBA325400F2ECF7 /* SentryTraceContext+Private.h */; }; FA34C1A32E692A5000BC52AA /* SentryEnvelopeItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA34C1A22E692A5000BC52AA /* SentryEnvelopeItem.swift */; }; FA3734842E0F086C0091EF24 /* SentryDependencyContainerSwiftHelper.h in Headers */ = {isa = PBXBuildFile; fileRef = FA3734832E0F07A20091EF24 /* SentryDependencyContainerSwiftHelper.h */; }; FA3734862E0F09320091EF24 /* SentryDependencyContainerSwiftHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = FA3734852E0F092F0091EF24 /* SentryDependencyContainerSwiftHelper.m */; }; @@ -2128,8 +2122,6 @@ 92235CAB2E15369900865983 /* SentryLogBatcher.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryLogBatcher.swift; sourceTree = ""; }; 92235CAD2E15549C00865983 /* SentryLogger.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryLogger.swift; sourceTree = ""; }; 92235CAF2E155B2600865983 /* SentryLoggerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryLoggerTests.swift; sourceTree = ""; }; - 92622E082EABB71000ABE7FF /* SentryLogSPMTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryLogSPMTests.swift; sourceTree = ""; }; - 92622E132EABBDA900ABE7FF /* SentryLog+SPM.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SentryLog+SPM.swift"; sourceTree = ""; }; 9241AC132EBA38CB00E611ED /* SentrySwiftLog.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SentrySwiftLog.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 9241AC1B2EBA38CC00E611ED /* SentrySwiftLogTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SentrySwiftLogTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 9241AC4A2EBA39EE00E611ED /* SentryLogHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryLogHandler.swift; sourceTree = ""; }; @@ -2473,17 +2465,13 @@ FA034AC72DD3DB4900FE3107 /* SentryIntegrationProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryIntegrationProtocol.h; path = include/HybridPublic/SentryIntegrationProtocol.h; sourceTree = ""; }; FA18417D2E4B457B005DEDC7 /* SentryApplication.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryApplication.swift; sourceTree = ""; }; FA21A2E92E60E9C700E7EADB /* EnvelopeComparison.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EnvelopeComparison.swift; sourceTree = ""; }; + FA24E0292EBBF6F500EFD92E /* SentryOptionsObjC.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryOptionsObjC.h; path = include/SentryOptionsObjC.h; sourceTree = ""; }; FA27EBDB2EB639D100F2ECF7 /* SentryId.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryId.h; path = Public/SentryId.h; sourceTree = ""; }; FA27EBDD2EB639D700F2ECF7 /* SentryId.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryId.m; sourceTree = ""; }; FA27EBEF2EB82FA800F2ECF7 /* FileIOTrackerTestHelpers.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FileIOTrackerTestHelpers.swift; sourceTree = ""; }; - FA27EC9B2EBA325400F2ECF7 /* SentryTraceContext+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SentryTraceContext+Private.h"; path = "include/SentryTraceContext+Private.h"; sourceTree = ""; }; - FA27EC0D2EB922F200F2ECF7 /* SentryOptionsInternal.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryOptionsInternal.h; path = include/SentryOptionsInternal.h; sourceTree = ""; }; - FA27EC0F2EB922F900F2ECF7 /* SentryOptionsInternal+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SentryOptionsInternal+Private.h"; path = "include/SentryOptionsInternal+Private.h"; sourceTree = ""; }; - FA27EC112EB9231D00F2ECF7 /* SentryOptionsConverter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryOptionsConverter.h; path = include/SentryOptionsConverter.h; sourceTree = ""; }; - FA27EC132EB9232600F2ECF7 /* SentryOptionsConverter.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryOptionsConverter.m; sourceTree = ""; }; + FA27EC0D2EB922F200F2ECF7 /* SentryOptionsInternal.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryOptionsInternal.h; path = include/HybridPublic/SentryOptionsInternal.h; sourceTree = ""; }; FA27EC152EB9236000F2ECF7 /* Options.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Options.swift; sourceTree = ""; }; - FA27EC172EB9236400F2ECF7 /* Options+Internal.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Options+Internal.swift"; sourceTree = ""; }; - FA27EC1C2EB9466900F2ECF7 /* OptionsUtils.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OptionsUtils.swift; sourceTree = ""; }; + FA27EC9B2EBA325400F2ECF7 /* SentryTraceContext+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SentryTraceContext+Private.h"; path = "include/SentryTraceContext+Private.h"; sourceTree = ""; }; FA34C1A22E692A5000BC52AA /* SentryEnvelopeItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryEnvelopeItem.swift; sourceTree = ""; }; FA3734832E0F07A20091EF24 /* SentryDependencyContainerSwiftHelper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryDependencyContainerSwiftHelper.h; path = include/SentryDependencyContainerSwiftHelper.h; sourceTree = ""; }; FA3734852E0F092F0091EF24 /* SentryDependencyContainerSwiftHelper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryDependencyContainerSwiftHelper.m; sourceTree = ""; }; @@ -2772,7 +2760,6 @@ 84B0E0062CD963F9007FB332 /* SentryIconography.swift */, 621F61F02BEA073A005E654F /* SentryEnabledFeaturesBuilder.swift */, F4FE9DFB2E622CD70014FED5 /* SentryDefaultObjCRuntimeWrapper.swift */, - 92622E132EABBDA900ABE7FF /* SentryLog+SPM.swift */, F4FE9DFC2E622CD70014FED5 /* SentryObjCRuntimeWrapper.swift */, ); path = Helper; @@ -3039,6 +3026,7 @@ 63AA769B1EB9C57A00D153DE /* SentryError.h */, 63AA769C1EB9C57A00D153DE /* SentryError.mm */, 636085111ED47BE600E8599E /* SentryFileManagerHelper.h */, + FA24E0292EBBF6F500EFD92E /* SentryOptionsObjC.h */, FA3734832E0F07A20091EF24 /* SentryDependencyContainerSwiftHelper.h */, FA3734852E0F092F0091EF24 /* SentryDependencyContainerSwiftHelper.m */, 636085121ED47BE600E8599E /* SentryFileManagerHelper.m */, @@ -3202,15 +3190,11 @@ 63AA76941EB9C1C200D153DE /* SentryClient.h */, 63AA75ED1EB8B3C400D153DE /* SentryClient.m */, 7B85DC1C24EFAFCD007D01D2 /* SentryClient+Private.h */, - 92EC54CD2E1EB54B00A10AC2 /* SentryClient+Logs.h */, D4237B3C2EB39D9700FE027C /* SentryDsn+Private.h */, 7B610D5E2512390E00B0B5D9 /* SentrySDK+Private.h */, FA6555132E30181B009917BC /* SentrySDKInternal.h */, FA6555152E30182B009917BC /* SentrySDKInternal.m */, - FA27EC132EB9232600F2ECF7 /* SentryOptionsConverter.m */, - FA27EC112EB9231D00F2ECF7 /* SentryOptionsConverter.h */, FA27EC0D2EB922F200F2ECF7 /* SentryOptionsInternal.h */, - FA27EC0F2EB922F900F2ECF7 /* SentryOptionsInternal+Private.h */, FACEED122E3179A10007B4AC /* SentryOptionsInternal.m */, 7D9B079F23D1E89800C5FC8E /* SentryMeta.h */, 7D082B8023C628780029866B /* SentryMeta.m */, @@ -3698,7 +3682,6 @@ F4A930242E661856006DA6EF /* SentryMobileProvisionParserTests.swift */, D4F7BD7C2E4373BB004A2D77 /* SentryLevelMapperTests.swift */, D8AE48BE2C578D540092A2A6 /* SentrySDKLog.swift */, - 92622E082EABB71000ABE7FF /* SentryLogSPMTests.swift */, 849AC3FF29E0C1FF00889C16 /* SentryFormatterTests.swift */, 7B88F30324BC8E6500ADF90A /* SentrySerializationTests.swift */, 62F4DDA02C04CB9700588890 /* SentryBaggageSerializationTests.swift */, @@ -3992,7 +3975,6 @@ 7BF536D224BEF240004FA6A2 /* TestUtils */ = { isa = PBXGroup; children = ( - FA27EC1C2EB9466900F2ECF7 /* OptionsUtils.swift */, 62885DA629E946B100554F38 /* TestConncurrentModifications.swift */, 7BF536D324BEF255004FA6A2 /* SentryAssertions.swift */, 7B6D98EC24C703F8005502FA /* Async.swift */, @@ -4591,7 +4573,6 @@ FA6251FE2EB52DD700BFC967 /* SentryHub.swift */, FA6252052EB5489B00BFC967 /* SentryClient.swift */, FA27EC152EB9236000F2ECF7 /* Options.swift */, - FA27EC172EB9236400F2ECF7 /* Options+Internal.swift */, ); path = Swift; sourceTree = ""; @@ -5237,7 +5218,6 @@ 0A2D8DA8289BC905008720F6 /* SentryViewHierarchyProviderHelper.h in Headers */, 8EAE980C261E9F530073B6B3 /* SentryDefaultUIViewControllerPerformanceTracker.h in Headers */, 63FE717D20DA4C1100CDBAE8 /* SentryCrashCachedData.h in Headers */, - FA27EC122EB9231D00F2ECF7 /* SentryOptionsConverter.h in Headers */, 03BCC38A27E1BF49003232C7 /* SentryTime.h in Headers */, 925824C22CB5897700C9B20B /* SentrySessionReplayIntegration-Hybrid.h in Headers */, 63FE70CD20DA4C1000CDBAE8 /* SentryCrashDoctor.h in Headers */, @@ -5404,7 +5384,6 @@ 6344DDB41EC309E000D9160D /* SentryCrashReportSink.h in Headers */, D8C66A362A77B1F70015696A /* SentryPropagationContext.h in Headers */, D867063F27C3BC2400048851 /* SentryCoreDataTracker.h in Headers */, - FA27EC102EB922F900F2ECF7 /* SentryOptionsInternal+Private.h in Headers */, 7B6C5EDA264E8D860010D138 /* SentryFramesTrackingIntegration.h in Headers */, 7B0DC72F288698F70039995F /* NSMutableDictionary+Sentry.h in Headers */, 63FE713920DA4C1100CDBAE8 /* SentryCrashMach.h in Headers */, @@ -5442,6 +5421,7 @@ 63FE715520DA4C1100CDBAE8 /* SentryCrashStackCursor_MachineContext.h in Headers */, 62E081A929ED4260000F69FC /* SentryBreadcrumbDelegate.h in Headers */, 15360CF02433A16D00112302 /* SentryInstallation.h in Headers */, + FA24E02A2EBBF6F900EFD92E /* SentryOptionsObjC.h in Headers */, 63FE714720DA4C1100CDBAE8 /* SentryCrashMachineContext.h in Headers */, 7BC63F0828081242009D9E37 /* SentrySwizzleWrapperHelper.h in Headers */, 638DC9A01EBC6B6400A66E41 /* SentryRequestOperation.h in Headers */, @@ -6138,7 +6118,6 @@ FA67DD012DDBD4EA00896B02 /* SentryMXCallStackTree.swift in Sources */, FAAB29F12E3D252300ACD577 /* SentrySession.swift in Sources */, FA6252042EB52DD900BFC967 /* SentryHub.swift in Sources */, - FA27EC142EB9232600F2ECF7 /* SentryOptionsConverter.m in Sources */, FA67DD022DDBD4EA00896B02 /* SentryViewScreenshotProvider.swift in Sources */, FA67DD032DDBD4EA00896B02 /* SentryTransactionNameSource.swift in Sources */, FA67DD042DDBD4EA00896B02 /* SwiftDescriptor.swift in Sources */, @@ -6281,9 +6260,7 @@ 63FE711B20DA4C1000CDBAE8 /* SentryCrashString.c in Sources */, 7B14089824878F950035403D /* SentryCrashStackEntryMapper.m in Sources */, D8BC28C82BFF5EBB0054DA4D /* SentryTouchTracker.swift in Sources */, - FA27EC182EB9236400F2ECF7 /* Options+Internal.swift in Sources */, 63FE711720DA4C1000CDBAE8 /* SentryCrashStackCursor_Backtrace.c in Sources */, - 92622E142EABBDA900ABE7FF /* SentryLog+SPM.swift in Sources */, FA3A42722E1C5F9B00A08C39 /* SentryNSNotificationCenterWrapper.swift in Sources */, 63FE70CB20DA4C1000CDBAE8 /* SentryCrashReportFixer.c in Sources */, F4A930232E65FDBF006DA6EF /* SentryMobileProvisionParser.swift in Sources */, @@ -6393,7 +6370,6 @@ 7BE3C78724472E9800A38442 /* TestRequestManager.swift in Sources */, 63FE722220DA66EC00CDBAE8 /* SentryCrashJSONCodec_Tests.m in Sources */, 7B0A5452252311CE00A71716 /* SentryBreadcrumbTests.swift in Sources */, - 92622E092EABB71000ABE7FF /* SentryLogSPMTests.swift in Sources */, 7BE3C7752445C82300A38442 /* SentryCurrentDateTests.swift in Sources */, 7B3398672459C4AE00BD9C96 /* SentryEnvelopeRateLimitTests.swift in Sources */, 8EA9AF492665AC48002771B4 /* SentryPerformanceTrackerTests.swift in Sources */, @@ -6638,7 +6614,6 @@ FA8AFCFA2E844AB6007A0E18 /* SentryThreadsafeApplicationTests.swift in Sources */, D884A20527C80F6300074664 /* SentryCoreDataTrackerTest.swift in Sources */, 8E70B10125CB8695002B3155 /* SentrySpanIdTests.swift in Sources */, - FA27EC222EB9466D00F2ECF7 /* OptionsUtils.swift in Sources */, 62E2119A2DAE99FC007D7262 /* SentryAsyncSafeLog.m in Sources */, F44D2B602E6B829F00FF31FA /* SentryScreenFramesTests.swift in Sources */, 84EB21962BF01CEA00EDDA28 /* SentryCrashInstallationTests.swift in Sources */, @@ -7827,6 +7802,7 @@ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; + OTHER_SWIFT_FLAGS = "-enable-experimental-feature AccessLevelOnImport"; PRODUCT_BUNDLE_IDENTIFIER = io.sentry.SentrySwiftLogTests; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -7835,7 +7811,6 @@ SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator xros xrsimulator"; SUPPORTS_MACCATALYST = YES; SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG SENTRY_TEST $(inherited)"; - OTHER_SWIFT_FLAGS = "-enable-experimental-feature AccessLevelOnImport"; SWIFT_APPROACHABLE_CONCURRENCY = YES; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -7913,6 +7888,7 @@ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; + OTHER_SWIFT_FLAGS = "-enable-experimental-feature AccessLevelOnImport"; PRODUCT_BUNDLE_IDENTIFIER = io.sentry.SentrySwiftLogTests; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -7921,7 +7897,6 @@ SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator xros xrsimulator"; SUPPORTS_MACCATALYST = YES; SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG SENTRY_TEST $(inherited)"; - OTHER_SWIFT_FLAGS = "-enable-experimental-feature AccessLevelOnImport"; SWIFT_APPROACHABLE_CONCURRENCY = YES; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -7992,6 +7967,7 @@ MARKETING_VERSION = 1.0; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; + OTHER_SWIFT_FLAGS = "-enable-experimental-feature AccessLevelOnImport"; PRODUCT_BUNDLE_IDENTIFIER = io.sentry.SentrySwiftLogTests; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -8000,7 +7976,6 @@ SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator xros xrsimulator"; SUPPORTS_MACCATALYST = YES; SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) SENTRY_TEST"; - OTHER_SWIFT_FLAGS = "-enable-experimental-feature AccessLevelOnImport"; SWIFT_APPROACHABLE_CONCURRENCY = YES; SWIFT_COMPILATION_MODE = wholemodule; SWIFT_EMIT_LOC_STRINGS = NO; @@ -8071,6 +8046,7 @@ MARKETING_VERSION = 1.0; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; + OTHER_SWIFT_FLAGS = "-enable-experimental-feature AccessLevelOnImport"; PRODUCT_BUNDLE_IDENTIFIER = io.sentry.SentrySwiftLogTests; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -8079,7 +8055,6 @@ SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator xros xrsimulator"; SUPPORTS_MACCATALYST = YES; SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) SENTRY_TEST_CI"; - OTHER_SWIFT_FLAGS = "-enable-experimental-feature AccessLevelOnImport"; SWIFT_APPROACHABLE_CONCURRENCY = YES; SWIFT_COMPILATION_MODE = wholemodule; SWIFT_EMIT_LOC_STRINGS = NO; @@ -8150,6 +8125,7 @@ MARKETING_VERSION = 1.0; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; + OTHER_SWIFT_FLAGS = "-enable-experimental-feature AccessLevelOnImport"; PRODUCT_BUNDLE_IDENTIFIER = io.sentry.SentrySwiftLogTests; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -8157,7 +8133,6 @@ STRING_CATALOG_GENERATE_SYMBOLS = NO; SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator xros xrsimulator"; SUPPORTS_MACCATALYST = YES; - OTHER_SWIFT_FLAGS = "-enable-experimental-feature AccessLevelOnImport"; SWIFT_APPROACHABLE_CONCURRENCY = YES; SWIFT_COMPILATION_MODE = wholemodule; SWIFT_EMIT_LOC_STRINGS = NO; @@ -8228,6 +8203,7 @@ MARKETING_VERSION = 1.0; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; + OTHER_SWIFT_FLAGS = "-enable-experimental-feature AccessLevelOnImport"; PRODUCT_BUNDLE_IDENTIFIER = io.sentry.SentrySwiftLogTests; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -8235,7 +8211,6 @@ STRING_CATALOG_GENERATE_SYMBOLS = NO; SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator xros xrsimulator"; SUPPORTS_MACCATALYST = YES; - OTHER_SWIFT_FLAGS = "-enable-experimental-feature AccessLevelOnImport"; SWIFT_APPROACHABLE_CONCURRENCY = YES; SWIFT_COMPILATION_MODE = wholemodule; SWIFT_EMIT_LOC_STRINGS = NO; diff --git a/SentryTestUtils/Headers/SentryLaunchProfiling+Tests.h b/SentryTestUtils/Headers/SentryLaunchProfiling+Tests.h index 22e57093b58..278aa22967b 100644 --- a/SentryTestUtils/Headers/SentryLaunchProfiling+Tests.h +++ b/SentryTestUtils/Headers/SentryLaunchProfiling+Tests.h @@ -5,7 +5,7 @@ # import "SentryDefines.h" # import "SentryProfiler+Private.h" -@class SentryOptionsInternal; +@class SentryOptions; @class SentrySamplerDecision; NS_ASSUME_NONNULL_BEGIN @@ -15,7 +15,7 @@ NS_ASSUME_NONNULL_BEGIN * expressible in Swift. This wraps it and only returns the `BOOL shouldProfile` value in the * struct. */ -BOOL sentry_willProfileNextLaunch(SentryOptionsInternal *options); +BOOL sentry_willProfileNextLaunch(SentryOptions *options); /** * Contains the logic to start a launch profile. Exposed separately from @c diff --git a/SentryTestUtils/Sources/TestClient.swift b/SentryTestUtils/Sources/TestClient.swift index 339545dec08..509f3e391aa 100644 --- a/SentryTestUtils/Sources/TestClient.swift +++ b/SentryTestUtils/Sources/TestClient.swift @@ -1,12 +1,12 @@ import _SentryPrivate import Foundation -@_spi(Private) @testable import Sentry +@_spi(Private) import Sentry public class TestClient: SentryClientInternal { - public override init?(options: SentryOptionsInternal) { + public override init?(options: NSObject) { super.init( options: options, - transportAdapter: TestTransportAdapter(transports: [TestTransport()], options: options), + transportAdapter: TestTransportAdapter(transports: [TestTransport()], options: options as! Options), fileManager: try! TestFileManager( options: options.toOptions(), dateProvider: TestCurrentDateProvider(), @@ -22,7 +22,7 @@ public class TestClient: SentryClientInternal { // Without this override we get a fatal error: use of unimplemented initializer // see https://stackoverflow.com/questions/28187261/ios-swift-fatal-error-use-of-unimplemented-initializer-init - @_spi(Private) public override init(options: SentryOptionsInternal, transportAdapter: SentryTransportAdapter, fileManager: SentryFileManager, threadInspector: SentryDefaultThreadInspector, debugImageProvider: SentryDebugImageProvider, random: SentryRandomProtocol, locale: Locale, timezone: TimeZone) { + @_spi(Private) public override init(options: NSObject, transportAdapter: SentryTransportAdapter, fileManager: SentryFileManager, threadInspector: SentryDefaultThreadInspector, debugImageProvider: SentryDebugImageProvider, random: SentryRandomProtocol, locale: Locale, timezone: TimeZone) { super.init( options: options, transportAdapter: transportAdapter, diff --git a/Sources/Resources/Sentry.modulemap b/Sources/Resources/Sentry.modulemap index 4e5fbaff750..efa5571df5b 100644 --- a/Sources/Resources/Sentry.modulemap +++ b/Sources/Resources/Sentry.modulemap @@ -11,6 +11,7 @@ framework module Sentry { header "SentryAppStartMeasurement.h" header "SentryBreadcrumb+Private.h" header "SentryFormatter.h" + header "SentryOptionsInternal.h" header "SentrySwizzle.h" header "SentryUser+Private.h" diff --git a/Sources/Sentry/Profiling/SentryProfilingSwiftHelpers.m b/Sources/Sentry/Profiling/SentryProfilingSwiftHelpers.m index 8274d3c9d24..41ba6090318 100644 --- a/Sources/Sentry/Profiling/SentryProfilingSwiftHelpers.m +++ b/Sources/Sentry/Profiling/SentryProfilingSwiftHelpers.m @@ -2,8 +2,14 @@ #if SENTRY_TARGET_PROFILING_SUPPORTED # import "SentryClient.h" +# import "SentryDependencyContainerSwiftHelper.h" +# import "SentryHub.h" +# import "SentryInternalDefines.h" +# import "SentryLaunchProfiling.h" # import "SentryLogC.h" +# import "SentryProfileConfiguration.h" # import "SentryProfiler+Private.h" +# import "SentrySDK+Private.h" # import "SentrySamplerDecision.h" # import "SentrySwift.h" @@ -158,6 +164,16 @@ } # if SENTRY_HAS_UIKIT +BOOL +sentry_appHangsDisabled(void) +{ + return [[[[SentrySDKInternal currentHub] getClient] options] isAppHangTrackingDisabled]; +} +BOOL +sentry_autoPerformanceTracingDisabled(void) +{ + return ![[[[SentrySDKInternal currentHub] getClient] options] enableAutoPerformanceTracing]; +} void sentry_startFramesTracker(void) { @@ -182,4 +198,93 @@ return [SentryDependencyContainer.sharedInstance.framesTracker currentFrames]; } # endif // SENTRY_HAS_UIKIT + +void +sentry_configureContinuousProfiling(SentryOptions *options) +{ + if (options.configureProfiling == nil) { + SENTRY_LOG_DEBUG(@"Continuous profiling V2 configuration not set by SDK consumer, nothing " + @"to do here."); + return; + } + + SentryProfileOptions *_Nonnull profilingOptions = sentry_getSentryProfileOptions(); + options.profiling = profilingOptions; + options.configureProfiling(profilingOptions); + + if (sentry_isTraceLifecycle(profilingOptions) && !options.isTracingEnabled) { + SENTRY_LOG_WARN( + @"Tracing must be enabled in order to configure profiling with trace lifecycle."); + return; + } + + // if a launch profiler was started, sentry_profileConfiguration will have been set at that time + // with the hydrated options that were persisted from the previous SDK start, which are used to + // help determine when/how to stop the launch profile. otherwise, there won't yet be a + // SentryProfileConfiguration instance, so we'll instantiate one which will be used to access + // the profile session sample rate henceforth + if (sentry_profileConfiguration == nil) { + sentry_profileConfiguration = + [[SentryProfileConfiguration alloc] initWithProfileOptions:profilingOptions]; + } + + sentry_reevaluateSessionSampleRate(); + + SENTRY_LOG_DEBUG(@"Configured profiling options: <%@: {\n lifecycle: %@\n sessionSampleRate: " + @"%.2f\n profileAppStarts: %@\n}", + options.profiling, sentry_isTraceLifecycle(profilingOptions) ? @"trace" : @"manual", + sentry_sessionSampleRate(profilingOptions), + sentry_profileAppStarts(profilingOptions) ? @"YES" : @"NO"); +} + +void +sentry_sdkInitProfilerTasks(SentryOptions *options, SentryHubInternal *hub) +{ + // get the configuration options from the last time the launch config was written; it may be + // different than the new options the SDK was just started with + SentryProfileConfiguration *configurationFromLaunch = sentry_profileConfiguration; + + sentry_configureContinuousProfiling(options); + + sentry_dispatchAsync(SentryDependencyContainerSwiftHelper.dispatchQueueWrapper, ^{ + if (configurationFromLaunch.isProfilingThisLaunch) { + BOOL shouldStopAndTransmitLaunchProfile = YES; + + BOOL profileIsContinuousV2 = configurationFromLaunch.profileOptions != nil; + BOOL v2LifecycleIsManual = profileIsContinuousV2 + && !sentry_isTraceLifecycle(SENTRY_UNWRAP_NULLABLE( + SentryProfileOptions, configurationFromLaunch.profileOptions)); + +# if SENTRY_HAS_UIKIT + BOOL v2LifecycleIsTrace = profileIsContinuousV2 + && sentry_isTraceLifecycle(SENTRY_UNWRAP_NULLABLE( + SentryProfileOptions, configurationFromLaunch.profileOptions)); + BOOL profileIsCorrelatedToTrace = !profileIsContinuousV2 || v2LifecycleIsTrace; + if (profileIsCorrelatedToTrace && configurationFromLaunch.waitForFullDisplay) { + SENTRY_LOG_DEBUG( + @"Will wait to stop launch profile correlated to a trace until full " + @"display reported."); + shouldStopAndTransmitLaunchProfile = NO; + } +# endif // SENTRY_HAS_UIKIT + + if (v2LifecycleIsManual) { + SENTRY_LOG_DEBUG(@"Continuous manual launch profiles aren't stopped on calls to " + @"SentrySDK.start, " + @"not stopping profile."); + shouldStopAndTransmitLaunchProfile = NO; + } + + if (shouldStopAndTransmitLaunchProfile) { + SENTRY_LOG_DEBUG( + @"Stopping launch profile in SentrySDK.start because there is no time " + @"to display tracker to stop it."); + sentry_stopAndDiscardLaunchProfileTracer(hub); + } + } + + sentry_configureLaunchProfilingForNextLaunch(options); + }); +} + #endif // SENTRY_TARGET_PROFILING_SUPPORTED diff --git a/Sources/Sentry/Public/SentryDefines.h b/Sources/Sentry/Public/SentryDefines.h index 23c21469824..70b8ce76b81 100644 --- a/Sources/Sentry/Public/SentryDefines.h +++ b/Sources/Sentry/Public/SentryDefines.h @@ -102,12 +102,6 @@ typedef SentryEvent *_Nullable (^SentryBeforeSendEventCallback)(SentryEvent *_No */ typedef id _Nullable (^SentryBeforeSendSpanCallback)(id _Nonnull span); -/** - * Use this block to drop or modify a log before the SDK sends it to Sentry. Return @c nil to drop - * the log. - */ -typedef SentryLog *_Nullable (^SentryBeforeSendLogCallback)(SentryLog *_Nonnull log); - /** * Block can be used to decide if the SDK should capture a screenshot or not. Return @c true if the * SDK should capture a screenshot, return @c false if not. This callback doesn't work for crashes. diff --git a/Sources/Sentry/Public/SentryDsn.h b/Sources/Sentry/Public/SentryDsn.h index acb73a06da6..758dd269b52 100644 --- a/Sources/Sentry/Public/SentryDsn.h +++ b/Sources/Sentry/Public/SentryDsn.h @@ -6,7 +6,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, strong, readonly) NSURL *url; -- (_Nullable instancetype)initWithString:(NSString *)dsnString +- (_Nullable instancetype)initWithString:(NSString *_Nullable)dsnString didFailWithError:(NSError *_Nullable *_Nullable)error; - (NSURL *)getEnvelopeEndpoint; diff --git a/Sources/Sentry/Public/SentryTraceContext.h b/Sources/Sentry/Public/SentryTraceContext.h index fe1eff150ab..3a04e3d0190 100644 --- a/Sources/Sentry/Public/SentryTraceContext.h +++ b/Sources/Sentry/Public/SentryTraceContext.h @@ -11,6 +11,7 @@ NS_ASSUME_NONNULL_BEGIN @class SentryBaggage; @class SentryId; +@class SentryOptions; @class SentryScope; @class SentryTracer; @class SentryUser; diff --git a/Sources/Sentry/SentryAutoSessionTrackingIntegration.m b/Sources/Sentry/SentryAutoSessionTrackingIntegration.m index 59c7f282d34..33d71c21a78 100644 --- a/Sources/Sentry/SentryAutoSessionTrackingIntegration.m +++ b/Sources/Sentry/SentryAutoSessionTrackingIntegration.m @@ -1,6 +1,5 @@ #import "SentryAutoSessionTrackingIntegration.h" #import "SentryLogC.h" -#import "SentryOptionsConverter.h" #import "SentrySDKInternal.h" #import "SentrySwift.h" diff --git a/Sources/Sentry/SentryBaseIntegration.m b/Sources/Sentry/SentryBaseIntegration.m index c40208f7058..1f79d446aa5 100644 --- a/Sources/Sentry/SentryBaseIntegration.m +++ b/Sources/Sentry/SentryBaseIntegration.m @@ -1,6 +1,5 @@ #import "SentryBaseIntegration.h" #import "SentryLogC.h" -#import "SentryOptionsConverter.h" #import "SentrySwift.h" NS_ASSUME_NONNULL_BEGIN @@ -148,8 +147,8 @@ - (BOOL)shouldBeEnabledWithOptions:(SentryOptions *)options #endif #if SENTRY_TARGET_REPLAY_SUPPORTED if (integrationOptions & kIntegrationOptionEnableReplay) { - SentryReplayOptions *replayOptions = options.sessionReplay; - if (replayOptions.onErrorSampleRate == 0 && replayOptions.sessionSampleRate == 0) { + if (options.sessionReplay.onErrorSampleRate == 0 + && options.sessionReplay.sessionSampleRate == 0) { [self logWithOptionName:@"sessionReplaySettings"]; return NO; } diff --git a/Sources/Sentry/SentryClient.m b/Sources/Sentry/SentryClient.m index 7cc87462060..1485be1b485 100644 --- a/Sources/Sentry/SentryClient.m +++ b/Sources/Sentry/SentryClient.m @@ -20,8 +20,6 @@ #import "SentryMsgPackSerializer.h" #import "SentryNSDictionarySanitize.h" #import "SentryNSError.h" -#import "SentryOptionsConverter.h" -#import "SentryOptionsInternal+Private.h" #import "SentryPropagationContext.h" #import "SentrySDK+Private.h" #import "SentryScope+Private.h" @@ -61,9 +59,9 @@ @interface SentryClientInternal () @implementation SentryClientInternal -- (_Nullable instancetype)initWithOptions:(SentryOptionsInternal *)internalOptions +- (_Nullable instancetype)initWithOptions:(SentryOptionsObjC *)internalOptions { - SentryOptions *options = [SentryOptionsConverter fromInternal:internalOptions]; + SentryOptions *options = [internalOptions toOptions]; NSError *error; SentryFileManager *fileManager = [[SentryFileManager alloc] initWithOptions:options @@ -97,7 +95,7 @@ - (_Nullable instancetype)initWithOptions:(SentryOptionsInternal *)internalOptio timezone:[NSCalendar autoupdatingCurrentCalendar].timeZone]; } -- (instancetype)initWithOptions:(SentryOptionsInternal *)options +- (instancetype)initWithOptions:(SentryOptionsObjC *)options transportAdapter:(SentryTransportAdapter *)transportAdapter fileManager:(SentryFileManager *)fileManager threadInspector:(SentryDefaultThreadInspector *)threadInspector @@ -118,13 +116,14 @@ - (instancetype)initWithOptions:(SentryOptionsInternal *)options self.timezone = timezone; self.attachmentProcessors = [[NSMutableArray alloc] init]; self.logBatcher = [[SentryLogBatcher alloc] - initWithOptions:options + initWithOptions:[options toOptions] dispatchQueue:SentryDependencyContainer.sharedInstance.dispatchQueueWrapper delegate:self]; // The SDK stores the installationID in a file. The first call requires file IO. To avoid // executing this on the main thread, we cache the installationID async here. - [SentryInstallation cacheIDAsyncWithCacheDirectoryPath:options.cacheDirectoryPath]; + [SentryInstallation + cacheIDAsyncWithCacheDirectoryPath:[options toOptions].cacheDirectoryPath]; [fileManager deleteOldEnvelopeItems]; } @@ -133,10 +132,7 @@ - (instancetype)initWithOptions:(SentryOptionsInternal *)options - (SentryOptions *)options { - if (self.optionsInternal) { - return [SentryOptionsConverter fromInternal:self.optionsInternal]; - } - return NULL; + return [self.optionsInternal toOptions]; } - (SentryId *)captureMessage:(NSString *)message diff --git a/Sources/Sentry/SentryCoreDataTrackingIntegration.m b/Sources/Sentry/SentryCoreDataTrackingIntegration.m index 41c906c3250..2c7f6bab650 100644 --- a/Sources/Sentry/SentryCoreDataTrackingIntegration.m +++ b/Sources/Sentry/SentryCoreDataTrackingIntegration.m @@ -4,7 +4,6 @@ #import "SentryDefaultThreadInspector.h" #import "SentryLogC.h" #import "SentryNSDataSwizzling.h" -#import "SentryOptionsConverter.h" #import "SentrySwift.h" @interface SentryCoreDataTrackingIntegration () @@ -23,7 +22,7 @@ - (BOOL)installWithOptions:(SentryOptions *)options self.tracker = [[SentryCoreDataTracker alloc] initWithThreadInspector:[[SentryDefaultThreadInspector alloc] - initWithOptions:[SentryOptionsConverter toInternal:options]] + initWithOptions:[options toInternal]] processInfoWrapper:[SentryDependencyContainer.sharedInstance processInfoWrapper]]; [SentryCoreDataSwizzling.sharedInstance startWithTracker:self.tracker]; diff --git a/Sources/Sentry/SentryCrashIntegration.m b/Sources/Sentry/SentryCrashIntegration.m index 35f6ba14112..cfcfc816c99 100644 --- a/Sources/Sentry/SentryCrashIntegration.m +++ b/Sources/Sentry/SentryCrashIntegration.m @@ -7,7 +7,6 @@ #import "SentryEvent.h" #import "SentryHub.h" #import "SentryInternalDefines.h" -#import "SentryOptionsConverter.h" #import "SentrySDK+Private.h" #import "SentryScope+Private.h" #import "SentryScope+PrivateSwift.h" diff --git a/Sources/Sentry/SentryDefaultThreadInspector.m b/Sources/Sentry/SentryDefaultThreadInspector.m index acd0fc977ad..b210aecf598 100644 --- a/Sources/Sentry/SentryDefaultThreadInspector.m +++ b/Sources/Sentry/SentryDefaultThreadInspector.m @@ -5,7 +5,6 @@ #import "SentryCrashStackEntryMapper.h" #include "SentryCrashSymbolicator.h" #import "SentryFrame.h" -#import "SentryOptionsInternal.h" #import "SentryStacktrace.h" #import "SentryStacktraceBuilder.h" #import "SentrySwift.h" @@ -66,7 +65,7 @@ - (id)initWithStacktraceBuilder:(SentryStacktraceBuilder *)stacktraceBuilder return self; } -- (instancetype)initWithOptions:(SentryOptionsInternal *_Nullable)options +- (instancetype)initWithOptions:(SentryOptions *_Nullable)options { SentryInAppLogic *inAppLogic = [[SentryInAppLogic alloc] initWithInAppIncludes:options.inAppIncludes ?: @[]]; diff --git a/Sources/Sentry/SentryDependencyContainerSwiftHelper.m b/Sources/Sentry/SentryDependencyContainerSwiftHelper.m index b4a7b7717e9..b5b4701d5c9 100644 --- a/Sources/Sentry/SentryDependencyContainerSwiftHelper.m +++ b/Sources/Sentry/SentryDependencyContainerSwiftHelper.m @@ -1,7 +1,6 @@ #import "SentryDependencyContainerSwiftHelper.h" #import "SentryClient+Private.h" #import "SentryHub+Private.h" -#import "SentryOptionsInternal+Private.h" #import "SentrySDK+Private.h" #import "SentrySwift.h" diff --git a/Sources/Sentry/SentryDsn.m b/Sources/Sentry/SentryDsn.m index 36d57bfcfc0..1b5e6af6584 100644 --- a/Sources/Sentry/SentryDsn.m +++ b/Sources/Sentry/SentryDsn.m @@ -14,7 +14,7 @@ @implementation SentryDsn { NSURL *_envelopeEndpoint; } -- (_Nullable instancetype)initWithString:(NSString *)dsnString +- (_Nullable instancetype)initWithString:(NSString *_Nullable)dsnString didFailWithError:(NSError *_Nullable *_Nullable)error { self = [super init]; @@ -77,7 +77,7 @@ - (NSURL *)getBaseEndpoint return SENTRY_UNWRAP_NULLABLE(NSURL, components.URL); } -- (NSURL *_Nullable)convertDsnString:(NSString *)dsnString +- (NSURL *_Nullable)convertDsnString:(NSString *_Nullable)dsnString didFailWithError:(NSError *_Nullable *_Nullable)error { NSString *trimmedDsnString = [dsnString diff --git a/Sources/Sentry/SentryFileManagerHelper.m b/Sources/Sentry/SentryFileManagerHelper.m index c4672b08567..9427e952ec1 100644 --- a/Sources/Sentry/SentryFileManagerHelper.m +++ b/Sources/Sentry/SentryFileManagerHelper.m @@ -8,7 +8,6 @@ #import "SentryEvent.h" #import "SentryInternalDefines.h" #import "SentryLogC.h" -#import "SentryOptionsInternal.h" #import "SentrySerialization.h" #import "SentrySwift.h" @@ -102,10 +101,11 @@ @interface SentryFileManagerHelper () @implementation SentryFileManagerHelper -- (nullable instancetype)initWithOptions:(SentryOptionsInternal *_Nullable)options +- (nullable instancetype)initWithOptions:(SentryOptionsObjC *_Nullable)optionsInternal error:(NSError **)error { if (self = [super init]) { + SentryOptions *options = [optionsInternal toOptions]; [self createPathsWithOptions:options]; // Remove old cached events for versions before 6.0.0 @@ -128,7 +128,7 @@ - (nullable instancetype)initWithOptions:(SentryOptionsInternal *_Nullable)optio return self; } -- (void)createPathsWithOptions:(SentryOptionsInternal *_Nullable)options +- (void)createPathsWithOptions:(SentryOptions *_Nullable)options { NSString *cachePath = options.cacheDirectoryPath; diff --git a/Sources/Sentry/SentryHub.m b/Sources/Sentry/SentryHub.m index 0d52590c790..7969ffc383a 100644 --- a/Sources/Sentry/SentryHub.m +++ b/Sources/Sentry/SentryHub.m @@ -7,7 +7,6 @@ #import "SentryInternalDefines.h" #import "SentryLevelMapper.h" #import "SentryLogC.h" -#import "SentryOptionsConverter.h" #import "SentryPerformanceTracker.h" #import "SentryProfilingConditionals.h" #import "SentrySDK+Private.h" diff --git a/Sources/Sentry/SentryOptionsConverter.m b/Sources/Sentry/SentryOptionsConverter.m deleted file mode 100644 index d9e67bf7e44..00000000000 --- a/Sources/Sentry/SentryOptionsConverter.m +++ /dev/null @@ -1,21 +0,0 @@ -#import "SentryOptionsConverter.h" -#import "SentryOptionsInternal.h" -#import "SentrySwift.h" - -@implementation SentryOptionsConverter - -+ (SentryOptions *)fromInternal:(SentryOptionsInternal *)internalOptions -{ - SentryOptions *options = [[SentryOptions alloc] init]; - options.dsn = internalOptions.dsn; - return options; -} - -+ (SentryOptionsInternal *)toInternal:(SentryOptions *)options -{ - SentryOptionsInternal *internalOptions = [[SentryOptionsInternal alloc] init]; - internalOptions.dsn = options.dsn; - return internalOptions; -} - -@end diff --git a/Sources/Sentry/SentryOptionsInternal.m b/Sources/Sentry/SentryOptionsInternal.m index 340f045096d..ac6eea451db 100644 --- a/Sources/Sentry/SentryOptionsInternal.m +++ b/Sources/Sentry/SentryOptionsInternal.m @@ -1,162 +1,345 @@ #import "SentryOptionsInternal.h" #import "SentryDsn.h" -#import "SentryHttpStatusCodeRange.h" #import "SentryInternalDefines.h" #import "SentryLevelMapper.h" -#import "SentryLogC.h" -#import "SentryMeta.h" -#import "SentryOptionsInternal+Private.h" -#import "SentrySDKInternal.h" -#import "SentryScope.h" #import "SentrySwift.h" -#import "SentryTracer.h" -#import -NSString *const kSentryDefaultEnvironment = @"production"; +@implementation SentryOptionsInternal -@implementation SentryOptionsInternal { - id _beforeSendLogDynamic; -#if SENTRY_TARGET_REPLAY_SUPPORTED - id _sessionReplayDynamic; -#endif -#if TARGET_OS_IOS && SENTRY_HAS_UIKIT - id _userFeedbackDynamic; -#endif -} - -// Provide explicit implementation for SPM builds where the property is excluded from header -// Use id to avoid typedef dependency, Swift extension provides type safety -- (id)beforeSendLogDynamic ++ (nullable SentryOptions *)initWithDict:(NSDictionary *)options + didFailWithError:(NSError *_Nullable *_Nullable)error { - return _beforeSendLogDynamic; + SentryOptions *sentryOptions = [[SentryOptions alloc] init]; + if (![SentryOptionsInternal validateOptions:options + sentryOptions:sentryOptions + didFailWithError:error]) { + if (error != nil) { + SENTRY_LOG_ERROR(@"Failed to initialize SentryOptions: %@", *error); + } else { + SENTRY_LOG_ERROR(@"Failed to initialize SentryOptions"); + } + return nil; + } + return sentryOptions; } -- (void)setBeforeSendLogDynamic:(id)beforeSendLogDynamic +/** + * Populates all @c SentryOptions values from @c options dict using fallbacks/defaults if needed. + */ ++ (BOOL)validateOptions:(NSDictionary *)options + sentryOptions:(SentryOptions *)sentryOptions + didFailWithError:(NSError *_Nullable *_Nullable)error { - _beforeSendLogDynamic = beforeSendLogDynamic; -} + NSPredicate *isNSString = [NSPredicate predicateWithBlock:^BOOL( + id object, NSDictionary *bindings) { return [object isKindOfClass:[NSString class]]; }]; -#if SENTRY_TARGET_REPLAY_SUPPORTED -- (id)sessionReplayDynamic -{ - return _sessionReplayDynamic; -} + [self setBool:options[@"debug"] block:^(BOOL value) { sentryOptions.debug = value; }]; -- (void)setSessionReplayDynamic:(id)sessionReplayDynamic -{ - _sessionReplayDynamic = sessionReplayDynamic; -} -#endif + if ([options[@"diagnosticLevel"] isKindOfClass:[NSString class]]) { + NSString *_Nonnull diagnosticLevel + = SENTRY_UNWRAP_NULLABLE(NSString, options[@"diagnosticLevel"]); + for (SentryLevel level = 0; level <= kSentryLevelFatal; level++) { + if ([nameForSentryLevel(level) isEqualToString:diagnosticLevel]) { + sentryOptions.diagnosticLevel = level; + break; + } + } + } -#if TARGET_OS_IOS && SENTRY_HAS_UIKIT -- (id)userFeedbackDynamic -{ - return _userFeedbackDynamic; -} + if (options[@"dsn"] != [NSNull null]) { + NSString *dsn = @""; + if (nil != options[@"dsn"] && [options[@"dsn"] isKindOfClass:[NSString class]]) { + dsn = options[@"dsn"]; + } -- (void)setUserFeedbackDynamic:(id)userFeedbackDynamic -{ - _userFeedbackDynamic = userFeedbackDynamic; -} -#endif + sentryOptions.parsedDsn = [[SentryDsn alloc] initWithString:dsn didFailWithError:error]; + if (sentryOptions.parsedDsn == nil) { + return NO; + } + } -+ (nullable SentryOptions *)initWithDict:(NSDictionary *)options - didFailWithError:(NSError *_Nullable *_Nullable)error -{ - return [[SentryOptions alloc] init]; -} + if ([options[@"release"] isKindOfClass:[NSString class]]) { + sentryOptions.releaseName = options[@"release"]; + } + + if ([options[@"environment"] isKindOfClass:[NSString class]]) { + NSString *_Nonnull environment = SENTRY_UNWRAP_NULLABLE(NSString, options[@"environment"]); + sentryOptions.environment = environment; + } + + if ([options[@"dist"] isKindOfClass:[NSString class]]) { + sentryOptions.dist = options[@"dist"]; + } + + [self setBool:options[@"enabled"] block:^(BOOL value) { sentryOptions.enabled = value; }]; + + if ([options[@"shutdownTimeInterval"] isKindOfClass:[NSNumber class]]) { + sentryOptions.shutdownTimeInterval = [options[@"shutdownTimeInterval"] doubleValue]; + } + + [self setBool:options[@"enableCrashHandler"] + block:^(BOOL value) { sentryOptions.enableCrashHandler = value; }]; -- (instancetype)init -{ - if (self = [super init]) { - self.enabled = YES; - self.enableCrashHandler = YES; #if TARGET_OS_OSX - self.enableUncaughtNSExceptionReporting = NO; + [self setBool:options[@"enableUncaughtNSExceptionReporting"] + block:^(BOOL value) { sentryOptions.enableUncaughtNSExceptionReporting = value; }]; #endif // TARGET_OS_OSX + #if !TARGET_OS_WATCH - self.enableSigtermReporting = NO; + [self setBool:options[@"enableSigtermReporting"] + block:^(BOOL value) { sentryOptions.enableSigtermReporting = value; }]; #endif // !TARGET_OS_WATCH - self.diagnosticLevel = kSentryLevelDebug; - self.debug = NO; - self.maxBreadcrumbs = defaultMaxBreadcrumbs; - self.enableAutoSessionTracking = YES; - self.enableGraphQLOperationTracking = NO; - self.enableWatchdogTerminationTracking = YES; - self.attachStacktrace = YES; - self.sendDefaultPii = NO; - self.enableAutoPerformanceTracing = YES; - self.enablePersistingTracesWhenCrashing = NO; - self.enableCaptureFailedRequests = YES; - self.environment = kSentryDefaultEnvironment; - self.enableTimeToFullDisplayTracing = NO; - - self.initialScope = ^SentryScope *(SentryScope *scope) { return scope; }; - __swiftExperimentalOptions = [[SentryExperimentalOptions alloc] init]; + + if ([options[@"maxBreadcrumbs"] isKindOfClass:[NSNumber class]]) { + sentryOptions.maxBreadcrumbs = [options[@"maxBreadcrumbs"] unsignedIntValue]; + } + + [self setBool:options[@"enableLogs"] block:^(BOOL value) { sentryOptions.enableLogs = value; }]; + + [self setBool:options[@"enableNetworkBreadcrumbs"] + block:^(BOOL value) { sentryOptions.enableNetworkBreadcrumbs = value; }]; + + if ([options[@"maxCacheItems"] isKindOfClass:[NSNumber class]]) { + sentryOptions.maxCacheItems = [options[@"maxCacheItems"] unsignedIntValue]; + } + + if ([options[@"cacheDirectoryPath"] isKindOfClass:[NSString class]]) { + NSString *_Nonnull cacheDirectoryPath + = SENTRY_UNWRAP_NULLABLE(NSString, options[@"cacheDirectoryPath"]); + sentryOptions.cacheDirectoryPath = cacheDirectoryPath; + } + + if ([self isBlock:options[@"beforeSend"]]) { + sentryOptions.beforeSend = options[@"beforeSend"]; + } + + if ([self isBlock:options[@"beforeSendLog"]]) { + sentryOptions.beforeSendLog = options[@"beforeSendLog"]; + } + + if ([self isBlock:options[@"beforeSendSpan"]]) { + sentryOptions.beforeSendSpan = options[@"beforeSendSpan"]; + } + + if ([self isBlock:options[@"beforeBreadcrumb"]]) { + sentryOptions.beforeBreadcrumb = options[@"beforeBreadcrumb"]; + } + + if ([self isBlock:options[@"beforeCaptureScreenshot"]]) { + sentryOptions.beforeCaptureScreenshot = options[@"beforeCaptureScreenshot"]; + } + + if ([self isBlock:options[@"beforeCaptureViewHierarchy"]]) { + sentryOptions.beforeCaptureViewHierarchy = options[@"beforeCaptureViewHierarchy"]; + } + + if ([self isBlock:options[@"onCrashedLastRun"]]) { + sentryOptions.onCrashedLastRun = options[@"onCrashedLastRun"]; + } + + if ([options[@"sampleRate"] isKindOfClass:[NSNumber class]]) { + sentryOptions.sampleRate = options[@"sampleRate"]; + } + + [self setBool:options[@"enableAutoSessionTracking"] + block:^(BOOL value) { sentryOptions.enableAutoSessionTracking = value; }]; + + [self setBool:options[@"enableGraphQLOperationTracking"] + block:^(BOOL value) { sentryOptions.enableGraphQLOperationTracking = value; }]; + + [self setBool:options[@"enableWatchdogTerminationTracking"] + block:^(BOOL value) { sentryOptions.enableWatchdogTerminationTracking = value; }]; + + [self setBool:options[@"swiftAsyncStacktraces"] + block:^(BOOL value) { sentryOptions.swiftAsyncStacktraces = value; }]; + + if ([options[@"sessionTrackingIntervalMillis"] isKindOfClass:[NSNumber class]]) { + sentryOptions.sessionTrackingIntervalMillis = + [options[@"sessionTrackingIntervalMillis"] unsignedIntValue]; + } + + [self setBool:options[@"attachStacktrace"] + block:^(BOOL value) { sentryOptions.attachStacktrace = value; }]; + + if ([options[@"maxAttachmentSize"] isKindOfClass:[NSNumber class]]) { + sentryOptions.maxAttachmentSize = [options[@"maxAttachmentSize"] unsignedIntValue]; + } + + [self setBool:options[@"sendDefaultPii"] + block:^(BOOL value) { sentryOptions.sendDefaultPii = value; }]; + + [self setBool:options[@"enableAutoPerformanceTracing"] + block:^(BOOL value) { sentryOptions.enableAutoPerformanceTracing = value; }]; + + [self setBool:options[@"enablePersistingTracesWhenCrashing"] + block:^(BOOL value) { sentryOptions.enablePersistingTracesWhenCrashing = value; }]; + + [self setBool:options[@"enableCaptureFailedRequests"] + block:^(BOOL value) { sentryOptions.enableCaptureFailedRequests = value; }]; + + [self setBool:options[@"enableTimeToFullDisplayTracing"] + block:^(BOOL value) { sentryOptions.enableTimeToFullDisplayTracing = value; }]; + + if ([self isBlock:options[@"initialScope"]]) { + sentryOptions.initialScope + = (SentryScope * (^_Nonnull)(SentryScope *)) options[@"initialScope"]; + } #if SENTRY_HAS_UIKIT - self.enableUIViewControllerTracing = YES; - self.attachScreenshot = NO; - self.screenshot = [[SentryViewScreenshotOptions alloc] init]; - self.attachViewHierarchy = NO; - self.reportAccessibilityIdentifier = YES; - self.enableUserInteractionTracing = YES; - self.idleTimeout = SentryTracerDefaultTimeout; - self.enablePreWarmedAppStartTracing = YES; - self.enableReportNonFullyBlockingAppHangs = YES; + [self setBool:options[@"enableUIViewControllerTracing"] + block:^(BOOL value) { sentryOptions.enableUIViewControllerTracing = value; }]; + + [self setBool:options[@"attachScreenshot"] + block:^(BOOL value) { sentryOptions.attachScreenshot = value; }]; + + [self setBool:options[@"attachViewHierarchy"] + block:^(BOOL value) { sentryOptions.attachViewHierarchy = value; }]; + + [self setBool:options[@"reportAccessibilityIdentifier"] + block:^(BOOL value) { sentryOptions.reportAccessibilityIdentifier = value; }]; + + [self setBool:options[@"enableUserInteractionTracing"] + block:^(BOOL value) { sentryOptions.enableUserInteractionTracing = value; }]; + + if ([options[@"idleTimeout"] isKindOfClass:[NSNumber class]]) { + sentryOptions.idleTimeout = [options[@"idleTimeout"] doubleValue]; + } + + [self setBool:options[@"enablePreWarmedAppStartTracing"] + block:^(BOOL value) { sentryOptions.enablePreWarmedAppStartTracing = value; }]; + + [self setBool:options[@"enableReportNonFullyBlockingAppHangs"] + block:^(BOOL value) { sentryOptions.enableReportNonFullyBlockingAppHangs = value; }]; + #endif // SENTRY_HAS_UIKIT #if SENTRY_TARGET_REPLAY_SUPPORTED - _sessionReplayDynamic = [[SentryReplayOptions alloc] init]; -#endif - - self.enableAppHangTracking = YES; - self.appHangTimeoutInterval = 2.0; - self.enableAutoBreadcrumbTracking = YES; - self.enablePropagateTraceparent = NO; - self.enableNetworkTracking = YES; - self.enableFileIOTracing = YES; - self.enableFileManagerSwizzling = NO; - self.enableDataSwizzling = YES; - self.enableNetworkBreadcrumbs = YES; - self.enableLogs = NO; - self.tracesSampleRate = nil; - self.enableCoreDataTracing = YES; - _enableSwizzling = YES; - self.swizzleClassNameExcludes = [NSSet new]; - self.sendClientReports = YES; - self.swiftAsyncStacktraces = NO; - self.enableSpotlight = NO; + if ([options[@"sessionReplay"] isKindOfClass:NSDictionary.class]) { + sentryOptions.sessionReplay = [[SentryReplayOptions alloc] + initWithDictionary:SENTRY_UNWRAP_NULLABLE(NSDictionary, options[@"sessionReplay"])]; + } +#endif // SENTRY_TARGET_REPLAY_SUPPORTED + + [self setBool:options[@"enableAppHangTracking"] + block:^(BOOL value) { sentryOptions.enableAppHangTracking = value; }]; + + if ([options[@"appHangTimeoutInterval"] isKindOfClass:[NSNumber class]]) { + sentryOptions.appHangTimeoutInterval = [options[@"appHangTimeoutInterval"] doubleValue]; + } + + [self setBool:options[@"enableNetworkTracking"] + block:^(BOOL value) { sentryOptions.enableNetworkTracking = value; }]; + + [self setBool:options[@"enableFileIOTracing"] + block:^(BOOL value) { sentryOptions.enableFileIOTracing = value; }]; + + if ([options[@"tracesSampleRate"] isKindOfClass:[NSNumber class]]) { + sentryOptions.tracesSampleRate = options[@"tracesSampleRate"]; + } + + if ([self isBlock:options[@"tracesSampler"]]) { + sentryOptions.tracesSampler = options[@"tracesSampler"]; + } + + if ([options[@"inAppIncludes"] isKindOfClass:[NSArray class]]) { + NSArray *inAppIncludes = + [options[@"inAppIncludes"] filteredArrayUsingPredicate:isNSString]; + for (NSString *include in inAppIncludes) { + [sentryOptions addInAppInclude:include]; + } + } + + if ([options[@"urlSession"] isKindOfClass:[NSURLSession class]]) { + sentryOptions.urlSession = options[@"urlSession"]; + } + + if ([options[@"urlSessionDelegate"] conformsToProtocol:@protocol(NSURLSessionDelegate)]) { + sentryOptions.urlSessionDelegate = options[@"urlSessionDelegate"]; + } + + [self setBool:options[@"enableSwizzling"] + block:^(BOOL value) { sentryOptions.enableSwizzling = value; }]; + + if ([options[@"swizzleClassNameExcludes"] isKindOfClass:[NSSet class]]) { + sentryOptions.swizzleClassNameExcludes = [SENTRY_UNWRAP_NULLABLE( + NSSet, options[@"swizzleClassNameExcludes"]) filteredSetUsingPredicate:isNSString]; + } + + [self setBool:options[@"enableCoreDataTracing"] + block:^(BOOL value) { sentryOptions.enableCoreDataTracing = value; }]; + + [self setBool:options[@"sendClientReports"] + block:^(BOOL value) { sentryOptions.sendClientReports = value; }]; + + [self setBool:options[@"enableAutoBreadcrumbTracking"] + block:^(BOOL value) { sentryOptions.enableAutoBreadcrumbTracking = value; }]; + + [self setBool:options[@"enablePropagateTraceparent"] + block:^(BOOL value) { sentryOptions.enablePropagateTraceparent = value; }]; + + if ([options[@"tracePropagationTargets"] isKindOfClass:[NSArray class]]) { + sentryOptions.tracePropagationTargets + = SENTRY_UNWRAP_NULLABLE(NSArray, options[@"tracePropagationTargets"]); + } + + if ([options[@"failedRequestStatusCodes"] isKindOfClass:[NSArray class]]) { + sentryOptions.failedRequestStatusCodes + = SENTRY_UNWRAP_NULLABLE(NSArray, options[@"failedRequestStatusCodes"]); + } + + if ([options[@"failedRequestTargets"] isKindOfClass:[NSArray class]]) { + sentryOptions.failedRequestTargets + = SENTRY_UNWRAP_NULLABLE(NSArray, options[@"failedRequestTargets"]); + } #if SENTRY_HAS_METRIC_KIT - self.enableMetricKit = NO; - self.enableMetricKitRawPayload = NO; + [self setBool:options[@"enableMetricKit"] + block:^(BOOL value) { sentryOptions.enableMetricKit = value; }]; + [self setBool:options[@"enableMetricKitRawPayload"] + block:^(BOOL value) { sentryOptions.enableMetricKitRawPayload = value; }]; #endif // SENTRY_HAS_METRIC_KIT + + [self setBool:options[@"enableSpotlight"] + block:^(BOOL value) { sentryOptions.enableSpotlight = value; }]; + + if ([options[@"spotlightUrl"] isKindOfClass:[NSString class]]) { + sentryOptions.spotlightUrl = SENTRY_UNWRAP_NULLABLE(NSString, options[@"spotlightUrl"]); } - return self; + + if ([options[@"experimental"] isKindOfClass:NSDictionary.class]) { + [sentryOptions.experimental validateOptions:options[@"experimental"]]; + } + + return YES; } -#if defined(DEBUG) || defined(SENTRY_TEST) || defined(SENTRY_TEST_CI) -- (NSString *)debugDescription +/** + * Checks if the passed in block is actually of type block. We can't check if the block matches a + * specific block without some complex objc runtime method calls and therefore we only check if it's + * a block or not. Assigning a wrong block to the @c SentryOptions blocks still could lead to + * crashes at runtime, but when someone uses the @c initWithDict they should better know what they + * are doing. + * @see Taken from https://gist.github.com/steipete/6ee378bd7d87f276f6e0 + */ ++ (BOOL)isBlock:(nullable id)block { - NSMutableString *propertiesDescription = [NSMutableString string]; - @autoreleasepool { - unsigned int outCount, i; - objc_property_t *properties = class_copyPropertyList([self class], &outCount); - for (i = 0; i < outCount; i++) { - objc_property_t property = properties[i]; - const char *propName = property_getName(property); - if (propName) { - NSString *propertyName = [NSString stringWithUTF8String:propName]; - NSString *propertyValue = [[self valueForKey:propertyName] description]; - [propertiesDescription appendFormat:@" %@: %@\n", propertyName, propertyValue]; - } else { - SENTRY_LOG_DEBUG(@"Failed to get a property name."); - } + static Class blockClass; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + blockClass = [^{ } class]; + while ([blockClass superclass] != NSObject.class) { + blockClass = [blockClass superclass]; } - free(properties); + }); + + return [block isKindOfClass:blockClass]; +} + ++ (void)setBool:(id)value block:(void (^)(BOOL))block +{ + // Entries in the dictionary can be NSNull. Especially, on React-Native, this can happen. + if (value != nil && ![value isEqual:[NSNull null]]) { + block([value boolValue]); } - return [NSString stringWithFormat:@"<%@: {\n%@\n}>", self, propertiesDescription]; } -#endif // defined(DEBUG) || defined(SENTRY_TEST) || defined(SENTRY_TEST_CI) @end diff --git a/Sources/Sentry/SentryProfiler.mm b/Sources/Sentry/SentryProfiler.mm index bdaf98947fb..607cda2ca86 100644 --- a/Sources/Sentry/SentryProfiler.mm +++ b/Sources/Sentry/SentryProfiler.mm @@ -10,15 +10,12 @@ # import "SentryLaunchProfiling.h" # import "SentryLogC.h" # import "SentryMetricProfiler.h" -# import "SentryOptionsConverter.h" -# import "SentryOptionsInternal+Private.h" # import "SentryProfileConfiguration.h" # import "SentryProfilerState+ObjCpp.h" # import "SentryProfilerTestHelpers.h" # import "SentryProfilingSwiftHelpers.h" # import "SentrySDK+Private.h" # import "SentrySamplingProfiler.hpp" -# import "SentrySwift.h" # import "SentryTime.h" # import "SentryTracer+Private.h" @@ -65,94 +62,6 @@ return sentry_profileAppStarts(options) && sentry_isTraceLifecycle(options); } -void -sentry_configureContinuousProfiling(SentryOptions *options) -{ - if (options.configureProfiling == nil) { - SENTRY_LOG_DEBUG(@"Continuous profiling V2 configuration not set by SDK consumer, nothing " - @"to do here."); - return; - } - - SentryProfileOptions *_Nonnull profilingOptions = sentry_getSentryProfileOptions(); - options.profiling = profilingOptions; - options.configureProfiling(profilingOptions); - - if (sentry_isTraceLifecycle(profilingOptions) && !options.isTracingEnabled) { - SENTRY_LOG_WARN( - @"Tracing must be enabled in order to configure profiling with trace lifecycle."); - return; - } - - // if a launch profiler was started, sentry_profileConfiguration will have been set at that time - // with the hydrated options that were persisted from the previous SDK start, which are used to - // help determine when/how to stop the launch profile. otherwise, there won't yet be a - // SentryProfileConfiguration instance, so we'll instantiate one which will be used to access - // the profile session sample rate henceforth - if (sentry_profileConfiguration == nil) { - sentry_profileConfiguration = - [[SentryProfileConfiguration alloc] initWithProfileOptions:profilingOptions]; - } - - sentry_reevaluateSessionSampleRate(); - - SENTRY_LOG_DEBUG(@"Configured profiling options: <%@: {\n lifecycle: %@\n sessionSampleRate: " - @"%.2f\n profileAppStarts: %@\n}", - options.profiling, sentry_isTraceLifecycle(profilingOptions) ? @"trace" : @"manual", - sentry_sessionSampleRate(profilingOptions), - sentry_profileAppStarts(profilingOptions) ? @"YES" : @"NO"); -} - -void -sentry_sdkInitProfilerTasks(SentryOptions *options, SentryHubInternal *hub) -{ - // get the configuration options from the last time the launch config was written; it may be - // different than the new options the SDK was just started with - SentryProfileConfiguration *configurationFromLaunch = sentry_profileConfiguration; - - sentry_configureContinuousProfiling(options); - - sentry_dispatchAsync(SentryDependencyContainerSwiftHelper.dispatchQueueWrapper, ^{ - if (configurationFromLaunch.isProfilingThisLaunch) { - BOOL shouldStopAndTransmitLaunchProfile = YES; - - const auto profileIsContinuousV2 = configurationFromLaunch.profileOptions != nil; - const auto v2LifecycleIsManual = profileIsContinuousV2 - && !sentry_isTraceLifecycle(SENTRY_UNWRAP_NULLABLE( - SentryProfileOptions, configurationFromLaunch.profileOptions)); - -# if SENTRY_HAS_UIKIT - const auto v2LifecycleIsTrace = profileIsContinuousV2 - && sentry_isTraceLifecycle(SENTRY_UNWRAP_NULLABLE( - SentryProfileOptions, configurationFromLaunch.profileOptions)); - const auto profileIsCorrelatedToTrace = !profileIsContinuousV2 || v2LifecycleIsTrace; - if (profileIsCorrelatedToTrace && configurationFromLaunch.waitForFullDisplay) { - SENTRY_LOG_DEBUG( - @"Will wait to stop launch profile correlated to a trace until full " - @"display reported."); - shouldStopAndTransmitLaunchProfile = NO; - } -# endif // SENTRY_HAS_UIKIT - - if (v2LifecycleIsManual) { - SENTRY_LOG_DEBUG(@"Continuous manual launch profiles aren't stopped on calls to " - @"SentrySDK.start, " - @"not stopping profile."); - shouldStopAndTransmitLaunchProfile = NO; - } - - if (shouldStopAndTransmitLaunchProfile) { - SENTRY_LOG_DEBUG( - @"Stopping launch profile in SentrySDK.start because there is no time " - @"to display tracker to stop it."); - sentry_stopAndDiscardLaunchProfileTracer(hub); - } - } - - sentry_configureLaunchProfilingForNextLaunch(options); - }); -} - @implementation SentryProfiler { std::unique_ptr _samplingProfiler; } @@ -236,10 +145,8 @@ - (void)stopForReason:(SentryProfilerTruncationReason)reason // frames tracker, is YES, then we need to stop the frames tracker from running outside of // profiles because it isn't needed for anything else - BOOL autoPerformanceTracingDisabled - = ![[[[SentrySDKInternal currentHub] getClient] options] enableAutoPerformanceTracing]; - BOOL appHangsDisabled = - [[[[SentrySDKInternal currentHub] getClient] options] isAppHangTrackingDisabled]; + BOOL autoPerformanceTracingDisabled = sentry_autoPerformanceTracingDisabled(); + BOOL appHangsDisabled = sentry_appHangsDisabled(); if (autoPerformanceTracingDisabled && appHangsDisabled) { sentry_stopFramesTracker(); diff --git a/Sources/Sentry/SentrySDKInternal.m b/Sources/Sentry/SentrySDKInternal.m index 383cbbe4d53..0c77b28611c 100644 --- a/Sources/Sentry/SentrySDKInternal.m +++ b/Sources/Sentry/SentrySDKInternal.m @@ -15,8 +15,6 @@ #import "SentryLogC.h" #import "SentryMeta.h" #import "SentryNetworkTrackingIntegration.h" -#import "SentryOptionsConverter.h" -#import "SentryOptionsInternal+Private.h" #import "SentryProfilingConditionals.h" #import "SentryReplayApi.h" #import "SentrySamplerDecision.h" @@ -118,13 +116,9 @@ + (nullable SentryOptions *)options return startOption; } } -+ (nullable SentryOptionsInternal *)optionsInternal ++ (nullable SentryOptionsObjC *)optionsInternal { - SentryOptions *internal = [SentrySDKInternal options]; - if (internal) { - return [SentryOptionsConverter toInternal:internal]; - } - return NULL; + return [SentrySDKInternal options]; } #if SENTRY_TARGET_REPLAY_SUPPORTED + (SentryReplayApi *)replay @@ -226,11 +220,11 @@ + (void)setStartTimestamp:(NSDate *)value startTimestamp = value; } -+ (void)startWithOptions:(SentryOptionsInternal *)internalOptions ++ (void)startWithOptions:(SentryOptionsObjC *)internalOptions { // We save the options before checking for Xcode preview because // we will use this options in the preview - SentryOptions *options = [SentryOptionsConverter fromInternal:internalOptions]; + SentryOptions *options = [internalOptions toOptions]; startOption = options; if ([SentryDependencyContainer.sharedInstance.processInfoWrapper .environment[SENTRY_XCODE_PREVIEW_ENVIRONMENT_KEY] isEqualToString:@"1"]) { diff --git a/Sources/Sentry/SentrySampling.m b/Sources/Sentry/SentrySampling.m index 1eb11399f8e..a39a01ee030 100644 --- a/Sources/Sentry/SentrySampling.m +++ b/Sources/Sentry/SentrySampling.m @@ -1,12 +1,10 @@ #import "SentrySampling.h" #import "SentryInternalDefines.h" -#import "SentryOptionsInternal.h" #import "SentrySampleDecision.h" #import "SentrySamplerDecision.h" #import "SentrySamplingContext.h" #import "SentrySwift.h" #import "SentryTransactionContext.h" -#import NS_ASSUME_NONNULL_BEGIN diff --git a/Sources/Sentry/SentryScreenshotIntegration.m b/Sources/Sentry/SentryScreenshotIntegration.m index 3c13df7492c..ddbe3d65149 100644 --- a/Sources/Sentry/SentryScreenshotIntegration.m +++ b/Sources/Sentry/SentryScreenshotIntegration.m @@ -7,7 +7,6 @@ # import "SentryEvent+Private.h" # import "SentryException.h" # import "SentryHub+Private.h" -# import "SentryOptionsInternal.h" # import "SentrySDK+Private.h" # import "SentrySwift.h" diff --git a/Sources/Sentry/SentrySessionReplayIntegration.m b/Sources/Sentry/SentrySessionReplayIntegration.m index 12aad7cfa8e..57d5e3e5dea 100644 --- a/Sources/Sentry/SentrySessionReplayIntegration.m +++ b/Sources/Sentry/SentrySessionReplayIntegration.m @@ -7,8 +7,6 @@ # import "SentryHub+Private.h" # import "SentryInternalDefines.h" # import "SentryLogC.h" -# import "SentryOptionsConverter.h" -# import "SentryOptionsInternal.h" # import "SentrySDK+Private.h" # import "SentryScope+Private.h" # import "SentrySerialization.h" @@ -47,6 +45,7 @@ - (void)newSceneActivate; @implementation SentrySessionReplayIntegration { BOOL _startedAsFullSession; SentryReplayOptions *_replayOptions; + SentryExperimentalOptions *_experimentalOptions; id _notificationCenter; id _rateLimits; id _currentScreenshotProvider; @@ -61,14 +60,12 @@ @implementation SentrySessionReplayIntegration { id _environmentChecker; } -+ (BOOL)shouldEnableForOptions:(SentryOptionsInternal *)options ++ (BOOL)shouldEnableForOptions:(SentryOptions *)options { return [SentrySessionReplay shouldEnableSessionReplayWithEnvironmentChecker:SentryDependencyContainer.sharedInstance .sessionReplayEnvironmentChecker - experimentalOptions:[SentryOptionsConverter - fromInternal:options] - .experimental]; + experimentalOptions:options.experimental]; } - (instancetype)init @@ -77,16 +74,17 @@ - (instancetype)init return self; } -- (instancetype)initForManualUse:(nonnull SentryOptionsInternal *)options +- (instancetype)initForManualUse:(nonnull SentryOptions *)options { if (self = [super init]) { - SentryReplayOptions *replayOptions = - [SentryOptionsConverter fromInternal:options].sessionReplay; - [self setupWith:replayOptions + [self setupWith:options.sessionReplay + experimentalOptions:options.experimental enableTouchTracker:options.enableSwizzling - enableViewRendererV2:replayOptions.enableViewRendererV2 - enableFastViewRendering:replayOptions.enableFastViewRendering]; - [self startWithOptions:replayOptions fullSession:YES]; + enableViewRendererV2:options.sessionReplay.enableViewRendererV2 + enableFastViewRendering:options.sessionReplay.enableFastViewRendering]; + [self startWithOptions:options.sessionReplay + experimentalOptions:options.experimental + fullSession:YES]; } return self; } @@ -97,21 +95,23 @@ - (BOOL)installWithOptions:(nonnull SentryOptions *)options [SentrySessionReplayIntegration shouldEnableForOptions:options] == NO) { return NO; } - SentryReplayOptions *replayOptions = options.sessionReplay; - [self setupWith:replayOptions + [self setupWith:options.sessionReplay + experimentalOptions:options.experimental enableTouchTracker:options.enableSwizzling - enableViewRendererV2:replayOptions.enableViewRendererV2 - enableFastViewRendering:replayOptions.enableFastViewRendering]; + enableViewRendererV2:options.sessionReplay.enableViewRendererV2 + enableFastViewRendering:options.sessionReplay.enableFastViewRendering]; return YES; } - (void)setupWith:(SentryReplayOptions *)replayOptions + experimentalOptions:(SentryExperimentalOptions *)experimentalOptions enableTouchTracker:(BOOL)touchTracker enableViewRendererV2:(BOOL)enableViewRendererV2 enableFastViewRendering:(BOOL)enableFastViewRendering { _replayOptions = replayOptions; + _experimentalOptions = experimentalOptions; _rateLimits = SentryDependencyContainer.sharedInstance.rateLimits; _dateProvider = SentryDependencyContainer.sharedInstance.dateProvider; @@ -358,7 +358,9 @@ - (void)runReplayForAvailableWindow if ([SentryDependencyContainer.sharedInstance.application getWindows].count > 0) { SENTRY_LOG_DEBUG(@"[Session Replay] Running replay for available window"); // If a window its already available start replay right away - [self startWithOptions:_replayOptions fullSession:_startedAsFullSession]; + [self startWithOptions:_replayOptions + experimentalOptions:_experimentalOptions + fullSession:_startedAsFullSession]; } else { SENTRY_LOG_DEBUG( @"[Session Replay] Waiting for a scene to be available to started the replay"); @@ -377,14 +379,18 @@ - (void)newSceneActivate removeObserver:self name:UISceneDidActivateNotification object:nil]; - [self startWithOptions:_replayOptions fullSession:_startedAsFullSession]; + [self startWithOptions:_replayOptions + experimentalOptions:_experimentalOptions + fullSession:_startedAsFullSession]; } - (void)startWithOptions:(SentryReplayOptions *)replayOptions + experimentalOptions:(SentryExperimentalOptions *)experimentalOptions fullSession:(BOOL)shouldReplayFullSession { SENTRY_LOG_DEBUG(@"[Session Replay] Starting session"); [self startWithOptions:replayOptions + experimentalOptions:experimentalOptions screenshotProvider:_currentScreenshotProvider ?: _viewPhotographer breadcrumbConverter:_currentBreadcrumbConverter ?: [[SentrySRDefaultBreadcrumbConverter alloc] init] @@ -392,6 +398,7 @@ - (void)startWithOptions:(SentryReplayOptions *)replayOptions } - (void)startWithOptions:(SentryReplayOptions *)replayOptions + experimentalOptions:(SentryExperimentalOptions *)experimentalOptions screenshotProvider:(id)screenshotProvider breadcrumbConverter:(id)breadcrumbConverter fullSession:(BOOL)shouldReplayFullSession diff --git a/Sources/Sentry/SentrySpan.m b/Sources/Sentry/SentrySpan.m index ca4a7273113..3d8237d0bf1 100644 --- a/Sources/Sentry/SentrySpan.m +++ b/Sources/Sentry/SentrySpan.m @@ -18,7 +18,6 @@ #if SENTRY_TARGET_PROFILING_SUPPORTED # import "SentryContinuousProfiler.h" -# import "SentryOptionsInternal+Private.h" # import "SentryProfilingConditionals.h" # import "SentrySDK+Private.h" #endif // SENTRY_TARGET_PROFILING_SUPPORTED diff --git a/Sources/Sentry/SentrySwiftAsyncIntegration.m b/Sources/Sentry/SentrySwiftAsyncIntegration.m index 3f3ad734108..2c9bf9ddbea 100644 --- a/Sources/Sentry/SentrySwiftAsyncIntegration.m +++ b/Sources/Sentry/SentrySwiftAsyncIntegration.m @@ -1,10 +1,10 @@ #import "SentrySwiftAsyncIntegration.h" #import "SentryCrashStackCursor_SelfThread.h" -#import "SentryOptionsInternal.h" +#import "SentrySwift.h" @implementation SentrySwiftAsyncIntegration -- (BOOL)installWithOptions:(nonnull SentryOptionsInternal *)options +- (BOOL)installWithOptions:(nonnull SentryOptions *)options { sentrycrashsc_setSwiftAsyncStitching(options.swiftAsyncStacktraces); return options.swiftAsyncStacktraces; diff --git a/Sources/Sentry/SentryTimeToDisplayTracker.m b/Sources/Sentry/SentryTimeToDisplayTracker.m index b75a690ff4d..bd21b39d5f7 100644 --- a/Sources/Sentry/SentryTimeToDisplayTracker.m +++ b/Sources/Sentry/SentryTimeToDisplayTracker.m @@ -4,7 +4,6 @@ # import "SentryInternalDefines.h" # import "SentryLogC.h" -# import "SentryOptionsInternal+Private.h" # import "SentryProfilingConditionals.h" # import "SentrySDK+Private.h" # import "SentrySpan.h" diff --git a/Sources/Sentry/SentryTraceContext.m b/Sources/Sentry/SentryTraceContext.m index c247e2912f7..0193a79742f 100644 --- a/Sources/Sentry/SentryTraceContext.m +++ b/Sources/Sentry/SentryTraceContext.m @@ -4,7 +4,6 @@ #import "SentryDsn.h" #import "SentryInternalDefines.h" #import "SentryLogC.h" -#import "SentryOptionsInternal+Private.h" #import "SentrySampleDecision.h" #import "SentryScope+Private.h" #import "SentryScope+PrivateSwift.h" diff --git a/Sources/Sentry/SentryTracer.m b/Sources/Sentry/SentryTracer.m index d2c00d8ce84..4110f817eb2 100644 --- a/Sources/Sentry/SentryTracer.m +++ b/Sources/Sentry/SentryTracer.m @@ -7,7 +7,6 @@ #import "SentryLogC.h" #import "SentryNSDictionarySanitize.h" #import "SentryNoOpSpan.h" -#import "SentryOptionsConverter.h" #import "SentryProfilingConditionals.h" #import "SentrySDK+Private.h" #import "SentrySamplerDecision.h" diff --git a/Sources/Sentry/SentryTransportAdapter.m b/Sources/Sentry/SentryTransportAdapter.m index 075ec243fce..5d7460434ff 100644 --- a/Sources/Sentry/SentryTransportAdapter.m +++ b/Sources/Sentry/SentryTransportAdapter.m @@ -1,6 +1,5 @@ #import "SentryTransportAdapter.h" #import "SentryEvent.h" -#import "SentryOptionsInternal.h" #import "SentrySwift.h" NS_ASSUME_NONNULL_BEGIN diff --git a/Sources/Sentry/SentryUIEventTrackingIntegration.m b/Sources/Sentry/SentryUIEventTrackingIntegration.m index a5fa0a027fc..a196cb0d560 100644 --- a/Sources/Sentry/SentryUIEventTrackingIntegration.m +++ b/Sources/Sentry/SentryUIEventTrackingIntegration.m @@ -5,8 +5,6 @@ # import "SentrySwift.h" # import # import -# import -# import # import # import diff --git a/Sources/Sentry/SentryUIViewControllerSwizzling.m b/Sources/Sentry/SentryUIViewControllerSwizzling.m index a285d87a932..de196df766a 100644 --- a/Sources/Sentry/SentryUIViewControllerSwizzling.m +++ b/Sources/Sentry/SentryUIViewControllerSwizzling.m @@ -7,7 +7,6 @@ # import "SentrySubClassFinder.h" # import "SentrySwift.h" # import "SentrySwizzle.h" -# import # import # import # import diff --git a/Sources/Sentry/SentryUseNSExceptionCallstackWrapper.m b/Sources/Sentry/SentryUseNSExceptionCallstackWrapper.m index 2dfcbc8fecb..6c4be56aec9 100644 --- a/Sources/Sentry/SentryUseNSExceptionCallstackWrapper.m +++ b/Sources/Sentry/SentryUseNSExceptionCallstackWrapper.m @@ -1,7 +1,6 @@ #import "SentryUseNSExceptionCallstackWrapper.h" #import "SentryCrashStackEntryMapper.h" #import "SentryCrashSymbolicator.h" -#import "SentryOptionsInternal+Private.h" #import "SentrySDK+Private.h" #import "SentryStacktraceBuilder.h" #import "SentrySwift.h" @@ -58,7 +57,7 @@ - (instancetype)initWithName:(NSExceptionName)aName - (SentryCrashStackEntryMapper *)buildCrashStackToEntryMapper { - SentryOptionsInternal *options = SentrySDKInternal.options; + SentryOptions *options = SentrySDKInternal.options; SentryInAppLogic *inAppLogic = [[SentryInAppLogic alloc] initWithInAppIncludes:options.inAppIncludes]; diff --git a/Sources/Sentry/SentryUserFeedbackIntegration.m b/Sources/Sentry/SentryUserFeedbackIntegration.m index 4a8ace019ef..8aa0f65f961 100644 --- a/Sources/Sentry/SentryUserFeedbackIntegration.m +++ b/Sources/Sentry/SentryUserFeedbackIntegration.m @@ -1,7 +1,5 @@ #import "SentryUserFeedbackIntegration.h" #import "SentryInternalDefines.h" -#import "SentryOptionsConverter.h" -#import "SentryOptionsInternal+Private.h" #import "SentrySDK+Private.h" #import "SentrySwift.h" diff --git a/Sources/Sentry/SentryViewHierarchyIntegration.m b/Sources/Sentry/SentryViewHierarchyIntegration.m index 322065cdd7a..f9093ddf5d3 100644 --- a/Sources/Sentry/SentryViewHierarchyIntegration.m +++ b/Sources/Sentry/SentryViewHierarchyIntegration.m @@ -6,7 +6,6 @@ # import "SentryEvent+Private.h" # import "SentryException.h" # import "SentryHub+Private.h" -# import "SentryOptionsInternal.h" # import "SentrySDK+Private.h" # import "SentrySwift.h" # if SENTRY_HAS_METRIC_KIT diff --git a/Sources/Sentry/SentryWatchdogTerminationLogic.m b/Sources/Sentry/SentryWatchdogTerminationLogic.m index 20924d1607a..bb9c6dee469 100644 --- a/Sources/Sentry/SentryWatchdogTerminationLogic.m +++ b/Sources/Sentry/SentryWatchdogTerminationLogic.m @@ -3,7 +3,6 @@ #if SENTRY_HAS_UIKIT -# import # import # import diff --git a/Sources/Sentry/SentryWatchdogTerminationTracker.m b/Sources/Sentry/SentryWatchdogTerminationTracker.m index fd936bbd36f..27efb9a38bf 100644 --- a/Sources/Sentry/SentryWatchdogTerminationTracker.m +++ b/Sources/Sentry/SentryWatchdogTerminationTracker.m @@ -7,7 +7,6 @@ #import #import #import -#import #import #import #import diff --git a/Sources/Sentry/SentryWatchdogTerminationTrackingIntegration.m b/Sources/Sentry/SentryWatchdogTerminationTrackingIntegration.m index 2215c778180..50162bf0b41 100644 --- a/Sources/Sentry/SentryWatchdogTerminationTrackingIntegration.m +++ b/Sources/Sentry/SentryWatchdogTerminationTrackingIntegration.m @@ -5,8 +5,6 @@ # import # import # import -# import -# import # import # import # import diff --git a/Sources/Sentry/include/HybridPublic/SentryOptionsInternal.h b/Sources/Sentry/include/HybridPublic/SentryOptionsInternal.h new file mode 100644 index 00000000000..5f042e733b5 --- /dev/null +++ b/Sources/Sentry/include/HybridPublic/SentryOptionsInternal.h @@ -0,0 +1,14 @@ +#import + +@class SentryOptions; + +NS_ASSUME_NONNULL_BEGIN + +@interface SentryOptionsInternal : NSObject + ++ (nullable SentryOptions *)initWithDict:(NSDictionary *)options + didFailWithError:(NSError *_Nullable *_Nullable)error; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Sources/Sentry/include/SentryANRTrackerV1.h b/Sources/Sentry/include/SentryANRTrackerV1.h index 92861c82875..9d882ac0118 100644 --- a/Sources/Sentry/include/SentryANRTrackerV1.h +++ b/Sources/Sentry/include/SentryANRTrackerV1.h @@ -1,5 +1,6 @@ #import "SentryDefines.h" +@class SentryOptions; @class SentryCrashWrapper; @class SentryDispatchQueueWrapper; @class SentryThreadWrapper; diff --git a/Sources/Sentry/include/SentryClient.h b/Sources/Sentry/include/SentryClient.h index 4efb23f77a6..05c4c043d62 100644 --- a/Sources/Sentry/include/SentryClient.h +++ b/Sources/Sentry/include/SentryClient.h @@ -5,10 +5,10 @@ #else # import #endif +#import "SentryOptionsObjC.h" @class SentryEvent; @class SentryFeedback; -@class SentryOptionsInternal; @class SentryOptions; @class SentryScope; @class SentryId; @@ -21,7 +21,7 @@ SENTRY_NO_INIT @property (nonatomic, assign, readonly) BOOL isEnabled; -@property (nonatomic, strong) SentryOptionsInternal *optionsInternal; +@property (nonatomic, strong) SentryOptionsObjC *optionsInternal; @property (nonatomic, strong, readonly) SentryOptions *options; @@ -30,7 +30,7 @@ SENTRY_NO_INIT * @param options Options dictionary * @return An initialized @c SentryClient or @c nil if an error occurred. */ -- (_Nullable instancetype)initWithOptions:(SentryOptionsInternal *)options; +- (_Nullable instancetype)initWithOptions:(SentryOptionsObjC *)options; /** * Captures a manually created event and sends it to Sentry. @@ -113,7 +113,7 @@ SENTRY_NO_INIT - (void)flush:(NSTimeInterval)timeout NS_SWIFT_NAME(flush(timeout:)); /** - * Disables the client and calls flush with @c SentryOptionsInternal.shutdownTimeInterval . + * Disables the client and calls flush with @c SentryOptions.shutdownTimeInterval . */ - (void)close; diff --git a/Sources/Sentry/include/SentryDefaultAppStateManager.h b/Sources/Sentry/include/SentryDefaultAppStateManager.h index 1bb88780033..5a64fce79e8 100644 --- a/Sources/Sentry/include/SentryDefaultAppStateManager.h +++ b/Sources/Sentry/include/SentryDefaultAppStateManager.h @@ -4,6 +4,7 @@ @class SentryCrashWrapper; @class SentryDispatchQueueWrapper; @class SentryFileManager; +@class SentryOptions; @protocol SentryNSNotificationCenterWrapper; diff --git a/Sources/Sentry/include/SentryDefaultThreadInspector.h b/Sources/Sentry/include/SentryDefaultThreadInspector.h index 0fc9c4b66dc..83d3c9c1bad 100644 --- a/Sources/Sentry/include/SentryDefaultThreadInspector.h +++ b/Sources/Sentry/include/SentryDefaultThreadInspector.h @@ -1,8 +1,8 @@ #import "SentryCrashThread.h" #import "SentryDefines.h" +#import "SentryOptionsObjC.h" #import -@class SentryOptionsInternal; @class SentryStacktrace; @class SentryStacktraceBuilder; @class SentryThread; @@ -18,7 +18,7 @@ SENTRY_NO_INIT andMachineContextWrapper:(id)machineContextWrapper symbolicate:(BOOL)symbolicate; -- (instancetype)initWithOptions:(SentryOptionsInternal *_Nullable)options; +- (instancetype)initWithOptions:(SentryOptionsObjC *_Nullable)options; - (nullable SentryStacktrace *)stacktraceForCurrentThreadAsyncUnsafe; diff --git a/Sources/Sentry/include/SentryFileManagerHelper.h b/Sources/Sentry/include/SentryFileManagerHelper.h index 23eab13cc15..07da5fa632a 100644 --- a/Sources/Sentry/include/SentryFileManagerHelper.h +++ b/Sources/Sentry/include/SentryFileManagerHelper.h @@ -1,4 +1,5 @@ #import "SentryDefines.h" +#import "SentryOptionsObjC.h" #import "SentryProfilingConditionals.h" NS_ASSUME_NONNULL_BEGIN @@ -8,7 +9,6 @@ NS_ASSUME_NONNULL_BEGIN @class SentryEvent; @class SentryEnvelope; @class SentryEnvelopeItem; -@class SentryOptionsInternal; @class SentrySession; @protocol SentryCurrentDateProvider; @@ -33,7 +33,7 @@ SENTRY_NO_INIT @property (nonatomic, copy, nullable) void (^handleEnvelopesLimit)(void); -- (nullable instancetype)initWithOptions:(SentryOptionsInternal *_Nullable)options +- (nullable instancetype)initWithOptions:(SentryOptionsObjC *_Nullable)options error:(NSError **)error NS_DESIGNATED_INITIALIZER; #pragma mark - Envelope diff --git a/Sources/Sentry/include/SentryOptionsConverter.h b/Sources/Sentry/include/SentryOptionsConverter.h deleted file mode 100644 index da0498c5261..00000000000 --- a/Sources/Sentry/include/SentryOptionsConverter.h +++ /dev/null @@ -1,16 +0,0 @@ -#import - -@class SentryOptionsInternal; -@class SentryOptions; - -NS_ASSUME_NONNULL_BEGIN - -@interface SentryOptionsConverter : NSObject - -+ (SentryOptions *)fromInternal:(SentryOptionsInternal *)internalOptions; - -+ (SentryOptionsInternal *)toInternal:(SentryOptions *)internalOptions; - -@end - -NS_ASSUME_NONNULL_END diff --git a/Sources/Sentry/include/SentryOptionsInternal+Private.h b/Sources/Sentry/include/SentryOptionsInternal+Private.h deleted file mode 100644 index 448fefd4e2a..00000000000 --- a/Sources/Sentry/include/SentryOptionsInternal+Private.h +++ /dev/null @@ -1,19 +0,0 @@ -#if __has_include() -# import -#else -# import "SentryOptionsInternal.h" -#endif - -NS_ASSUME_NONNULL_BEGIN - -FOUNDATION_EXPORT NSString *const kSentryDefaultEnvironment; - -@interface SentryOptionsInternal () -#if SENTRY_TARGET_PROFILING_SUPPORTED -@property (nonatomic, assign) BOOL enableProfiling_DEPRECATED_TEST_ONLY; - -#endif // SENTRY_TARGET_PROFILING_SUPPORTED - -@end - -NS_ASSUME_NONNULL_END diff --git a/Sources/Sentry/include/SentryOptionsInternal.h b/Sources/Sentry/include/SentryOptionsInternal.h deleted file mode 100644 index bf8778d90b5..00000000000 --- a/Sources/Sentry/include/SentryOptionsInternal.h +++ /dev/null @@ -1,675 +0,0 @@ -#if __has_include() -# import -#elif __has_include() -# import -#else -# import -#endif -#import SENTRY_HEADER(SentryProfilingConditionals) - -NS_ASSUME_NONNULL_BEGIN - -@class SentryDsn; -@class SentryHttpStatusCodeRange; -@class SentryMeasurementValue; -@class SentryExperimentalOptions; -@class SentryReplayOptions; -#if SENTRY_TARGET_PROFILING_SUPPORTED -@class SentryProfileOptions; -#endif // SENTRY_TARGET_PROFILING_SUPPORTED -@class SentryScope; -@class SentryViewScreenshotOptions; -@class SentryOptions; - -@interface SentryOptionsInternal : NSObject - -+ (nullable SentryOptions *)initWithDict:(NSDictionary *)options - didFailWithError:(NSError *_Nullable *_Nullable)error; - -/** - * The DSN tells the SDK where to send the events to. If this value is not provided, the SDK will - * not send any events. - */ -@property (nullable, nonatomic, strong) NSString *dsn; - -/** - * The parsed internal DSN. - */ -@property (nullable, nonatomic, strong) SentryDsn *parsedDsn; - -/** - * Turns debug mode on or off. If debug is enabled SDK will attempt to print out useful debugging - * information if something goes wrong. - * @note Default is @c NO. - */ -@property (nonatomic, assign) BOOL debug; - -/** - * Minimum LogLevel to be used if debug is enabled. - * @note Default is @c kSentryLevelDebug. - */ -@property (nonatomic, assign) SentryLevel diagnosticLevel; - -/** - * This property will be filled before the event is sent. - */ -@property (nullable, nonatomic, copy) NSString *releaseName; - -/** - * The distribution of the application. - * @discussion Distributions are used to disambiguate build or deployment variants of the same - * release of an application. For example, the @c dist can be the build number of an Xcode build. - * - */ -@property (nullable, nonatomic, copy) NSString *dist; - -/** - * The environment used for events if no environment is set on the current scope. - * @note Default value is @c @"production". - */ -@property (nonatomic, copy) NSString *environment; - -/** - * Specifies wether this SDK should send events to Sentry. If set to @c NO events will be - * dropped in the client and not sent to Sentry. Default is @c YES. - */ -@property (nonatomic, assign) BOOL enabled; - -/** - * Controls the flush duration when calling @c SentrySDK/close . - */ -@property (nonatomic, assign) NSTimeInterval shutdownTimeInterval; - -/** - * When enabled, the SDK sends crashes to Sentry. - * @note Disabling this feature disables the @c SentryWatchdogTerminationTrackingIntegration , - * because - * @c SentryWatchdogTerminationTrackingIntegration would falsely report every crash as watchdog - * termination. - * @note Default value is @c YES . - * @note Crash reporting is automatically disabled if a debugger is attached. - */ -@property (nonatomic, assign) BOOL enableCrashHandler; - -#if TARGET_OS_OSX - -/** - * When enabled, the SDK captures uncaught NSExceptions. As this feature uses swizzling, disabling - * @c enableSwizzling also disables this feature. - * - * @discussion This option registers the `NSApplicationCrashOnExceptions` UserDefault, - * so your macOS application crashes when an uncaught exception occurs. As the Cocoa Frameworks are - * generally not exception-safe on macOS, we recommend this approach because the application could - * otherwise end up in a corrupted state. - * - * @warning Don't use this in combination with `SentryCrashExceptionApplication`. Either enable this - * feature or use the `SentryCrashExceptionApplication`. Having both enabled can lead to duplicated - * reports. - * - * @note Default value is @c NO . - */ -@property (nonatomic, assign) BOOL enableUncaughtNSExceptionReporting; - -#endif // TARGET_OS_OSX - -#if !TARGET_OS_WATCH - -/** - * When enabled, the SDK reports SIGTERM signals to Sentry. - * - * It's crucial for developers to understand that the OS sends a SIGTERM to their app as a prelude - * to a graceful shutdown, before resorting to a SIGKILL. This SIGKILL, which your app can't catch - * or ignore, is a direct order to terminate your app's process immediately. Developers should be - * aware that their app can receive a SIGTERM in various scenarios, such as CPU or disk overuse, - * watchdog terminations, or when the OS updates your app. - * - * @note The default value is @c NO. - */ -@property (nonatomic, assign) BOOL enableSigtermReporting; - -#endif // !TARGET_OS_WATCH - -/** - * How many breadcrumbs do you want to keep in memory? - * @note Default is @c 100 . - */ -@property (nonatomic, assign) NSUInteger maxBreadcrumbs; - -/** - * When enabled, the SDK adds breadcrumbs for each network request. As this feature uses swizzling, - * disabling @c enableSwizzling also disables this feature. - * @discussion If you want to enable or disable network tracking for performance monitoring, please - * use @c enableNetworkTracking instead. - * @note Default value is @c YES . - */ -@property (nonatomic, assign) BOOL enableNetworkBreadcrumbs; - -/** - * The maximum number of envelopes to keep in cache. - * @note Default is @c 30 . - */ -@property (nonatomic, assign) NSUInteger maxCacheItems; - -/** - * This block can be used to modify the event before it will be serialized and sent. - */ -@property (nullable, nonatomic, copy) SentryBeforeSendEventCallback beforeSend NS_SWIFT_SENDABLE; - -/** - * Use this callback to drop or modify a span before the SDK sends it to Sentry. Return @c nil to - * drop the span. - */ -@property (nullable, nonatomic, copy) SentryBeforeSendSpanCallback beforeSendSpan NS_SWIFT_SENDABLE; - -/** - * When enabled, the SDK sends logs to Sentry. Logs can be captured using the @c SentrySDK.logger - * API, which provides structured logging with attributes. - * @note Default value is @c NO . - */ -@property (nonatomic, assign) BOOL enableLogs; - -/** - * This block can be used to modify the event before it will be serialized and sent. - */ -@property (nullable, nonatomic, copy) - SentryBeforeBreadcrumbCallback beforeBreadcrumb NS_SWIFT_SENDABLE; - -/** - * You can use this callback to decide if the SDK should capture a screenshot or not. Return @c true - * if the SDK should capture a screenshot, return @c false if not. This callback doesn't work for - * crashes. - */ -@property (nullable, nonatomic, copy) - SentryBeforeCaptureScreenshotCallback beforeCaptureScreenshot NS_SWIFT_SENDABLE; - -/** - * You can use this callback to decide if the SDK should capture a view hierarchy or not. Return @c - * true if the SDK should capture a view hierarchy, return @c false if not. This callback doesn't - * work for crashes. - */ -@property (nullable, nonatomic, copy) - SentryBeforeCaptureScreenshotCallback beforeCaptureViewHierarchy NS_SWIFT_SENDABLE; - -/** - * A block called shortly after the initialization of the SDK when the last program execution - * terminated with a crash. - * @discussion This callback is only executed once during the entire run of the program to avoid - * multiple callbacks if there are multiple crash events to send. This can happen when the program - * terminates with a crash before the SDK can send the crash event. You can look into @c beforeSend - * if you prefer a callback for every event. - * @warning It is not guaranteed that this is called on the main thread. - * @note Crash reporting is automatically disabled if a debugger is attached. - */ -@property (nullable, nonatomic, copy) - SentryOnCrashedLastRunCallback onCrashedLastRun NS_SWIFT_SENDABLE; - -/** - * Indicates the percentage of events being sent to Sentry. - * @discussion Specifying @c 0 discards all events, @c 1.0 or @c nil sends all events, @c 0.01 - * collects 1% of all events. - * @note The value needs to be >= @c 0.0 and \<= @c 1.0. When setting a value out of range the SDK - * sets it to the default of @c 1.0. - * @note The default is @c 1 . - */ -@property (nullable, nonatomic, copy) NSNumber *sampleRate; - -/** - * Whether to enable automatic session tracking or not. - * @note Default is @c YES. - */ -@property (nonatomic, assign) BOOL enableAutoSessionTracking; - -/** - * Whether to attach the top level `operationName` node of HTTP json requests to HTTP breadcrumbs - * @note Default is @c NO. - */ -@property (nonatomic, assign) BOOL enableGraphQLOperationTracking; - -/** - * Whether to enable Watchdog Termination tracking or not. - * @note This feature requires the @c SentryCrashIntegration being enabled, otherwise it would - * falsely report every crash as watchdog termination. - * @note Default is @c YES. - */ -@property (nonatomic, assign) BOOL enableWatchdogTerminationTracking; - -/** - * The interval to end a session after the App goes to the background. - * @note The default is 30 seconds. - */ -@property (nonatomic, assign) NSUInteger sessionTrackingIntervalMillis; - -/** - * When enabled, stack traces are automatically attached to all messages logged. Stack traces are - * always attached to exceptions but when this is set stack traces are also sent with messages. - * Stack traces are only attached for the current thread. - * @note This feature is enabled by default. - */ -@property (nonatomic, assign) BOOL attachStacktrace; - -/** - * The maximum size for each attachment in bytes. - * @note Default is 100 MiB (100 ✕ 1024 ✕ 1024 bytes). - * @note Please also check the maximum attachment size of relay to make sure your attachments don't - * get discarded there: - * https://docs.sentry.io/product/relay/options/ - */ -@property (nonatomic, assign) NSUInteger maxAttachmentSize; - -/** - * When enabled, the SDK sends personal identifiable along with events. - * @note The default is @c NO . - * @discussion When the user of an event doesn't contain an IP address, and this flag is - * @c YES, the SDK sets sdk.settings.infer_ip to @c auto to instruct the server to use the - * connection IP address as the user address. Due to backward compatibility concerns, Sentry sets - * sdk.settings.infer_ip to @c auto out of the box for Cocoa. If you want to stop Sentry from - * using the connections IP address, you have to enable Prevent Storing of IP Addresses in your - * project settings in Sentry. - */ -@property (nonatomic, assign) BOOL sendDefaultPii; - -/** - * When enabled, the SDK tracks performance for UIViewController subclasses and HTTP requests - * automatically. It also measures the app start and slow and frozen frames. - * @note The default is @c YES . - * @note Performance Monitoring must be enabled for this flag to take effect. See: - * https://docs.sentry.io/platforms/apple/performance/ - */ -@property (nonatomic, assign) BOOL enableAutoPerformanceTracing; - -/** - * @warning This is an experimental feature and may still have bugs. - * - * When enabled, the SDK finishes the ongoing transaction bound to the scope and links them to the - * crash event when your app crashes. The SDK skips adding profiles to increase the chance of - * keeping the transaction. - * - * @note The default is @c NO . - */ -@property (nonatomic, assign) BOOL enablePersistingTracesWhenCrashing; - -/** - * A block that configures the initial scope when starting the SDK. - * @discussion The block receives a suggested default scope. You can either - * configure and return this, or create your own scope instead. - * @note The default simply returns the passed in scope. - */ -@property (nonatomic) SentryScope * (^initialScope)(SentryScope *); - -#if SENTRY_HAS_UIKIT -/** - * When enabled, the SDK tracks performance for UIViewController subclasses. - * @warning This feature is not available in @c DebugWithoutUIKit and @c ReleaseWithoutUIKit - * configurations even when targeting iOS or tvOS platforms. - * @note The default is @c YES . - */ -@property (nonatomic, assign) BOOL enableUIViewControllerTracing; - -/** - * When enabled the SDK reports non-fully-blocking app hangs. A non-fully-blocking app hang is when - * the app appears stuck to the user but can still render a few frames. - * - * @note The default is @c YES. - */ -@property (nonatomic, assign) BOOL enableReportNonFullyBlockingAppHangs; - -/** - * Automatically attaches a screenshot when capturing an error or exception. - * @warning This feature is not available in @c DebugWithoutUIKit and @c ReleaseWithoutUIKit - * configurations even when targeting iOS or tvOS platforms. - * @note Default value is @c NO . - */ -@property (nonatomic, assign) BOOL attachScreenshot; - -/** - * Settings to configure screenshot attachments. - */ -@property (nonatomic, nonnull, strong) SentryViewScreenshotOptions *screenshot; - -/** - * @warning This is an experimental feature and may still have bugs. - * @brief Automatically attaches a textual representation of the view hierarchy when capturing an - * error event. - * @warning This feature is not available in @c DebugWithoutUIKit and @c ReleaseWithoutUIKit - * configurations even when targeting iOS or tvOS platforms. - * @note Default value is @c NO . - */ -@property (nonatomic, assign) BOOL attachViewHierarchy; - -/** - * @brief If enabled, view hierarchy attachment will contain view `accessibilityIdentifier`. - * Set it to @c NO if your project uses `accessibilityIdentifier` for PII. - * @warning This feature is not available in @c DebugWithoutUIKit and @c ReleaseWithoutUIKit - * configurations even when targeting iOS or tvOS platforms. - * @note Default value is @c YES. - */ -@property (nonatomic, assign) BOOL reportAccessibilityIdentifier; - -/** - * When enabled, the SDK creates transactions for UI events like buttons clicks, switch toggles, - * and other ui elements that uses UIControl @c sendAction:to:forEvent: - * @warning This feature is not available in @c DebugWithoutUIKit and @c ReleaseWithoutUIKit - * configurations even when targeting iOS or tvOS platforms. - * @note Default value is @c YES . - */ -@property (nonatomic, assign) BOOL enableUserInteractionTracing; - -/** - * How long an idle transaction waits for new children after all its child spans finished. Only UI - * event transactions are idle transactions. - * @warning This feature is not available in @c DebugWithoutUIKit and @c ReleaseWithoutUIKit - * configurations even when targeting iOS or tvOS platforms. - * @note The default is 3 seconds. - */ -@property (nonatomic, assign) NSTimeInterval idleTimeout; - -/** - * Report pre-warmed app starts by dropping the first app start spans if pre-warming paused - * during these steps. This approach will shorten the app start duration, but it represents the - * duration a user has to wait after clicking the app icon until the app is responsive. - * - * @note You can filter for different app start types in Discover with - * @c app_start_type:cold.prewarmed , - * @c app_start_type:warm.prewarmed , @c app_start_type:cold , and @c app_start_type:warm . - * - * @warning This feature is not available in @c DebugWithoutUIKit and @c ReleaseWithoutUIKit - * configurations even when targeting iOS or tvOS platforms. - * - * @note Default value is @c YES . - */ -@property (nonatomic, assign) BOOL enablePreWarmedAppStartTracing; - -#endif // SENTRY_HAS_UIKIT - -/** - * When enabled, the SDK tracks performance for HTTP requests if auto performance tracking and - * @c enableSwizzling are enabled. - * @note The default is @c YES . - * @discussion If you want to enable or disable network breadcrumbs, please use - * @c enableNetworkBreadcrumbs instead. - */ -@property (nonatomic, assign) BOOL enableNetworkTracking; - -/** - * When enabled, the SDK tracks performance for file IO reads and writes with NSData if auto - * performance tracking and enableSwizzling are enabled. - * @note The default is @c YES . - */ -@property (nonatomic, assign) BOOL enableFileIOTracing; - -/** - * When enabled, the SDK tracks performance for file IO reads and writes with NSData if auto - * performance tracking and enableSwizzling are enabled. - * @note The default is @c YES . - */ -@property (nonatomic, assign) BOOL enableDataSwizzling; - -/** - * When enabled, the SDK tracks performance for file IO operations with NSFileManager if auto - * performance tracking and enableSwizzling are enabled. - * @note The default is @c NO . - */ -@property (nonatomic, assign) BOOL enableFileManagerSwizzling; - -/** - * Indicates the percentage of the tracing data that is collected. - * @discussion Specifying @c 0 or @c nil discards all trace data, @c 1.0 collects all trace data, - * @c 0.01 collects 1% of all trace data. - * @note The value needs to be >= 0.0 and \<= 1.0. When setting a value out of range the SDK sets it - * to the default. - * @note The default is @c 0 . - */ -@property (nullable, nonatomic, strong) NSNumber *tracesSampleRate; - -/** - * A callback to a user defined traces sampler function. - * @discussion Specifying @c 0 or @c nil discards all trace data, @c 1.0 collects all trace data, - * @c 0.01 collects 1% of all trace data. - * @note The value needs to be >= 0.0 and \<= 1.0. When setting a value out of range the SDK sets it - * to the default of @c 0 . - */ -@property (nullable, nonatomic) SentryTracesSamplerCallback tracesSampler NS_SWIFT_SENDABLE; - -/** - * If tracing is enabled or not. - * @discussion @c YES if @c tracesSampleRateis > @c 0 and \<= @c 1 - * or a @c tracesSampler is set, otherwise @c NO. - */ -@property (nonatomic, assign, readonly) BOOL isTracingEnabled; - -/** - * A list of string prefixes of framework names that belong to the app. - * @note By default, this contains @c CFBundleExecutable to mark it as "in-app". - */ -@property (nonatomic, copy) NSArray *inAppIncludes; - -/** - * Set as delegate on the @c NSURLSession used for all network data-transfer tasks performed by - * Sentry. - * - * @discussion The SDK ignores this option when using @c urlSession. - */ -@property (nullable, nonatomic, weak) id urlSessionDelegate; - -/** - * Use this property, so the transport uses this @c NSURLSession with your configuration for - * sending requests to Sentry. - * - * If not set, the SDK will create a new @c NSURLSession with @c [NSURLSessionConfiguration - * ephemeralSessionConfiguration]. - * - * @note Default is @c nil. - */ -@property (nullable, nonatomic, strong) NSURLSession *urlSession; - -/** - * Wether the SDK should use swizzling or not. - * @discussion When turned off the following features are disabled: breadcrumbs for touch events and - * navigation with @c UIViewControllers, automatic instrumentation for @c UIViewControllers, - * automatic instrumentation for HTTP requests, automatic instrumentation for file IO with - * @c NSData, and automatically added sentry-trace header to HTTP requests for distributed tracing. - * @note Default is @c YES. - */ -@property (nonatomic, assign) BOOL enableSwizzling; - -/** - * A set of class names to ignore for swizzling. - * - * @discussion The SDK checks if a class name of a class to swizzle contains a class name of this - * array. For example, if you add MyUIViewController to this list, the SDK excludes the following - * classes from swizzling: YourApp.MyUIViewController, YourApp.MyUIViewControllerA, - * MyApp.MyUIViewController. - * We can't use an @c NSSet here because we use this as a workaround for which users have - * to pass in class names that aren't available on specific iOS versions. By using @c - * NSSet, users can specify unavailable class names. - * - * @note Default is an empty set. - */ -@property (nonatomic, strong) NSSet *swizzleClassNameExcludes; - -/** - * When enabled, the SDK tracks the performance of Core Data operations. It requires enabling - * performance monitoring. The default is @c YES. - * @see - */ -@property (nonatomic, assign) BOOL enableCoreDataTracing; - -#if SENTRY_TARGET_PROFILING_SUPPORTED - -/** - * Configuration for the Sentry profiler. - * @warning: Continuous profiling is an experimental feature and may still contain bugs. - * @warning: Profiling is automatically disabled if a thread sanitizer is attached. - */ -@property (nullable, nonatomic, copy) SentryProfileOptions * (^configureProfiling) - (SentryProfileOptions *); - -#endif // SENTRY_TARGET_PROFILING_SUPPORTED - -/** - * Whether to send client reports, which contain statistics about discarded events. - * @note The default is @c YES. - * @see - */ -@property (nonatomic, assign) BOOL sendClientReports; - -/** - * When enabled, the SDK tracks when the application stops responding for a specific amount of - * time defined by the @c appHangTimeoutInterval option. - * - * On iOS, tvOS and visionOS, the SDK can differentiate between fully-blocking and non-fully - blocking app hangs. - * A fully-blocking app hang is when the main thread is stuck completely, and the app can't render a - * single frame. A non-fully-blocking app hang is when the app appears stuck to the user but can - still - * render a few frames. Fully-blocking app hangs are more actionable because the stacktrace shows - the - * exact blocking location on the main thread. As the main thread isn't completely blocked, - * non-fully-blocking app hangs can have a stacktrace that doesn't highlight the exact blocking - * location. - * - * You can use @c enableReportNonFullyBlockingAppHangs to ignore non-fully-blocking app hangs. - * - * @note The default is @c YES - * @note App Hang tracking is automatically disabled if a debugger is attached. - */ -@property (nonatomic, assign) BOOL enableAppHangTracking; - -/** - * The minimum amount of time an app should be unresponsive to be classified as an App Hanging. - * @note The actual amount may be a little longer. - * @note Avoid using values lower than 100ms, which may cause a lot of app hangs events being - * transmitted. - * @note The default value is 2 seconds. - */ -@property (nonatomic, assign) NSTimeInterval appHangTimeoutInterval; - -/** - * When enabled, the SDK adds breadcrumbs for various system events. - * @note Default value is @c YES. - */ -@property (nonatomic, assign) BOOL enableAutoBreadcrumbTracking; - -/** - * When enabled, the SDK propagates the W3C Trace Context HTTP header traceparent on outgoing HTTP - * requests. - * - * @discussion This is useful when the receiving services only support OTel/W3C propagation. The - * traceparent header is only sent when this option is @c YES and the request matches @c - * tracePropagationTargets. - * - * @note Default value is @c NO. - */ -@property (nonatomic, assign) BOOL enablePropagateTraceparent; - -/** - * An array of hosts or regexes that determines if outgoing HTTP requests will get - * extra @c trace_id and @c baggage headers added. - * @discussion This array can contain instances of @c NSString which should match the URL (using - * @c contains ), and instances of @c NSRegularExpression, which will be used to check the whole - * URL. - * @note The default value adds the header to all outgoing requests. - * @see https://docs.sentry.io/platforms/apple/configuration/options/#trace-propagation-targets - */ -@property (nonatomic, retain) NSArray *tracePropagationTargets; - -/** - * When enabled, the SDK captures HTTP Client errors. - * @note This feature requires @c enableSwizzling enabled as well. - * @note Default value is @c YES. - */ -@property (nonatomic, assign) BOOL enableCaptureFailedRequests; - -/** - * The SDK will only capture HTTP Client errors if the HTTP Response status code is within the - * defined range. - * @note Defaults to 500 - 599. - */ -@property (nonatomic, strong) NSArray *failedRequestStatusCodes; - -/** - * An array of hosts or regexes that determines if HTTP Client errors will be automatically - * captured. - * @discussion This array can contain instances of @c NSString which should match the URL (using - * @c contains ), and instances of @c NSRegularExpression, which will be used to check the whole - * URL. - * @note The default value automatically captures HTTP Client errors of all outgoing requests. - */ -@property (nonatomic, strong) NSArray *failedRequestTargets; - -#if SENTRY_HAS_METRIC_KIT - -/** - * Use this feature to enable the Sentry MetricKit integration. - * - * @brief When enabled, the SDK sends @c MXDiskWriteExceptionDiagnostic, @c MXCPUExceptionDiagnostic - * and - * @c MXHangDiagnostic to Sentry. The SDK supports this feature from iOS 15 and later and macOS 12 - * and later because, on these versions, @c MetricKit delivers diagnostic reports immediately, which - * allows the Sentry SDK to apply the current data from the scope. - * @note This feature is disabled by default. - */ -@property (nonatomic, assign) BOOL enableMetricKit API_UNAVAILABLE(tvos, watchos); - -/** - * When enabled, the SDK adds the raw MXDiagnosticPayloads as an attachment to the converted - * SentryEvent. You need to enable @c enableMetricKit for this flag to work. - * - * @note Default value is @c NO. - */ -@property (nonatomic, assign) BOOL enableMetricKitRawPayload API_UNAVAILABLE(tvos, watchos); - -#endif // SENTRY_HAS_METRIC_KIT - -/** - * @warning This is an experimental feature and may still have bugs. - * @brief By enabling this, every UIViewController tracing transaction will wait - * for a call to @c SentrySDK.reportFullyDisplayed(). - * @discussion Use this in conjunction with @c enableUIViewControllerTracing. - * If @c SentrySDK.reportFullyDisplayed() is not called, the transaction will finish - * automatically after 30 seconds and the `Time to full display` Span will be - * finished with @c DeadlineExceeded status. - * @note Default value is `NO`. - */ -@property (nonatomic) BOOL enableTimeToFullDisplayTracing; - -/** - * This feature is only available from Xcode 13 and from macOS 12.0, iOS 15.0, tvOS 15.0, - * watchOS 8.0. - * - * @warning This is an experimental feature and may still have bugs. - * @brief Stitches the call to Swift Async functions in one consecutive stack trace. - * @note Default value is @c NO . - */ -@property (nonatomic, assign) BOOL swiftAsyncStacktraces; - -/** - * The path to store SDK data, like events, transactions, profiles, raw crash data, etc. We - recommend only changing this when the default, e.g., in security environments, can't be accessed. - * - * @note The default is `NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, - YES)`. - */ -@property (nonatomic, copy) NSString *cacheDirectoryPath; - -/** - * Whether to enable Spotlight for local development. For more information see - * https://spotlightjs.com/. - * - * @note Only set this option to @c YES while developing, not in production! - */ -@property (nonatomic, assign) BOOL enableSpotlight; - -/** - * The Spotlight URL. Defaults to http://localhost:8969/stream. For more information see - * https://spotlightjs.com/ - */ -@property (nonatomic, copy) NSString *spotlightUrl; - -// Do not use this directly, instead use the non-underscored `experimental` property that is -// defined through a Swift extension. -@property (nonatomic) NSObject *_swiftExperimentalOptions; - -@end - -NS_ASSUME_NONNULL_END diff --git a/Sources/Sentry/include/SentryOptionsObjC.h b/Sources/Sentry/include/SentryOptionsObjC.h new file mode 100644 index 00000000000..253cb04515d --- /dev/null +++ b/Sources/Sentry/include/SentryOptionsObjC.h @@ -0,0 +1 @@ +@compatibility_alias SentryOptionsObjC NSObject; diff --git a/Sources/Sentry/include/SentryPrivate.h b/Sources/Sentry/include/SentryPrivate.h index 2c8cdc5ed46..f52b42246e8 100644 --- a/Sources/Sentry/include/SentryPrivate.h +++ b/Sources/Sentry/include/SentryPrivate.h @@ -47,8 +47,6 @@ #import "SentryMeta.h" #import "SentryMsgPackSerializer.h" #import "SentryNSDictionarySanitize.h" -#import "SentryOptionsInternal+Private.h" -#import "SentryOptionsInternal.h" #import "SentryPerformanceTracker.h" #import "SentryProfiler+Private.h" #import "SentrySDKInternal.h" diff --git a/Sources/Sentry/include/SentryProfilingSwiftHelpers.h b/Sources/Sentry/include/SentryProfilingSwiftHelpers.h index daf4bb23530..ea69ff317cd 100644 --- a/Sources/Sentry/include/SentryProfilingSwiftHelpers.h +++ b/Sources/Sentry/include/SentryProfilingSwiftHelpers.h @@ -45,6 +45,8 @@ NSTimer *sentry_scheduledTimerWithTarget( NSTimeInterval interval, id target, SEL selector, _Nullable id userInfo, BOOL repeats); #if SENTRY_HAS_UIKIT +BOOL sentry_appHangsDisabled(void); +BOOL sentry_autoPerformanceTracingDisabled(void); void sentry_startFramesTracker(void); void sentry_stopFramesTracker(void); void sentry_framesTrackerResetProfilingTimestamps(void); diff --git a/Sources/Sentry/include/SentrySDK+Private.h b/Sources/Sentry/include/SentrySDK+Private.h index dbcd441adca..c85c1487ec0 100644 --- a/Sources/Sentry/include/SentrySDK+Private.h +++ b/Sources/Sentry/include/SentrySDK+Private.h @@ -1,4 +1,4 @@ -#if __has_include() +#if __has_include() # import #else # import "SentryProfilingConditionals.h" @@ -14,7 +14,6 @@ @class SentryEnvelope; @class SentryFeedback; @class SentryOptions; -@class SentryOptionsInternal; @class SentryId; @class SentryHubInternal; @@ -50,7 +49,7 @@ NS_ASSUME_NONNULL_BEGIN * The option used to start the SDK */ @property (nonatomic, nullable, readonly, class) SentryOptions *options; -@property (nonatomic, nullable, readonly, class) SentryOptionsInternal *optionsInternal; +@property (nonatomic, nullable, readonly, class) SentryOptionsObjC *optionsInternal; /** * Needed by hybrid SDKs as react-native to synchronously store an envelope to disk. diff --git a/Sources/Sentry/include/SentrySDKInternal.h b/Sources/Sentry/include/SentrySDKInternal.h index e72b8c082e2..5200341a3a7 100644 --- a/Sources/Sentry/include/SentrySDKInternal.h +++ b/Sources/Sentry/include/SentrySDKInternal.h @@ -6,6 +6,7 @@ # import #endif #import SENTRY_HEADER(SentryProfilingConditionals) +#import "SentryOptionsObjC.h" @protocol SentrySpan; @@ -14,7 +15,6 @@ @class SentryFeedback; @class SentryFeedbackAPI; @class SentryId; -@class SentryOptionsInternal; @class SentryReplayApi; @class SentryScope; @class SentryTransactionContext; @@ -56,7 +56,7 @@ SENTRY_NO_INIT * @discussion Call this method on the main thread. When calling it from a background thread, the * SDK starts on the main thread async. */ -+ (void)startWithOptions:(SentryOptionsInternal *)options NS_SWIFT_NAME(start(options:)); ++ (void)startWithOptions:(SentryOptionsObjC *)options NS_SWIFT_NAME(start(options:)); /** * Captures a manually created event and sends it to Sentry. diff --git a/Sources/SentrySwiftUI/SentryInternal/SentryInternal.h b/Sources/SentrySwiftUI/SentryInternal/SentryInternal.h index 7c0d3398d7d..523f6ba185d 100644 --- a/Sources/SentrySwiftUI/SentryInternal/SentryInternal.h +++ b/Sources/SentrySwiftUI/SentryInternal/SentryInternal.h @@ -125,15 +125,6 @@ typedef NS_ENUM(NSUInteger, SentrySpanStatus); @end -@class SentryReplayOptions; - -@interface SentryOptionsInternal : NSObject - -@property (nonatomic, strong) SentryReplayOptions *sessionReplay; -@property (nonatomic) BOOL enableTimeToFullDisplayTracing; - -@end - @class SentryHubInternal; #if __has_include("SentrySDKInternal.h") @@ -142,9 +133,9 @@ typedef NS_ENUM(NSUInteger, SentrySpanStatus); @interface SentrySDKInternal : NSObject #endif -@property (nonatomic, nullable, readonly, class) SentryOptionsInternal *options; +@property (nonatomic, nullable, readonly, class) SentryOptions *options; + (void)setCurrentHub:(nullable SentryHubInternal *)hub; -+ (void)setStartOptions:(nullable SentryOptionsInternal *)options NS_SWIFT_NAME(setStart(with:)); ++ (void)setStartOptions:(nullable SentryOptions *)options NS_SWIFT_NAME(setStart(with:)); @end diff --git a/Sources/Swift/Helper/SentryLog+SPM.swift b/Sources/Swift/Helper/SentryLog+SPM.swift deleted file mode 100644 index ea7309841cc..00000000000 --- a/Sources/Swift/Helper/SentryLog+SPM.swift +++ /dev/null @@ -1,31 +0,0 @@ -@_implementationOnly import _SentryPrivate -import Foundation - -// Swift extensions to provide properly typed log-related APIs for SPM builds. -// In SPM builds, SentryLog is only forward declared in the Objective-C headers, -// which causes Swift-to-Objective-C bridging issues. These extensions work around -// that limitation by providing Swift-native methods and properties that use dynamic -// dispatch internally. - -#if SWIFT_PACKAGE - -/** - * Use this callback to drop or modify a log before the SDK sends it to Sentry. Return `nil` to - * drop the log. - */ -public typealias SentryBeforeSendLogCallback = (SentryLog) -> SentryLog? - -@objc -public extension Options { - /** - * Use this callback to drop or modify a log before the SDK sends it to Sentry. Return `nil` to - * drop the log. - */ - @objc - var beforeSendLog: SentryBeforeSendLogCallback? { - get { return value(forKey: "beforeSendLogDynamic") as? SentryBeforeSendLogCallback } - set { setValue(newValue, forKey: "beforeSendLogDynamic") } - } -} - -#endif // SWIFT_PACKAGE diff --git a/Sources/Swift/Integrations/Performance/SentryUIViewControllerPerformanceTracker.swift b/Sources/Swift/Integrations/Performance/SentryUIViewControllerPerformanceTracker.swift index 7fd25e8ed28..8c673275ace 100644 --- a/Sources/Swift/Integrations/Performance/SentryUIViewControllerPerformanceTracker.swift +++ b/Sources/Swift/Integrations/Performance/SentryUIViewControllerPerformanceTracker.swift @@ -26,7 +26,7 @@ import UIKit @objc private let helper: SentryDefaultUIViewControllerPerformanceTracker override init() { - let options = SentrySDKInternal.options + let options = SentrySDKInternal.optionsInternal?.toOptions() inAppLogic = SentryInAppLogic(inAppIncludes: options?.inAppIncludes ?? []) helper = SentryDefaultUIViewControllerPerformanceTracker(tracker: SentryPerformanceTracker.shared) } diff --git a/Sources/Swift/Integrations/SessionReplay/SentryReplayOptions.swift b/Sources/Swift/Integrations/SessionReplay/SentryReplayOptions.swift index 14871549eca..a0cade08a76 100644 --- a/Sources/Swift/Integrations/SessionReplay/SentryReplayOptions.swift +++ b/Sources/Swift/Integrations/SessionReplay/SentryReplayOptions.swift @@ -1,5 +1,4 @@ // swiftlint:disable file_length -@_implementationOnly import _SentryPrivate import Foundation @objcMembers @@ -398,21 +397,4 @@ public final class SentryReplayOptions: NSObject, SentryRedactOptions { super.init() } } - -// Makes the `sessionReplay` property visible as the Swift type `SentrySessionReplay`. -// This works around `SentrySessionReplay` being only forward declared in the objc header, resulting in -// compile time issues with SPM builds. -extension SentryOptionsInternal { - - /// Settings to configure the session replay. - var sessionReplay: SentryReplayOptions { - // Note: This property provides SentrySessionReplay type safety for SPM builds where the native Objective-C - // property cannot be used due to Swift-to-Objective-C bridging limitations. - // swiftlint:disable force_cast - get { return value(forKey: "sessionReplayDynamic") as! SentryReplayOptions } - // swiftlint:enable force_cast - set { setValue(newValue, forKey: "sessionReplayDynamic") } - } -} - // swiftlint:enable file_length diff --git a/Sources/Swift/Integrations/UserFeedback/Configuration/SentryUserFeedbackConfiguration.swift b/Sources/Swift/Integrations/UserFeedback/Configuration/SentryUserFeedbackConfiguration.swift index 2fbfbb32c9a..fc59add3095 100644 --- a/Sources/Swift/Integrations/UserFeedback/Configuration/SentryUserFeedbackConfiguration.swift +++ b/Sources/Swift/Integrations/UserFeedback/Configuration/SentryUserFeedbackConfiguration.swift @@ -1,4 +1,3 @@ -@_implementationOnly import _SentryPrivate import Foundation #if os(iOS) && !SENTRY_NO_UIKIT import UIKit @@ -145,15 +144,4 @@ public final class SentryUserFeedbackConfiguration: NSObject { let margin: CGFloat = 32 } -extension SentryOptionsInternal { - var userFeedbackConfiguration: SentryUserFeedbackConfiguration? { - // Note: This property provides SentryUserFeedbackConfiguration type safety for SPM builds where the native Objective-C - // property cannot be used due to Swift-to-Objective-C bridging limitations. - // swiftlint:disable force_cast - get { return value(forKey: "userFeedbackDynamic") as! SentryUserFeedbackConfiguration? } - // swiftlint:enable force_cast - set { setValue(newValue, forKey: "userFeedbackDynamic") } - } -} - #endif // os(iOS) && !SENTRY_NO_UIKIT diff --git a/Sources/Swift/Options+Internal.swift b/Sources/Swift/Options+Internal.swift deleted file mode 100644 index fa09e06fedc..00000000000 --- a/Sources/Swift/Options+Internal.swift +++ /dev/null @@ -1,153 +0,0 @@ -@_implementationOnly import _SentryPrivate - -struct Mapping { - let fromOptions: (Options, inout SentryOptionsInternal) -> Void - let fromOptionsInternal: (SentryOptionsInternal, inout Options) -> Void - - init(optionsPath: WritableKeyPath, internalPath: WritableKeyPath) { - self.fromOptions = { $1[keyPath: internalPath] = $0[keyPath: optionsPath] } - self.fromOptionsInternal = { $1[keyPath: optionsPath] = $0[keyPath: internalPath] } - } -} - -#if os(macOS) -let macOSOnlyMapping = [Mapping(optionsPath: \.enableUncaughtNSExceptionReporting, internalPath: \.enableUncaughtNSExceptionReporting)] -#else -let macOSOnlyMapping = [Mapping]() -#endif - -#if (os(iOS) || os(tvOS) || os(visionOS)) && !SENTRY_NO_UIKIT -let uiKitMapping = [ - Mapping(optionsPath: \.enableUIViewControllerTracing, internalPath: \.enableUIViewControllerTracing), - Mapping(optionsPath: \.attachScreenshot, internalPath: \.attachScreenshot), - // Mapping(optionsPath: \.screenshot, internalPath: \.screenshot), - Mapping(optionsPath: \.attachViewHierarchy, internalPath: \.attachViewHierarchy), - Mapping(optionsPath: \.reportAccessibilityIdentifier, internalPath: \.reportAccessibilityIdentifier), - Mapping(optionsPath: \.enableUserInteractionTracing, internalPath: \.enableUserInteractionTracing), - Mapping(optionsPath: \.idleTimeout, internalPath: \.idleTimeout), - Mapping(optionsPath: \.enablePreWarmedAppStartTracing, internalPath: \.enablePreWarmedAppStartTracing), - Mapping(optionsPath: \.enableReportNonFullyBlockingAppHangs, internalPath: \.enableReportNonFullyBlockingAppHangs) -] -#else -let uiKitMapping = [Mapping]() -#endif - -#if (os(iOS) || os(tvOS)) && !SENTRY_NO_UIKIT -let sessionReplayMapping = [ - Mapping(optionsPath: \.sessionReplay, internalPath: \.sessionReplay) -] -#else -let sessionReplayMapping = [Mapping]() -#endif - -#if !(os(watchOS) || os(tvOS) || os(visionOS)) -let profilingMapping: [Mapping] = [ - // Mapping(optionsPath: \.configureProfiling, internalPath: \.configureProfiling) -] -#else -let profilingMapping = [Mapping]() -#endif - -#if os(iOS) && !SENTRY_NO_UIKIT -let userFeedbackMapping = [Mapping(optionsPath: \.userFeedbackConfiguration, internalPath: \.userFeedbackConfiguration)] -#else -let userFeedbackMapping = [Mapping]() -#endif - -#if canImport(MetricKit) && !os(tvOS) && !os(visionOS) -let metricKitMapping = [ - Mapping(optionsPath: \.enableMetricKit, internalPath: \.enableMetricKit), - Mapping(optionsPath: \.enableMetricKitRawPayload, internalPath: \.enableMetricKitRawPayload) -] -#else -let metricKitMapping = [Mapping]() -#endif - -#if os(watchOS) -let watchMapping = [Mapping]() -#else -let watchMapping = [Mapping(optionsPath: \.enableSigtermReporting, internalPath: \.enableSigtermReporting)] -#endif - -let keyPathMapping = [ - Mapping(optionsPath: \.dsn, internalPath: \.dsn), - Mapping(optionsPath: \.parsedDsn, internalPath: \.parsedDsn), - Mapping(optionsPath: \.debug, internalPath: \.debug), - //Mapping(optionsPath: \.diagnosticLevel, internalPath: \.diagnosticLevel), - Mapping(optionsPath: \.releaseName, internalPath: \.releaseName), - Mapping(optionsPath: \.dist, internalPath: \.dist), - Mapping(optionsPath: \.environment, internalPath: \.environment), - Mapping(optionsPath: \.enabled, internalPath: \.enabled), - Mapping(optionsPath: \.shutdownTimeInterval, internalPath: \.shutdownTimeInterval), - Mapping(optionsPath: \.enableCrashHandler, internalPath: \.enableCrashHandler), - Mapping(optionsPath: \.maxBreadcrumbs, internalPath: \.maxBreadcrumbs), - Mapping(optionsPath: \.enableNetworkBreadcrumbs, internalPath: \.enableNetworkBreadcrumbs), - Mapping(optionsPath: \.maxCacheItems, internalPath: \.maxCacheItems), - Mapping(optionsPath: \.beforeSend, internalPath: \.beforeSend), - Mapping(optionsPath: \.beforeSendSpan, internalPath: \.beforeSendSpan), - Mapping(optionsPath: \.enableLogs, internalPath: \.enableLogs), - Mapping(optionsPath: \.beforeSendLog, internalPath: \.beforeSendLog), - Mapping(optionsPath: \.beforeBreadcrumb, internalPath: \.beforeBreadcrumb), - Mapping(optionsPath: \.beforeCaptureScreenshot, internalPath: \.beforeCaptureScreenshot), - Mapping(optionsPath: \.beforeCaptureViewHierarchy, internalPath: \.beforeCaptureViewHierarchy), - Mapping(optionsPath: \.onCrashedLastRun, internalPath: \.onCrashedLastRun), - Mapping(optionsPath: \.sampleRate, internalPath: \.sampleRate), - Mapping(optionsPath: \.enableAutoSessionTracking, internalPath: \.enableAutoSessionTracking), - Mapping(optionsPath: \.enableGraphQLOperationTracking, internalPath: \.enableGraphQLOperationTracking), - Mapping(optionsPath: \.enableWatchdogTerminationTracking, internalPath: \.enableWatchdogTerminationTracking), - Mapping(optionsPath: \.sessionTrackingIntervalMillis, internalPath: \.sessionTrackingIntervalMillis), - Mapping(optionsPath: \.attachStacktrace, internalPath: \.attachStacktrace), - Mapping(optionsPath: \.maxAttachmentSize, internalPath: \.maxAttachmentSize), - Mapping(optionsPath: \.sendDefaultPii, internalPath: \.sendDefaultPii), - Mapping(optionsPath: \.enableAutoPerformanceTracing, internalPath: \.enableAutoPerformanceTracing), - Mapping(optionsPath: \.enablePersistingTracesWhenCrashing, internalPath: \.enablePersistingTracesWhenCrashing), - Mapping(optionsPath: \.initialScope, internalPath: \.initialScope), - Mapping(optionsPath: \.enableNetworkTracking, internalPath: \.enableNetworkTracking), - Mapping(optionsPath: \.enableFileIOTracing, internalPath: \.enableFileIOTracing), - Mapping(optionsPath: \.enableDataSwizzling, internalPath: \.enableDataSwizzling), - Mapping(optionsPath: \.enableFileManagerSwizzling, internalPath: \.enableFileManagerSwizzling), - Mapping(optionsPath: \.tracesSampleRate, internalPath: \.tracesSampleRate), - Mapping(optionsPath: \.tracesSampler, internalPath: \.tracesSampler), - Mapping(optionsPath: \.inAppIncludes, internalPath: \.inAppIncludes), - Mapping(optionsPath: \.inAppExcludes, internalPath: \.inAppExcludes), - Mapping(optionsPath: \.urlSessionDelegate, internalPath: \.urlSessionDelegate), - Mapping(optionsPath: \.urlSession, internalPath: \.urlSession), - Mapping(optionsPath: \.enableSwizzling, internalPath: \.enableSwizzling), - Mapping(optionsPath: \.swizzleClassNameExcludes, internalPath: \.swizzleClassNameExcludes), - Mapping(optionsPath: \.enableCoreDataTracing, internalPath: \.enableCoreDataTracing), - Mapping(optionsPath: \.sendClientReports, internalPath: \.sendClientReports), - Mapping(optionsPath: \.enableAppHangTracking, internalPath: \.enableAppHangTracking), - Mapping(optionsPath: \.appHangTimeoutInterval, internalPath: \.appHangTimeoutInterval), - Mapping(optionsPath: \.enableAutoBreadcrumbTracking, internalPath: \.enableAutoBreadcrumbTracking), - Mapping(optionsPath: \.enablePropagateTraceparent, internalPath: \.enablePropagateTraceparent), - Mapping(optionsPath: \.tracePropagationTargets, internalPath: \.tracePropagationTargets), - Mapping(optionsPath: \.enableCaptureFailedRequests, internalPath: \.enableCaptureFailedRequests), - Mapping(optionsPath: \.failedRequestStatusCodes, internalPath: \.failedRequestStatusCodes), - Mapping(optionsPath: \.failedRequestTargets, internalPath: \.failedRequestTargets), - Mapping(optionsPath: \.enableTimeToFullDisplayTracing, internalPath: \.enableTimeToFullDisplayTracing), - Mapping(optionsPath: \.swiftAsyncStacktraces, internalPath: \.swiftAsyncStacktraces), - Mapping(optionsPath: \.cacheDirectoryPath, internalPath: \.cacheDirectoryPath), - Mapping(optionsPath: \.enableSpotlight, internalPath: \.enableSpotlight), - Mapping(optionsPath: \.spotlightUrl, internalPath: \.spotlightUrl), - Mapping(optionsPath: \.experimental, internalPath: \.experimental) -] + macOSOnlyMapping + uiKitMapping + sessionReplayMapping + profilingMapping + userFeedbackMapping + metricKitMapping + watchMapping - -extension SentryOptionsInternal { - func toOptions() -> Options { - var options = Options() - keyPathMapping.forEach { mapping in - mapping.fromOptionsInternal(self, &options) - } - return options - } -} - -extension Options { - func toInternal() -> SentryOptionsInternal { - var options = SentryOptionsInternal() - keyPathMapping.forEach { mapping in - mapping.fromOptions(self, &options) - } - return options - } -} diff --git a/Sources/Swift/Options.swift b/Sources/Swift/Options.swift index 727d11f93f5..658d1de8993 100644 --- a/Sources/Swift/Options.swift +++ b/Sources/Swift/Options.swift @@ -1,22 +1,30 @@ // swiftlint:disable file_length @objc(SentryOptions) public final class Options: NSObject { - /// The DSN tells the SDK where to send the events to. If this value is not provided, the SDK will - /// not send any events. - @objc public var dsn: String? = { + + @objc public override init() { + super.init() #if os(macOS) - if let dsn = ProcessInfo.processInfo.environment["SENTRY_DSN"] as? String, dsn.count > 0 { - return dsn + if let dsn = ProcessInfo.processInfo.environment["SENTRY_DSN"], dsn.count > 0 { + do { + self.parsedDsn = try SentryDsn(string: dsn) + self.dsn = dsn + } catch { + self.parsedDsn = nil + self.dsn = nil + } } - #else - return nil #endif - }() { + } + + /// The DSN tells the SDK where to send the events to. If this value is not provided, the SDK will + /// not send any events. + @objc public var dsn: String? { didSet { - guard let dsn else { return } - do { self.parsedDsn = try SentryDsn(string: dsn) } catch { + self.parsedDsn = nil + self.dsn = nil SentrySDKLog.error("Could not parse the DSN: \(error)") } } @@ -52,7 +60,7 @@ /// Specifies whether this SDK should send events to Sentry. If set to NO events will be /// dropped in the client and not sent to Sentry. Default is YES. - @objc public var enabled: Bool = true + @objc public var enabled = true /// Controls the flush duration when calling SentrySDK/close. @objc public var shutdownTimeInterval: TimeInterval = 2.0 @@ -124,7 +132,7 @@ /// Use this callback to drop or modify a log before the SDK sends it to Sentry. Return nil to /// drop the log. - @objc public var beforeSendLog: SentryBeforeSendLogCallback? + @objc public var beforeSendLog: ((SentryLog) -> SentryLog?)? /// This block can be used to modify the breadcrumb before it will be serialized and sent. @objc public var beforeBreadcrumb: SentryBeforeBreadcrumbCallback? @@ -168,7 +176,7 @@ } } get { - _tracesSampleRate + _sampleRate } } var _sampleRate: NSNumber? = 1 @@ -357,7 +365,7 @@ _tracesSampleRate } } - var _tracesSampleRate: NSNumber? = 0 + var _tracesSampleRate: NSNumber? /// A callback to a user defined traces sampler function. /// @discussion Specifying @c 0 or @c nil discards all trace data, @c 1.0 collects all trace data, @@ -374,9 +382,8 @@ } /// A list of string prefixes of framework names that belong to the app. - /// @note This option takes precedence over @c inAppExcludes. /// @note By default, this contains @c CFBundleExecutable to mark it as "in-app". - @objc public internal(set) var inAppIncludes: [String] = { + @objc public private(set) var inAppIncludes: [String] = { if let executable = Bundle.main.infoDictionary?["CFBundleExecutable"] as? String { return [executable] } @@ -389,18 +396,6 @@ inAppIncludes.append(inAppInclude) } - /// A list of string prefixes of framework names that do not belong to the app, but rather to - /// third-party frameworks. - /// By default, frameworks considered not part of the app will be hidden from stack traces. - /// This option can be overridden using inAppIncludes. - @objc public internal(set) var inAppExcludes: [String] = [] - - /// Adds an item to the list of inAppExcludes. - /// - Parameter inAppExclude: The prefix of the framework name. - @objc public func add(inAppExclude: String) { - inAppExcludes.append(inAppExclude) - } - /// Set as delegate on the URLSession used for all network data-transfer tasks performed by Sentry. /// The SDK ignores this option when using urlSession. @objc public weak var urlSessionDelegate: URLSessionDelegate? @@ -438,8 +433,12 @@ @objc public var configureProfiling: ((SentryProfileOptions) -> Void)? { didSet { let profiling = SentryProfileOptions() - configureProfiling?(profiling) - self.profiling = profiling + if let configureProfiling { + configureProfiling(profiling) + self.profiling = profiling + } else { + self.profiling = nil + } } } @_spi(Private) @objc public var profiling: SentryProfileOptions? @@ -605,7 +604,7 @@ /// The Spotlight URL. Defaults to http://localhost:8969/stream. For more information see /// https://spotlightjs.com/ - @objc public var spotlightUrl = "https://spotlightjs.com/" + @objc public var spotlightUrl = "http://localhost:8969/stream" @objc public var experimental = SentryExperimentalOptions() @@ -633,4 +632,22 @@ extension NSNumber { } } +// The following two extensions provide helpers for objc code +// to work with SentryOptions. Since ObjC headers can't use the +// Swift type we need to type erase it there, and rely on a runtime +// cast rather than a compile type check. These extensions implement +// the runtime casting. +extension NSObject { + @_spi(Private) @objc public func toOptions() -> Options { + // swiftlint:disable force_cast + return self as! Options + // swiftlint:enable force_cast + } +} +extension Options { + @_spi(Private) @objc public func toInternal() -> NSObject { + self + } +} + // swiftlint:enable file_length diff --git a/Sources/Swift/SentryCrash/SentryThreadInspector.swift b/Sources/Swift/SentryCrash/SentryThreadInspector.swift index 32082380d08..d3771188ca8 100644 --- a/Sources/Swift/SentryCrash/SentryThreadInspector.swift +++ b/Sources/Swift/SentryCrash/SentryThreadInspector.swift @@ -7,7 +7,7 @@ internalHelper = SentryDefaultThreadInspector(options: SentrySDKInternal.optionsInternal) } - init(options: SentryOptionsInternal) { + init(options: Options) { internalHelper = SentryDefaultThreadInspector(options: options) } diff --git a/Sources/Swift/SentryDependencyContainer.swift b/Sources/Swift/SentryDependencyContainer.swift index 05037b19c44..1673c1461c7 100644 --- a/Sources/Swift/SentryDependencyContainer.swift +++ b/Sources/Swift/SentryDependencyContainer.swift @@ -227,7 +227,7 @@ extension SentryFileManager: SentryFileManagerProtocol { } } private var _crashReporter: SentryCrashSwift? @objc public lazy var crashReporter = getLazyVar(\._crashReporter) { - SentryCrashSwift(with: SentrySDKInternal.options?.cacheDirectoryPath) + SentryCrashSwift(with: SentrySDKInternal.optionsInternal?.toOptions().cacheDirectoryPath) } private var anrTracker: SentryANRTracker? diff --git a/Sources/Swift/SentryExperimentalOptions.swift b/Sources/Swift/SentryExperimentalOptions.swift index 84a360fd482..63aca7cbf61 100644 --- a/Sources/Swift/SentryExperimentalOptions.swift +++ b/Sources/Swift/SentryExperimentalOptions.swift @@ -1,4 +1,3 @@ -@_implementationOnly import _SentryPrivate import Foundation @objcMembers @@ -33,23 +32,3 @@ public final class SentryExperimentalOptions: NSObject { @_spi(Private) public func validateOptions(_ options: [String: Any]?) { } } - -// This works around `SentryExperimentalOptions` being only forward declared in the objc header. -extension SentryOptionsInternal { - - /** - * This aggregates options for experimental features. - * Be aware that the options available for experimental can change at any time. - */ - var experimental: SentryExperimentalOptions { - get { - // We know the type so it's fine to force cast. - // swiftlint:disable force_cast - _swiftExperimentalOptions as! SentryExperimentalOptions - // swiftlint:enable force_cast - } - set { - _swiftExperimentalOptions = newValue - } - } -} diff --git a/Sources/Swift/Tools/SentryLogBatcher.swift b/Sources/Swift/Tools/SentryLogBatcher.swift index c18968dfecb..ead26be4e86 100644 --- a/Sources/Swift/Tools/SentryLogBatcher.swift +++ b/Sources/Swift/Tools/SentryLogBatcher.swift @@ -15,7 +15,6 @@ import Foundation private let maxBufferSizeBytes: Int private let dispatchQueue: SentryDispatchQueueWrapper - internal let options: SentryOptionsInternal // All mutable state is accessed from the same serial dispatch queue. // Every logs data is added sepratley. They are flushed together in an envelope. diff --git a/Tests/SentryProfilerTests/SentryAppLaunchProfilingTests.swift b/Tests/SentryProfilerTests/SentryAppLaunchProfilingTests.swift index b78d17c2bed..c7d9a4ed79c 100644 --- a/Tests/SentryProfilerTests/SentryAppLaunchProfilingTests.swift +++ b/Tests/SentryProfilerTests/SentryAppLaunchProfilingTests.swift @@ -1,4 +1,3 @@ -@testable import Sentry @_spi(Private) import SentryTestUtils import XCTest @@ -33,7 +32,7 @@ extension SentryAppLaunchProfilingTests { XCTAssertFalse(appLaunchProfileConfigFileExists()) // Act - sentry_sdkInitProfilerTasks(options.toInternal(), TestHub(client: nil, andScope: nil)) + sentry_sdkInitProfilerTasks(options, TestHub(client: nil, andScope: nil)) // Assert XCTAssert(appLaunchProfileConfigFileExists()) @@ -64,7 +63,7 @@ extension SentryAppLaunchProfilingTests { XCTAssertFalse(appLaunchProfileConfigFileExists()) // Act - sentry_sdkInitProfilerTasks(options.toInternal(), TestHub(client: nil, andScope: nil)) + sentry_sdkInitProfilerTasks(options, TestHub(client: nil, andScope: nil)) // Assert XCTAssert(appLaunchProfileConfigFileExists()) @@ -94,8 +93,8 @@ extension SentryAppLaunchProfilingTests { $0.sessionSampleRate = 1 $0.lifecycle = .trace } - sentry_configureContinuousProfiling(fixture.options.toInternal()) - sentry_configureLaunchProfilingForNextLaunch(fixture.options.toInternal()) + sentry_configureContinuousProfiling(fixture.options) + sentry_configureLaunchProfilingForNextLaunch(fixture.options) // Act _sentry_nondeduplicated_startLaunchProfile() @@ -125,8 +124,8 @@ extension SentryAppLaunchProfilingTests { $0.sessionSampleRate = 1 $0.lifecycle = .manual } - sentry_configureContinuousProfiling(fixture.options.toInternal()) - sentry_configureLaunchProfilingForNextLaunch(fixture.options.toInternal()) + sentry_configureContinuousProfiling(fixture.options) + sentry_configureLaunchProfilingForNextLaunch(fixture.options) // Act _sentry_nondeduplicated_startLaunchProfile() @@ -157,8 +156,8 @@ extension SentryAppLaunchProfilingTests { $0.sessionSampleRate = 1 $0.lifecycle = .trace } - sentry_configureContinuousProfiling(fixture.options.toInternal()) - sentry_configureLaunchProfilingForNextLaunch(fixture.options.toInternal()) + sentry_configureContinuousProfiling(fixture.options) + sentry_configureLaunchProfilingForNextLaunch(fixture.options) // Act _sentry_nondeduplicated_startLaunchProfile() @@ -187,8 +186,8 @@ extension SentryAppLaunchProfilingTests { $0.sessionSampleRate = 1 $0.lifecycle = .manual } - sentry_configureContinuousProfiling(fixture.options.toInternal()) - sentry_configureLaunchProfilingForNextLaunch(fixture.options.toInternal()) + sentry_configureContinuousProfiling(fixture.options) + sentry_configureLaunchProfilingForNextLaunch(fixture.options) // Act _sentry_nondeduplicated_startLaunchProfile() diff --git a/Tests/SentryProfilerTests/SentryAppStartProfilingConfigurationChangeTests.swift b/Tests/SentryProfilerTests/SentryAppStartProfilingConfigurationChangeTests.swift index 4b4585a0fa0..1d8e6091726 100644 --- a/Tests/SentryProfilerTests/SentryAppStartProfilingConfigurationChangeTests.swift +++ b/Tests/SentryProfilerTests/SentryAppStartProfilingConfigurationChangeTests.swift @@ -52,7 +52,7 @@ extension SentryAppStartProfilingConfigurationChangeTests { XCTAssertFalse(SentryTraceProfiler.isCurrentlyProfiling()) // Act: simulate SDK start - sentry_sdkInitProfilerTasks(fixture.options.toInternal(), TestHub(client: nil, andScope: nil)) + sentry_sdkInitProfilerTasks(fixture.options, TestHub(client: nil, andScope: nil)) // Act: simulate stopping the continuous profiler SentrySDK.stopProfiler() @@ -92,7 +92,7 @@ extension SentryAppStartProfilingConfigurationChangeTests { XCTAssertFalse(SentryTraceProfiler.isCurrentlyProfiling()) // Act: simulate SDK start - sentry_sdkInitProfilerTasks(fixture.options.toInternal(), TestHub(client: nil, andScope: nil)) + sentry_sdkInitProfilerTasks(fixture.options, TestHub(client: nil, andScope: nil)) // Act: simulate stopping the continuous profiler SentrySDK.stopProfiler() @@ -136,7 +136,7 @@ extension SentryAppStartProfilingConfigurationChangeTests { XCTAssertFalse(SentryTraceProfiler.isCurrentlyProfiling()) // Act: simulate SDK start - sentry_sdkInitProfilerTasks(fixture.options.toInternal(), TestHub(client: nil, andScope: nil)) + sentry_sdkInitProfilerTasks(fixture.options, TestHub(client: nil, andScope: nil)) // Act: simulate elapsed time to finish UI profile chunk fixture.currentDateProvider.advance(by: 60) @@ -177,7 +177,7 @@ extension SentryAppStartProfilingConfigurationChangeTests { XCTAssertFalse(SentryTraceProfiler.isCurrentlyProfiling()) // Act: simulate SDK start - sentry_sdkInitProfilerTasks(fixture.options.toInternal(), TestHub(client: nil, andScope: nil)) + sentry_sdkInitProfilerTasks(fixture.options, TestHub(client: nil, andScope: nil)) // Act: simulate elapsed time to finish UI profile chunk fixture.currentDateProvider.advance(by: 60) @@ -221,7 +221,7 @@ extension SentryAppStartProfilingConfigurationChangeTests { XCTAssertFalse(SentryTraceProfiler.isCurrentlyProfiling()) // Act: simulate SDK start - sentry_sdkInitProfilerTasks(fixture.options.toInternal(), TestHub(client: nil, andScope: nil)) + sentry_sdkInitProfilerTasks(fixture.options, TestHub(client: nil, andScope: nil)) // Act: simulate elapsed time to finish UI profile chunk SentrySDK.stopProfiler() @@ -261,7 +261,7 @@ extension SentryAppStartProfilingConfigurationChangeTests { XCTAssertFalse(SentryTraceProfiler.isCurrentlyProfiling()) // Act: simulate SDK start - sentry_sdkInitProfilerTasks(fixture.options.toInternal(), TestHub(client: nil, andScope: nil)) + sentry_sdkInitProfilerTasks(fixture.options, TestHub(client: nil, andScope: nil)) // Act: simulate elapsed time to finish UI profile chunk SentrySDK.stopProfiler() @@ -305,7 +305,7 @@ extension SentryAppStartProfilingConfigurationChangeTests { XCTAssertFalse(SentryTraceProfiler.isCurrentlyProfiling()) // Act: simulate SDK start - sentry_sdkInitProfilerTasks(fixture.options.toInternal(), TestHub(client: nil, andScope: nil)) + sentry_sdkInitProfilerTasks(fixture.options, TestHub(client: nil, andScope: nil)) // Act: simulate TTFD stoppage let launchTracer = try XCTUnwrap(sentry_launchTracer) @@ -352,7 +352,7 @@ extension SentryAppStartProfilingConfigurationChangeTests { XCTAssertFalse(SentryTraceProfiler.isCurrentlyProfiling()) // Act: simulate SDK start - sentry_sdkInitProfilerTasks(fixture.options.toInternal(), TestHub(client: nil, andScope: nil)) + sentry_sdkInitProfilerTasks(fixture.options, TestHub(client: nil, andScope: nil)) // Act: simulate TTFD stoppage let launchTracer = try XCTUnwrap(sentry_launchTracer) diff --git a/Tests/SentryProfilerTests/SentryAppStartProfilingConfigurationTests.swift b/Tests/SentryProfilerTests/SentryAppStartProfilingConfigurationTests.swift index 29f75a9c115..48eb3b9981b 100644 --- a/Tests/SentryProfilerTests/SentryAppStartProfilingConfigurationTests.swift +++ b/Tests/SentryProfilerTests/SentryAppStartProfilingConfigurationTests.swift @@ -1,4 +1,4 @@ -@_spi(Private) @testable import Sentry +@_spi(Private) import Sentry @_spi(Private) import SentryTestUtils import XCTest @@ -51,9 +51,9 @@ private extension SentryAppStartProfilingConfigurationTests { } // this is where SentryOptions.configureProfiling is evaluated - sentry_configureContinuousProfiling(actualOptions.toInternal()) + sentry_configureContinuousProfiling(actualOptions) - let actualIsValid = sentry_willProfileNextLaunch(actualOptions.toInternal()) + let actualIsValid = sentry_willProfileNextLaunch(actualOptions) if shouldProfileLaunch { XCTAssert(actualIsValid, "Expected to enable app launch profiling with options:\n\(expectedOptions.description)") } else { diff --git a/Tests/SentryProfilerTests/SentryContinuousProfilerTests.swift b/Tests/SentryProfilerTests/SentryContinuousProfilerTests.swift index a5e5e8aff39..d77709d8dd2 100644 --- a/Tests/SentryProfilerTests/SentryContinuousProfilerTests.swift +++ b/Tests/SentryProfilerTests/SentryContinuousProfilerTests.swift @@ -252,7 +252,7 @@ private extension SentryContinuousProfilerTests { } } - func performContinuousProfilingTest(expectedEnvironment: String = kSentryDefaultEnvironment) throws { + func performContinuousProfilingTest(expectedEnvironment: String = "production") throws { XCTAssertFalse(SentryContinuousProfiler.isCurrentlyProfiling()) SentryContinuousProfiler.start() XCTAssert(SentryContinuousProfiler.isCurrentlyProfiling()) diff --git a/Tests/SentryProfilerTests/SentryProfilingPublicAPITests.swift b/Tests/SentryProfilerTests/SentryProfilingPublicAPITests.swift index 478ae09f4e8..14f71e65d47 100644 --- a/Tests/SentryProfilerTests/SentryProfilingPublicAPITests.swift +++ b/Tests/SentryProfilerTests/SentryProfilingPublicAPITests.swift @@ -35,7 +35,7 @@ class SentryProfilingPublicAPITests: XCTestCase { let currentDate = TestCurrentDateProvider() lazy var timerFactory = TestSentryNSTimerFactory(currentDateProvider: currentDate) - lazy var client = TestClient(options: options.toInternal())! + lazy var client = TestClient(options: options)! lazy var hub = SentryHubInternal(client: client, andScope: scope) } @@ -69,31 +69,31 @@ class SentryProfilingPublicAPITests: XCTestCase { // MARK: continuous profiling v2 extension SentryProfilingPublicAPITests { - func testSentryOptionsInternalReportsContinuousProfilingV2Enabled() { + func testSentryOptionsReportsContinuousProfilingV2Enabled() { // Arrange let options = Options() options.configureProfiling = { _ in } // Act - sentry_configureContinuousProfiling(options.toInternal()) + sentry_configureContinuousProfiling(options) // Assert - XCTAssertTrue(options.toInternal().isContinuousProfilingEnabled()) + XCTAssertTrue(options.isContinuousProfilingEnabled()) } - func testSentryOptionsInternalReportsContinuousProfilingV2Disabled_NilConfiguration() { + func testSentryOptionsReportsContinuousProfilingV2Disabled_NilConfiguration() { // Arrange let options = Options() options.configureProfiling = nil // Act - sentry_configureContinuousProfiling(options.toInternal()) + sentry_configureContinuousProfiling(options) // Assert - XCTAssertFalse(options.toInternal().isContinuousProfilingEnabled()) + XCTAssertFalse(options.isContinuousProfilingEnabled()) } - func testSentryOptionsInternalReportsProfilingCorrelatedToTraces() { + func testSentryOptionsReportsProfilingCorrelatedToTraces() { // Arrange let options = Options() options.configureProfiling = { @@ -101,13 +101,13 @@ extension SentryProfilingPublicAPITests { } // Act - sentry_configureContinuousProfiling(options.toInternal()) + sentry_configureContinuousProfiling(options) // Assert - XCTAssertTrue(options.toInternal().isProfilingCorrelatedToTraces()) + XCTAssertTrue(options.isProfilingCorrelatedToTraces()) } - func testSentryOptionsInternalReportsProfilingNotCorrelatedToTraces_ManualLifecycle() { + func testSentryOptionsReportsProfilingNotCorrelatedToTraces_ManualLifecycle() { // Arrange let options = Options() options.configureProfiling = { @@ -115,22 +115,22 @@ extension SentryProfilingPublicAPITests { } // Act - sentry_configureContinuousProfiling(options.toInternal()) + sentry_configureContinuousProfiling(options) // Assert - XCTAssertFalse(options.toInternal().isProfilingCorrelatedToTraces()) + XCTAssertFalse(options.isProfilingCorrelatedToTraces()) } - func testSentryOptionsInternalReportsProfilingNotCorrelatedToTraces_NilConfiguration() { + func testSentryOptionsReportsProfilingNotCorrelatedToTraces_NilConfiguration() { // Arrange let options = Options() options.configureProfiling = nil // Act - sentry_configureContinuousProfiling(options.toInternal()) + sentry_configureContinuousProfiling(options) // Assert - XCTAssertFalse(options.toInternal().isProfilingCorrelatedToTraces()) + XCTAssertFalse(options.isProfilingCorrelatedToTraces()) } func testManuallyStartingAndStoppingContinuousProfilerV2Sampled() throws { @@ -478,13 +478,13 @@ extension SentryProfilingPublicAPITests { private extension SentryProfilingPublicAPITests { func givenSdkWithHub() { SentrySDKInternal.setCurrentHub(fixture.hub) - SentrySDKInternal.setStart(with: fixture.options.toInternal()) - sentry_sdkInitProfilerTasks(fixture.options.toInternal(), fixture.hub) + SentrySDKInternal.setStart(with: fixture.options) + sentry_sdkInitProfilerTasks(fixture.options, fixture.hub) } func givenSdkWithHubButNoClient() { SentrySDKInternal.setCurrentHub(SentryHubInternal(client: nil, andScope: nil)) - SentrySDKInternal.setStart(with: fixture.options.toInternal()) + SentrySDKInternal.setStart(with: fixture.options) } func stopProfiler() throws { diff --git a/Tests/SentryProfilerTests/SentryProfilingSwiftHelpersTests.m b/Tests/SentryProfilerTests/SentryProfilingSwiftHelpersTests.m index 64a360b8b42..812d63d11e3 100644 --- a/Tests/SentryProfilerTests/SentryProfilingSwiftHelpersTests.m +++ b/Tests/SentryProfilerTests/SentryProfilingSwiftHelpersTests.m @@ -2,7 +2,6 @@ @import Sentry; @import SentryTestUtilsDynamic; #import "SentryClient.h" -#import "SentryOptionsInternal+Private.h" #import "SentryProfilingSwiftHelpers.h" @interface SentryProfilingSwiftHelpersTests : XCTestCase @@ -14,7 +13,7 @@ @implementation SentryProfilingSwiftHelpersTests - (void)testIsContinuousProfilingEnabled { - SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; + SentryOptions *options = [[SentryOptions alloc] init]; options.dsn = @"https://username:password@app.getsentry.com/12345"; options.profiling = [[SentryProfileOptions alloc] init]; SentryClientInternal *client = [[SentryClientInternal alloc] initWithOptions:options]; @@ -24,7 +23,7 @@ - (void)testIsContinuousProfilingEnabled - (void)testIsProfilingCorrelatedToTraces { - SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; + SentryOptions *options = [[SentryOptions alloc] init]; options.dsn = @"https://username:password@app.getsentry.com/12345"; options.profiling = [[SentryProfileOptions alloc] init]; options.profiling.lifecycle = SentryProfileLifecycleTrace; @@ -35,7 +34,7 @@ - (void)testIsProfilingCorrelatedToTraces - (void)testGetProfiling { - SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; + SentryOptions *options = [[SentryOptions alloc] init]; options.dsn = @"https://username:password@app.getsentry.com/12345"; options.profiling = [[SentryProfileOptions alloc] init]; SentryClientInternal *client = [[SentryClientInternal alloc] initWithOptions:options]; @@ -44,7 +43,7 @@ - (void)testGetProfiling - (void)testGetProfiling_whenProfilingOptionsIsNil_shouldReturnNil { - SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; + SentryOptions *options = [[SentryOptions alloc] init]; options.dsn = @"https://username:password@app.getsentry.com/12345"; options.profiling = nil; SentryClientInternal *client = [[SentryClientInternal alloc] initWithOptions:options]; diff --git a/Tests/SentryTests/Helper/SentryAppStateManagerTests.swift b/Tests/SentryTests/Helper/SentryAppStateManagerTests.swift index 840c8d12002..f198afbb89e 100644 --- a/Tests/SentryTests/Helper/SentryAppStateManagerTests.swift +++ b/Tests/SentryTests/Helper/SentryAppStateManagerTests.swift @@ -31,7 +31,7 @@ class SentryAppStateManagerTests: XCTestCase { SentryDependencyContainer.sharedInstance().dispatchQueueWrapper = TestSentryDispatchQueueWrapper() SentryDependencyContainer.sharedInstance().notificationCenterWrapper = notificationCenterWrapper return SentryAppStateManager( - options: options.toInternal(), + options: options, crashWrapper: TestSentryCrashWrapper(processInfoWrapper: ProcessInfo.processInfo), fileManager: fileManager, sysctlWrapper: SentryDependencyContainer.sharedInstance().sysctlWrapper diff --git a/Tests/SentryTests/Helper/SentryDependencyContainerTests.swift b/Tests/SentryTests/Helper/SentryDependencyContainerTests.swift index 31df27f7efb..8942f8e4b58 100644 --- a/Tests/SentryTests/Helper/SentryDependencyContainerTests.swift +++ b/Tests/SentryTests/Helper/SentryDependencyContainerTests.swift @@ -48,7 +48,7 @@ final class SentryDependencyContainerTests: XCTestCase { let options = Options() options.dsn = SentryDependencyContainerTests.dsn - SentrySDKInternal.setStart(with: options.toInternal()) + SentrySDKInternal.setStart(with: options) let iterations = 100 @@ -136,7 +136,7 @@ final class SentryDependencyContainerTests: XCTestCase { // -- Arrange -- let options = Options() options.dsn = SentryDependencyContainerTests.dsn - SentrySDKInternal.setStart(with: options.toInternal()) + SentrySDKInternal.setStart(with: options) let container = SentryDependencyContainer.sharedInstance() @@ -153,7 +153,7 @@ final class SentryDependencyContainerTests: XCTestCase { // -- Arrange -- let options = Options() options.dsn = SentryDependencyContainerTests.dsn - SentrySDKInternal.setStart(with: options.toInternal()) + SentrySDKInternal.setStart(with: options) let container = SentryDependencyContainer.sharedInstance() @@ -173,7 +173,7 @@ final class SentryDependencyContainerTests: XCTestCase { // -- Arrange -- let options = Options() options.dsn = SentryDependencyContainerTests.dsn - SentrySDKInternal.setStart(with: options.toInternal()) + SentrySDKInternal.setStart(with: options) let container = SentryDependencyContainer.sharedInstance() let dispatchFactory = TestDispatchFactory() @@ -202,7 +202,7 @@ final class SentryDependencyContainerTests: XCTestCase { options2.dsn = SentryDependencyContainerTests.dsn options2.sessionTrackingIntervalMillis = 5_000 - SentrySDKInternal.setStart(with: options1.toInternal()) + SentrySDKInternal.setStart(with: options1) let container = SentryDependencyContainer.sharedInstance() @@ -226,7 +226,7 @@ final class SentryDependencyContainerTests: XCTestCase { options2.sessionTrackingIntervalMillis = 5_000 options2.environment = "test2" - SentrySDKInternal.setStart(with: options1.toInternal()) + SentrySDKInternal.setStart(with: options1) let container = SentryDependencyContainer.sharedInstance() @@ -248,7 +248,7 @@ final class SentryDependencyContainerTests: XCTestCase { // -- Arrange -- let options = Options() options.dsn = SentryDependencyContainerTests.dsn - SentrySDKInternal.setStart(with: options.toInternal()) + SentrySDKInternal.setStart(with: options) let container = SentryDependencyContainer.sharedInstance() diff --git a/Tests/SentryTests/Helper/SentryLogSPMTests.swift b/Tests/SentryTests/Helper/SentryLogSPMTests.swift deleted file mode 100644 index 784702fccee..00000000000 --- a/Tests/SentryTests/Helper/SentryLogSPMTests.swift +++ /dev/null @@ -1,155 +0,0 @@ -@_spi(Private) @testable import Sentry -@_spi(Private) import SentryTestUtils -import XCTest - -/// Tests for SPM log workarounds using dynamic dispatch. -final class SentryLogSPMTests: XCTestCase { - - private class Fixture { - let options: Options - - init() { - options = Options() - options.dsn = TestConstants.dsnAsString(username: "SentryLogSPMTests") - options.enableLogs = true - } - } - - private var fixture: Fixture! - - override func setUp() { - super.setUp() - fixture = Fixture() - } - - override func tearDown() { - super.tearDown() - } - - // MARK: - SentryOptions Tests - - func testOptions_BeforeSendLog_ViaKVC() { - // This test verifies that options.value(forKey:) and setValue(:forKey:) work correctly for beforeSendLog. - // This is what SentryOptions+SPM.swift does internally in its beforeSendLog property getter/setter. - - let callback: (SentryLog) -> SentryLog? = { log in - let modifiedLog = log - modifiedLog.body = "Modified: \(log.body)" - return modifiedLog - } - - // Set using KVC - mimics SPM extension behavior - fixture.options.setValue(callback, forKey: "beforeSendLogDynamic") - - // Get using KVC - mimics SPM extension behavior - let retrievedCallback = fixture.options.value(forKey: "beforeSendLogDynamic") as? (SentryLog) -> SentryLog? - - XCTAssertNotNil(retrievedCallback) - - let originalLog = SentryLog(level: .info, body: "Original message") - let modifiedLog = retrievedCallback?(originalLog) - - XCTAssertNotNil(modifiedLog) - XCTAssertEqual(modifiedLog?.body, "Modified: Original message") - } - - func testOptions_BeforeSendLog_CanDropLog() { - let callback: (SentryLog) -> SentryLog? = { log in - // Drop logs with "spam" in the body - return log.body.contains("spam") ? nil : log - } - - fixture.options.setValue(callback, forKey: "beforeSendLogDynamic") - let retrievedCallback = fixture.options.value(forKey: "beforeSendLogDynamic") as? (SentryLog) -> SentryLog? - - let normalLog = SentryLog(level: .info, body: "Normal message") - let spamLog = SentryLog(level: .info, body: "This is spam") - - XCTAssertNotNil(retrievedCallback?(normalLog)) - XCTAssertNil(retrievedCallback?(spamLog)) - } - - func testOptions_BeforeSendLog_CanFilterByLevel() { - // Only allow error and fatal logs - let callback: (SentryLog) -> SentryLog? = { log in - return (log.level == .error || log.level == .fatal) ? log : nil - } - - fixture.options.setValue(callback, forKey: "beforeSendLogDynamic") - let retrievedCallback = fixture.options.value(forKey: "beforeSendLogDynamic") as? (SentryLog) -> SentryLog? - - let infoLog = SentryLog(level: .info, body: "Info message") - let errorLog = SentryLog(level: .error, body: "Error message") - let fatalLog = SentryLog(level: .fatal, body: "Fatal message") - - XCTAssertNil(retrievedCallback?(infoLog)) - XCTAssertNotNil(retrievedCallback?(errorLog)) - XCTAssertNotNil(retrievedCallback?(fatalLog)) - } - - func testOptions_BeforeSendLog_CanModifyAttributes() { - let callback: (SentryLog) -> SentryLog? = { log in - let modifiedLog = log - var newAttributes = log.attributes - newAttributes["processed"] = SentryLog.Attribute(boolean: true) - modifiedLog.attributes = newAttributes - return modifiedLog - } - - fixture.options.setValue(callback, forKey: "beforeSendLogDynamic") - let retrievedCallback = fixture.options.value(forKey: "beforeSendLogDynamic") as? (SentryLog) -> SentryLog? - - let log = SentryLog( - level: .info, - body: "Test message", - attributes: ["original": SentryLog.Attribute(string: "value")] - ) - - let modifiedLog = retrievedCallback?(log) - - XCTAssertNotNil(modifiedLog) - XCTAssertEqual(modifiedLog?.attributes.count, 2) - XCTAssertEqual(modifiedLog?.attributes["original"]?.value as? String, "value") - XCTAssertEqual(modifiedLog?.attributes["processed"]?.value as? Bool, true) - } - - func testOptions_BeforeSendLog_CanBeCleared() { - fixture.options.setValue({ (log: SentryLog) in log }, forKey: "beforeSendLogDynamic") - XCTAssertNotNil(fixture.options.value(forKey: "beforeSendLogDynamic")) - - fixture.options.setValue(nil, forKey: "beforeSendLogDynamic") - - XCTAssertNil(fixture.options.value(forKey: "beforeSendLogDynamic")) - } - - func testOptions_BeforeSendLog_ViaKVC_DirectProperty() { - // Test if we can use "beforeSendLog" directly via KVC instead of "beforeSendLogDynamic" - // This would work in non-SPM builds but not in SPM builds where the property isn't declared - let callback: (SentryLog) -> SentryLog? = { log in - let modifiedLog = log - modifiedLog.body = "Modified: \(log.body)" - return modifiedLog - } - - // Try to set using "beforeSendLog" directly - fixture.options.setValue(callback, forKey: "beforeSendLog") - - // Try to get using "beforeSendLog" directly - let retrievedCallback = fixture.options.value(forKey: "beforeSendLog") as? (SentryLog) -> SentryLog? - - // In SPM builds, this will be nil because the property doesn't exist - // In non-SPM builds, this should work because the property is auto-synthesized - #if SWIFT_PACKAGE - XCTAssertNil(retrievedCallback, "In SPM builds, 'beforeSendLog' property doesn't exist, so KVC should fail") - #else - XCTAssertNotNil(retrievedCallback, "In non-SPM builds, 'beforeSendLog' property exists and should work via KVC") - - if let retrievedCallback = retrievedCallback { - let originalLog = SentryLog(level: .info, body: "Original message") - let modifiedLog = retrievedCallback(originalLog) - XCTAssertNotNil(modifiedLog) - XCTAssertEqual(modifiedLog?.body, "Modified: Original message") - } - #endif - } -} diff --git a/Tests/SentryTests/Integrations/ANR/SentryANRTrackingIntegrationTests.swift b/Tests/SentryTests/Integrations/ANR/SentryANRTrackingIntegrationTests.swift index 9a12ffa8c1f..dd9729621e3 100644 --- a/Tests/SentryTests/Integrations/ANR/SentryANRTrackingIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/ANR/SentryANRTrackingIntegrationTests.swift @@ -65,7 +65,7 @@ class SentryANRTrackingIntegrationTests: SentrySDKIntegrationTestsBase { options.enableAppHangTracking = false sut = SentryANRTrackingIntegration() - let result = sut.install(with: options.toInternal()) + let result = sut.install(with: options) XCTAssertFalse(result) } @@ -76,7 +76,7 @@ class SentryANRTrackingIntegrationTests: SentrySDKIntegrationTestsBase { options.appHangTimeoutInterval = 0 sut = SentryANRTrackingIntegration() - let result = sut.install(with: options.toInternal()) + let result = sut.install(with: options) XCTAssertFalse(result) } @@ -330,7 +330,7 @@ class SentryANRTrackingIntegrationTests: SentrySDKIntegrationTestsBase { func initIntegration() { self.crashWrapper.internalIsBeingTraced = false let sut = SentryANRTrackingIntegration() - sut.install(with: self.options.toInternal()) + sut.install(with: self.options) } initIntegration() @@ -667,7 +667,7 @@ class SentryANRTrackingIntegrationTests: SentrySDKIntegrationTestsBase { Dynamic(sut).anrStoppedWithResult(result) // Act - sut.install(with: self.options.toInternal()) + sut.install(with: self.options) // Assert try assertEventWithScopeCaptured { event, _, _ in @@ -735,7 +735,7 @@ class SentryANRTrackingIntegrationTests: SentrySDKIntegrationTestsBase { self.crashWrapper.internalIsBeingTraced = isBeingTraced self.crashWrapper.internalCrashedLastLaunch = crashedLastLaunch sut = SentryANRTrackingIntegration() - sut.install(with: self.options.toInternal()) + sut.install(with: self.options) } private func setUpThreadInspector(addThreads: Bool = true) { diff --git a/Tests/SentryTests/Integrations/Breadcrumbs/SentryAutoBreadcrumbTrackingIntegration+Test.h b/Tests/SentryTests/Integrations/Breadcrumbs/SentryAutoBreadcrumbTrackingIntegration+Test.h index edceea65400..2278d4455b2 100644 --- a/Tests/SentryTests/Integrations/Breadcrumbs/SentryAutoBreadcrumbTrackingIntegration+Test.h +++ b/Tests/SentryTests/Integrations/Breadcrumbs/SentryAutoBreadcrumbTrackingIntegration+Test.h @@ -3,12 +3,12 @@ NS_ASSUME_NONNULL_BEGIN @class SentryBreadcrumbTracker; -@class SentryOptionsInternal; +@class SentryOptions; @class SentrySystemEventBreadcrumbs; @interface SentryAutoBreadcrumbTrackingIntegration (Test) -- (void)installWithOptions:(nonnull SentryOptionsInternal *)options +- (void)installWithOptions:(nonnull SentryOptions *)options breadcrumbTracker:(SentryBreadcrumbTracker *)breadcrumbTracker #if TARGET_OS_IOS && SENTRY_HAS_UIKIT systemEventBreadcrumbs:(SentrySystemEventBreadcrumbs *)systemEventBreadcrumbs diff --git a/Tests/SentryTests/Integrations/Breadcrumbs/SentryAutoBreadcrumbTrackingIntegrationTests.swift b/Tests/SentryTests/Integrations/Breadcrumbs/SentryAutoBreadcrumbTrackingIntegrationTests.swift index 86eb7dbeeb3..bf313ef802d 100644 --- a/Tests/SentryTests/Integrations/Breadcrumbs/SentryAutoBreadcrumbTrackingIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/Breadcrumbs/SentryAutoBreadcrumbTrackingIntegrationTests.swift @@ -72,7 +72,7 @@ class SentryAutoBreadcrumbTrackingIntegrationTests: XCTestCase { options.enableAutoBreadcrumbTracking = false let sut = SentryAutoBreadcrumbTrackingIntegration() - let result = sut.install(with: options.toInternal()) + let result = sut.install(with: options) XCTAssertFalse(result) } @@ -85,7 +85,7 @@ class SentryAutoBreadcrumbTrackingIntegrationTests: XCTestCase { try self.install(sut: sut, options: options) let scope = Scope() - let hub = SentryHubInternal(client: TestClient(options: Options().toInternal()), andScope: scope) + let hub = SentryHubInternal(client: TestClient(options: Options()), andScope: scope) SentrySDKInternal.setCurrentHub(hub) let crumb = TestData.crumb @@ -109,9 +109,9 @@ class SentryAutoBreadcrumbTrackingIntegrationTests: XCTestCase { #if os(iOS) fixture.systemEventBreadcrumbTracker = SentryTestSystemEventBreadcrumbs(fileManager: fixture.fileManager, andNotificationCenterWrapper: TestNSNotificationCenterWrapper()) - sut.install(withOptions: options.toInternal(), breadcrumbTracker: fixture.breadcrumbTracker, systemEventBreadcrumbs: fixture.systemEventBreadcrumbTracker!) + sut.install(with: options, breadcrumbTracker: fixture.breadcrumbTracker, systemEventBreadcrumbs: fixture.systemEventBreadcrumbTracker!) #else - sut.install(withOptions: options.toInternal(), breadcrumbTracker: fixture.breadcrumbTracker) + sut.install(with: options, breadcrumbTracker: fixture.breadcrumbTracker) #endif // os(iOS) } diff --git a/Tests/SentryTests/Integrations/Feedback/SentryFeedbackTests.swift b/Tests/SentryTests/Integrations/Feedback/SentryFeedbackTests.swift index a02406acaf5..d0a65bac096 100644 --- a/Tests/SentryTests/Integrations/Feedback/SentryFeedbackTests.swift +++ b/Tests/SentryTests/Integrations/Feedback/SentryFeedbackTests.swift @@ -197,7 +197,7 @@ class SentryFeedbackTests: XCTestCase { options.sampleRate = 0.0 // Sample rate that would normally filter out all events let transport = TestTransport() - let transportAdapter = TestTransportAdapter(transports: [transport], options: options.toInternal()) + let transportAdapter = TestTransportAdapter(transports: [transport], options: options) let client = SentryClientInternal( options: options.toInternal(), @@ -239,7 +239,7 @@ class SentryFeedbackTests: XCTestCase { options.beforeSend = { _ in return nil } // beforeSend that filters out all events let transport = TestTransport() - let transportAdapter = TestTransportAdapter(transports: [transport], options: options.toInternal()) + let transportAdapter = TestTransportAdapter(transports: [transport], options: options) let client = SentryClientInternal( options: options.toInternal(), @@ -281,7 +281,7 @@ class SentryFeedbackTests: XCTestCase { options.beforeSend = { _ in return nil } // beforeSend that filters out all events let transport = TestTransport() - let transportAdapter = TestTransportAdapter(transports: [transport], options: options.toInternal()) + let transportAdapter = TestTransportAdapter(transports: [transport], options: options) let client = SentryClientInternal( options: options.toInternal(), diff --git a/Tests/SentryTests/Integrations/MetricKit/SentryMetricKitIntegrationTests.swift b/Tests/SentryTests/Integrations/MetricKit/SentryMetricKitIntegrationTests.swift index 9045a889e17..57709284438 100644 --- a/Tests/SentryTests/Integrations/MetricKit/SentryMetricKitIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/MetricKit/SentryMetricKitIntegrationTests.swift @@ -52,7 +52,7 @@ final class SentryMetricKitIntegrationTests: SentrySDKIntegrationTestsBase { if #available(iOS 15, macOS 12, macCatalyst 15, *) { let sut = SentryMetricKitIntegration() - sut.install(with: Options().toInternal()) + sut.install(with: Options()) XCTAssertNil(Dynamic(sut).metricKitManager as SentryMXManager?) } @@ -64,7 +64,7 @@ final class SentryMetricKitIntegrationTests: SentrySDKIntegrationTestsBase { let options = Options() options.enableMetricKit = true - sut.install(with: options.toInternal()) + sut.install(with: options) sut.uninstall() XCTAssertNil(Dynamic(sut).metricKitManager as SentryMXManager?) @@ -242,7 +242,7 @@ final class SentryMetricKitIntegrationTests: SentrySDKIntegrationTestsBase { let options = Options() options.enableMetricKit = true optionsBlock(options) - integration.install(with: options.toInternal()) + integration.install(with: options) } private func givenSDKWithHubWithScope() { diff --git a/Tests/SentryTests/Integrations/Performance/AppStartTracking/SentryAppStartTrackerTests.swift b/Tests/SentryTests/Integrations/Performance/AppStartTracking/SentryAppStartTrackerTests.swift index 0694de7e68c..855010bb132 100644 --- a/Tests/SentryTests/Integrations/Performance/AppStartTracking/SentryAppStartTrackerTests.swift +++ b/Tests/SentryTests/Integrations/Performance/AppStartTracking/SentryAppStartTrackerTests.swift @@ -42,7 +42,7 @@ class SentryAppStartTrackerTests: NotificationCenterTestCase { SentryDependencyContainer.sharedInstance().sysctlWrapper = sysctl SentryDependencyContainer.sharedInstance().dispatchQueueWrapper = dispatchQueue appStateManager = SentryAppStateManager( - options: options.toInternal(), + options: options, crashWrapper: crashWrapper, fileManager: fileManager, sysctlWrapper: sysctl diff --git a/Tests/SentryTests/Integrations/Performance/AppStartTracking/SentryAppStartTrackingIntegrationTests.swift b/Tests/SentryTests/Integrations/Performance/AppStartTracking/SentryAppStartTrackingIntegrationTests.swift index bea5b2f4212..8e3dc2d4e8c 100644 --- a/Tests/SentryTests/Integrations/Performance/AppStartTracking/SentryAppStartTrackingIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/Performance/AppStartTracking/SentryAppStartTrackingIntegrationTests.swift @@ -52,14 +52,14 @@ class SentryAppStartTrackingIntegrationTests: NotificationCenterTestCase { } func testAppStartMeasuringEnabledAndSampleRate_properlySetupTracker() throws { - sut.install(with: fixture.options.toInternal()) + sut.install(with: fixture.options) let tracker = try XCTUnwrap(Dynamic(sut).tracker.asObject as? SentryAppStartTracker, "SentryAppStartTrackingIntegration should have a tracker") try assertTrackerSetupAndRunning(tracker) } func testUnistall_stopsTracker() throws { - sut.install(with: fixture.options.toInternal()) + sut.install(with: fixture.options) let tracker = try XCTUnwrap(Dynamic(sut).tracker.asObject as? SentryAppStartTracker, "SentryAppStartTrackingIntegration should have a tracker") try assertTrackerSetupAndRunning(tracker) @@ -73,7 +73,7 @@ class SentryAppStartTrackingIntegrationTests: NotificationCenterTestCase { let options = fixture.options options.tracesSampleRate = 0.0 options.tracesSampler = nil - sut.install(with: options.toInternal()) + sut.install(with: options) let tracker = Dynamic(sut).tracker.asAnyObject as? SentryAppStartTracker XCTAssertNil(tracker) @@ -85,7 +85,7 @@ class SentryAppStartTrackingIntegrationTests: NotificationCenterTestCase { let options = fixture.options options.tracesSampleRate = 0.0 options.tracesSampler = nil - sut.install(with: options.toInternal()) + sut.install(with: options) let tracker = try XCTUnwrap(Dynamic(sut).tracker.asObject as? SentryAppStartTracker, "SentryAppStartTrackingIntegration should have a tracker") try assertTrackerSetupAndRunning(tracker) @@ -95,7 +95,7 @@ class SentryAppStartTrackingIntegrationTests: NotificationCenterTestCase { let options = fixture.options options.tracesSampleRate = 0.0 options.tracesSampler = nil - sut.install(with: options.toInternal()) + sut.install(with: options) let tracker = Dynamic(sut).tracker.asAnyObject as? SentryAppStartTracker XCTAssertNil(tracker) @@ -104,7 +104,7 @@ class SentryAppStartTrackingIntegrationTests: NotificationCenterTestCase { func testAutoPerformanceTrackingDisabled_noTracker() { let options = fixture.options options.enableAutoPerformanceTracing = false - sut.install(with: options.toInternal()) + sut.install(with: options) let tracker = Dynamic(sut).tracker.asAnyObject as? SentryAppStartTracker XCTAssertNil(tracker) @@ -113,7 +113,7 @@ class SentryAppStartTrackingIntegrationTests: NotificationCenterTestCase { func test_PerformanceTrackingDisabled() { let options = fixture.options options.enableAutoPerformanceTracing = false - let result = sut.install(with: options.toInternal()) + let result = sut.install(with: options) XCTAssertFalse(result) } diff --git a/Tests/SentryTests/Integrations/Performance/CoreData/SentryCoreDataTrackingIntegrationTest.swift b/Tests/SentryTests/Integrations/Performance/CoreData/SentryCoreDataTrackingIntegrationTest.swift index ea122c53aa1..7b6a2d856b1 100644 --- a/Tests/SentryTests/Integrations/Performance/CoreData/SentryCoreDataTrackingIntegrationTest.swift +++ b/Tests/SentryTests/Integrations/Performance/CoreData/SentryCoreDataTrackingIntegrationTest.swift @@ -1,5 +1,4 @@ import CoreData -@testable import Sentry import SentryTestUtils import XCTest @@ -42,7 +41,7 @@ class SentryCoreDataTrackingIntegrationTests: XCTestCase { let sut = fixture.getSut() XCTAssertNil(SentryCoreDataSwizzling.sharedInstance.coreDataTracker) - sut.install(with: fixture.options.toInternal()) + sut.install(with: fixture.options) XCTAssertNotNil(SentryCoreDataSwizzling.sharedInstance.coreDataTracker) sut.uninstall() XCTAssertNil(SentryCoreDataSwizzling.sharedInstance.coreDataTracker) @@ -116,7 +115,7 @@ class SentryCoreDataTrackingIntegrationTests: XCTestCase { let sut = fixture.getSut() confOptions(fixture.options) XCTAssertNil(SentryCoreDataSwizzling.sharedInstance.coreDataTracker, file: file, line: line) - sut.install(with: fixture.options.toInternal()) + sut.install(with: fixture.options) XCTAssertNil(SentryCoreDataSwizzling.sharedInstance.coreDataTracker, file: file, line: line) } diff --git a/Tests/SentryTests/Integrations/Performance/FramesTracking/SentryFramesTrackingIntegrationTests.swift b/Tests/SentryTests/Integrations/Performance/FramesTracking/SentryFramesTrackingIntegrationTests.swift index 9f242fe43d0..a5b8cfca495 100644 --- a/Tests/SentryTests/Integrations/Performance/FramesTracking/SentryFramesTrackingIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/Performance/FramesTracking/SentryFramesTrackingIntegrationTests.swift @@ -35,7 +35,7 @@ class SentryFramesTrackingIntegrationTests: XCTestCase { func testTracesSampleRateSet_MeasuresFrames() { let options = fixture.options options.tracesSampleRate = 0.1 - sut.install(with: options.toInternal()) + sut.install(with: options) XCTAssertNotNil(Dynamic(sut).tracker.asObject) } @@ -43,14 +43,14 @@ class SentryFramesTrackingIntegrationTests: XCTestCase { func testTracesSamplerSet_MeasuresFrames() { let options = fixture.options options.tracesSampler = { _ in return 0 } - sut.install(with: options.toInternal()) + sut.install(with: options) XCTAssertNotNil(Dynamic(sut).tracker.asObject) } func testAppHangEnabled_MeasuresFrames() { let options = fixture.options - sut.install(with: options.toInternal()) + sut.install(with: options) XCTAssertNotNil(Dynamic(sut).tracker.asObject) } @@ -59,7 +59,7 @@ class SentryFramesTrackingIntegrationTests: XCTestCase { let options = fixture.options options.appHangTimeoutInterval = 0.0 options.enableWatchdogTerminationTracking = false - sut.install(with: options.toInternal()) + sut.install(with: options) XCTAssertNil(Dynamic(sut).tracker.asObject) } @@ -69,7 +69,7 @@ class SentryFramesTrackingIntegrationTests: XCTestCase { options.tracesSampleRate = 0.0 options.appHangTimeoutInterval = 0.0 options.enableWatchdogTerminationTracking = false - sut.install(with: options.toInternal()) + sut.install(with: options) XCTAssertNil(Dynamic(sut).tracker.asObject) } @@ -80,7 +80,7 @@ class SentryFramesTrackingIntegrationTests: XCTestCase { options.enableAutoPerformanceTracing = false options.enableAppHangTracking = false options.enableWatchdogTerminationTracking = false - sut.install(with: options.toInternal()) + sut.install(with: options) XCTAssertNil(Dynamic(sut).tracker.asObject) } @@ -90,13 +90,13 @@ class SentryFramesTrackingIntegrationTests: XCTestCase { let options = fixture.options options.enableAutoPerformanceTracing = false - sut.install(with: options.toInternal()) + sut.install(with: options) XCTAssertNotNil(Dynamic(sut).tracker.asObject) } func testUninstall() { - sut.install(with: fixture.options.toInternal()) + sut.install(with: fixture.options) SentryDependencyContainer.sharedInstance().framesTracker.setDisplayLinkWrapper(fixture.displayLink) diff --git a/Tests/SentryTests/Integrations/Performance/IO/FileIOTrackerTestHelpers.swift b/Tests/SentryTests/Integrations/Performance/IO/FileIOTrackerTestHelpers.swift index 652e1e60a56..b1e40320387 100644 --- a/Tests/SentryTests/Integrations/Performance/IO/FileIOTrackerTestHelpers.swift +++ b/Tests/SentryTests/Integrations/Performance/IO/FileIOTrackerTestHelpers.swift @@ -2,7 +2,7 @@ @objc public class FileIOTrackerTestHelpers: NSObject { @objc static func makeTracker(options: Options) -> SentryFileIOTracker { - let threadInspector = SentryThreadInspector(options: options.toInternal()) + let threadInspector = SentryThreadInspector(options: options) let processInfoWrapper = SentryDependencyContainer.sharedInstance().processInfoWrapper return SentryFileIOTracker(threadInspector: threadInspector, processInfoWrapper: processInfoWrapper) } diff --git a/Tests/SentryTests/Integrations/Performance/IO/SentryFileIOTrackingIntegrationObjCTests.m b/Tests/SentryTests/Integrations/Performance/IO/SentryFileIOTrackingIntegrationObjCTests.m index 570e158e60f..d540741d5a2 100644 --- a/Tests/SentryTests/Integrations/Performance/IO/SentryFileIOTrackingIntegrationObjCTests.m +++ b/Tests/SentryTests/Integrations/Performance/IO/SentryFileIOTrackingIntegrationObjCTests.m @@ -1,6 +1,5 @@ #import "SentryByteCountFormatter.h" #import "SentryFileIOTrackerHelper.h" -#import "SentryOptionsInternal.h" #import "SentrySpan.h" #import "SentrySpanOperation.h" #import "SentrySwizzle.h" diff --git a/Tests/SentryTests/Integrations/Performance/IO/SentryFileIoTrackingUnitTests.swift b/Tests/SentryTests/Integrations/Performance/IO/SentryFileIoTrackingUnitTests.swift index 299d2e429b2..1c57ef06ee3 100644 --- a/Tests/SentryTests/Integrations/Performance/IO/SentryFileIoTrackingUnitTests.swift +++ b/Tests/SentryTests/Integrations/Performance/IO/SentryFileIoTrackingUnitTests.swift @@ -1,4 +1,4 @@ -@testable import Sentry +import Sentry import XCTest class SentryFileIoTrackingUnitTests: XCTestCase { @@ -7,7 +7,7 @@ class SentryFileIoTrackingUnitTests: XCTestCase { let options = Options() options.enableFileIOTracing = false let sut = SentryFileIOTrackingIntegration() - let result = sut.install(with: options.toInternal()) + let result = sut.install(with: options) XCTAssertFalse(result) } diff --git a/Tests/SentryTests/Integrations/Performance/IO/SentryNSFileManagerSwizzlingTests.m b/Tests/SentryTests/Integrations/Performance/IO/SentryNSFileManagerSwizzlingTests.m index c39e8ab7042..1b2219d6daa 100644 --- a/Tests/SentryTests/Integrations/Performance/IO/SentryNSFileManagerSwizzlingTests.m +++ b/Tests/SentryTests/Integrations/Performance/IO/SentryNSFileManagerSwizzlingTests.m @@ -2,7 +2,6 @@ #import "SentryDefaultThreadInspector.h" #import "SentryFileIOTrackerHelper.h" #import "SentryNSFileManagerSwizzling.h" -#import "SentryOptionsInternal.h" #import "SentrySpan.h" #import "SentrySpanOperation.h" #import "SentrySwizzle.h" @@ -59,8 +58,7 @@ - (void)setUpNSFileManagerSwizzlingWithEnabledFlag:(bool)enableFileManagerSwizzl self->tracker = [FileIOTrackerTestHelpers makeTrackerWithOptions:options]; [tracker enable]; - [[SentryNSFileManagerSwizzling shared] startWithOptions:[options toInternalOptions] - tracker:self->tracker]; + [[SentryNSFileManagerSwizzling shared] startWithOptions:options tracker:self->tracker]; } - (void)tearDown diff --git a/Tests/SentryTests/Integrations/Performance/Network/SentryNetworkTrackerIntegrationTests.swift b/Tests/SentryTests/Integrations/Performance/Network/SentryNetworkTrackerIntegrationTests.swift index 80bbdd6fc0f..499958ca3b4 100644 --- a/Tests/SentryTests/Integrations/Performance/Network/SentryNetworkTrackerIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/Performance/Network/SentryNetworkTrackerIntegrationTests.swift @@ -212,7 +212,7 @@ class SentryNetworkTrackerIntegrationTests: XCTestCase { private func assertRemovedIntegration(_ options: Options) { let sut = SentryNetworkTrackingIntegration() - let result = sut.install(with: options.toInternal()) + let result = sut.install(with: options) XCTAssertFalse(result) } diff --git a/Tests/SentryTests/Integrations/Performance/Network/SentryNetworkTrackerTests.swift b/Tests/SentryTests/Integrations/Performance/Network/SentryNetworkTrackerTests.swift index 82860c69ef4..e8adde225c5 100644 --- a/Tests/SentryTests/Integrations/Performance/Network/SentryNetworkTrackerTests.swift +++ b/Tests/SentryTests/Integrations/Performance/Network/SentryNetworkTrackerTests.swift @@ -63,7 +63,7 @@ class SentryNetworkTrackerTests: XCTestCase { fixture = Fixture() SentrySDKInternal.setCurrentHub(fixture.hub) - SentrySDKInternal.setStart(with: fixture.options.toInternal()) + SentrySDKInternal.setStart(with: fixture.options) SentryDependencyContainer.sharedInstance().dateProvider = fixture.dateProvider } @@ -969,7 +969,7 @@ class SentryNetworkTrackerTests: XCTestCase { sut.urlSessionTaskResume(task) let expectedTraceHeader = SentrySDKInternal.currentHub().scope.propagationContext.traceHeader.value() - let traceContext = TraceContext(trace: SentrySDKInternal.currentHub().scope.propagationContext.traceId, options: self.fixture.options.toInternal(), replayId: nil) + let traceContext = TraceContext(trace: SentrySDKInternal.currentHub().scope.propagationContext.traceId, options: self.fixture.options, replayId: nil) let expectedBaggageHeader = traceContext.toBaggage().toHTTPHeader(withOriginalBaggage: nil) XCTAssertEqual(task.currentRequest?.allHTTPHeaderFields?["baggage"] ?? "", expectedBaggageHeader) XCTAssertEqual(task.currentRequest?.allHTTPHeaderFields?["sentry-trace"] ?? "", expectedTraceHeader) @@ -981,7 +981,7 @@ class SentryNetworkTrackerTests: XCTestCase { sut.urlSessionTaskResume(task) let expectedTraceHeader = SentrySDKInternal.currentHub().scope.propagationContext.traceHeader.value() - let traceContext = TraceContext(trace: SentrySDKInternal.currentHub().scope.propagationContext.traceId, options: self.fixture.options.toInternal(), replayId: nil) + let traceContext = TraceContext(trace: SentrySDKInternal.currentHub().scope.propagationContext.traceId, options: self.fixture.options, replayId: nil) let expectedBaggageHeader = traceContext.toBaggage().toHTTPHeader(withOriginalBaggage: nil) XCTAssertEqual(task.currentRequest?.allHTTPHeaderFields?["baggage"] ?? "", expectedBaggageHeader) XCTAssertEqual(task.currentRequest?.allHTTPHeaderFields?["sentry-trace"] ?? "", expectedTraceHeader) diff --git a/Tests/SentryTests/Integrations/Performance/SentryPerformanceTrackingIntegrationTests.swift b/Tests/SentryTests/Integrations/Performance/SentryPerformanceTrackingIntegrationTests.swift index 3c6a696e46c..f77535dfd05 100644 --- a/Tests/SentryTests/Integrations/Performance/SentryPerformanceTrackingIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/Performance/SentryPerformanceTrackingIntegrationTests.swift @@ -10,7 +10,7 @@ class SentryPerformanceTrackingIntegrationTests: XCTestCase { let options = Options() options.tracesSampleRate = 0.1 - sut.install(with: options.toInternalOptions()) + sut.install(with: options) XCTAssertNotNil(Dynamic(sut).swizzling.asObject) } @@ -18,7 +18,7 @@ class SentryPerformanceTrackingIntegrationTests: XCTestCase { func testSwizzlingNotInitialized_WhenTracingDisabled() { let sut = SentryPerformanceTrackingIntegration() - sut.install(with: Options().toInternalOptions()) + sut.install(with: Options()) XCTAssertNil(Dynamic(sut).swizzling.asObject) } @@ -29,7 +29,7 @@ class SentryPerformanceTrackingIntegrationTests: XCTestCase { let options = Options() options.tracesSampleRate = 0.1 options.enableAutoPerformanceTracing = false - sut.install(with: options.toInternalOptions()) + sut.install(with: options) XCTAssertNil(Dynamic(sut).swizzling.asObject) } @@ -40,7 +40,7 @@ class SentryPerformanceTrackingIntegrationTests: XCTestCase { let options = Options() options.tracesSampleRate = 0.1 options.enableSwizzling = false - sut.install(with: options.toInternalOptions()) + sut.install(with: options) XCTAssertNil(Dynamic(sut).swizzling.asObject) } @@ -61,7 +61,7 @@ class SentryPerformanceTrackingIntegrationTests: XCTestCase { private func disablesIntegration(_ options: Options) { let sut = SentryPerformanceTrackingIntegration() - let result = sut.install(with: options.toInternalOptions()) + let result = sut.install(with: options) XCTAssertFalse(result) XCTAssertNil(Dynamic(sut).swizzling.asObject) @@ -75,7 +75,7 @@ class SentryPerformanceTrackingIntegrationTests: XCTestCase { let options = Options() options.tracesSampleRate = 0.1 options.enableTimeToFullDisplayTracing = true - sut.install(with: options.toInternalOptions()) + sut.install(with: options) // -- Assert -- let performanceTracker = SentryDependencyContainer.sharedInstance().uiViewControllerPerformanceTracker @@ -90,7 +90,7 @@ class SentryPerformanceTrackingIntegrationTests: XCTestCase { let options = Options() options.tracesSampleRate = 0.1 options.enableTimeToFullDisplayTracing = false - sut.install(with: options.toInternalOptions()) + sut.install(with: options) // -- Assert -- let performanceTracker = SentryDependencyContainer.sharedInstance().uiViewControllerPerformanceTracker diff --git a/Tests/SentryTests/Integrations/Performance/UIViewController/SentryUIViewControllerSwizzlingTests.swift b/Tests/SentryTests/Integrations/Performance/UIViewController/SentryUIViewControllerSwizzlingTests.swift index 72f129c2b39..3a05e9b87e5 100644 --- a/Tests/SentryTests/Integrations/Performance/UIViewController/SentryUIViewControllerSwizzlingTests.swift +++ b/Tests/SentryTests/Integrations/Performance/UIViewController/SentryUIViewControllerSwizzlingTests.swift @@ -28,15 +28,15 @@ class SentryUIViewControllerSwizzlingTests: XCTestCase { } var sut: SentryUIViewControllerSwizzling { - return SentryUIViewControllerSwizzling(options: options.toInternal(), dispatchQueue: dispatchQueue, objcRuntimeWrapper: objcRuntimeWrapper, subClassFinder: subClassFinder, processInfoWrapper: processInfoWrapper, binaryImageCache: binaryImageCache) + return SentryUIViewControllerSwizzling(options: options, dispatchQueue: dispatchQueue, objcRuntimeWrapper: objcRuntimeWrapper, subClassFinder: subClassFinder, processInfoWrapper: processInfoWrapper, binaryImageCache: binaryImageCache) } var sutWithDefaultObjCRuntimeWrapper: SentryUIViewControllerSwizzling { - return SentryUIViewControllerSwizzling(options: options.toInternal(), dispatchQueue: dispatchQueue, objcRuntimeWrapper: SentryDependencyContainer.sharedInstance().objcRuntimeWrapper, subClassFinder: subClassFinder, processInfoWrapper: processInfoWrapper, binaryImageCache: binaryImageCache) + return SentryUIViewControllerSwizzling(options: options, dispatchQueue: dispatchQueue, objcRuntimeWrapper: SentryDependencyContainer.sharedInstance().objcRuntimeWrapper, subClassFinder: subClassFinder, processInfoWrapper: processInfoWrapper, binaryImageCache: binaryImageCache) } var testableSut: TestSentryUIViewControllerSwizzling { - return TestSentryUIViewControllerSwizzling(options: options.toInternal(), dispatchQueue: dispatchQueue, objcRuntimeWrapper: objcRuntimeWrapper, subClassFinder: subClassFinder, processInfoWrapper: processInfoWrapper, binaryImageCache: binaryImageCache) + return TestSentryUIViewControllerSwizzling(options: options, dispatchQueue: dispatchQueue, objcRuntimeWrapper: objcRuntimeWrapper, subClassFinder: subClassFinder, processInfoWrapper: processInfoWrapper, binaryImageCache: binaryImageCache) } var delegate: MockApplication.MockApplicationDelegate { diff --git a/Tests/SentryTests/Integrations/Screenshot/SentryScreenshotIntegrationTests.swift b/Tests/SentryTests/Integrations/Screenshot/SentryScreenshotIntegrationTests.swift index 4295aa91eff..b26a5ea57db 100644 --- a/Tests/SentryTests/Integrations/Screenshot/SentryScreenshotIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/Screenshot/SentryScreenshotIntegrationTests.swift @@ -24,7 +24,7 @@ class SentryScreenshotIntegrationTests: XCTestCase { func getSut(options: Options = Options()) -> SentryScreenshotIntegration { let sut = SentryScreenshotIntegration() - sut.install(with: options.toInternal()) + sut.install(with: options) return sut } } diff --git a/Tests/SentryTests/Integrations/SentryBaseIntegrationTests.swift b/Tests/SentryTests/Integrations/SentryBaseIntegrationTests.swift index facbe90b713..b74c342dd37 100644 --- a/Tests/SentryTests/Integrations/SentryBaseIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/SentryBaseIntegrationTests.swift @@ -44,7 +44,7 @@ class SentryBaseIntegrationTests: XCTestCase { let sut = MyTestIntegration() let options = Options() options.enableAutoSessionTracking = false - let result = sut.install(with: options.toInternal()) + let result = sut.install(with: options) XCTAssertFalse(result) XCTAssertFalse(logOutput.loggedMessages.filter({ $0.contains("Not going to enable SentryTests.MyTestIntegration because enableAutoSessionTracking is disabled.") }).isEmpty) } diff --git a/Tests/SentryTests/Integrations/SentryCrash/SentryCrashIntegrationTests.swift b/Tests/SentryTests/Integrations/SentryCrash/SentryCrashIntegrationTests.swift index c30d047822d..bba89db4c9b 100644 --- a/Tests/SentryTests/Integrations/SentryCrash/SentryCrashIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/SentryCrash/SentryCrashIntegrationTests.swift @@ -76,7 +76,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { fixture.client.fileManager.deleteAppState() fixture.client.fileManager.deleteAppHangEvent() - SentrySDKInternal.setStart(with: fixture.options.toInternal()) + SentrySDKInternal.setStart(with: fixture.options) } override func tearDown() { @@ -130,7 +130,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { try advanceTime(bySeconds: 10) let sut = fixture.getSut() - sut.install(with: Options().toInternal()) + sut.install(with: Options()) assertCrashedSessionStored(expected: expectedCrashedSession) } @@ -146,7 +146,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { try advanceTime(bySeconds: 10) let sut = fixture.sutWithoutCrash - sut.install(with: fixture.options.toInternal()) + sut.install(with: fixture.options) assertCrashedSessionStored(expected: expectedCrashedSession) } @@ -159,7 +159,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let sut = fixture.sutWithoutCrash let options = fixture.options options.enableWatchdogTerminationTracking = false - sut.install(with: options.toInternal()) + sut.install(with: options) let fileManager = fixture.client.fileManager XCTAssertEqual(session, fileManager.readCurrentSession()) @@ -172,7 +172,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { func testEndSessionAsCrashed_NoClientSet() { let (sut, _) = givenSutWithGlobalHub() - sut.install(with: Options().toInternal()) + sut.install(with: Options()) let fileManager = fixture.client.fileManager XCTAssertNil(fileManager.readCurrentSession()) @@ -186,7 +186,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let sentryCrash = fixture.sentryCrash sentryCrash.internalCrashedLastLaunch = false let sut = SentryCrashIntegration(crashAdapter: sentryCrash, andDispatchQueueWrapper: fixture.dispatchQueueWrapper) - sut.install(with: Options().toInternal()) + sut.install(with: Options()) let fileManager = fixture.client.fileManager XCTAssertEqual(session, fileManager.readCurrentSession()) @@ -197,7 +197,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { func testEndSessionAsCrashed_NoCurrentSession() { let (sut, _) = givenSutWithGlobalHub() - sut.install(with: Options().toInternal()) + sut.install(with: Options()) let fileManager = fixture.client.fileManager XCTAssertNil(fileManager.readCurrentSession()) @@ -215,7 +215,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let sut = SentryCrashIntegration(crashAdapter: sentryCrash, andDispatchQueueWrapper: fixture.dispatchQueueWrapper) // Act - sut.install(with: Options().toInternal()) + sut.install(with: Options()) // Assert let fileManager = fixture.client.fileManager @@ -232,7 +232,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let sut = SentryCrashIntegration(crashAdapter: sentryCrash, andDispatchQueueWrapper: fixture.dispatchQueueWrapper) // Act - sut.install(with: Options().toInternal()) + sut.install(with: Options()) // Assert let fileManager = fixture.client.fileManager @@ -251,7 +251,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let session = givenCurrentSession() // Act - sut.install(with: Options().toInternal()) + sut.install(with: Options()) // Assert let fileManager = fixture.client.fileManager @@ -279,7 +279,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { fileManager.storeAppHang(appHangEvent) // Act - sut.install(with: Options().toInternal()) + sut.install(with: Options()) // Assert XCTAssertEqual(session, fileManager.readCurrentSession()) @@ -301,7 +301,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { fileManager.storeAppHang(appHangEvent) // Act - sut.install(with: Options().toInternal()) + sut.install(with: Options()) // Assert XCTAssertNil(fileManager.readCurrentSession()) @@ -329,7 +329,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { // Act let sut = fixture.getSut() - sut.install(with: Options().toInternal()) + sut.install(with: Options()) // Assert assertCrashedSessionStored(expected: expectedCrashedSession) @@ -341,7 +341,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { func testUninstall_DoesNotUpdateLocale_OnLocaleDidChangeNotification() { let (sut, hub) = givenSutWithGlobalHubAndCrashWrapper() - sut.install(with: Options().toInternal()) + sut.install(with: Options()) let locale = "garbage" setLocaleToGlobalScope(locale: locale) @@ -356,7 +356,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { func testOSCorrectlySetToScopeContext() { let (sut, hub) = givenSutWithGlobalHubAndCrashWrapper() - sut.install(with: Options().toInternal()) + sut.install(with: Options()) assertContext(context: hub.scope.contextDictionary as? [String: Any] ?? ["": ""]) } @@ -364,7 +364,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { func testLocaleChanged_NoDeviceContext_SetsCurrentLocale() { let (sut, hub) = givenSutWithGlobalHub() - sut.install(with: Options().toInternal()) + sut.install(with: Options()) SentrySDK.configureScope { scope in scope.removeContext(key: "device") @@ -378,7 +378,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { func testLocaleChanged_DifferentLocale_SetsCurrentLocale() { let (sut, hub) = givenSutWithGlobalHubAndCrashWrapper() - sut.install(with: Options().toInternal()) + sut.install(with: Options()) setLocaleToGlobalScope(locale: "garbage") @@ -389,7 +389,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { func testStartUpCrash_CallsFlush() throws { let (sut, hub) = givenSutWithGlobalHubAndCrashWrapper() - sut.install(with: Options().toInternal()) + sut.install(with: Options()) // Manually reset and enable the crash state because tearing down the global state in SentryCrash to achieve the same is complicated and doesn't really work. let crashStatePath = String(cString: sentrycrashstate_filePath()) @@ -399,7 +399,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let transport = TestTransport() let client = SentryClientInternal(options: fixture.options, fileManager: fixture.fileManager) - Dynamic(client).transportAdapter = TestTransportAdapter(transports: [transport], options: fixture.options.toInternal()) + Dynamic(client).transportAdapter = TestTransportAdapter(transports: [transport], options: fixture.options) hub.bindClient(client) delayNonBlocking(timeout: 0.01) @@ -430,7 +430,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let (sut, _) = givenSutWithGlobalHubAndCrashWrapper() let options = Options() options.enableUncaughtNSExceptionReporting = true - sut.install(with: options.toInternal()) + sut.install(with: options) XCTAssertTrue(UserDefaults.standard.bool(forKey: "NSApplicationCrashOnExceptions")) // We have to set the flat to false, cause otherwise we would crash @@ -455,7 +455,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let options = Options() options.enableUncaughtNSExceptionReporting = true options.enableSwizzling = false - sut.install(with: options.toInternal()) + sut.install(with: options) XCTAssertFalse(UserDefaults.standard.bool(forKey: "NSApplicationCrashOnExceptions")) @@ -477,7 +477,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let (sut, _) = givenSutWithGlobalHubAndCrashWrapper() let options = Options() options.enableUncaughtNSExceptionReporting = false - sut.install(with: options.toInternal()) + sut.install(with: options) XCTAssertFalse(UserDefaults.standard.bool(forKey: "NSApplicationCrashOnExceptions")) @@ -503,7 +503,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { options.experimental.enableUnhandledCPPExceptionsV2 = true // Act - sut.install(with: options.toInternal()) + sut.install(with: options) // Assert XCTAssertTrue(sentrycrashct_is_cxa_throw_swapped(), "C++ exception throw handler must be swapped when enableUnhandledCPPExceptionsV2 is true.") @@ -518,7 +518,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { options.experimental.enableUnhandledCPPExceptionsV2 = false // Act - sut.install(with: options.toInternal()) + sut.install(with: options) // Assert XCTAssertFalse(sentrycrashct_is_cxa_throw_swapped(), "C++ exception throw handler must NOT be swapped when enableUnhandledCPPExceptionsV2 is false.") @@ -528,7 +528,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let (sut, _) = givenSutWithGlobalHubAndCrashWrapper() let options = Options() options.enablePersistingTracesWhenCrashing = true - sut.install(with: options.toInternal()) + sut.install(with: options) XCTAssertTrue(sentrycrash_hasSaveTransaction()) } @@ -537,7 +537,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let (sut, _) = givenSutWithGlobalHubAndCrashWrapper() let options = Options() options.enablePersistingTracesWhenCrashing = true - sut.install(with: options.toInternal()) + sut.install(with: options) sut.uninstall() @@ -548,7 +548,7 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let (sut, _) = givenSutWithGlobalHubAndCrashWrapper() let options = Options() options.enablePersistingTracesWhenCrashing = false - sut.install(with: options.toInternal()) + sut.install(with: options) XCTAssertFalse(sentrycrash_hasSaveTransaction()) } @@ -557,13 +557,13 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let options = fixture.options options.enablePersistingTracesWhenCrashing = true - let client = SentryClientInternal(options: options.toInternal()) + let client = SentryClientInternal(options: options) defer { client?.fileManager.deleteAllEnvelopes() } let hub = SentryHubInternal(client: client, andScope: nil) SentrySDKInternal.setCurrentHub(hub) let sut = fixture.getSut(crashWrapper: SentryDependencyContainer.sharedInstance().crashWrapper) - sut.install(with: options.toInternal()) + sut.install(with: options) let transaction = SentrySDK.startTransaction(name: "Crashing", operation: "Operation", bindToScope: true) @@ -582,13 +582,13 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let options = fixture.options options.enablePersistingTracesWhenCrashing = true - let client = SentryClientInternal(options: options.toInternal()) + let client = SentryClientInternal(options: options) defer { client?.fileManager.deleteAllEnvelopes() } let hub = SentryHubInternal(client: client, andScope: nil) SentrySDKInternal.setCurrentHub(hub) let sut = fixture.getSut(crashWrapper: SentryDependencyContainer.sharedInstance().crashWrapper) - sut.install(with: options.toInternal()) + sut.install(with: options) let transaction = SentrySDK.startTransaction(name: "name", operation: "operation", bindToScope: true) SentrySDKInternal.currentHub().scope.span = nil @@ -603,13 +603,13 @@ class SentryCrashIntegrationTests: NotificationCenterTestCase { let options = fixture.options options.enablePersistingTracesWhenCrashing = true - let client = SentryClientInternal(options: options.toInternal()) + let client = SentryClientInternal(options: options) defer { client?.fileManager.deleteAllEnvelopes() } let hub = SentryHubInternal(client: client, andScope: nil) SentrySDKInternal.setCurrentHub(hub) let sut = fixture.getSut(crashWrapper: SentryDependencyContainer.sharedInstance().crashWrapper) - sut.install(with: options.toInternal()) + sut.install(with: options) let transaction = SentrySDK.startTransaction(name: "name", operation: "operation", bindToScope: true) let span = transaction.startChild(operation: "child") diff --git a/Tests/SentryTests/Integrations/Session/SentryAutoSessionTrackingIntegrationTests.swift b/Tests/SentryTests/Integrations/Session/SentryAutoSessionTrackingIntegrationTests.swift index 56c2dd18bf2..f2aafae448f 100644 --- a/Tests/SentryTests/Integrations/Session/SentryAutoSessionTrackingIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/Session/SentryAutoSessionTrackingIntegrationTests.swift @@ -1,4 +1,3 @@ -@testable import Sentry import SentryTestUtils import XCTest @@ -6,7 +5,7 @@ class SentryAutoSessionTrackingIntegrationTests: XCTestCase { func test_AutoSessionTrackingEnabled_TrackerInitialized() { let sut = SentryAutoSessionTrackingIntegration() - sut.install(with: Options().toInternal()) + sut.install(with: Options()) XCTAssertNotNil(Dynamic(sut).tracker.asAnyObject) } @@ -16,7 +15,7 @@ class SentryAutoSessionTrackingIntegrationTests: XCTestCase { options.enableAutoSessionTracking = false let sut = SentryAutoSessionTrackingIntegration() - let result = sut.install(with: options.toInternal()) + let result = sut.install(with: options) XCTAssertFalse(result) } diff --git a/Tests/SentryTests/Integrations/Session/SentrySessionGeneratorTests.swift b/Tests/SentryTests/Integrations/Session/SentrySessionGeneratorTests.swift index 124d3c697db..5690bd5a7ef 100644 --- a/Tests/SentryTests/Integrations/Session/SentrySessionGeneratorTests.swift +++ b/Tests/SentryTests/Integrations/Session/SentrySessionGeneratorTests.swift @@ -92,9 +92,9 @@ class SentrySessionGeneratorTests: NotificationCenterTestCase { sentryCrash.internalCrashedLastLaunch = true for _ in Array(1...amount.crashed) { // send crashed session - crashIntegration.install(with: options.toInternal()) + crashIntegration.install(with: options) autoSessionTrackingIntegration.stop() - autoSessionTrackingIntegration.install(with: options.toInternal()) + autoSessionTrackingIntegration.install(with: options) goToForeground() // Almost always the AutoSessionTrackingIntegration is faster @@ -114,10 +114,10 @@ class SentrySessionGeneratorTests: NotificationCenterTestCase { for _ in Array(1...amount.oom) { // send crashed session - crashIntegration.install(with: options.toInternal()) + crashIntegration.install(with: options) autoSessionTrackingIntegration.stop() - autoSessionTrackingIntegration.install(with: options.toInternal()) + autoSessionTrackingIntegration.install(with: options) goToForeground() SentrySDKInternal.captureFatalEvent(TestData.oomEvent) @@ -127,7 +127,7 @@ class SentrySessionGeneratorTests: NotificationCenterTestCase { for _ in Array(1...amount.abnormal) { autoSessionTrackingIntegration.stop() - autoSessionTrackingIntegration.install(with: options.toInternal()) + autoSessionTrackingIntegration.install(with: options) goToForeground() } @@ -148,10 +148,10 @@ class SentrySessionGeneratorTests: NotificationCenterTestCase { SentrySDKInternal.setCurrentHub(hub) crashIntegration = SentryCrashIntegration(crashAdapter: sentryCrash, andDispatchQueueWrapper: TestSentryDispatchQueueWrapper()) - crashIntegration.install(with: options.toInternal()) + crashIntegration.install(with: options) autoSessionTrackingIntegration = SentryAutoSessionTrackingIntegration() - autoSessionTrackingIntegration.install(with: options.toInternal()) + autoSessionTrackingIntegration.install(with: options) } private func goToForeground(forSeconds: TimeInterval = 0.2) { diff --git a/Tests/SentryTests/Integrations/SessionReplay/SentryReplayOptionsObjcTests.m b/Tests/SentryTests/Integrations/SessionReplay/SentryReplayOptionsObjcTests.m index 307e7adb13e..f74070a3078 100644 --- a/Tests/SentryTests/Integrations/SessionReplay/SentryReplayOptionsObjcTests.m +++ b/Tests/SentryTests/Integrations/SessionReplay/SentryReplayOptionsObjcTests.m @@ -1,4 +1,3 @@ -#import "SentryOptionsInternal+Private.h" #import #import diff --git a/Tests/SentryTests/Integrations/SessionReplay/SentrySessionReplayIntegrationTests.swift b/Tests/SentryTests/Integrations/SessionReplay/SentrySessionReplayIntegrationTests.swift index 6d7570c385a..8d76a207cd1 100644 --- a/Tests/SentryTests/Integrations/SessionReplay/SentrySessionReplayIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/SessionReplay/SentrySessionReplayIntegrationTests.swift @@ -562,7 +562,7 @@ class SentrySessionReplayIntegrationTests: XCTestCase { // We can't use SentrySDK.start because the dependency container dispatch queue is used for other tasks. // Manually starting the integration and initializing it makes the test more controlled. let integration = SentrySessionReplayIntegration() - integration.install(with: options.toInternal()) + integration.install(with: options) XCTAssertEqual(dispatchQueue.dispatchAsyncCalled, 0) } @@ -728,7 +728,7 @@ class SentrySessionReplayIntegrationTests: XCTestCase { options.sessionReplay = SentryReplayOptions(sessionSampleRate: 1.0, onErrorSampleRate: 1.0) let instance = SentrySessionReplayIntegration() - instance.install(with: options.toInternal()) + instance.install(with: options) instance.uninstall() weakSut = instance @@ -752,7 +752,7 @@ class SentrySessionReplayIntegrationTests: XCTestCase { SentryDependencyContainer.sharedInstance().sessionReplayEnvironmentChecker = TestSessionReplayEnvironmentChecker(mockedIsReliableReturnValue: false) // -- Act -- - let result = instance.install(with: options.toInternal()) + let result = instance.install(with: options) // -- Assert -- XCTAssertFalse(result) @@ -769,7 +769,7 @@ class SentrySessionReplayIntegrationTests: XCTestCase { SentryDependencyContainer.sharedInstance().sessionReplayEnvironmentChecker = TestSessionReplayEnvironmentChecker(mockedIsReliableReturnValue: false) // -- Act -- - let result = instance.install(with: options.toInternal()) + let result = instance.install(with: options) // -- Assert -- XCTAssertTrue(result) @@ -786,7 +786,7 @@ class SentrySessionReplayIntegrationTests: XCTestCase { SentryDependencyContainer.sharedInstance().sessionReplayEnvironmentChecker = TestSessionReplayEnvironmentChecker(mockedIsReliableReturnValue: true) // -- Act -- - let result = instance.install(with: options.toInternal()) + let result = instance.install(with: options) // -- Assert -- XCTAssertTrue(result) diff --git a/Tests/SentryTests/Integrations/UIEvents/SentryUIEventTrackingIntegrationTests.swift b/Tests/SentryTests/Integrations/UIEvents/SentryUIEventTrackingIntegrationTests.swift index cab2110d734..3fdf475f30b 100644 --- a/Tests/SentryTests/Integrations/UIEvents/SentryUIEventTrackingIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/UIEvents/SentryUIEventTrackingIntegrationTests.swift @@ -11,13 +11,13 @@ class SentryUIEventTrackerIntegrationTests: XCTestCase { return SentryUIEventTrackingIntegration() } - func optionForUIEventTracking(enableSwizzling: Bool = true, enableAutoPerformanceTracing: Bool = true, enableUserInteractionTracing: Bool = true, tracesSampleRate: Double = 1.0) -> SentryOptionsInternal { + func optionForUIEventTracking(enableSwizzling: Bool = true, enableAutoPerformanceTracing: Bool = true, enableUserInteractionTracing: Bool = true, tracesSampleRate: Double = 1.0) -> Options { let res = Options() res.enableSwizzling = enableSwizzling res.enableAutoPerformanceTracing = enableAutoPerformanceTracing res.enableUserInteractionTracing = enableUserInteractionTracing res.tracesSampleRate = NSNumber(value: tracesSampleRate) - return res.toInternal() + return res } } diff --git a/Tests/SentryTests/Integrations/ViewHierarchy/SentryViewHierarchyIntegrationTests.swift b/Tests/SentryTests/Integrations/ViewHierarchy/SentryViewHierarchyIntegrationTests.swift index 6f5649a3dc6..0d6aaa4d950 100644 --- a/Tests/SentryTests/Integrations/ViewHierarchy/SentryViewHierarchyIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/ViewHierarchy/SentryViewHierarchyIntegrationTests.swift @@ -125,7 +125,7 @@ class SentryViewHierarchyIntegrationTests: XCTestCase { return false } - sut.install(with: options.toInternal()) + sut.install(with: options) let newAttachmentList = sut.processAttachments([], for: Event(error: NSError(domain: "", code: -1))) diff --git a/Tests/SentryTests/Integrations/WatchdogTerminations/SentryWatchdogTerminationTrackerTests.swift b/Tests/SentryTests/Integrations/WatchdogTerminations/SentryWatchdogTerminationTrackerTests.swift index a7d4f0ea50e..bbc42045462 100644 --- a/Tests/SentryTests/Integrations/WatchdogTerminations/SentryWatchdogTerminationTrackerTests.swift +++ b/Tests/SentryTests/Integrations/WatchdogTerminations/SentryWatchdogTerminationTrackerTests.swift @@ -9,7 +9,7 @@ class SentryWatchdogTerminationTrackerTests: NotificationCenterTestCase { private class Fixture { - let options: SentryOptionsInternal + let options: Options let client: TestClient! let crashWrapper: TestSentryCrashWrapper let fileManager: SentryFileManager @@ -23,11 +23,10 @@ class SentryWatchdogTerminationTrackerTests: NotificationCenterTestCase { init() throws { SentryDependencyContainer.sharedInstance().sysctlWrapper = sysctl - let options = Options() + options = Options() options.maxBreadcrumbs = 2 options.dsn = SentryWatchdogTerminationTrackerTests.dsnAsString options.releaseName = TestData.appState.releaseName - self.options = options.toInternal() fileManager = try! SentryFileManager(options: options, dateProvider: currentDate, dispatchQueueWrapper: dispatchQueue) @@ -39,7 +38,7 @@ class SentryWatchdogTerminationTrackerTests: NotificationCenterTestCase { scopePersistentStore: scopePersistentStore ) - client = TestClient(options: self.options) + client = TestClient(options: options) crashWrapper = TestSentryCrashWrapper(processInfoWrapper: ProcessInfo.processInfo) diff --git a/Tests/SentryTests/Integrations/WatchdogTerminations/SentryWatchdogTerminationTrackingIntegrationTests.swift b/Tests/SentryTests/Integrations/WatchdogTerminations/SentryWatchdogTerminationTrackingIntegrationTests.swift index db799e4f5b6..ad3550eb6f6 100644 --- a/Tests/SentryTests/Integrations/WatchdogTerminations/SentryWatchdogTerminationTrackingIntegrationTests.swift +++ b/Tests/SentryTests/Integrations/WatchdogTerminations/SentryWatchdogTerminationTrackingIntegrationTests.swift @@ -52,7 +52,7 @@ class SentryWatchdogTerminationIntegrationTests: XCTestCase { SentryDependencyContainer.sharedInstance().dispatchQueueWrapper = dispatchQueueWrapper SentryDependencyContainer.sharedInstance().notificationCenterWrapper = notificationCenterWrapper appStateManager = SentryAppStateManager( - options: options.toInternal(), + options: options, crashWrapper: crashWrapper, fileManager: fileManager, sysctlWrapper: SentryDependencyContainer.sharedInstance().sysctlWrapper @@ -67,7 +67,7 @@ class SentryWatchdogTerminationIntegrationTests: XCTestCase { ) container.watchdogTerminationAttributesProcessor = watchdogTerminationAttributesProcessor - let client = TestClient(options: options.toInternal()) + let client = TestClient(options: options) scope = Scope() hub = SentryHubInternal(client: client, andScope: scope, andCrashWrapper: crashWrapper, andDispatchQueue: dispatchQueueWrapper) SentrySDKInternal.setCurrentHub(hub) @@ -123,7 +123,7 @@ class SentryWatchdogTerminationIntegrationTests: XCTestCase { let sut = fixture.getSut() // -- Act -- - let result = sut.install(with: fixture.options.toInternal()) + let result = sut.install(with: fixture.options) // -- Assert -- XCTAssertFalse(result) @@ -138,7 +138,7 @@ class SentryWatchdogTerminationIntegrationTests: XCTestCase { let sut = fixture.getSut() // -- Act -- - let result = sut.install(with: fixture.options.toInternal()) + let result = sut.install(with: fixture.options) // -- Assert -- XCTAssertFalse(result) @@ -153,7 +153,7 @@ class SentryWatchdogTerminationIntegrationTests: XCTestCase { let sut = fixture.getSut() // -- Act -- - let result = sut.install(with: fixture.options.toInternal()) + let result = sut.install(with: fixture.options) // -- Assert -- XCTAssertFalse(result) @@ -162,7 +162,7 @@ class SentryWatchdogTerminationIntegrationTests: XCTestCase { func testInstallWithOptions_whenNoUnitTests_trackerInitialized() { let sut = SentryWatchdogTerminationTrackingIntegration() Dynamic(sut).setTestConfigurationFilePath(nil) - sut.install(with: Options().toInternal()) + sut.install(with: Options()) XCTAssertNotNil(Dynamic(sut).tracker.asAnyObject) } @@ -181,7 +181,7 @@ class SentryWatchdogTerminationIntegrationTests: XCTestCase { XCTAssertEqual(fixture.watchdogTerminationAttributesProcessor.setFingerprintInvocations.count, 0) // -- Act -- - sut.install(with: fixture.options.toInternal()) + sut.install(with: fixture.options) XCTAssertEqual(fixture.watchdogTerminationAttributesProcessor.setContextInvocations.count, 1) XCTAssertEqual(fixture.watchdogTerminationAttributesProcessor.setUserInvocations.count, 1) XCTAssertEqual(fixture.watchdogTerminationAttributesProcessor.setDistInvocations.count, 1) @@ -243,7 +243,7 @@ class SentryWatchdogTerminationIntegrationTests: XCTestCase { XCTAssertEqual(fixture.watchdogTerminationAttributesProcessor.setFingerprintInvocations.count, 0) // -- Act -- - sut.install(with: fixture.options.toInternal()) + sut.install(with: fixture.options) // -- Assert -- // As the instance of the scope observer is dynamically created by the dependency container, @@ -271,7 +271,7 @@ class SentryWatchdogTerminationIntegrationTests: XCTestCase { // -- Arrange -- fixture.crashWrapper.internalIsBeingTraced = false let sut = fixture.getSut() - sut.install(with: Options().toInternal()) + sut.install(with: Options()) // -- Act -- Dynamic(sut).anrDetectedWithType(SentryANRType.unknown) @@ -285,7 +285,7 @@ class SentryWatchdogTerminationIntegrationTests: XCTestCase { // -- Arrange -- fixture.crashWrapper.internalIsBeingTraced = false let sut = fixture.getSut() - sut.install(with: Options().toInternal()) + sut.install(with: Options()) // -- Act -- Dynamic(sut).anrStopped() diff --git a/Tests/SentryTests/Networking/SentrySpotlightTransportTests.swift b/Tests/SentryTests/Networking/SentrySpotlightTransportTests.swift index e8f70e4bf94..3cbc8cc5878 100644 --- a/Tests/SentryTests/Networking/SentrySpotlightTransportTests.swift +++ b/Tests/SentryTests/Networking/SentrySpotlightTransportTests.swift @@ -24,7 +24,7 @@ final class SentrySpotlightTransportTests: XCTestCase { options.spotlightUrl = spotlightUrl ?? "" } - return SentrySpotlightTransport(options: options.toInternal(), requestManager: requestManager, requestBuilder: requestBuilder, dispatchQueueWrapper: TestSentryDispatchQueueWrapper()) + return SentrySpotlightTransport(options: options, requestManager: requestManager, requestBuilder: requestBuilder, dispatchQueueWrapper: TestSentryDispatchQueueWrapper()) } private func givenEventEnvelope(withAttachment: Bool = false) throws -> SentryEnvelope { diff --git a/Tests/SentryTests/Networking/SentryTransportAdapterTests.swift b/Tests/SentryTests/Networking/SentryTransportAdapterTests.swift index bf2467aede2..bb249db2545 100644 --- a/Tests/SentryTests/Networking/SentryTransportAdapterTests.swift +++ b/Tests/SentryTests/Networking/SentryTransportAdapterTests.swift @@ -13,7 +13,7 @@ class SentryTransportAdapterTests: XCTestCase { let attachment = Attachment(data: Data(), filename: "test.txt") var sut: SentryTransportAdapter { - return SentryTransportAdapter(transports: [transport1, transport2], options: options.toInternal()) + return SentryTransportAdapter(transports: [transport1, transport2], options: options) } } diff --git a/Tests/SentryTests/Networking/SentryTransportFactoryTests.swift b/Tests/SentryTests/Networking/SentryTransportFactoryTests.swift index e24d6200c87..f147c618a97 100644 --- a/Tests/SentryTests/Networking/SentryTransportFactoryTests.swift +++ b/Tests/SentryTests/Networking/SentryTransportFactoryTests.swift @@ -27,7 +27,7 @@ class SentryTransportFactoryTests: XCTestCase { // -- Act -- let transports = TransportInitializer.initTransports( - options.toInternal(), + options, dateProvider: dateProvider, sentryFileManager: fileManager, rateLimits: rateLimiting() @@ -67,7 +67,7 @@ class SentryTransportFactoryTests: XCTestCase { // -- Act -- let transports = TransportInitializer.initTransports( - options.toInternal(), + options, dateProvider: dateProvider, sentryFileManager: fileManager, rateLimits: rateLimiting() @@ -96,7 +96,7 @@ class SentryTransportFactoryTests: XCTestCase { // -- Act -- let transports = TransportInitializer.initTransports( - options.toInternal(), + options, dateProvider: dateProvider, sentryFileManager: try SentryFileManager( options: options, @@ -126,7 +126,7 @@ class SentryTransportFactoryTests: XCTestCase { // -- Act -- let transports = TransportInitializer.initTransports( - options.toInternal(), + options, dateProvider: dateProvider, sentryFileManager: try SentryFileManager( options: options, @@ -150,7 +150,7 @@ class SentryTransportFactoryTests: XCTestCase { // -- Act -- let transports = TransportInitializer.initTransports( - options.toInternal(), + options, dateProvider: dateProvider, sentryFileManager: try SentryFileManager( options: options, diff --git a/Tests/SentryTests/Networking/SentryTransportInitializerTests.swift b/Tests/SentryTests/Networking/SentryTransportInitializerTests.swift index 8c86c0e1657..c44bbbaed6e 100644 --- a/Tests/SentryTests/Networking/SentryTransportInitializerTests.swift +++ b/Tests/SentryTests/Networking/SentryTransportInitializerTests.swift @@ -27,7 +27,7 @@ class SentryTransportInitializerTests: XCTestCase { let options = try SentryOptionsInternal.initWithDict(["dsn": SentryTransportInitializerTests.dsnAsString]) let result = TransportInitializer.initTransports( - options.toInternal(), + options, dateProvider: dateProvider, sentryFileManager: fileManager, rateLimits: rateLimits diff --git a/Tests/SentryTests/SentryClient+TestInit.h b/Tests/SentryTests/SentryClient+TestInit.h index 88270d2f1c3..2346528f9f0 100644 --- a/Tests/SentryTests/SentryClient+TestInit.h +++ b/Tests/SentryTests/SentryClient+TestInit.h @@ -13,7 +13,7 @@ NS_ASSUME_NONNULL_BEGIN @interface SentryClientInternal () -- (instancetype)initWithOptions:(SentryOptionsInternal *)options +- (instancetype)initWithOptions:(NSObject *)options transportAdapter:(SentryTransportAdapter *)transportAdapter fileManager:(SentryFileManager *)fileManager threadInspector:(SentryDefaultThreadInspector *)threadInspector diff --git a/Tests/SentryTests/SentryClientTests.swift b/Tests/SentryTests/SentryClientTests.swift index 249b1f7721a..54778392301 100644 --- a/Tests/SentryTests/SentryClientTests.swift +++ b/Tests/SentryTests/SentryClientTests.swift @@ -4,9 +4,9 @@ import XCTest extension SentryClientInternal { convenience init(options: Options, fileManager: SentryFileManager) { - let transports = TransportInitializer.initTransports(options.toInternal(), dateProvider: SentryDependencyContainer.sharedInstance().dateProvider, sentryFileManager: fileManager, rateLimits: SentryDependencyContainer.sharedInstance().rateLimits) + let transports = TransportInitializer.initTransports(options, dateProvider: SentryDependencyContainer.sharedInstance().dateProvider, sentryFileManager: fileManager, rateLimits: SentryDependencyContainer.sharedInstance().rateLimits) - let transportAdapter = SentryTransportAdapter(transports: transports, options: options.toInternal()) + let transportAdapter = SentryTransportAdapter(transports: transports, options: options) self.init( options: options.toInternal(), @@ -86,7 +86,7 @@ class SentryClientTests: XCTestCase { transaction = Transaction(trace: trace, children: []) transport = TestTransport() - transportAdapter = TestTransportAdapter(transports: [transport], options: options.toInternal()) + transportAdapter = TestTransportAdapter(transports: [transport], options: options) crashWrapper.internalFreeMemorySize = 123_456 crashWrapper.internalAppMemorySize = 234_567 @@ -814,7 +814,7 @@ class SentryClientTests: XCTestCase { try assertValidErrorEvent(eventWithSessionArguments.event, error) XCTAssertEqual(fixture.session, eventWithSessionArguments.session) - let expectedTraceContext = TraceContext(trace: scope.propagationContext.traceId, options: Options().toInternal(), replayId: nil) + let expectedTraceContext = TraceContext(trace: scope.propagationContext.traceId, options: Options(), replayId: nil) XCTAssertEqual(eventWithSessionArguments.traceContext?.traceId, expectedTraceContext.traceId) } diff --git a/Tests/SentryTests/SentryOptionsTest.m b/Tests/SentryTests/SentryOptionsTest.m index 182e31574be..0620d484054 100644 --- a/Tests/SentryTests/SentryOptionsTest.m +++ b/Tests/SentryTests/SentryOptionsTest.m @@ -1,5 +1,4 @@ #import "SentryError.h" -#import "SentryOptionsInternal.h" #import "SentrySDKInternal.h" #import "SentrySpan.h" #import "SentryTests-Swift.h" @@ -96,7 +95,7 @@ - (void)testEnableReportingUncaughtNSExceptions - (void)testEnvironment { SentryOptions *options = [self getValidOptions:@{}]; - XCTAssertEqual(options.environment, kSentryDefaultEnvironment); + XCTAssertEqualObjects(options.environment, @"production"); options = [self getValidOptions:@{ @"environment" : @"xxx" }]; XCTAssertEqualObjects(options.environment, @"xxx"); @@ -288,10 +287,15 @@ - (NSString *)getDefaultCacheDirectoryPath - (void)testBeforeSend { - SentryBeforeSendEventCallback callback = ^(SentryEvent *event) { return event; }; + __block BOOL called = false; + SentryBeforeSendEventCallback callback = ^(SentryEvent *event) { + called = true; + return event; + }; SentryOptions *options = [self getValidOptions:@{ @"beforeSend" : callback }]; + options.beforeSend([[SentryEvent alloc] init]); - XCTAssertEqual(callback, options.beforeSend); + XCTAssertTrue(called); } - (void)testDefaultBeforeSend @@ -315,13 +319,20 @@ - (void)testNSNullBeforeSend_ReturnsNil XCTAssertFalse([options.beforeSend isEqual:[NSNull null]]); } -#if !SWIFT_PACKAGE +typedef SentryLog *_Nullable (^SentryBeforeSendLogCallback)(SentryLog *_Nonnull log); - (void)testBeforeSendLog { - SentryBeforeSendLogCallback callback = ^(SentryLog *log) { return log; }; + __block BOOL called = false; + SentryBeforeSendLogCallback callback = ^(SentryLog *log) { + called = true; + return log; + }; SentryOptions *options = [self getValidOptions:@{ @"beforeSendLog" : callback }]; + // Not calling `init` here because it is not available in ObjC, but it doesn't matter because + // the object is not used in the stub callback; + options.beforeSendLog([SentryLog alloc]); - XCTAssertEqual(callback, options.beforeSendLog); + XCTAssertTrue(called); } - (void)testDefaultBeforeSendLog @@ -337,14 +348,23 @@ - (void)testGarbageBeforeSendLog_ReturnsNil XCTAssertNil(options.beforeSendLog); } -#endif // !SWIFT_PACKAGE - (void)testBeforeSendSpan { - SentryBeforeSendSpanCallback callback = ^(id span) { return span; }; + __block BOOL called = false; + SentryBeforeSendSpanCallback callback = ^(id span) { + called = true; + return span; + }; SentryOptions *options = [self getValidOptions:@{ @"beforeSendSpan" : callback }]; + options.beforeSendSpan( + [[SentrySpan alloc] initWithContext:[[SentrySpanContext alloc] initWithOperation:@""] +#if SENTRY_HAS_UIKIT + framesTracker:NULL +#endif + ]); - XCTAssertEqual(callback, options.beforeSendSpan); + XCTAssertTrue(called); } - (void)testDefaultBeforeSendSpan @@ -356,11 +376,15 @@ - (void)testDefaultBeforeSendSpan - (void)testBeforeBreadcrumb { - SentryBeforeBreadcrumbCallback callback - = ^(SentryBreadcrumb *breadcrumb) { return breadcrumb; }; + __block BOOL called = false; + SentryBeforeBreadcrumbCallback callback = ^(SentryBreadcrumb *breadcrumb) { + called = true; + return breadcrumb; + }; SentryOptions *options = [self getValidOptions:@{ @"beforeBreadcrumb" : callback }]; + options.beforeBreadcrumb([[SentryBreadcrumb alloc] init]); - XCTAssertEqual(callback, options.beforeBreadcrumb); + XCTAssertTrue(called); } - (void)testDefaultBeforeBreadcrumb @@ -372,16 +396,18 @@ - (void)testDefaultBeforeBreadcrumb - (void)testBeforeCaptureScreenshot { + __block BOOL called = false; SentryBeforeCaptureScreenshotCallback callback = ^(SentryEvent *event) { + called = true; if (event.level == kSentryLevelFatal) { return NO; } - - return YES; + return NO; }; SentryOptions *options = [self getValidOptions:@{ @"beforeCaptureScreenshot" : callback }]; + options.beforeCaptureScreenshot([[SentryEvent alloc] init]); - XCTAssertEqual(callback, options.beforeCaptureScreenshot); + XCTAssertTrue(called); } - (void)testDefaultBeforeCaptureScreenshot @@ -393,16 +419,18 @@ - (void)testDefaultBeforeCaptureScreenshot - (void)testBeforeCaptureViewHierarchy { + __block BOOL called = false; SentryBeforeCaptureScreenshotCallback callback = ^(SentryEvent *event) { + called = true; if (event.level == kSentryLevelFatal) { return NO; } - - return YES; + return NO; }; SentryOptions *options = [self getValidOptions:@{ @"beforeCaptureViewHierarchy" : callback }]; + options.beforeCaptureViewHierarchy([[SentryEvent alloc] init]); - XCTAssertEqual(callback, options.beforeCaptureViewHierarchy); + XCTAssertTrue(called); } - (void)testDefaultBeforeCaptureViewHierarchy @@ -486,7 +514,6 @@ - (void)testOnCrashedLastRun options.onCrashedLastRun([[SentryEvent alloc] init]); - XCTAssertEqual(callback, options.onCrashedLastRun); XCTAssertTrue(onCrashedLastRunCalled); } @@ -513,14 +540,14 @@ - (void)testSampleRateWithDict - (void)testSampleRate_SetToNil { - SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; + SentryOptions *options = [[SentryOptions alloc] init]; options.sampleRate = nil; XCTAssertEqual(options.sampleRate.doubleValue, 0); } - (void)testSampleRateLowerBound { - SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; + SentryOptions *options = [[SentryOptions alloc] init]; options.sampleRate = @0.5; NSNumber *sampleRateLowerBound = @0; @@ -536,7 +563,7 @@ - (void)testSampleRateLowerBound - (void)testSampleRateUpperBound { - SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; + SentryOptions *options = [[SentryOptions alloc] init]; options.sampleRate = @0.5; NSNumber *upperBound = @1; @@ -602,7 +629,6 @@ - (void)testEmptyConstructorSetsDefaultValues - (void)testNSNull_SetsDefaultValue { - SentryOptions *options = [SentryOptionsInternal initWithDict:@{ @"urlSession" : [NSNull null], @"dsn" : [NSNull null], @@ -617,9 +643,7 @@ - (void)testNSNull_SetsDefaultValue @"maxCacheItems" : [NSNull null], @"cacheDirectoryPath" : [NSNull null], @"beforeSend" : [NSNull null], -#if !SWIFT_PACKAGE @"beforeSendLog" : [NSNull null], -#endif @"beforeBreadcrumb" : [NSNull null], @"onCrashedLastRun" : [NSNull null], @"integrations" : [NSNull null], @@ -671,7 +695,7 @@ - (void)assertDefaultValues:(SentryOptions *)options XCTAssertEqual(2.0, options.shutdownTimeInterval); XCTAssertEqual(NO, options.debug); XCTAssertEqual(kSentryLevelDebug, options.diagnosticLevel); - XCTAssertEqual(options.environment, kSentryDefaultEnvironment); + XCTAssertEqualObjects(options.environment, @"production"); XCTAssertNil(options.dist); XCTAssertEqual(defaultMaxBreadcrumbs, options.maxBreadcrumbs); XCTAssertTrue(options.enableNetworkBreadcrumbs); @@ -709,7 +733,7 @@ - (void)assertDefaultValues:(SentryOptions *)options XCTAssertNil(options.urlSessionDelegate); XCTAssertNil(options.urlSession); XCTAssertEqual(YES, options.enableSwizzling); - XCTAssertEqual([NSSet new], options.swizzleClassNameExcludes); + XCTAssertEqualObjects([NSSet new], options.swizzleClassNameExcludes); XCTAssertEqual(YES, options.enableFileIOTracing); XCTAssertEqual(YES, options.enableAutoBreadcrumbTracking); XCTAssertFalse(options.swiftAsyncStacktraces); @@ -741,7 +765,7 @@ - (void)assertDefaultValues:(SentryOptions *)options - (void)testSetValidDsn { NSString *dsnAsString = @"https://username:password@sentry.io/1"; - SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; + SentryOptions *options = [[SentryOptions alloc] init]; options.dsn = dsnAsString; options.enabled = NO; @@ -754,7 +778,7 @@ - (void)testSetValidDsn - (void)testSetNilDsn { - SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; + SentryOptions *options = [[SentryOptions alloc] init]; [options setDsn:nil]; XCTAssertNil(options.dsn); @@ -764,7 +788,7 @@ - (void)testSetNilDsn - (void)testSetInvalidValidDsn { - SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; + SentryOptions *options = [[SentryOptions alloc] init]; [options setDsn:@"https://username:passwordsentry.io/1"]; XCTAssertNil(options.dsn); @@ -776,7 +800,7 @@ - (void)testSetInvalidValidDsn - (void)testDsnViaEnvironment { setenv("SENTRY_DSN", "https://username:password@sentry.io/1", 1); - SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; + SentryOptions *options = [[SentryOptions alloc] init]; XCTAssertEqualObjects(options.dsn, @"https://username:password@sentry.io/1"); XCTAssertNotNil(options.parsedDsn); setenv("SENTRY_DSN", "", 1); @@ -785,7 +809,7 @@ - (void)testDsnViaEnvironment - (void)testInvalidDsnViaEnvironment { setenv("SENTRY_DSN", "foo_bar", 1); - SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; + SentryOptions *options = [[SentryOptions alloc] init]; XCTAssertNil(options.dsn); XCTAssertNil(options.parsedDsn); XCTAssertEqual(options.enabled, YES); @@ -966,7 +990,7 @@ - (void)testDefaultTracesSampleRate - (void)testTracesSampleRate_SetToNil { - SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; + SentryOptions *options = [[SentryOptions alloc] init]; options.tracesSampleRate = nil; XCTAssertNil(options.tracesSampleRate); XCTAssertEqual(options.tracesSampleRate.doubleValue, 0); @@ -974,7 +998,7 @@ - (void)testTracesSampleRate_SetToNil - (void)testTracesSampleRateLowerBound { - SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; + SentryOptions *options = [[SentryOptions alloc] init]; options.tracesSampleRate = @0.5; NSNumber *lowerBound = @0; @@ -990,7 +1014,7 @@ - (void)testTracesSampleRateLowerBound - (void)testTracesSampleRateUpperBound { - SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; + SentryOptions *options = [[SentryOptions alloc] init]; options.tracesSampleRate = @0.5; NSNumber *lowerBound = @1; @@ -1036,27 +1060,27 @@ - (void)testGarbageTracesSampler_ReturnsNil - (void)testIsTracingEnabled_NothingSet_IsDisabled { - SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; + SentryOptions *options = [[SentryOptions alloc] init]; XCTAssertFalse(options.isTracingEnabled); } - (void)testIsTracingEnabled_TracesSampleRateSetToZero_IsDisabled { - SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; + SentryOptions *options = [[SentryOptions alloc] init]; options.tracesSampleRate = @0.00; XCTAssertFalse(options.isTracingEnabled); } - (void)testIsTracingEnabled_TracesSampleRateSet_IsEnabled { - SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; + SentryOptions *options = [[SentryOptions alloc] init]; options.tracesSampleRate = @0.01; XCTAssertTrue(options.isTracingEnabled); } - (void)testIsTracingEnabled_TracesSamplerSet_IsEnabled { - SentryOptionsInternal *options = [[SentryOptionsInternal alloc] init]; + SentryOptions *options = [[SentryOptions alloc] init]; options.tracesSampler = ^(SentrySamplingContext *context) { XCTAssertNotNil(context); return @0.0; @@ -1113,10 +1137,14 @@ - (void)testDefaultInitialScope - (void)testInitialScope { - SentryScope * (^initialScope)(SentryScope *) - = ^SentryScope *(SentryScope *scope) { return scope; }; + __block BOOL called = false; + SentryScope * (^initialScope)(SentryScope *) = ^SentryScope *(SentryScope *scope) { + called = true; + return scope; + }; SentryOptions *options = [self getValidOptions:@{ @"initialScope" : initialScope }]; - XCTAssertIdentical(initialScope, options.initialScope); + options.initialScope([[SentryScope alloc] init]); + XCTAssertTrue(called); } - (SentryOptions *)getValidOptions:(NSDictionary *)dict @@ -1171,19 +1199,6 @@ - (void)testInitialSwiftAsyncStacktracesYes XCTAssertTrue(options.swiftAsyncStacktraces); } -- (void)testOptionsDebugDescription -{ - NSNumber *_Nullable (^tracesSampler)(void) = ^NSNumber *_Nullable { return nil; }; - SentryOptions *options = [self getValidOptions:@{ - @"tracesSampler" : tracesSampler, - @"sampleRate" : @0.123, - }]; - NSString *debugDescription = options.debugDescription; - XCTAssertNotNil(debugDescription); - XCTAssert([debugDescription containsString:@"sampleRate: 0.123"]); - XCTAssert([debugDescription containsString:@"tracesSampler: <__NSGlobalBlock__: "]); -} - - (void)testEnableSpotlight { [self testBooleanField:@"enableSpotlight" defaultValue:NO]; @@ -1205,14 +1220,14 @@ - (void)testSpotlightUrl - (void)testIsAppHangTrackingDisabled_WhenOptionDisabled { SentryOptions *options = [self getValidOptions:@{ @"appHangTimeoutInterval" : @0 }]; - XCTAssertTrue([options toInternalOptions].isAppHangTrackingDisabled); + XCTAssertTrue(options.isAppHangTrackingDisabled); } - (void)testIsAppHangTrackingDisabled_WhenOnlyAppHangTimeoutIntervalZero { SentryOptions *options = [self getValidOptions:@{ @"enableAppHangTracking" : @YES, @"appHangTimeoutInterval" : @0 }]; - XCTAssertTrue([options toInternalOptions].isAppHangTrackingDisabled); + XCTAssertTrue(options.isAppHangTrackingDisabled); } #endif // SENTRY_HAS_UIKIT diff --git a/Tests/SentryTests/SentrySDKIntegrationTestsBase.swift b/Tests/SentryTests/SentrySDKIntegrationTestsBase.swift index b3cd0907214..0a2e6b5a6fc 100644 --- a/Tests/SentryTests/SentrySDKIntegrationTestsBase.swift +++ b/Tests/SentryTests/SentrySDKIntegrationTestsBase.swift @@ -30,7 +30,7 @@ class SentrySDKIntegrationTestsBase: XCTestCase { let client = TestClient(options: options?.toInternal() ?? self.options.toInternal()) let hub = SentryHubInternal(client: client, andScope: scope, andCrashWrapper: TestSentryCrashWrapper(processInfoWrapper: ProcessInfo.processInfo), andDispatchQueue: SentryDispatchQueueWrapper()) - SentrySDKInternal.setStart(with: self.options.toInternal()) + SentrySDKInternal.setStart(with: self.options) SentrySDKInternal.setCurrentHub(hub) } diff --git a/Tests/SentryTests/SentrySDKInternal+Tests.h b/Tests/SentryTests/SentrySDKInternal+Tests.h index 206b4a00155..7130e76825a 100644 --- a/Tests/SentryTests/SentrySDKInternal+Tests.h +++ b/Tests/SentryTests/SentrySDKInternal+Tests.h @@ -9,7 +9,7 @@ NS_ASSUME_NONNULL_BEGIN + (void)setCurrentHub:(nullable SentryHubInternal *)hub; -+ (void)setStartOptions:(nullable SentryOptionsInternal *)options NS_SWIFT_NAME(setStart(with:)); ++ (void)setStartOptions:(nullable SentryOptions *)options NS_SWIFT_NAME(setStart(with:)); + (void)captureEnvelope:(SentryEnvelope *)envelope; diff --git a/Tests/SentryTests/SentrySDKInternalTests.swift b/Tests/SentryTests/SentrySDKInternalTests.swift index b26719a888c..3f4b80cb863 100644 --- a/Tests/SentryTests/SentrySDKInternalTests.swift +++ b/Tests/SentryTests/SentrySDKInternalTests.swift @@ -55,7 +55,7 @@ class SentrySDKInternalTests: XCTestCase { scope = Scope() scope.setTag(value: "value", key: "key") - client = TestClient(options: options.toInternal())! + client = TestClient(options: options)! hub = SentryHubInternal(client: client, andScope: scope, andCrashWrapper: TestSentryCrashWrapper(processInfoWrapper: ProcessInfo.processInfo), andDispatchQueue: SentryDispatchQueueWrapper()) feedback = SentryFeedback(message: "Again really?", name: "Tim Apple", email: "tim@apple.com") @@ -609,7 +609,7 @@ class SentrySDKInternalTests: XCTestCase { let transport = TestTransport() let fileManager = try TestFileManager(options: fixture.options, dateProvider: fixture.currentDate, dispatchQueueWrapper: fixture.dispatchQueueWrapper) let client = SentryClientInternal(options: fixture.options, fileManager: fileManager) - Dynamic(client).transportAdapter = TestTransportAdapter(transports: [transport], options: fixture.options.toInternal()) + Dynamic(client).transportAdapter = TestTransportAdapter(transports: [transport], options: fixture.options) SentrySDKInternal.currentHub().bindClient(client) SentrySDK.close() @@ -658,7 +658,7 @@ class SentrySDKInternalTests: XCTestCase { let transport = TestTransport() let fileManager = try TestFileManager(options: fixture.options, dateProvider: fixture.currentDate, dispatchQueueWrapper: fixture.dispatchQueueWrapper) let client = SentryClientInternal(options: fixture.options, fileManager: fileManager) - Dynamic(client).transportAdapter = TestTransportAdapter(transports: [transport], options: fixture.options.toInternal()) + Dynamic(client).transportAdapter = TestTransportAdapter(transports: [transport], options: fixture.options) SentrySDKInternal.currentHub().bindClient(client) let flushTimeout = 10.0 @@ -949,12 +949,12 @@ private extension SentrySDKInternalTests { func givenSdkWithHub() { SentrySDKInternal.setCurrentHub(fixture.hub) - SentrySDKInternal.setStart(with: fixture.options.toInternal()) + SentrySDKInternal.setStart(with: fixture.options) } func givenSdkWithHubButNoClient() { SentrySDKInternal.setCurrentHub(SentryHubInternal(client: nil, andScope: nil)) - SentrySDKInternal.setStart(with: fixture.options.toInternal()) + SentrySDKInternal.setStart(with: fixture.options) } func assertIntegrationsInstalled(integrations: [String]) { @@ -983,7 +983,7 @@ class SentrySDKWithSetupTests: XCTestCase { let expectation = expectation(description: "no deadlock") expectation.expectedFulfillmentCount = 20 - SentrySDKInternal.setStart(with: Options().toInternal()) + SentrySDKInternal.setStart(with: Options()) for _ in 0..<10 { concurrentQueue.async { @@ -1009,7 +1009,7 @@ public class MainThreadTestIntegration: NSObject, SentryIntegrationProtocol { public let expectation = XCTestExpectation(description: "MainThreadTestIntegration installed") - public func install(with options: SentryOptionsInternal) -> Bool { + public func install(with options: Options) -> Bool { print("[Sentry] [TEST] [\(#file):\(#line) starting install.") dispatchPrecondition(condition: .onQueue(.main)) diff --git a/Tests/SentryTests/SentrySDKTests.swift b/Tests/SentryTests/SentrySDKTests.swift index dff50ca5d23..96196f79e96 100644 --- a/Tests/SentryTests/SentrySDKTests.swift +++ b/Tests/SentryTests/SentrySDKTests.swift @@ -510,11 +510,11 @@ extension SentrySDKTests { private func givenSdkWithHubButNoClient() { SentrySDKInternal.setCurrentHub(SentryHubInternal(client: nil, andScope: nil)) - SentrySDKInternal.setStart(with: fixture.options.toInternal()) + SentrySDKInternal.setStart(with: fixture.options) } private func givenSdkWithHub() { SentrySDKInternal.setCurrentHub(fixture.hub) - SentrySDKInternal.setStart(with: fixture.options.toInternal()) + SentrySDKInternal.setStart(with: fixture.options) } } diff --git a/Tests/SentryTests/SentrySDKThreadTests.swift b/Tests/SentryTests/SentrySDKThreadTests.swift index b18371bba38..502e7a904ca 100644 --- a/Tests/SentryTests/SentrySDKThreadTests.swift +++ b/Tests/SentryTests/SentrySDKThreadTests.swift @@ -1,4 +1,4 @@ -@testable import Sentry +@_spi(Private) @testable import Sentry import XCTest final class SentrySDKThreadTests: XCTestCase { diff --git a/Tests/SentryTests/SentryScopeTests.m b/Tests/SentryTests/SentryScopeTests.m index b9c47ed1423..841426f6cf6 100644 --- a/Tests/SentryTests/SentryScopeTests.m +++ b/Tests/SentryTests/SentryScopeTests.m @@ -1,5 +1,4 @@ #import "SentryBreadcrumb.h" -#import "SentryOptionsInternal+Private.h" #import "SentryScope+Private.h" #import "SentryScope.h" #import "SentryUser.h" @@ -125,7 +124,7 @@ - (void)testDistSerializes - (void)testEnvironmentSerializes { SentryScope *scope = [[SentryScope alloc] init]; - NSString *expectedEnvironment = kSentryDefaultEnvironment; + NSString *expectedEnvironment = @"production"; [scope setEnvironment:expectedEnvironment]; XCTAssertEqualObjects([[scope serialize] objectForKey:@"environment"], expectedEnvironment); } diff --git a/Tests/SentryTests/SentryTests-Bridging-Header.h b/Tests/SentryTests/SentryTests-Bridging-Header.h index 2f2f3f4bcd9..694f10fb78e 100644 --- a/Tests/SentryTests/SentryTests-Bridging-Header.h +++ b/Tests/SentryTests/SentryTests-Bridging-Header.h @@ -136,7 +136,7 @@ #import "SentryNetworkTracker.h" #import "SentryNetworkTrackingIntegration.h" #import "SentryNoOpSpan.h" -#import "SentryOptionsInternal+Private.h" +#import "SentryOptionsInternal.h" #import "SentryPerformanceTracker+Testing.h" #import "SentryPerformanceTracker.h" #import "SentryPerformanceTrackingIntegration.h" diff --git a/Tests/SentryTests/SentryTests.m b/Tests/SentryTests/SentryTests.m index 2a99d298ab1..e8bc61904a9 100644 --- a/Tests/SentryTests/SentryTests.m +++ b/Tests/SentryTests/SentryTests.m @@ -10,7 +10,6 @@ #import "SentryMeta.h" #import "SentryOptionsInternal.h" #import "SentrySDK+Private.h" -#import "SentryTests-Swift.h" #import #import @import Sentry; @@ -39,8 +38,7 @@ - (void)testSharedClient initWithDict:@{ @"dsn" : @"https://username:password@app.getsentry.com/12345" } didFailWithError:&error]; - SentryClientInternal *client = - [[SentryClientInternal alloc] initWithOptions:[options toInternalOptions]]; + SentryClientInternal *client = [[SentryClientInternal alloc] initWithOptions:options]; XCTAssertNil(error); XCTAssertNil([SentrySDKInternal.currentHub getClient]); [SentrySDKInternal.currentHub bindClient:client]; diff --git a/Tests/SentryTests/SwiftDescriptorTests.swift b/Tests/SentryTests/SwiftDescriptorTests.swift index 50a9546963d..2708473ca66 100644 --- a/Tests/SentryTests/SwiftDescriptorTests.swift +++ b/Tests/SentryTests/SwiftDescriptorTests.swift @@ -18,7 +18,7 @@ class SwiftDescriptorTests: XCTestCase { let object = Options() let name = sanitize(object) - XCTAssertEqual(name, "SentryOptions") + XCTAssertEqual(name, "Options") } func testDescriptionWithPrivateSwiftClass() { diff --git a/Tests/SentryTests/TestUtils/EmptyIntegration.swift b/Tests/SentryTests/TestUtils/EmptyIntegration.swift index 0d2c1644def..4bc9a585369 100644 --- a/Tests/SentryTests/TestUtils/EmptyIntegration.swift +++ b/Tests/SentryTests/TestUtils/EmptyIntegration.swift @@ -1,7 +1,7 @@ import Foundation class EmptyIntegration: NSObject, SentryIntegrationProtocol { - func install(with options: SentryOptionsInternal) -> Bool { + func install(with options: Options) -> Bool { return true } diff --git a/Tests/SentryTests/TestUtils/OptionsUtils.swift b/Tests/SentryTests/TestUtils/OptionsUtils.swift deleted file mode 100644 index ae39ba71d9c..00000000000 --- a/Tests/SentryTests/TestUtils/OptionsUtils.swift +++ /dev/null @@ -1,8 +0,0 @@ -@testable import Sentry - -@objc extension Options { - // Exposes the `toInternal` function to ObjC - @objc public func toInternalOptions() -> SentryOptionsInternal { - self.toInternal() - } -} diff --git a/Tests/SentryTests/Transaction/SentrySpanTests.swift b/Tests/SentryTests/Transaction/SentrySpanTests.swift index c4adf20d26b..409f3e183de 100644 --- a/Tests/SentryTests/Transaction/SentrySpanTests.swift +++ b/Tests/SentryTests/Transaction/SentrySpanTests.swift @@ -32,7 +32,7 @@ class SentrySpanTests: XCTestCase { } func getSut() -> Span { - return getSut(client: TestClient(options: options.toInternal())!) + return getSut(client: TestClient(options: options)!) } func getSut(client: SentryClientInternal) -> Span { @@ -68,7 +68,7 @@ class SentrySpanTests: XCTestCase { #if os(iOS) || os(macOS) || targetEnvironment(macCatalyst) func testSpanDoesNotSubscribeToNotificationsIfAlreadyCapturedContinuousProfileID() { SentryContinuousProfiler.start() - SentrySDKInternal.setStart(with: fixture.options.toInternal()) + SentrySDKInternal.setStart(with: fixture.options) let _ = fixture.getSut() let continuousProfileObservations = fixture.notificationCenter.addObserverWithObjectInvocations.invocations.filter { $0.name?.rawValue == kSentryNotificationContinuousProfileStarted @@ -77,7 +77,7 @@ class SentrySpanTests: XCTestCase { } func testSpanDoesSubscribeToNotificationsIfNotAlreadyCapturedContinuousProfileID() { - SentrySDKInternal.setStart(with: fixture.options.toInternal()) + SentrySDKInternal.setStart(with: fixture.options) let _ = fixture.getSut() let continuousProfileObservations = fixture.notificationCenter.addObserverWithObjectInvocations.invocations.filter { $0.name?.rawValue == kSentryNotificationContinuousProfileStarted @@ -92,7 +92,7 @@ class SentrySpanTests: XCTestCase { /// +----profile----+ /// ``` func test_spanStart_profileStart_spanEnd_profileEnd_spanIncludesProfileID() throws { - SentrySDKInternal.setStart(with: fixture.options.toInternal()) + SentrySDKInternal.setStart(with: fixture.options) let span = fixture.getSut() XCTAssertEqual(fixture.notificationCenter.addObserverWithObjectInvocations.invocations.filter { $0.name?.rawValue == kSentryNotificationContinuousProfileStarted @@ -113,7 +113,7 @@ class SentrySpanTests: XCTestCase { /// +----profile----+ /// ``` func test_spanStart_profileStart_profileEnd_spanEnd_spanIncludesProfileID() throws { - SentrySDKInternal.setStart(with: fixture.options.toInternal()) + SentrySDKInternal.setStart(with: fixture.options) let span = fixture.getSut() SentryContinuousProfiler.start() let profileId = try XCTUnwrap(SentryContinuousProfiler.profiler()?.profilerId.sentryIdString) @@ -132,7 +132,7 @@ class SentrySpanTests: XCTestCase { /// +-------span-------+ /// ``` func test_profileStart_spanStart_profileEnd_spanEnd_spanIncludesProfileID() throws { - SentrySDKInternal.setStart(with: fixture.options.toInternal()) + SentrySDKInternal.setStart(with: fixture.options) SentryContinuousProfiler.start() let profileId = try XCTUnwrap(SentryContinuousProfiler.profiler()?.profilerId.sentryIdString) let span = fixture.getSut() @@ -151,7 +151,7 @@ class SentrySpanTests: XCTestCase { /// +-------span-------+ /// ``` func test_profileStart_spanStart_spanEnd_profileEnd_spanIncludesProfileID() throws { - SentrySDKInternal.setStart(with: fixture.options.toInternal()) + SentrySDKInternal.setStart(with: fixture.options) SentryContinuousProfiler.start() let profileId = try XCTUnwrap(SentryContinuousProfiler.profiler()?.profilerId.sentryIdString) let span = fixture.getSut() @@ -169,7 +169,7 @@ class SentrySpanTests: XCTestCase { /// +--profile1--+ +--profile2--+ /// ``` func test_spanStart_profileStart_profileEnd_profileStart_profileEnd_spanEnd_spanIncludesSameProfileID() throws { - SentrySDKInternal.setStart(with: fixture.options.toInternal()) + SentrySDKInternal.setStart(with: fixture.options) let span = fixture.getSut() SentryContinuousProfiler.start() let profileId1 = try XCTUnwrap(SentryContinuousProfiler.profiler()?.profilerId.sentryIdString) @@ -191,7 +191,7 @@ class SentrySpanTests: XCTestCase { /// +----profile----+ /// ``` func test_spanStart_spanEnd_profileStart_profileEnd_spanDoesNotIncludeProfileID() { - SentrySDKInternal.setStart(with: fixture.options.toInternal()) + SentrySDKInternal.setStart(with: fixture.options) SentryContinuousProfiler.start() SentryContinuousProfiler.stop() let span = fixture.getSut() @@ -261,7 +261,7 @@ class SentrySpanTests: XCTestCase { } func testFinish() throws { - let client = TestClient(options: fixture.options.toInternal())! + let client = TestClient(options: fixture.options)! let span = fixture.getSut(client: client) span.finish() @@ -279,7 +279,7 @@ class SentrySpanTests: XCTestCase { } func testFinish_Custom_Timestamp() throws { - let client = TestClient(options: fixture.options.toInternal())! + let client = TestClient(options: fixture.options)! let span = fixture.getSut(client: client) let finishDate = Date(timeIntervalSinceNow: 6) @@ -332,7 +332,7 @@ class SentrySpanTests: XCTestCase { } func testFinishWithChild() throws { - let client = TestClient(options: fixture.options.toInternal())! + let client = TestClient(options: fixture.options)! let span = fixture.getSut(client: client) let childSpan = span.startChild(operation: fixture.someOperation) @@ -615,7 +615,7 @@ class SentrySpanTests: XCTestCase { } func testTraceContext() { - let client = TestClient(options: fixture.options.toInternal())! + let client = TestClient(options: fixture.options)! let sut = fixture.getSut(client: client) as! SentrySpan let expectedTraceContext = sut.tracer?.traceContext @@ -623,7 +623,7 @@ class SentrySpanTests: XCTestCase { } func testBaggageHttpHeader() { - let client = TestClient(options: fixture.options.toInternal())! + let client = TestClient(options: fixture.options)! let sut = fixture.getSut(client: client) as! SentrySpan let expectedBaggage = sut.tracer?.traceContext?.toBaggage().toHTTPHeader(withOriginalBaggage: nil) diff --git a/Tests/SentryTests/Transaction/SentryTraceContextTests.swift b/Tests/SentryTests/Transaction/SentryTraceContextTests.swift index 4cf7e52e31b..7b87745cdee 100644 --- a/Tests/SentryTests/Transaction/SentryTraceContextTests.swift +++ b/Tests/SentryTests/Transaction/SentryTraceContextTests.swift @@ -1,4 +1,3 @@ -@testable import Sentry import SentryTestUtils import XCTest @@ -100,7 +99,7 @@ class SentryTraceContextTests: XCTestCase { func testInitWithScopeOptions() { // Act - let traceContext = TraceContext(scope: fixture.scope, options: fixture.options.toInternal())! + let traceContext = TraceContext(scope: fixture.scope, options: fixture.options)! // Assert assertTraceState(traceContext: traceContext) @@ -108,7 +107,7 @@ class SentryTraceContextTests: XCTestCase { func testInitWithTracerScopeOptions() { // Act - let traceContext = TraceContext(tracer: fixture.tracer, scope: fixture.scope, options: fixture.options.toInternal()) + let traceContext = TraceContext(tracer: fixture.tracer, scope: fixture.scope, options: fixture.options) // Assert assertTraceState(traceContext: traceContext!) @@ -120,7 +119,7 @@ class SentryTraceContextTests: XCTestCase { tracer.sampled = .no // Act - let traceContext = TraceContext(tracer: tracer, scope: fixture.scope, options: fixture.options.toInternal()) + let traceContext = TraceContext(tracer: tracer, scope: fixture.scope, options: fixture.options) // Assert XCTAssertEqual(traceContext?.sampled, "false") @@ -131,7 +130,7 @@ class SentryTraceContextTests: XCTestCase { fixture.scope.span = nil // Act - let traceContext = TraceContext(scope: fixture.scope, options: fixture.options.toInternal()) + let traceContext = TraceContext(scope: fixture.scope, options: fixture.options) // Assert XCTAssertNil(traceContext) @@ -145,7 +144,7 @@ class SentryTraceContextTests: XCTestCase { let traceId = SentryId() // Act - let traceContext = TraceContext(trace: traceId, options: options.toInternal(), replayId: "replayId") + let traceContext = TraceContext(trace: traceId, options: options, replayId: "replayId") // Assert XCTAssertEqual(options.parsedDsn?.url.user, traceContext.publicKey) @@ -167,7 +166,7 @@ class SentryTraceContextTests: XCTestCase { let traceId = SentryId() // Act - let traceContext = TraceContext(trace: traceId, options: options.toInternal(), replayId: nil) + let traceContext = TraceContext(trace: traceId, options: options, replayId: nil) // Assert XCTAssertEqual(options.parsedDsn?.url.user, traceContext.publicKey) diff --git a/Tests/SentryTests/Transaction/SentryTransactionTests.swift b/Tests/SentryTests/Transaction/SentryTransactionTests.swift index 4000a66b30f..58bf568ffdf 100644 --- a/Tests/SentryTests/Transaction/SentryTransactionTests.swift +++ b/Tests/SentryTests/Transaction/SentryTransactionTests.swift @@ -25,13 +25,13 @@ class SentryTransactionTests: XCTestCase { func getHub() -> SentryHubInternal { let scope = Scope() - let client = TestClient(options: Options().toInternal())! + let client = TestClient(options: Options())! client.options.tracesSampleRate = 1 return TestHub(client: client, andScope: scope) } func getTransactionWith(scope: Scope) -> Transaction { - let client = TestClient(options: Options().toInternal())! + let client = TestClient(options: Options())! client.options.tracesSampleRate = 1 let hub = TestHub(client: client, andScope: scope) @@ -210,7 +210,7 @@ class SentryTransactionTests: XCTestCase { #if os(iOS) || os(macOS) || targetEnvironment(macCatalyst) func testTransactionWithContinuousProfile() throws { let options = Options() - SentrySDKInternal.setStart(with: options.toInternal()) + SentrySDKInternal.setStart(with: options) let transaction = fixture.getTransaction() SentryContinuousProfiler.start() let profileId = try XCTUnwrap(SentryContinuousProfiler.profiler()?.profilerId.sentryIdString) diff --git a/sdk_api.json b/sdk_api.json index 536394f32a2..797f999b9f8 100644 --- a/sdk_api.json +++ b/sdk_api.json @@ -16802,43 +16802,6 @@ "usr": "c:@T@SentryBeforeSendEventCallback", "moduleName": "Sentry" }, - { - "kind": "TypeAlias", - "name": "SentryBeforeSendLogCallback", - "printedName": "SentryBeforeSendLogCallback", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryLog) -> Sentry.SentryLog?", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryLog?", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryLog", - "printedName": "Sentry.SentryLog", - "usr": "c:@M@Sentry@objc(cs)SentryLog" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "SentryLog", - "printedName": "Sentry.SentryLog", - "usr": "c:@M@Sentry@objc(cs)SentryLog" - } - ] - } - ], - "declKind": "TypeAlias", - "usr": "c:@T@SentryBeforeSendLogCallback", - "moduleName": "Sentry" - }, { "kind": "TypeAlias", "name": "SentryBeforeSendSpanCallback", @@ -16942,9 +16905,17 @@ }, { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" } ], "declKind": "Constructor", @@ -35818,44 +35789,6 @@ } ] }, - { - "kind": "TypeAlias", - "name": "SentryBeforeSendLogCallback", - "printedName": "SentryBeforeSendLogCallback", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryLog) -> Sentry.SentryLog?", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryLog?", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryLog", - "printedName": "Sentry.SentryLog", - "usr": "c:@M@Sentry@objc(cs)SentryLog" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "SentryLog", - "printedName": "Sentry.SentryLog", - "usr": "c:@M@Sentry@objc(cs)SentryLog" - } - ] - } - ], - "declKind": "TypeAlias", - "usr": "s:6Sentry0A21BeforeSendLogCallbacka", - "mangledName": "$s6Sentry0A21BeforeSendLogCallbacka", - "moduleName": "Sentry" - }, { "kind": "TypeDecl", "name": "SentryReplayOptions", @@ -44819,6 +44752,31 @@ "name": "Options", "printedName": "Options", "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init()", + "children": [ + { + "kind": "TypeNominal", + "name": "Options", + "printedName": "Sentry.Options", + "usr": "c:@M@Sentry@objc(cs)SentryOptions" + } + ], + "declKind": "Constructor", + "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)init", + "mangledName": "$s6Sentry7OptionsCACycfc", + "moduleName": "Sentry", + "overriding": true, + "objc_name": "init", + "declAttributes": [ + "ObjC", + "Dynamic", + "Override" + ], + "init_kind": "Designated" + }, { "kind": "Var", "name": "dsn", @@ -44844,12 +44802,9 @@ "mangledName": "$s6Sentry7OptionsC3dsnSSSgvp", "moduleName": "Sentry", "declAttributes": [ - "HasInitialValue", "Final", - "ObjC", - "HasStorage" + "ObjC" ], - "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -44875,7 +44830,6 @@ "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)dsn", "mangledName": "$s6Sentry7OptionsC3dsnSSSgvg", "moduleName": "Sentry", - "implicit": true, "declAttributes": [ "Final", "ObjC" @@ -44911,7 +44865,7 @@ "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setDsn:", "mangledName": "$s6Sentry7OptionsC3dsnSSSgvs", "moduleName": "Sentry", - "implicit": true, + "objc_name": "setDsn:", "declAttributes": [ "Final", "ObjC" @@ -46437,39 +46391,32 @@ { "kind": "TypeNominal", "name": "Optional", - "printedName": "Sentry.SentryBeforeSendLogCallback?", + "printedName": "((Sentry.SentryLog) -> Sentry.SentryLog?)?", "children": [ { - "kind": "TypeNameAlias", - "name": "SentryBeforeSendLogCallback", - "printedName": "Sentry.SentryBeforeSendLogCallback", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryLog) -> Sentry.SentryLog?", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryLog) -> Sentry.SentryLog?", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryLog?", "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryLog?", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryLog", - "printedName": "Sentry.SentryLog", - "usr": "c:@M@Sentry@objc(cs)SentryLog" - } - ], - "usr": "s:Sq" - }, { "kind": "TypeNominal", "name": "SentryLog", "printedName": "Sentry.SentryLog", "usr": "c:@M@Sentry@objc(cs)SentryLog" } - ] + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "SentryLog", + "printedName": "Sentry.SentryLog", + "usr": "c:@M@Sentry@objc(cs)SentryLog" } ] } @@ -46497,39 +46444,32 @@ { "kind": "TypeNominal", "name": "Optional", - "printedName": "Sentry.SentryBeforeSendLogCallback?", + "printedName": "((Sentry.SentryLog) -> Sentry.SentryLog?)?", "children": [ { - "kind": "TypeNameAlias", - "name": "SentryBeforeSendLogCallback", - "printedName": "Sentry.SentryBeforeSendLogCallback", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryLog) -> Sentry.SentryLog?", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryLog) -> Sentry.SentryLog?", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryLog?", "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryLog?", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryLog", - "printedName": "Sentry.SentryLog", - "usr": "c:@M@Sentry@objc(cs)SentryLog" - } - ], - "usr": "s:Sq" - }, { "kind": "TypeNominal", "name": "SentryLog", "printedName": "Sentry.SentryLog", "usr": "c:@M@Sentry@objc(cs)SentryLog" } - ] + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "SentryLog", + "printedName": "Sentry.SentryLog", + "usr": "c:@M@Sentry@objc(cs)SentryLog" } ] } @@ -46561,39 +46501,32 @@ { "kind": "TypeNominal", "name": "Optional", - "printedName": "Sentry.SentryBeforeSendLogCallback?", + "printedName": "((Sentry.SentryLog) -> Sentry.SentryLog?)?", "children": [ { - "kind": "TypeNameAlias", - "name": "SentryBeforeSendLogCallback", - "printedName": "Sentry.SentryBeforeSendLogCallback", + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Sentry.SentryLog) -> Sentry.SentryLog?", "children": [ { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(Sentry.SentryLog) -> Sentry.SentryLog?", + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Sentry.SentryLog?", "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Sentry.SentryLog?", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryLog", - "printedName": "Sentry.SentryLog", - "usr": "c:@M@Sentry@objc(cs)SentryLog" - } - ], - "usr": "s:Sq" - }, { "kind": "TypeNominal", "name": "SentryLog", "printedName": "Sentry.SentryLog", "usr": "c:@M@Sentry@objc(cs)SentryLog" } - ] + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "SentryLog", + "printedName": "Sentry.SentryLog", + "usr": "c:@M@Sentry@objc(cs)SentryLog" } ] } @@ -47325,12 +47258,9 @@ "mangledName": "$s6Sentry7OptionsC10sampleRateSo8NSNumberCSgvp", "moduleName": "Sentry", "declAttributes": [ - "HasInitialValue", "Final", - "ObjC", - "HasStorage" + "ObjC" ], - "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -47356,7 +47286,6 @@ "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)sampleRate", "mangledName": "$s6Sentry7OptionsC10sampleRateSo8NSNumberCSgvg", "moduleName": "Sentry", - "implicit": true, "declAttributes": [ "Final", "ObjC" @@ -47392,7 +47321,7 @@ "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setSampleRate:", "mangledName": "$s6Sentry7OptionsC10sampleRateSo8NSNumberCSgvs", "moduleName": "Sentry", - "implicit": true, + "objc_name": "setSampleRate:", "declAttributes": [ "Final", "ObjC" @@ -49289,12 +49218,9 @@ "mangledName": "$s6Sentry7OptionsC16tracesSampleRateSo8NSNumberCSgvp", "moduleName": "Sentry", "declAttributes": [ - "HasInitialValue", "Final", - "ObjC", - "HasStorage" + "ObjC" ], - "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -49320,7 +49246,6 @@ "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)tracesSampleRate", "mangledName": "$s6Sentry7OptionsC16tracesSampleRateSo8NSNumberCSgvg", "moduleName": "Sentry", - "implicit": true, "declAttributes": [ "Final", "ObjC" @@ -49356,7 +49281,7 @@ "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setTracesSampleRate:", "mangledName": "$s6Sentry7OptionsC16tracesSampleRateSo8NSNumberCSgvs", "moduleName": "Sentry", - "implicit": true, + "objc_name": "setTracesSampleRate:", "declAttributes": [ "Final", "ObjC" @@ -49684,95 +49609,6 @@ ], "funcSelfKind": "NonMutating" }, - { - "kind": "Var", - "name": "inAppExcludes", - "printedName": "inAppExcludes", - "children": [ - { - "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.String]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sa" - } - ], - "declKind": "Var", - "usr": "c:@M@Sentry@objc(cs)SentryOptions(py)inAppExcludes", - "mangledName": "$s6Sentry7OptionsC13inAppExcludesSaySSGvp", - "moduleName": "Sentry", - "declAttributes": [ - "Final", - "ObjC" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Array", - "printedName": "[Swift.String]", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sa" - } - ], - "declKind": "Accessor", - "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)inAppExcludes", - "mangledName": "$s6Sentry7OptionsC13inAppExcludesSaySSGvg", - "moduleName": "Sentry", - "declAttributes": [ - "Final", - "ObjC" - ], - "accessorKind": "get" - } - ] - }, - { - "kind": "Function", - "name": "add", - "printedName": "add(inAppExclude:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Func", - "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)addInAppExclude:", - "mangledName": "$s6Sentry7OptionsC3add12inAppExcludeySS_tF", - "moduleName": "Sentry", - "objc_name": "addInAppExclude:", - "declAttributes": [ - "Final", - "ObjC" - ], - "funcSelfKind": "NonMutating" - }, { "kind": "Var", "name": "urlSessionDelegate", @@ -50264,12 +50100,9 @@ "mangledName": "$s6Sentry7OptionsC18configureProfilingyAA0a7ProfileB0CcSgvp", "moduleName": "Sentry", "declAttributes": [ - "HasInitialValue", "Final", - "ObjC", - "HasStorage" + "ObjC" ], - "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -50314,7 +50147,6 @@ "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)configureProfiling", "mangledName": "$s6Sentry7OptionsC18configureProfilingyAA0a7ProfileB0CcSgvg", "moduleName": "Sentry", - "implicit": true, "declAttributes": [ "Final", "ObjC" @@ -50369,7 +50201,7 @@ "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setConfigureProfiling:", "mangledName": "$s6Sentry7OptionsC18configureProfilingyAA0a7ProfileB0CcSgvs", "moduleName": "Sentry", - "implicit": true, + "objc_name": "setConfigureProfiling:", "declAttributes": [ "Final", "ObjC" @@ -50783,10 +50615,8 @@ "moduleName": "Sentry", "declAttributes": [ "Final", - "ObjC", - "HasStorage" + "ObjC" ], - "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -50811,7 +50641,6 @@ "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)tracePropagationTargets", "mangledName": "$s6Sentry7OptionsC23tracePropagationTargetsSayypGvg", "moduleName": "Sentry", - "implicit": true, "declAttributes": [ "Final", "ObjC" @@ -50846,7 +50675,7 @@ "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setTracePropagationTargets:", "mangledName": "$s6Sentry7OptionsC23tracePropagationTargetsSayypGvs", "moduleName": "Sentry", - "implicit": true, + "objc_name": "setTracePropagationTargets:", "declAttributes": [ "Final", "ObjC" @@ -51056,10 +50885,8 @@ "moduleName": "Sentry", "declAttributes": [ "Final", - "ObjC", - "HasStorage" + "ObjC" ], - "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -51084,7 +50911,6 @@ "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)failedRequestTargets", "mangledName": "$s6Sentry7OptionsC20failedRequestTargetsSayypGvg", "moduleName": "Sentry", - "implicit": true, "declAttributes": [ "Final", "ObjC" @@ -51119,7 +50945,7 @@ "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setFailedRequestTargets:", "mangledName": "$s6Sentry7OptionsC20failedRequestTargetsSayypGvs", "moduleName": "Sentry", - "implicit": true, + "objc_name": "setFailedRequestTargets:", "declAttributes": [ "Final", "ObjC" @@ -51526,10 +51352,8 @@ "moduleName": "Sentry", "declAttributes": [ "Final", - "ObjC", - "HasStorage" + "ObjC" ], - "hasStorage": true, "accessors": [ { "kind": "Accessor", @@ -51547,7 +51371,6 @@ "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)enableSpotlight", "mangledName": "$s6Sentry7OptionsC15enableSpotlightSbvg", "moduleName": "Sentry", - "implicit": true, "declAttributes": [ "Final", "ObjC" @@ -51575,7 +51398,7 @@ "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)setEnableSpotlight:", "mangledName": "$s6Sentry7OptionsC15enableSpotlightSbvs", "moduleName": "Sentry", - "implicit": true, + "objc_name": "setEnableSpotlight:", "declAttributes": [ "Final", "ObjC" @@ -51890,31 +51713,6 @@ "accessorKind": "set" } ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init()", - "children": [ - { - "kind": "TypeNominal", - "name": "Options", - "printedName": "Sentry.Options", - "usr": "c:@M@Sentry@objc(cs)SentryOptions" - } - ], - "declKind": "Constructor", - "usr": "c:@M@Sentry@objc(cs)SentryOptions(im)init", - "mangledName": "$s6Sentry7OptionsCACycfc", - "moduleName": "Sentry", - "overriding": true, - "objc_name": "init", - "declAttributes": [ - "ObjC", - "Dynamic", - "Override" - ], - "init_kind": "Designated" } ], "declKind": "Class",