-
public class ConfigConfig reads values with the following priority:
1) system properties
2) environment variables,
3) optional configuration file
4) platform dependant properties. 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 and '.' is replaced with '_'.
-
-
Field Summary
-
Method Summary
-
-
Method Detail
-
getServiceName
String getServiceName()
-
getRootContextServiceName
String getRootContextServiceName()
-
getPrioritySamplingForce
String getPrioritySamplingForce()
-
getSpanAttributeSchemaVersion
int getSpanAttributeSchemaVersion()
-
getPeerServiceComponentOverrides
Map<String, String> getPeerServiceComponentOverrides()
-
getPeerServiceMapping
Map<String, String> getPeerServiceMapping()
-
getServiceMapping
Map<String, String> getServiceMapping()
-
getRequestHeaderTags
Map<String, String> getRequestHeaderTags()
-
getResponseHeaderTags
Map<String, String> getResponseHeaderTags()
-
getBaggageMapping
Map<String, String> getBaggageMapping()
-
getHttpServerPathResourceNameMapping
Map<String, String> getHttpServerPathResourceNameMapping()
-
getHttpClientPathResourceNameMapping
Map<String, String> getHttpClientPathResourceNameMapping()
-
getHttpResourceRemoveTrailingSlash
boolean getHttpResourceRemoveTrailingSlash()
-
getSplitByTags
Set<String> getSplitByTags()
-
getScopeDepthLimit
int getScopeDepthLimit()
-
getScopeIterationKeepAlive
int getScopeIterationKeepAlive()
-
getPartialFlushMinSpans
int getPartialFlushMinSpans()
-
getPropagationStylesToExtract
@Deprecated() Set<PropagationStyle> getPropagationStylesToExtract()
-
getPropagationStylesToInject
@Deprecated() Set<PropagationStyle> getPropagationStylesToInject()
-
getTracePropagationStylesToExtract
Set<TracePropagationStyle> getTracePropagationStylesToExtract()
-
getTracePropagationStylesToInject
Set<TracePropagationStyle> getTracePropagationStylesToInject()
-
getClockSyncPeriod
int getClockSyncPeriod()
-
getTraceClientIpHeader
String getTraceClientIpHeader()
-
getTraceSamplingServiceRules
Map<String, String> getTraceSamplingServiceRules()
-
getTraceSamplingOperationRules
Map<String, String> getTraceSamplingOperationRules()
-
getTraceSamplingRules
String getTraceSamplingRules()
-
getTraceSampleRate
Double getTraceSampleRate()
-
getTraceRateLimit
int getTraceRateLimit()
-
getSpanSamplingRules
String getSpanSamplingRules()
-
getSpanSamplingRulesFile
String getSpanSamplingRulesFile()
-
getObfuscationQueryRegexp
String getObfuscationQueryRegexp()
-
getIdGenerationStrategy
IdGenerationStrategy getIdGenerationStrategy()
-
getVersion
String getVersion()
-
getPrimaryTag
String getPrimaryTag()
-
getLongRunningTraceFlushInterval
long getLongRunningTraceFlushInterval()
-
getRuntimeId
String getRuntimeId()
-
getProcessId
Long getProcessId()
-
getHostName
String getHostName()
-
isServiceNameSetByUser
boolean isServiceNameSetByUser()
-
isLongRunningTraceEnabled
boolean isLongRunningTraceEnabled()
-
isInjectBaggageAsTagsEnabled
boolean isInjectBaggageAsTagsEnabled()
-
isPrioritySamplingEnabled
boolean isPrioritySamplingEnabled()
-
isPeerServiceDefaultsEnabled
boolean isPeerServiceDefaultsEnabled()
-
isRemoveIntegrationServiceNamesEnabled
boolean isRemoveIntegrationServiceNamesEnabled()
-
isRequestHeaderTagsCommaAllowed
boolean isRequestHeaderTagsCommaAllowed()
-
isHttpServerDecodedResourcePreserveSpaces
boolean isHttpServerDecodedResourcePreserveSpaces()
-
isScopeStrictMode
boolean isScopeStrictMode()
-
isScopeInheritAsyncPropagation
boolean isScopeInheritAsyncPropagation()
-
isTraceStrictWritesEnabled
boolean isTraceStrictWritesEnabled()
-
isLogExtractHeaderNames
boolean isLogExtractHeaderNames()
-
isTracePropagationStyleB3PaddingEnabled
boolean isTracePropagationStyleB3PaddingEnabled()
-
isTracePropagationExtractFirst
boolean isTracePropagationExtractFirst()
-
isRuntimeMetricsEnabled
boolean isRuntimeMetricsEnabled()
-
isHealthMetricsEnabled
boolean isHealthMetricsEnabled()
-
isLogsInjectionEnabled
boolean isLogsInjectionEnabled()
-
isTraceClientIpResolverEnabled
boolean isTraceClientIpResolverEnabled()
-
isProfilingEnabled
boolean isProfilingEnabled()
-
isDatadogProfilerEnablementOverridden
static boolean isDatadogProfilerEnablementOverridden()
-
isDatadogProfilerSafeInCurrentEnvironment
static boolean isDatadogProfilerSafeInCurrentEnvironment()
-
isClientIpEnabled
boolean isClientIpEnabled()
-
isCiVisibilityEnabled
boolean isCiVisibilityEnabled()
-
isAwsPropagationEnabled
boolean isAwsPropagationEnabled()
-
getxDatadogTagsMaxLength
int getxDatadogTagsMaxLength()
-
isDebugEnabled
boolean isDebugEnabled()
-
isDataStreamsEnabled
boolean isDataStreamsEnabled()
-
getLocalRootSpanTags
Map<String, Object> getLocalRootSpanTags()
-
getMergedSpanTags
Map<String, String> getMergedSpanTags()
-
getGlobalTags
Map<String, String> getGlobalTags()
Provide 'global' tags, i.e. tags set everywhere. We have to support old (dd.trace.global.tags)version of this setting if new (dd.tags) version has not been specified.
-
isJmxFetchIntegrationEnabled
boolean isJmxFetchIntegrationEnabled(Iterable<String> integrationNames, boolean defaultEnabled)
-
isRuleEnabled
boolean isRuleEnabled(String name, boolean defaultEnabled)
-
jmxFetchIntegrationEnabled
@Deprecated() static boolean jmxFetchIntegrationEnabled(SortedSet<String> integrationNames, boolean defaultEnabled)
-
isEndToEndDurationEnabled
boolean isEndToEndDurationEnabled(boolean defaultEnabled, Array<String> integrationNames)
-
isPropagationEnabled
boolean isPropagationEnabled(boolean defaultEnabled, Array<String> integrationNames)
-
isTraceAnalyticsIntegrationEnabled
boolean isTraceAnalyticsIntegrationEnabled(SortedSet<String> integrationNames, boolean defaultEnabled)
-
isSamplingMechanismValidationDisabled
boolean isSamplingMechanismValidationDisabled()
-
traceAnalyticsIntegrationEnabled
@Deprecated() static boolean traceAnalyticsIntegrationEnabled(SortedSet<String> integrationNames, boolean defaultEnabled)
-
get
@Deprecated() static Config get(Properties properties)
This method is deprecated since the method of configuration will be changed in the future. Theproperties instance should instead be passed directly into the DDTracer builder:
DDTracer.builder().withProperties(new Properties()).build()Config keys for use in Properties instance construction can be found in and TracerConfig.
-
-
-
-