Replies: 2 comments 7 replies
-
I am not Android expert, but if these are the OS processes, each of these process need to create a separate LogManager instance, which further creates a tenant specific logger. |
Beta Was this translation helpful? Give feedback.
-
We use multiple instances (2-3 android, 3-4 iOS) with different configurations and tenants, every tenant store data in a separate db As Lalit mention you should use Example: val config = LogManager.logConfigurationFactory().apply {
set(LogConfigurationKey.CFG_STR_PRIMARY_TOKEN, token)
set(LogConfigurationKey.CFG_STR_COLLECTOR_URL, collectorUrl)
set(LogConfigurationKey.CFG_STR_FACTORY_NAME, "PBI_OneAuth_Logger" + UUID.randomUUID())
}
val logManager = LogManagerProvider.createLogManager(config) |
Beta Was this translation helpful? Give feedback.
-
Is your question about specific 1DS SDK APIs or Features?
Our team is working on a multi-process design of our Android application, I'm wondering if cpp_client_telemetry SDK is suitable for multi-process scenario.
For example, can we acquire multiple logger instances in each process, and those logger instances shall emit telemetry to backend in different tenants?
In multi-process scenario, it is hard to deal with synchronization because mutex is no longer working between processes. Besides, we don't want to pay the price to use IPC to emit telemetry. So, the best option for us is that each process should emit telemetry on its own.
Beta Was this translation helpful? Give feedback.
All reactions