Observability
Integrate Thryve Observability with your application
platform :ios, '13.0'
source 'https://git.thryve.de/thryve/Specs.git'
target 'ThryveConnectorSample' do
use_frameworks!
...
pod 'ThryveObservability', '5.2.2'
...
enddependencies {
...
api("com.thryve.sdk:observability:${thryve_sdk_version}")
...
}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
ThryveObservability moduleimport 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
Parameter
Description
Default
Last updated

