-
public final class ElasticApmAgent
-
-
Field Summary
Fields Modifier and Type Field Description public final ElasticApmConfigurationconfigurationprivate final Flusherflusher
-
Method Summary
Modifier and Type Method Description FlushergetFlusher()static ElasticApmAgentget()static ElasticApmAgentinitialize(Context context)Initializes the Elastic Agent. static ElasticApmAgentinitialize(Context context, ElasticApmConfiguration configuration)Initializes the Elastic Agent. static ElasticApmAgentinitialize(Context context, Connectivity connectivity)Initializes the Elastic Agent. static ElasticApmAgentinitialize(Context context, ElasticApmConfiguration configuration, Connectivity connectivity)Initializes the Elastic Agent. static ElasticApmAgentinitialize(Application application)static ElasticApmAgentinitialize(Application application, ElasticApmConfiguration configuration)static ElasticApmAgentinitialize(Application application, Connectivity connectivity)static ElasticApmAgentinitialize(Application application, ElasticApmConfiguration configuration, Connectivity connectivity)static synchronized booleanisInitialized()static voidresetForTest()-
-
Method Detail
-
getFlusher
@RestrictTo(value = RestrictTo.Scope.LIBRARY_GROUP_PREFIX) Flusher getFlusher()
-
get
static ElasticApmAgent get()
-
initialize
@Deprecated() static ElasticApmAgent initialize(Context context)
Initializes the Elastic Agent.
- Parameters:
context- The Application context.
-
initialize
@Deprecated() static ElasticApmAgent initialize(Context context, ElasticApmConfiguration configuration)
Initializes the Elastic Agent.
- Parameters:
context- The Application context.configuration- The Elastic configuration.
-
initialize
@Deprecated() static ElasticApmAgent initialize(Context context, Connectivity connectivity)
Initializes the Elastic Agent.
- Parameters:
context- The Application context.connectivity- The APM server connectivity config.
-
initialize
@Deprecated() static ElasticApmAgent initialize(Context context, ElasticApmConfiguration configuration, Connectivity connectivity)
Initializes the Elastic Agent.
- Parameters:
context- The Application context.configuration- The Elastic configuration.connectivity- The APM server connectivity config.
-
initialize
static ElasticApmAgent initialize(Application application)
-
initialize
static ElasticApmAgent initialize(Application application, ElasticApmConfiguration configuration)
-
initialize
static ElasticApmAgent initialize(Application application, Connectivity connectivity)
-
initialize
static ElasticApmAgent initialize(Application application, ElasticApmConfiguration configuration, Connectivity connectivity)
-
isInitialized
static synchronized boolean isInitialized()
-
resetForTest
static void resetForTest()
-
-
-
-