Instrumentation
What each Apple SDK capture service collects, the spz.type it attaches, whether it is installed by default, and its platform limits.
Instrumentation is done by capture services. Each one swizzles a single system API or subscribes to a single notification, and attaches a spz.type attribute to what it produces. Which type a service uses is also how the dashboard classifies it.
The type scheme
spz.type takes the form type.subtype, and the subtype may be absent.
| Type | Meaning |
|---|---|
perf | How long an interval took |
ux | User behaviour or something visible on screen |
sys | System events not tied to user behaviour |
NOTE — How this differs from Android
The attribute key (spz.type) and the top-level names match Android, but Apple has no state type. Where Android records screen, network, and power as session state timelines, Apple records the same information as spans or span events. Account for that when querying both platforms together.
Some values carry a platform segment, such as sys.ios.crash — the counterpart to Android's sys.android.crash.
Installed by default
| Service | spz.type | Captures | Platforms |
|---|---|---|---|
URLSessionCaptureService | perf.network_request | A span per network request, named <METHOD> <path> | All |
ViewCaptureService | ux.view, perf.ui_load | Screen visibility and the tree up to first render | iOS, tvOS |
TapCaptureService | ux.tap | A span event per screen tap | iOS, tvOS |
WebViewCaptureService | ux.webview | A span event when a web view loads a URL or fails | Not watchOS |
LowMemoryWarningCaptureService | sys.low_memory | Memory warning notifications | All |
LowPowerModeCaptureService | sys.low_power | A span covering each low-power-mode period | All |
AppInfoCaptureService and DeviceInfoCaptureService are also always installed. They produce no signals — only resource attributes such as SDK version, app version, OS, device model, locale, and free disk space. They cannot be turned off.
On watchOS the tap, screen, and WebView services are omitted from the default list entirely.
Off by default
| Service | spz.type | How to enable |
|---|---|---|
HangCaptureService | perf.thread_blockage | hang: true |
PushNotificationCaptureService | sys.push_notification | Add the service |
Hang detection watches frames with CADisplayLink, opens a span for each main-thread stall, and attaches a sampled backtrace as a span event. It runs on iOS and tvOS only.
CAUTION — Hang detection stops under a debugger
So that time spent paused in a debugger is not recorded as a hang, the service disables itself when a debugger is attached. To exercise it while debugging, set the environment variable SPZAllowWatchdogInDebugger=1.
Crashes
Crash capture is not a capture service. It is a separate option.
try Sophonz.start(options: .withCollector(
url: "https://in.sophonz.ai",
appKey: "sk_…",
crashReporter: .sophonz
))| Value | Behaviour |
|---|---|
.sophonz | The bundled KSCrash-based reporter (default) |
.crashlytics | Bridges crash data from Firebase Crashlytics |
.none | Installs no crash reporter |
Crashes are recorded as sys.ios.crash logs.
MetricKit
Three services turn MetricKit diagnostic payloads into telemetry. They cannot be selected through the options or the builder; they are installed at runtime depending on the crash reporter setting and remote configuration.
| Service | spz.type |
|---|---|
MetricKitCrashCaptureService | sys.ios.crash |
MetricKitHangCaptureService | perf.thread_blockage |
MetricKitMetricsCaptureService | sys.ios.metrickit-metrics |
Types no capture service produces
These come from the session engine, SDK startup, or APIs you call yourself.
| Value | Source |
|---|---|
ux.session | Session engine |
sys.startup | SDK startup |
sys.breadcrumb | addBreadcrumb |
sys.log | Logging API |
sys.exception | Exception recording |
sys.network_capture | URLSession body capture (remote config only) |
sys.internal | The SDK's own diagnostics |
Full list
spz.type | Signal | Produced by |
|---|---|---|
perf.network_request | Span | URLSession |
perf.ui_load | Span | View |
perf.thread_blockage | Span, span event, log | Hang, MetricKit Hang |
ux.view | Span | View |
ux.session | Span | Session engine |
ux.tap | Span event | Tap |
ux.webview | Span event | WebView |
sys.startup | Span | SDK startup |
sys.low_power | Span | LowPowerMode |
sys.low_memory | Span event | LowMemoryWarning |
sys.push_notification | Span event | PushNotification |
sys.breadcrumb | Span event | Called directly |
sys.log | Log | Called directly |
sys.exception | Log | Called directly |
sys.network_capture | Log | URLSession body capture |
sys.ios.crash | Log | Crash reporter, MetricKit |
sys.ios.metrickit-metrics | Log | MetricKit Metrics |
sys.internal | Log | SDK diagnostics |
Per-service options are covered in Configuration.