Skip to content

Commit 65606af

Browse files
committed
pr review
1 parent 29012f9 commit 65606af

File tree

1 file changed

+3
-1
lines changed
  • instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure

1 file changed

+3
-1
lines changed

instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/EmbeddedConfigFile.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ private static Map<String, String> extractSpringProperties(ConfigurableEnvironme
5050
}
5151

5252
if (props.isEmpty()) {
53-
throw new IllegalStateException("No application.yaml file found.");
53+
throw new IllegalStateException(
54+
"No properties found with prefix 'otel.' - this should not happen, because we checked "
55+
+ "'environment.getProperty(\"otel.file_format\", String.class) != null' earlier");
5456
}
5557
return props;
5658
}

0 commit comments

Comments
 (0)