You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ConfigProvider iterates over all sources and reports all non-null values to telemetry (#9404)
* apply all changes from PR #9327, accomodated to master
* nits: add configId in ConfigProvider methods where it was missing; fix configId test to accommodate new ConfigCollector data structure
* Fix 'test config id exists in ConfigCollector when using StableConfigSource'
* introduce reportDefault
* Call collect in BaseApplication.getLogInjectionEnabled; make getAppliedConfigSetting static function that takes in a map
* Fix call to getAppliedConfigSetting in ConfigCollector test
* Introduce ConfigValueResolver and ConfigMergeResolver
* getString methods only report non-null values to telemetry
* remove dependency on collectConfig for reReportToCollector and reReportFinalResult
* updating config collector to not override existing configs
* Adding putDefault and adding unit tests
* relaxing reReportToCollector restraint and adding unit test
* cleanup
* updating failing unit test
* abstracing ConfigCollector
* adding support for proper seqId with Remote Config
* abstracting away getString
* Update internal-api/src/main/java/datadog/trace/bootstrap/config/provider/ConfigProvider.java
* Update internal-api/src/main/java/datadog/trace/bootstrap/config/provider/ConfigProvider.java
* Update internal-api/src/main/java/datadog/trace/bootstrap/config/provider/ConfigProvider.java
* nit: fix javadoc comments
* Modify getEnum, getList, getIntegerRange and getSet to report defaults before calling getString. And modify putDefault to treat null entries as a valid value
* remove remoteConfig methods from ConfigCollector + highestSeqId
* remove serializenulls comment in TelemetryRequestBody
* remove 'no usages' comment above unused ConfigCollector put method
* Simplify javadoc for putAll
* remove javadoc for ABSENT_SEQ_ID
* revert getStringInternal changes
* Introduce new getStringInternal, for getting string from non-default sources
* Deprecate ConfigCollector constructor without sequence ID
* putRemote: ConfigCollector method for 'putting' from Remote Config origin; migrate AppSecConfigServiceImpl to use this API
* ConfigSetting.NON_DEFAULT_SEQ_ID: introduce new constant, migrate all calls to 'DEFAULT_SEQ_ID + 1' to use new constant; move constants to top of ConfigSetting class
* ConfigCollector.put: Delete unused function
* Update internal-api/src/test/groovy/datadog/trace/api/ConfigCollectorTest.groovy
Co-authored-by: Stuart McCulloch <[email protected]>
* replace 'def origin' assignment in ConfigCollectorTest with in-line use
* ConfigCollector.put: Remove deprecated function with zero uses
* NEW_SUB_MAP: Define reusable lambda function as static field in ConfigCollector, used by putDefault and put
* updateAll: rename putAll to updateAll, and scope to Remote origin, only
* Fix updateAll
* Align naming of methods that report remote config to the ConfigCollector
* Avoid need to peek into ConfigCollector internals
* Restore atomic reporting of updates from remote-config
* Update utils/config-utils/src/main/java/datadog/trace/bootstrap/config/provider/ConfigProvider.java
Co-authored-by: Stuart McCulloch <[email protected]>
* Update utils/config-utils/src/main/java/datadog/trace/bootstrap/config/provider/ConfigProvider.java
Co-authored-by: Stuart McCulloch <[email protected]>
* Update utils/config-utils/src/main/java/datadog/trace/bootstrap/config/provider/ConfigProvider.java
Co-authored-by: Stuart McCulloch <[email protected]>
* Fix bug in reReportFinalResult that incorrectly reported CALCULATED for all non-default values
---------
Co-authored-by: Matthew Li <[email protected]>
Co-authored-by: Stuart McCulloch <[email protected]>
0 commit comments