-
Notifications
You must be signed in to change notification settings - Fork 344
Implement Config Inversion with Default Strictness of Warning
#9181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 45 commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
fd62009
saving work
mhlidd a756eb2
init: adding System.getenv forbiddenAPI, ConfigHelper, ParseSupported…
mhlidd 96e2546
Fixing java6 incompatibility with EnvironmentVariables component
mhlidd 6a87970
parsing JSON at buildtime
mhlidd b062c96
fixing invocationtargetexception
mhlidd 6769bda
spotless
mhlidd 06ed2fd
updating linter to include OTEL_
mhlidd 8dd50e0
adding EnvironmentVariables linter
mhlidd 9660b1a
adding flag for strictness
mhlidd f8d2a8c
updating supported-configurations
mhlidd b68f0b2
updated all discoverable configs
mhlidd dc5d83b
updating jmxfetch configs
mhlidd fe2eeb9
fixing config helper
mhlidd 229c38d
adding unit tests for ConfigHelper
mhlidd 77ddecd
fixing tests pt 1
mhlidd eb6908a
adding configs and updating specific tests to TEST strictness
mhlidd 972eef4
cleanup and removing system.getenv call
mhlidd 81c12f4
adding more supported-configurations
mhlidd 98c57b5
adding more configs
mhlidd 990c0ce
adding configs and updating tests
mhlidd 5bdd8cf
adding branch coverage
mhlidd 52c05b4
updating code coverage again
mhlidd 5192a8a
test
mhlidd f128de8
rebasing
mhlidd 734f9c7
adding more configs post-rebase
mhlidd e9ce233
initialize GeneratedSupportedConfiguratons at buildtime
mhlidd 90f536d
fixing buildtests
mhlidd 7a1517e
adding ConfigInversionStrictStyle
mhlidd 5ca61c0
refactor ConfigHelper to datadog.trace.api
mhlidd abc0b64
adding configs and updating gradle files to reflect ConfigHelper refa…
mhlidd 97db41f
adding telemetry
mhlidd 04bde01
reverting agent-bootstrap to directly invoke EnvironmentVariables com…
mhlidd 9a764c9
Merge branch 'master' into mhlidd/config_inversion
mhlidd e10e0a9
updating ConfigHelper to use getAll()
mhlidd 340eeef
adding classes to native build time and adding suppressforbidden
mhlidd ea83e25
Adding SupportedConfigurationsSource to buildtime
mhlidd 4b602c1
testing
mhlidd 4bdb960
attempt to fix native image
mhlidd 962490d
attempt to fix native build
mhlidd c7aa94d
cleanup pt 1
mhlidd 8068724
cleanup pt 2
mhlidd 47a8f6a
moving buildtime parser out of environment component
mhlidd 94f392c
updating tests bootstrap constants and spock runner
mhlidd 6c2a551
undo migration to configHelper
mhlidd fe697ff
pushing changes for new module
mhlidd 1aefa7e
updating gradle tasks to kotlin plugins
mhlidd 9ef8c26
cleaning up gradle tasks
mhlidd b8d8eca
responding to PR comments
mhlidd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,7 @@ public final class Constants { | |
| "datadog.environment", | ||
| "datadog.json", | ||
| "datadog.yaml", | ||
| "datadog.generator", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. question: Is this correct? The generator code shouldn't be packaged, only the generated file which is currently not in this package anyway: |
||
| "datadog.appsec.api", | ||
| "datadog.trace.api", | ||
| "datadog.trace.bootstrap", | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
...c/main/java/datadog/trace/bootstrap/instrumentation/java/concurrent/QueueTimerHelper.java
This file contains hidden or 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 hidden or 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
2 changes: 1 addition & 1 deletion
2
...-agent/agent-ci-visibility/src/main/java/datadog/trace/civisibility/ProcessHierarchy.java
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
2 changes: 1 addition & 1 deletion
2
...gent/agent-ci-visibility/src/main/java/datadog/trace/civisibility/ci/PullRequestInfo.java
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thought: Is it needed to move
Strings?Also, need to check with bootstrap there, as some packages maybe relocated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: Will be updated once Config component migration is completed