public class AgentConfiguration
extends java.lang.Object
AgentConfiguration represents the application’s configuration of the AppDynamics SDK. It should be constructed using the builder()
builder.
Required fields are:
Most users can set up their configuration like this:
Instrumentation.start(AgentConfiguration.builder()
.withAppKey("ABC-DEF-GHI")
.withContext(getApplicationContext())
.build());
}
NOTE: Replace “ABC-DEF-GHI” with your actual application key.
For more specialized use cases, like using an on-premise collector, use the other, more advanced options supported by this class.
Modifier and Type | Class and Description |
---|---|
static class |
AgentConfiguration.Builder
A class for setting up instances of AgentConfiguration.
|
Modifier and Type | Field and Description |
---|---|
java.lang.String |
appKey |
java.lang.String |
applicationName |
boolean |
autoInstrument |
CollectorChannelFactory |
collectorChannelFactory |
java.lang.String |
collectorURL |
boolean |
compileTimeInstrumentationCheck |
android.content.Context |
context |
CrashReportCallback |
crashCallback |
boolean |
crashReportingEnabled |
java.util.Set<java.lang.String> |
excludedUrlPatterns |
int |
interactionCaptureMode |
boolean |
jsAgentAjaxEnabled |
boolean |
jsAgentInjectionEnabled |
int |
loggingLevel |
NetworkRequestCallback |
networkRequestCallback |
boolean |
screenshotsEnabled |
java.lang.String |
screenshotURL |
Modifier and Type | Method and Description |
---|---|
static AgentConfiguration.Builder |
builder()
Generates a builder for configuring the SDK.
|
java.lang.String |
toString() |
public final java.lang.String appKey
public final java.lang.String applicationName
public final android.content.Context context
public final java.lang.String collectorURL
public final java.lang.String screenshotURL
public final int loggingLevel
public final CollectorChannelFactory collectorChannelFactory
public final java.util.Set<java.lang.String> excludedUrlPatterns
public final boolean compileTimeInstrumentationCheck
public final boolean autoInstrument
public final CrashReportCallback crashCallback
public final NetworkRequestCallback networkRequestCallback
public final int interactionCaptureMode
public final boolean screenshotsEnabled
public final boolean jsAgentInjectionEnabled
public final boolean jsAgentAjaxEnabled
public final boolean crashReportingEnabled
public java.lang.String toString()
toString
in class java.lang.Object
public static AgentConfiguration.Builder builder()
Generates a builder for configuring the SDK.