File tree Expand file tree Collapse file tree
dynamic-control/src/main/java/io/opentelemetry/contrib/dynamic/policy/registry Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,10 +46,13 @@ public List<PolicySourceConfig> getSources() {
4646 /**
4747 * Reads policy-init configuration based on config properties.
4848 *
49- * <p>YAML takes precedence over JSON when both are present.
49+ * <p>YAML takes precedence over JSON when both are present. If both are present, and the YAML
50+ * file is invalid, the JSON file is still ignored. If the file parsed is invalid, a warning is
51+ * logged and null is returned.
5052 *
5153 * @param config OpenTelemetry config properties
52- * @return parsed init config, or null when no init-config path is configured
54+ * @return parsed init config, or null when no init-config path is configured or the file is
55+ * invalid
5356 * @throws NullPointerException if config is null
5457 */
5558 @ Nullable
You can’t perform that action at this time.
0 commit comments