Observability
To continuously improve the performance and stability of the Thryve SDK, the framework reports telemetry data like crashes and traces to Thryve's observability backend. Observability data is fully handled by Thryve's own infrastructure and never shared or processed with any 3rd party, ensuring the highest degree of data privacy for your end users.
Integrate Thryve Observability with your application
To integrate Observability into your application, add the ThryveObservability module from Thryve's SDK. You can achieve this by adding ThryveObservability pods on iOS and dependencies on Android.
platform :ios, '13.0'
source 'https://git.thryve.de/thryve/Specs.git'
target 'ThryveConnectorSample' do
use_frameworks!
...
pod 'ThryveObservability', '5.2.2'
...
endUsing Thryve Maven Repository Dependency:
dependencies {
...
api("com.thryve.sdk:observability:${thryve_sdk_version}")
...
}If you are using .aar approach, please include below dependencies
dependencies {
...
implementation(files("libs/thryve_module_observability_${thryve_sdk_version}.aar")
//dependencies for Observability Module
implementation("io.opentelemetry:opentelemetry-api:$openTelemetryVersion")
implementation("io.opentelemetry:opentelemetry-sdk:$openTelemetryVersion")
implementation("io.opentelemetry.semconv:opentelemetry-semconv:$openTelemetrySemanticConventionsVersion")
implementation("io.opentelemetry:opentelemetry-exporter-otlp:$openTelemetryVersion")// OpenTelemetry Exporters
...
}Configure the ThryveObservability module
import ThryveCore
import ThryveCommons
import ThryveObservability
let observabilityConfig = ObservabilityConfig(
tracingEnabled: true,
crashReportingEnabled: true
)
let thryveSDKConfig = ThryveSDKConfig(
authId: "AUTH_ID",
authSecret: "AUTH_SECRET",
endUserAlias: "YOUR_UNIQUE_USER_IDENTIFIER",
endUserId: nil,
locale: "de",
observability: observabilityConfig
)
await ThryveSDK.getOrCreate(thryveSDKConfig).getUserInformation()Module configuration options
When using the Observability module, make sure to define the options in the Observability configuration.
tracingEnabled
When true, information on performance and errors linked to a Thryve user is reported to Thryve's observability backend. Requires import of ThryveObservability module.
true
crashReportingEnabled
When true, crashes caused by the ThryveSDK will be reported anonymously to Thryve's observability backend.
true
Last updated

