Skip to content

test(bigquery-jdbc): align ITOpenTelemetryTest with per-connection proxy, TrustStore, and GAPIC Logging - #15374

Open
keshavdandeva wants to merge 1 commit into
fix/jdbc-telemetry-v2-3b-gapic-cloud-loggingfrom
fix/jdbc-telemetry-v2-4b-it-telemetry-alignment
Open

keshavdandeva wants to merge 1 commit into
fix/jdbc-telemetry-v2-3b-gapic-cloud-loggingfrom
fix/jdbc-telemetry-v2-4b-it-telemetry-alignment

Conversation

@keshavdandeva

Copy link
Copy Markdown
Contributor

Summary

Aligns ITOpenTelemetryTest verification clients with GAPIC LoggingClient and per-connection proxy, SSLTrustStore*, and universeDomain settings parsed from the connection URL.

Key Decisions

  • GAPIC LoggingClient for log verification: Replaces the legacy com.google.cloud.logging.Logging verification client in verifyAndFetchLogs(...) with com.google.cloud.logging.v2.LoggingClient so verification queries honor custom TransportChannelProvider (HTTP CONNECT proxy + SSLTrustStore*) and universeDomain just like the driver under test.
  • Scoped verification credentials with managed HTTP client lifecycle: Builds verification ServiceAccountCredentials with Apache5HttpTransport honoring connection proxy and TrustStore settings when configured, scopes them with https://www.googleapis.com/auth/cloud-platform, and closes the underlying CloseableHttpClient via a VerificationCredentials AutoCloseable wrapper.

Behavior Changes

  • ITOpenTelemetryTest verification reads for Cloud Logging (LoggingClient) and Cloud Trace (TraceServiceClient) now propagate ProxyHost, ProxyPort, ProxyUid, ProxyPwd, SSLTrustStore*, and universeDomain from CONNECTION_URL into both OAuth token refresh and gRPC verification channels.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors ITOpenTelemetryTest.java to improve integration testing configurations. It replaces the global system-property-based proxy setup with explicit, scoped CloseableHttpClient and TransportChannelProvider configurations, supporting authenticated proxies and custom SSL trust stores. Additionally, it migrates the log verification from the legacy Logging service to LoggingClient and adds a 24-hour time bound to the log query. The feedback suggests throwing an explicit IllegalStateException if a custom SSL trust store is provided but the channel builder is not an instance of NettyChannelBuilder, preventing silent failures during SSL configuration.

@keshavdandeva
keshavdandeva force-pushed the fix/jdbc-telemetry-v2-4b-it-telemetry-alignment branch from b6ef057 to 79edfe9 Compare December 3, 2026 13:31

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant