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

ModuleRole
SophonzIOThe public API — the Sophonz class and its options
SophonzCoreThe implementation
SophonzCaptureServiceThe base class a capture service extends
SophonzSemanticsAttribute keys and span types
SophonzOTelBridgeThe 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

PlatformMinimumNotes
iOS13.0Everything
tvOS13.0Includes hang detection
macOS13.0No hang detection
watchOS6.0No tap, screen, or WebView capture

The CocoaPods spec covers iOS only.

Reading order

  1. Installation — adding the package and starting the SDK
  2. Configuration — options and capture services
  3. Instrumentation — what is captured and how it is classified
  4. API reference — recording your own telemetry
  5. 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.