File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
sdk/spring/spring-cloud-azure-starter-monitor-test/src/test/java/com/azure Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 1212import io .opentelemetry .sdk .logs .export .LogRecordExporter ;
1313import io .opentelemetry .sdk .metrics .export .MetricExporter ;
1414import io .opentelemetry .sdk .trace .export .SpanExporter ;
15+
16+ import java .io .InputStream ;
1517import java .net .MalformedURLException ;
1618import java .net .URL ;
1719import java .util .List ;
@@ -105,6 +107,11 @@ public void applicationContextShouldOnlyContainTheAzureMetricExporter() {
105107
106108 @ Test
107109 public void shouldMonitor () throws InterruptedException , MalformedURLException {
110+
111+ // Only required with GraalVM native test execution
112+ // we aren't sure why this is needed, seems to be a Logback issue with GraalVM native
113+ SpringMonitorTest .class .getResourceAsStream ("/logback.xml" );
114+
108115 String response = restTemplate .getForObject (Controller .URL , String .class );
109116 assertThat (response ).isEqualTo ("OK!" );
110117
You can’t perform that action at this time.
0 commit comments