Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions java-bigquery-jdbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<skip>${skipSurefire}</skip>
<systemPropertyVariables>
<JDBC_TESTS>true</JDBC_TESTS>
<java.net.preferIPv4Stack>true</java.net.preferIPv4Stack>
</systemPropertyVariables>
</configuration>
</plugin>
Expand All @@ -59,6 +60,7 @@
<configuration>
<systemPropertyVariables>
<JDBC_TESTS>true</JDBC_TESTS>
<java.net.preferIPv4Stack>true</java.net.preferIPv4Stack>
</systemPropertyVariables>
</configuration>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,15 @@ private String verifyAndFetchLogs(String connectionUuid) throws Exception {
List<LogEntry> entries = fetchLogsWithRetry(logging, filter);
assertFalse(entries.isEmpty(), "Telemetry logs should be exported to GCP");

LogEntry sampleEntry = entries.get(0);
String traceId = sampleEntry.getTrace();
String hexSpanId = sampleEntry.getSpanId();
String traceId = null;
String hexSpanId = null;
for (LogEntry entry : entries) {
if (entry.getTrace() != null) {
traceId = entry.getTrace();
hexSpanId = entry.getSpanId();
break;
}
}

assertNotNull(traceId, "Log entry must contain TraceId");
assertNotNull(hexSpanId, "Log entry must contain SpanId");
Expand Down
Loading