-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect configuration mismatch warning when port is specified a…
…s String I noticed a Ruby app where the configuration mismatch warning was popping up: ``` W, [2021-10-15T11:44:30.952540 #1] WARN -- ddtrace: [ddtrace] Configuration mismatch: values differ between "c.tracer.port" ('8126') and DD_TRACE_AGENT_PORT environment variable ('8126'). Using '8126'. ``` The warning was being triggered because we convert the values read from environment variables (`DD_TRACE_AGENT_PORT` or `DD_TRACE_AGENT_URL`) into integers, but this app had `c.tracer.port` specified as a string. Because or that, since we collect all values, call `#uniq` on them and see if we get more than one, the warning was being triggered since the `8126` integer is not the same as the `'8126'` string.
- Loading branch information
Showing
2 changed files
with
53 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters