public interface AgentConfig extends com.newrelic.api.agent.Config, DataSenderConfig
ServiceFactory.getConfigService().getDefaultAgentConfig()
from internal classes, or
AgentBridge.privateApi.getAgentConfig()
from instrumentation classes. Config.getValue(String)
method with the keyPath being '.' delimited hierarchy of keys, similar to the command line setting override.AgentBridge.privateApi.getAgentConfig().getValue("instrumentation.hibernate.stats_sampler.enabled", false)
ServiceFactory.getConfigService().getDefaultAgentConfig().getValue("class_transformer.netty_dispatcher_class")
Modifier and Type | Method and Description |
---|---|
long |
getApdexTInMillis()
Get the ApdexT value sent by New Relic, or the default value.
|
long |
getApdexTInMillis(java.lang.String transactionName)
If NewRelic sent an ApdexT for a key transaction, return that; otherwise, return the ApdextT value for the
application.
|
java.lang.String |
getApiHost() |
int |
getApiPort() |
java.lang.String |
getApplicationName()
Get the main application.
|
java.util.List<java.lang.String> |
getApplicationNames()
The applications the Agent reports data to.
|
AttributesConfig |
getAttributesConfig()
Get the attributes configuration.
|
TransactionTracerConfig |
getBackgroundTransactionTracerConfig()
Get the transaction tracer application settings for background transactions.
|
BrowserMonitoringConfig |
getBrowserMonitoringConfig()
Get the browser monitoring application settings.
|
CircuitBreakerConfig |
getCircuitBreakerConfig() |
ClassTransformerConfig |
getClassTransformerConfig()
Get the class transformer settings.
|
CommandParserConfig |
getCommandParserConfig() |
CrossProcessConfig |
getCrossProcessConfig()
Get the cross process application settings.
|
DatastoreConfig |
getDatastoreConfig() |
DistributedTracingConfig |
getDistributedTracingConfig() |
ErrorCollectorConfig |
getErrorCollectorConfig()
Get the error collection application settings.
|
ExtensionsConfig |
getExtensionsConfig() |
ExternalTracerConfig |
getExternalTracerConfig() |
boolean |
getIbmWorkaroundEnabled() |
java.util.List<java.lang.String> |
getIgnoreJars()
Jars which should be ignored by java agent and thus should not be sent up to the collector.
|
InfiniteTracingConfig |
getInfiniteTracingConfig() |
InsightsConfig |
getInsightsConfig()
Get the Insights configuration.
|
Config |
getInstrumentationConfig() |
JarCollectorConfig |
getJarCollectorConfig()
Gets the JarCollectorService configuration settings.
|
java.util.Set<java.lang.String> |
getJDBCSupport() |
JmxConfig |
getJmxConfig()
Gets the JMX configuration settings.
|
LabelsConfig |
getLabelsConfig()
Get the agent's label configuration.
|
java.lang.String |
getLanguage()
The agent language (java).
|
int |
getLogFileCount()
The number of log files to use.
|
java.lang.String |
getLogFileName() |
java.lang.String |
getLogFilePath() |
java.lang.String |
getLogLevel() |
int |
getLogLimit()
The maximum number of kilobytes to write to any one log file.
|
int |
getMaxStackTraceLines() |
java.lang.String |
getMetricIngestUri() |
NormalizationRuleConfig |
getNormalizationRuleConfig() |
<T> T |
getProperty(java.lang.String prop)
Get a property value.
|
<T> T |
getProperty(java.lang.String key,
T defaultVal)
Get a property value.
|
ReinstrumentConfig |
getReinstrumentConfig()
Gets the Reinstrumentation configuration settings.
|
TransactionTracerConfig |
getRequestTransactionTracerConfig()
Get the transaction tracer application settings for request transactions.
|
int |
getSegmentTimeoutInSec() |
long |
getSendDataOnExitThresholdInMillis()
Get the threshold for sending data to the server on exit.
|
SpanEventsConfig |
getSpanEventsConfig() |
SqlTraceConfig |
getSqlTraceConfig()
Get the sql trace application settings.
|
StripExceptionConfig |
getStripExceptionConfig() |
ThreadProfilerConfig |
getThreadProfilerConfig()
Get the thread profiling application settings.
|
int |
getTokenTimeoutInSec() |
TransactionEventsConfig |
getTransactionEventsConfig() |
TransactionNamingScheme |
getTransactionNamingScheme() |
int |
getTransactionSizeLimit()
Get the limit on the size of a transaction trace.
|
TransactionTracerConfig |
getTransactionTracerConfig()
Get the transaction tracer application settings.
|
UtilizationDataConfig |
getUtilizationDataConfig() |
boolean |
isAgentEnabled() |
boolean |
isApdexTSet()
Returns true if apdex T was specified (not just the default).
|
boolean |
isApdexTSet(java.lang.String transactionName)
Has the given transaction name been configured as a Key Transaction with an ApdexT?
|
boolean |
isAutoAppNamingEnabled()
If
true the application name for a web transaction is determined automatically. |
boolean |
isAutoTransactionNamingEnabled()
If the enable_auto_transaction_naming property is
true the name of a web transaction is determined
automatically. |
boolean |
isCpuSamplingEnabled() |
boolean |
isCustomInstrumentationEditorAllowed() |
boolean |
isCustomParametersAllowed() |
boolean |
isDebugEnabled() |
boolean |
isDebugEnabled(java.lang.String key) |
boolean |
isGenericJDBCSupportEnabled() |
boolean |
isHighSecurity() |
boolean |
isLogDaily()
Logs a daily log if set to true.
|
boolean |
isLoggingToStdOut() |
boolean |
isPlatformInformationEnabled() |
boolean |
isSendDataOnExit()
If true send data to the server on exit.
|
boolean |
isSendEnvironmentInfo() |
boolean |
isSendJvmProps()
Gets the field obfuscateJvmProps.
|
boolean |
isStartupTimingEnabled()
If true, agent startup time will be recorded and sent as a supportability metric
|
boolean |
isSyncStartup()
If
true the Agent connects to New Relic on startup. |
boolean |
isTrimStats() |
boolean |
laspEnabled() |
boolean |
liteMode() |
java.util.List<java.lang.String> |
logDeprecatedProperties(java.util.Map<java.lang.String,java.lang.Object> localSettings) |
boolean |
openTracingEnabled() |
java.lang.String |
securityPoliciesToken() |
boolean |
waitForRPMConnect()
If
true the Agent should wait until it has connected to New Relic before processing transactions. |
int |
waitForTransactionsInMillis()
How long to wait (in milliseconds) for all transactions to finish before allowing the application to shutdown
|
getAuditModeConfig, getCaBundlePath, getCompressedContentEncoding, getHost, getInsertApiKey, getLicenseKey, getPort, getProxyHost, getProxyPassword, getProxyPort, getProxyScheme, getProxyUser, getTimeoutInMilliseconds, getUsePrivateSSL, isAuditMode, isPutForDataSend, isSimpleCompression
boolean isAgentEnabled()
java.lang.String getApplicationName()
java.util.List<java.lang.String> getApplicationNames()
boolean isAutoAppNamingEnabled()
true
the application name for a web transaction is determined automatically.true
if auto app naming is enabledboolean isAutoTransactionNamingEnabled()
true
the name of a web transaction is determined
automatically.true
if auto transaction naming is enabledlong getApdexTInMillis()
long getApdexTInMillis(java.lang.String transactionName)
boolean isApdexTSet()
boolean isApdexTSet(java.lang.String transactionName)
int getTransactionSizeLimit()
boolean isSyncStartup()
true
the Agent connects to New Relic on startup.boolean waitForRPMConnect()
true
the Agent should wait until it has connected to New Relic before processing transactions.
Until the Agent connects it has no URL rules or ApdexT.TransactionTracerConfig getTransactionTracerConfig()
ClassTransformerConfig getClassTransformerConfig()
BrowserMonitoringConfig getBrowserMonitoringConfig()
TransactionTracerConfig getRequestTransactionTracerConfig()
TransactionTracerConfig getBackgroundTransactionTracerConfig()
ErrorCollectorConfig getErrorCollectorConfig()
ThreadProfilerConfig getThreadProfilerConfig()
SqlTraceConfig getSqlTraceConfig()
JmxConfig getJmxConfig()
JarCollectorConfig getJarCollectorConfig()
ReinstrumentConfig getReinstrumentConfig()
CrossProcessConfig getCrossProcessConfig()
InsightsConfig getInsightsConfig()
AttributesConfig getAttributesConfig()
java.lang.String getLanguage()
<T> T getProperty(java.lang.String prop)
<T> T getProperty(java.lang.String key, T defaultVal)
boolean isSendEnvironmentInfo()
java.lang.String getApiHost()
int getApiPort()
boolean isDebugEnabled()
boolean isDebugEnabled(java.lang.String key)
boolean isLoggingToStdOut()
java.lang.String getLogFileName()
java.lang.String getLogFilePath()
java.lang.String getLogLevel()
java.util.List<java.lang.String> getIgnoreJars()
int getLogLimit()
int getLogFileCount()
boolean isLogDaily()
boolean isSendDataOnExit()
long getSendDataOnExitThresholdInMillis()
boolean isCpuSamplingEnabled()
boolean isSendJvmProps()
boolean isTrimStats()
boolean isPlatformInformationEnabled()
java.util.Set<java.lang.String> getJDBCSupport()
boolean isGenericJDBCSupportEnabled()
int getMaxStackTraceLines()
Config getInstrumentationConfig()
java.lang.String getMetricIngestUri()
boolean isHighSecurity()
boolean getIbmWorkaroundEnabled()
LabelsConfig getLabelsConfig()
NormalizationRuleConfig getNormalizationRuleConfig()
boolean isStartupTimingEnabled()
CircuitBreakerConfig getCircuitBreakerConfig()
StripExceptionConfig getStripExceptionConfig()
TransactionNamingScheme getTransactionNamingScheme()
UtilizationDataConfig getUtilizationDataConfig()
DatastoreConfig getDatastoreConfig()
ExternalTracerConfig getExternalTracerConfig()
boolean liteMode()
int getSegmentTimeoutInSec()
int getTokenTimeoutInSec()
boolean openTracingEnabled()
int waitForTransactionsInMillis()
boolean laspEnabled()
java.lang.String securityPoliciesToken()
boolean isCustomInstrumentationEditorAllowed()
boolean isCustomParametersAllowed()
TransactionEventsConfig getTransactionEventsConfig()
DistributedTracingConfig getDistributedTracingConfig()
ExtensionsConfig getExtensionsConfig()
SpanEventsConfig getSpanEventsConfig()
java.util.List<java.lang.String> logDeprecatedProperties(java.util.Map<java.lang.String,java.lang.Object> localSettings)
CommandParserConfig getCommandParserConfig()
InfiniteTracingConfig getInfiniteTracingConfig()