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.

TypeMeaning
perfHow long an interval took
uxUser behaviour or something visible on screen
sysSystem 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

Servicespz.typeCapturesPlatforms
URLSessionCaptureServiceperf.network_requestA span per network request, named <METHOD> <path>All
ViewCaptureServiceux.view, perf.ui_loadScreen visibility and the tree up to first renderiOS, tvOS
TapCaptureServiceux.tapA span event per screen tapiOS, tvOS
WebViewCaptureServiceux.webviewA span event when a web view loads a URL or failsNot watchOS
LowMemoryWarningCaptureServicesys.low_memoryMemory warning notificationsAll
LowPowerModeCaptureServicesys.low_powerA span covering each low-power-mode periodAll

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

Servicespz.typeHow to enable
HangCaptureServiceperf.thread_blockagehang: true
PushNotificationCaptureServicesys.push_notificationAdd 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
))
ValueBehaviour
.sophonzThe bundled KSCrash-based reporter (default)
.crashlyticsBridges crash data from Firebase Crashlytics
.noneInstalls 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.

Servicespz.type
MetricKitCrashCaptureServicesys.ios.crash
MetricKitHangCaptureServiceperf.thread_blockage
MetricKitMetricsCaptureServicesys.ios.metrickit-metrics

Types no capture service produces

These come from the session engine, SDK startup, or APIs you call yourself.

ValueSource
ux.sessionSession engine
sys.startupSDK startup
sys.breadcrumbaddBreadcrumb
sys.logLogging API
sys.exceptionException recording
sys.network_captureURLSession body capture (remote config only)
sys.internalThe SDK's own diagnostics

Full list

spz.typeSignalProduced by
perf.network_requestSpanURLSession
perf.ui_loadSpanView
perf.thread_blockageSpan, span event, logHang, MetricKit Hang
ux.viewSpanView
ux.sessionSpanSession engine
ux.tapSpan eventTap
ux.webviewSpan eventWebView
sys.startupSpanSDK startup
sys.low_powerSpanLowPowerMode
sys.low_memorySpan eventLowMemoryWarning
sys.push_notificationSpan eventPushNotification
sys.breadcrumbSpan eventCalled directly
sys.logLogCalled directly
sys.exceptionLogCalled directly
sys.network_captureLogURLSession body capture
sys.ios.crashLogCrash reporter, MetricKit
sys.ios.metrickit-metricsLogMetricKit Metrics
sys.internalLogSDK diagnostics

Per-service options are covered in Configuration.