-
public class ConfigConfig reads values with the following priority: 1) system properties, 2) environment variables, 3) optional configuration file. It also includes default values to ensure a valid config.
System properties are PREFIX'ed. Environment variables are the same as the system property, but uppercased with '.' -> '_'.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumConfig.PropagationStyle
-
Field Summary
-
Method Summary
-
-
Method Detail
-
getRuntimeId
String getRuntimeId()
-
getServiceName
String getServiceName()
-
getWriterType
String getWriterType()
-
getAgentHost
String getAgentHost()
-
getAgentPort
int getAgentPort()
-
getAgentUnixDomainSocket
String getAgentUnixDomainSocket()
-
getServiceMapping
Map<String, String> getServiceMapping()
-
getExcludedClasses
List<String> getExcludedClasses()
-
getHeaderTags
Map<String, String> getHeaderTags()
-
getHttpServerErrorStatuses
Set<Integer> getHttpServerErrorStatuses()
-
getHttpClientErrorStatuses
Set<Integer> getHttpClientErrorStatuses()
-
getSplitByTags
Set<String> getSplitByTags()
-
getScopeDepthLimit
Integer getScopeDepthLimit()
-
getPartialFlushMinSpans
Integer getPartialFlushMinSpans()
-
getPropagationStylesToExtract
Set<Config.PropagationStyle> getPropagationStylesToExtract()
-
getPropagationStylesToInject
Set<Config.PropagationStyle> getPropagationStylesToInject()
-
getJmxFetchConfigDir
String getJmxFetchConfigDir()
-
getJmxFetchConfigs
List<String> getJmxFetchConfigs()
-
getJmxFetchMetricsConfigs
List<String> getJmxFetchMetricsConfigs()
-
getJmxFetchCheckPeriod
Integer getJmxFetchCheckPeriod()
-
getJmxFetchRefreshBeansPeriod
Integer getJmxFetchRefreshBeansPeriod()
-
getJmxFetchStatsdHost
String getJmxFetchStatsdHost()
-
getJmxFetchStatsdPort
Integer getJmxFetchStatsdPort()
-
getHealthMetricsStatsdHost
String getHealthMetricsStatsdHost()
-
getHealthMetricsStatsdPort
Integer getHealthMetricsStatsdPort()
-
getTraceAnnotations
String getTraceAnnotations()
-
getTraceMethods
String getTraceMethods()
-
getTraceExecutors
List<String> getTraceExecutors()
-
getTraceSamplingServiceRules
Map<String, String> getTraceSamplingServiceRules()
-
getTraceSamplingOperationRules
Map<String, String> getTraceSamplingOperationRules()
-
getTraceSampleRate
Double getTraceSampleRate()
-
getTraceRateLimit
Double getTraceRateLimit()
-
getProfilingStartDelay
int getProfilingStartDelay()
-
getProfilingUploadPeriod
int getProfilingUploadPeriod()
-
getProfilingTemplateOverrideFile
String getProfilingTemplateOverrideFile()
-
getProfilingUploadTimeout
int getProfilingUploadTimeout()
-
getProfilingUploadCompression
String getProfilingUploadCompression()
-
getProfilingProxyHost
String getProfilingProxyHost()
-
getProfilingProxyPort
int getProfilingProxyPort()
-
getProfilingProxyUsername
String getProfilingProxyUsername()
-
getProfilingProxyPassword
String getProfilingProxyPassword()
-
getProfilingExceptionSampleLimit
int getProfilingExceptionSampleLimit()
-
getProfilingExceptionHistogramTopItems
int getProfilingExceptionHistogramTopItems()
-
getProfilingExceptionHistogramMaxCollectionSize
int getProfilingExceptionHistogramMaxCollectionSize()
-
getLocalRootSpanTags
Map<String, String> getLocalRootSpanTags()
-
getMergedSpanTags
Map<String, String> getMergedSpanTags()
-
getMergedJmxTags
Map<String, String> getMergedJmxTags()
-
getMergedProfilingTags
Map<String, String> getMergedProfilingTags()
-
getInstrumentationAnalyticsSampleRate
float getInstrumentationAnalyticsSampleRate(Array<String> aliases)
-
getFinalProfilingUrl
String getFinalProfilingUrl()
-
isIntegrationEnabled
boolean isIntegrationEnabled(SortedSet<String> integrationNames, boolean defaultEnabled)
-
isJmxFetchIntegrationEnabled
boolean isJmxFetchIntegrationEnabled(SortedSet<String> integrationNames, boolean defaultEnabled)
-
isRuleEnabled
boolean isRuleEnabled(String name)
-
jmxFetchIntegrationEnabled
@Deprecated() static boolean jmxFetchIntegrationEnabled(SortedSet<String> integrationNames, boolean defaultEnabled)
-
isTraceAnalyticsIntegrationEnabled
boolean isTraceAnalyticsIntegrationEnabled(SortedSet<String> integrationNames, boolean defaultEnabled)
-
traceAnalyticsIntegrationEnabled
@Deprecated() static boolean traceAnalyticsIntegrationEnabled(SortedSet<String> integrationNames, boolean defaultEnabled)
-
getSettingFromEnvironment
@Deprecated() static String getSettingFromEnvironment(String name, String defaultValue)
Helper method that takes the name, adds a "dd." prefix then checks for System Properties ofthat name. If none found, the name is converted to an Environment Variable and used to checkthe env. If none of the above returns a value, then an optional properties file if checked. Ifsetting is not configured in either location,
defaultValueis returned.
-
getBooleanSettingFromEnvironment
@Deprecated() static Boolean getBooleanSettingFromEnvironment(String name, Boolean defaultValue)
Calls getSettingFromEnvironment and converts the result to a Boolean.
-
getFloatSettingFromEnvironment
@Deprecated() static Float getFloatSettingFromEnvironment(String name, Float defaultValue)
Calls getSettingFromEnvironment and converts the result to a Float.
-
get
static Config get(Properties properties)
-
isTraceEnabled
boolean isTraceEnabled()
-
isIntegrationsEnabled
boolean isIntegrationsEnabled()
-
isPrioritySamplingEnabled
boolean isPrioritySamplingEnabled()
-
isTraceResolverEnabled
boolean isTraceResolverEnabled()
-
isHttpServerTagQueryString
boolean isHttpServerTagQueryString()
-
isHttpClientTagQueryString
boolean isHttpClientTagQueryString()
-
isHttpClientSplitByDomain
boolean isHttpClientSplitByDomain()
-
isDbClientSplitByInstance
boolean isDbClientSplitByInstance()
-
isRuntimeContextFieldInjection
boolean isRuntimeContextFieldInjection()
-
isJmxFetchEnabled
boolean isJmxFetchEnabled()
-
isHealthMetricsEnabled
boolean isHealthMetricsEnabled()
-
isLogsInjectionEnabled
boolean isLogsInjectionEnabled()
-
isReportHostName
boolean isReportHostName()
-
isTraceExecutorsAll
boolean isTraceExecutorsAll()
-
isTraceAnalyticsEnabled
boolean isTraceAnalyticsEnabled()
-
isProfilingEnabled
boolean isProfilingEnabled()
-
isProfilingStartForceFirst
boolean isProfilingStartForceFirst()
-
-
-
-