Android App Session Monitoring
Germain UX automatically generates and associates a sessionId with all data collected during a session. If you prefer to set sessionId explicitly(e.g extract session id from your application's logic) you can do that with the following code (either through configuration before Germain UX initialization either by calling the API after Germain UX initialization).
During Germain UX initialization through GermainAPMConfiguration:
Java:
public class SampleApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
GermainAPMConfiguration config = new GermainAPMConfiguration("http://GERMAIN_APM_SERVER/ingestion/fact");
config.setSessionId(...YOUR_SESSION_ID...);
GermainAPM.init(this, config);
}
}
Kotlin:
class SampleApplication : Application() {
override fun onCreate() {
super.onCreate()
GermainAPMConfiguration config = new GermainAPMConfiguration("http://GERMAIN_APM_SERVER/ingestion/fact")
config.setSessionId(...YOUR_SESSION_ID...)
GermainAPM.init(this, config)
}
}
On application runtime after GermainAPM initiated:
Java:
// ...
GermainAPM.setSessionId(...YOUR_SESSION_ID...);
// ...
Kotlin:
// ...
GermainAPM.setSessionId(...YOUR_SESSION_ID...)
// ...
Component: Mobile App
Feature Availability: 8.6.0 or later