Skip to content

Commit 378bcc2

Browse files
committed
copilot docs feedback
1 parent c457855 commit 378bcc2

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

dynamic-control/src/main/java/io/opentelemetry/contrib/dynamic/policy/registry/PolicyInitConfig.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)