iOS SDK
How the OpenTelemetry-based Apple SDK is put together, what it collects, its current state, and the order to read these pages in.
The Sophonz Apple SDK is built on OpenTelemetry. It captures network requests, screen loads, taps, crashes, hangs, logs, and sessions automatically. The app code calls Sophonz.start(options:) once at launch; capture services wrap the system APIs for everything else.
NOTE — Current version
v1.0.0 is the latest release, with an XCFramework and its checksum attached as release assets. Sending to a Sophonz collector with an app key is the default path; supplying your own OpenTelemetry exporter still works. Installation covers both.
What gets installed
| Module | Role |
|---|---|
SophonzIO | The public API — the Sophonz class and its options |
SophonzCore | The implementation |
SophonzCaptureService | The base class a capture service extends |
SophonzSemantics | Attribute keys and span types |
SophonzOTelBridge | The bridge to opentelemetry-swift |
Your app links SophonzIO and nothing else. Modules named *Internal are not a supported API surface.
Coverage
- Crashes — a KSCrash-based reporter or a Firebase Crashlytics bridge, plus MetricKit diagnostics
- Performance — network requests, screen load, app startup, hang detection
- User experience — screen transitions, taps, WebView loads
- System — memory warnings, low power mode, push notifications
Defaults and platform limits for each are in Instrumentation.
Data format
What is captured are OpenTelemetry spans and logs, classified by a spz.type attribute — the same key the Android SDK uses. Apple has no state type, though, so what Android records as a state timeline Apple records as spans or span events.
Supplying exporters through Sophonz.OTelOptions sends the same data to an OTLP backend other than Sophonz.
Platforms
| Platform | Minimum | Notes |
|---|---|---|
| iOS | 13.0 | Everything |
| tvOS | 13.0 | Includes hang detection |
| macOS | 13.0 | No hang detection |
| watchOS | 6.0 | No tap, screen, or WebView capture |
The CocoaPods spec covers iOS only.
Reading order
- Installation — adding the package and starting the SDK
- Configuration — options and capture services
- Instrumentation — what is captured and how it is classified
- API reference — recording your own telemetry
- Examples — finished shapes
NOTE — Documentation for the earlier SDK
The installation, configuration, and WebView pages for the previous SDK are still here. The package names and the API are entirely different, so do not mix the two.