API Reference
All Sophonz SDK APIs across platforms, in one place.
Every Sophonz SDK API across platforms, gathered in one place. Each entry links to the detailed reference in the relevant SDK docs.
Browser SDK
See the full Browser SDK API reference.
init— Initialize the SDKdeinit— Tear down the SDKinited— Check initialization statestopSessionRecorder·resumeSessionRecorder— Control the session recorderaddAction— Record an actionrecordException— Record an exceptionrecordLog— Record a loguserEvent— Track a user event (business transaction)setScreenAttribute— Set screen attributesenableAdvancedNetworkCapture·disableAdvancedNetworkCapture— Toggle advanced network capturesetGlobalAttributes— Set global attributesgetDeviceId— Get the device IDsetUserIdAttribute— Set the user ID attributegetSessionId— Get the session IDgetSessionUrl— Get the Sophonz session detail linkattachToReactErrorBoundary— Integrate with a React error boundarygetAgentControl— Get the service statusrecordExporterFailure·recordExporterSuccess— Record exporter status
Android SDK
See the full API in the Android SDK API reference.
Sophonz.start(context)— Starts the SDKsetUserIdentifier,addUserPersona,addUserSessionProperty— users and sessionslogInfo,logException,addBreadcrumb— logs and exceptionsstartSpan,recordSpan,recordCompletedSpan— spansaddSpanExporter,setResourceAttribute— OpenTelemetry extension
The collector URL and app key live in sophonz-config.json, not in code. See Configuration.
iOS SDK
See the full API in the iOS SDK API reference.
Sophonz.start(options:)— Starts the SDK; configuration and start are a single step, notsetupthenstartuserIdentifier,addPersona,setProperty— users and sessionslog,addBreadcrumb,appendCrashInfo— logs and crashescreateSpan,createStartupChildSpan— spanssophonzTrace(_:)— SwiftUI screensSophonz.setUserId(id:)·Sophonz.getUserId()— Set/get the user IDSophonz.customLog(level:message:)— Send a custom logSophonz.setAttribute(key:value:)— Add a custom attribute to a spanSophonz.getDeviceId()— Get the device UUIDSophonz.setWebviewConfiguration(userContentController:)— Manually inject the xib WebView script
Backend SDKs
Backend SDKs, including Node.js, are in preparation. Check progress in the backend SDK docs.