Skip to content

TelemetryClient (Legacy)

Outdated

The APIs on this page (TelemetryManager, TelemetryClient, TelemetryManagerConfiguration) were removed in SwiftSDK 3.0. See the Swift Setup Guide for current documentation or the V3 Migration Guide if upgrading.

Historical context

The original Swift SDK (called "SwiftClient") used a TelemetryManager singleton with a TelemetryManagerConfiguration class. These were replaced by the TelemetryDeck static API in the Grand Rename and formally removed in SwiftSDK 3.0.

Quick migration reference

Old API Current API
TelemetryManagerConfiguration(appID:) TelemetryDeck.initialize(appID:namespace:)
TelemetryManager.initialize(config:) TelemetryDeck.initialize(appID:namespace:)
TelemetryManager.send("event") await TelemetryDeck.event("event")
TelemetryManager.send("event", for: user) await TelemetryDeck.event("event", customUserID: user)
TelemetryManager.send("event", with: params) await TelemetryDeck.event("event", parameters: params)
TelemetryManager.shared.hashedDefaultUser Not exposed directly; use setUserIdentifier(_:)
configuration.telemetryAllowDebugBuilds = true testMode: false parameter in initialize
import TelemetryClient import TelemetryDeck