Skip to content
This repository was archived by the owner on Aug 30, 2019. It is now read-only.

Commit 2baa5f1

Browse files
authored
config: mark DD_CONNECTION_LIMIT as deprecated (#469)
1 parent cf995d1 commit 2baa5f1

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

config/agent.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ type AgentConfig struct {
7474
// watchdog
7575
MaxMemory float64 // MaxMemory is the threshold (bytes allocated) above which program panics and exits, to be restarted
7676
MaxCPU float64 // MaxCPU is the max UserAvg CPU the program should consume
77-
MaxConnections int // MaxConnections is the threshold (opened TCP connections) above which program panics and exits, to be restarted
77+
MaxConnections int // (deprecated) MaxConnections is the threshold (opened TCP connections) above which program panics and exits, to be restarted
7878
WatchdogInterval time.Duration // WatchdogInterval is the delay between 2 watchdog checks
7979

8080
// http/s proxying

config/merge_env.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const (
1414
envAPIKey = "DD_API_KEY" // API KEY
1515
envAPMEnabled = "DD_APM_ENABLED" // APM enabled
1616
envURL = "DD_APM_DD_URL" // APM URL
17-
envProxyDeprecated = "HTTPS_PROXY" // proxy URL (deprecated)
17+
envProxyDeprecated = "HTTPS_PROXY" // (deprecated) proxy URL
1818
envProxy = "DD_PROXY_HTTPS" // proxy URL (overrides deprecated)
1919
envHostname = "DD_HOSTNAME" // agent hostname
2020
envBindHost = "DD_BIND_HOST" // statsd & receiver hostname
@@ -24,7 +24,7 @@ const (
2424
envIgnoreResources = "DD_IGNORE_RESOURCE" // ignored resources
2525
envLogLevel = "DD_LOG_LEVEL" // logging level
2626
envAnalyzedSpans = "DD_APM_ANALYZED_SPANS" // spans to analyze for transactions
27-
envConnectionLimit = "DD_CONNECTION_LIMIT" // limit of unique connections
27+
envConnectionLimit = "DD_CONNECTION_LIMIT" // (deprecated) limit of unique connections
2828
)
2929

3030
// loadEnv applies overrides from environment variables to the trace agent configuration

datadog.example.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,6 @@ apm_config:
8585
# # Maximum CPU percentage allowed to be occupied by the trace agent
8686
# # The agent will be killed if this number is surpassed.
8787
# max_cpu_percent: 0.5
88-
#
89-
# # Maximum number of simultaenous connections allowed by the agent.
90-
# # The agent will be killed if this number is surpassed.
91-
# max_connection: 200
9288
#
9389
# # Defines obfuscation rules for sensitive data. Disabled by default.
9490
# obfuscation:

0 commit comments

Comments
 (0)