-
Notifications
You must be signed in to change notification settings - Fork 312
ConfigProvider iterates over all sources and reports all non-null values to telemetry #9404
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
08c80b4
apply all changes from PR #9327, accomodated to master
mtoffl01 c62688b
merge with configId changes made in master
mtoffl01 125744a
nits: add configId in ConfigProvider methods where it was missing; fi…
mtoffl01 8becbc5
Fix 'test config id exists in ConfigCollector when using StableConfig…
mtoffl01 db60faf
introduce reportDefault
mtoffl01 750ba64
Call collect in BaseApplication.getLogInjectionEnabled; make getAppli…
mtoffl01 3006e7c
Fix call to getAppliedConfigSetting in ConfigCollector test
mtoffl01 bee84bf
Introduce ConfigValueResolver and ConfigMergeResolver
mtoffl01 bfcfd7e
getString methods only report non-null values to telemetry
mtoffl01 b411ea9
remove dependency on collectConfig for reReportToCollector and reRepo…
mtoffl01 d097300
Merge branch 'master' into mtoff/4-config-sources
mtoffl01 1ca7fd9
updating config collector to not override existing configs
mhlidd 81db67d
Adding putDefault and adding unit tests
mhlidd 1b81e8a
relaxing reReportToCollector restraint and adding unit test
mhlidd 9b22670
cleanup
mhlidd cdf3a12
updating failing unit test
mhlidd 7053f6c
abstracing ConfigCollector
mhlidd ff95cdc
adding support for proper seqId with Remote Config
mhlidd 4094c53
abstracting away getString
mhlidd 1d70667
Update internal-api/src/main/java/datadog/trace/bootstrap/config/prov…
mtoffl01 bdab76d
Update internal-api/src/main/java/datadog/trace/bootstrap/config/prov…
mtoffl01 2482933
Update internal-api/src/main/java/datadog/trace/bootstrap/config/prov…
mtoffl01 bc64730
nit: fix javadoc comments
mtoffl01 11b61f1
Modify getEnum, getList, getIntegerRange and getSet to report default…
mtoffl01 d7dc744
merge conflicts
mtoffl01 700f837
Fix merge conflicts in ConfigCollectorTest.groovy
mtoffl01 b190961
remove remoteConfig methods from ConfigCollector + highestSeqId
mtoffl01 779551d
remove serializenulls comment in TelemetryRequestBody
mtoffl01 94f6485
remove 'no usages' comment above unused ConfigCollector put method
mtoffl01 e796896
Simplify javadoc for putAll
mtoffl01 3997f56
remove javadoc for ABSENT_SEQ_ID
mtoffl01 9794631
revert getStringInternal changes
mtoffl01 84ab423
Introduce new getStringInternal, for getting string from non-default …
mtoffl01 a9c1f7a
Deprecate ConfigCollector constructor without sequence ID
mtoffl01 ff39a53
putRemote: ConfigCollector method for 'putting' from Remote Config or…
mtoffl01 0408e49
ConfigSetting.NON_DEFAULT_SEQ_ID: introduce new constant, migrate all…
mtoffl01 e3b307d
ConfigCollector.put: Delete unused function
mtoffl01 81187aa
Update internal-api/src/test/groovy/datadog/trace/api/ConfigCollector…
mtoffl01 0ffe413
replace 'def origin' assignment in ConfigCollectorTest with in-line use
mtoffl01 b5e1414
ConfigCollector.put: Remove deprecated function with zero uses
mtoffl01 b048c91
NEW_SUB_MAP: Define reusable lambda function as static field in Confi…
mtoffl01 0ef089d
updateAll: rename putAll to updateAll, and scope to Remote origin, only
mtoffl01 7ef2a9f
Merge branch 'mtoff/4-config-sources' of github.com:DataDog/dd-trace-…
mtoffl01 7508fc7
Fix updateAll
mtoffl01 49d3ced
Align naming of methods that report remote config to the ConfigCollector
mcculls fe9b376
Avoid need to peek into ConfigCollector internals
mcculls d9dac26
Restore atomic reporting of updates from remote-config
mcculls 474cd40
Merge remote-tracking branch 'origin/master' into mtoff/4-config-sources
mcculls 8e29e03
Merge remote-tracking branch 'origin/master' into mtoff/4-config-sources
mcculls 365f5d6
Update utils/config-utils/src/main/java/datadog/trace/bootstrap/confi…
mtoffl01 4a91a8e
Update utils/config-utils/src/main/java/datadog/trace/bootstrap/confi…
mtoffl01 d9fe333
Update utils/config-utils/src/main/java/datadog/trace/bootstrap/confi…
mtoffl01 2626c62
Fix bug in reReportFinalResult that incorrectly reported CALCULATED f…
mtoffl01 5b5ad0d
Merge branch 'mtoff/4-config-sources' of github.com:DataDog/dd-trace-…
mtoffl01 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
relaxing reReportToCollector restraint and adding unit test
- Loading branch information
commit 1b81e8a8d9f969831aec3de59450f564ab56a2f9
Some comments aren't visible on the classic Files Changed page.
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
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.
This class is not
private
in order to expose it for a unit test that is needed to complete code coverage. The unit test verifies thatreReportToCollector
is not invoked whenorigin == null
, which should never happen since the method to create aConfigValueResolver
should only occur when no re-reporting is expected. This check is only here as a safety check against poor usage of the function.