| [ Web Proxy ] |
| Viewing: https://github-redirect.dependabot.com/getsentry/sentry-cocoa/issues/8097 | [Back] [Original] |
|
0ab4bbd to
35e90bb
Compare
June 16, 2026 14:29
Install BuildsiOS
|
Performance metrics
Baseline results on branch: mainStartup times
App size
Previous results on branch: philprime/internal-api/root-methodsStartup times
App size
|
67bfb99 to
f0b92fd
Compare
June 22, 2026 08:16
Inject Hub, ClientProvider, and OptionsDeserializer dependencies instead of calling PrivateSentrySDKOnly static methods directly. - setTrace delegates to Hub.setTrace via new Scope convenience method - options getter uses ClientProvider.client.options - options(fromDictionary:) uses injectable OptionsDeserializer - Revert unnecessary SENTRY_SWIFT_MIGRATION_ID on options property
Add UInt64 address properties alongside the existing hex string properties on SentryDebugMeta and SentryObjCDebugMeta. Hybrid SDKs can now access raw numeric addresses without parsing hex strings. Populated from SentryBinaryImageInfo in both SentryDebugImageProvider and SentryInternalDebugApi.images(forAddresses:). Not included in event serialization as the hex strings already cover that.
SentryClient.options returns SentryOptions * which is an incomplete type from Swift in the xcframework build. Route through the Hub protocol using getClient()?.getOptions() (returns NSObject) instead, matching the pattern used for storeEnvelope/captureEnvelope.
Revert SENTRY_SWIFT_MIGRATION_ID and NS_SWIFT_NAME on PrivateSentrySDKOnly.optionsWithDictionary to avoid breaking hybrid SDK callers (React Native, Flutter, etc.). Move the Swift migration bridge to a new internal SentryOptionsHelper class used only by SentryDependencyContainer.
There was a problem hiding this comment.
LGTM, one small comment
| Web Proxy Viewer | New URL | Original Page |
Description
Adds root-level methods to
SentryInternalApiand extendsDebugMetawith raw numeric address properties.Root-level methods on
SentryInternalApisetTrace(_:spanId:)sets propagation context on the current scopesetLogOutput(_:)configures SDK log outputignoreNextSignal(_:)tells SentryCrash to ignore the next signaloptionsreturns the current SDK optionsoptions(fromDictionary:)deserializes options from a dictionaryAll methods are also exposed on
SentryObjCInternalApifor ObjC consumers.Dependency injection in
SentryInternalApiReplaced direct
PrivateSentrySDKOnlystatic calls with injected dependencies:Hubprotocol (withsetTracemethod)ClientProviderprotocol (for options access)OptionsDeserializerProviderprotocol (for dictionary-to-options)Raw address properties on
DebugMetaAdded
imageAddressRaw(UInt64) andimageVmAddressRaw(UInt64) toSentryDebugMeta,DebugMeta, andSentryObjCDebugMeta. These live alongside the existing hex string properties (imageAddress,imageVmAddress). Hybrid SDKs can use the raw values directly without parsing hex strings.SentryDebugImageProvider.debugMeta(from:)andSentryInternalDebugApi.images(forAddresses:)Closes #8039
Motivation and Context
Hybrid SDKs (React Native, Flutter, .NET, Unity) need access to the same root-level SDK operations currently only available through
PrivateSentrySDKOnly. The structuredSentrySDK.internalAPI provides a cleaner, more discoverable surface. Raw address properties were requested to avoid hex string parsing overhead in hybrid SDKs.How did you test it?
SentryInternalApimethods (SentryInternalApiIntegrationTests)SentryObjCInternalApi(SentryObjCInternalApiIntegrationTests)imageAddressRaw/imageVmAddressRawonSentryDebugMeta(SentryDebugMetaTests)SentryInternalDebugApi(SentryInternalDebugApiTests)SentryObjCDebugMetaraw address properties (SentryObjCDebugMetaTests)make test-macospassingChecklist
You have to check all boxes before merging:
sendDefaultPIIis enabled.