Skip to content

Commit 9e5e6cc

Browse files
committed
fix filter logging logic
1 parent 2f63ccf commit 9e5e6cc

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITOpenTelemetryTest.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,7 @@ private String verifyAndFetchLogs(String connectionUuid) throws Exception {
258258
.setCredentials(credentials)
259259
.build()
260260
.getService()) {
261-
String filter =
262-
"logName:\"projects/"
263-
+ PROJECT_ID
264-
+ "/logs/com.google.cloud.bigquery\" AND labels.\"jdbc.connection_id\"=\""
265-
+ connectionUuid
266-
+ "\"";
261+
String filter = "labels.\"jdbc.connection_id\"=\"" + connectionUuid + "\"";
267262

268263
List<LogEntry> entries = fetchLogsWithRetry(logging, filter);
269264
assertFalse(entries.isEmpty(), "Telemetry logs should be exported to GCP");

0 commit comments

Comments
 (0)