Skip to main content
Skip table of contents

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:

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:

JAVA
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:

JAVA
// ...
GermainAPM.setSessionId(...YOUR_SESSION_ID...);
// ...

Kotlin:

JAVA
// ...	
GermainAPM.setSessionId(...YOUR_SESSION_ID...)
// ...

Component: Mobile App

Feature Availability: 8.6.0 or later

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.