Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces ConnectionLogContext to carry per-connection logging identity and thresholds across threads without colliding with user or library log parameters. It updates BigQueryJdbcResultSetLogger, BigQueryJdbcRootLogger, OpenTelemetryJulHandler, and PerConnectionFileHandler to utilize this new context instead of a raw connection ID string. Feedback is provided regarding the hasPositionalPlaceholder method in OpenTelemetryJulHandler, which currently only supports single-digit placeholders (0-9) and can be optimized to a single-pass scan to handle multi-digit placeholders more efficiently.
Neenu1995
force-pushed
the
fix/bq-jdbc-connection-log-context
branch
from
November 26, 2026 21:02
49fab70 to
ed72ecd
Compare
Neenu1995
force-pushed
the
fix/bq-jdbc-connection-log-context
branch
from
November 27, 2026 00:51
ed72ecd to
52761ec
Compare
keshavdandeva
approved these changes
Nov 27, 2026
Neenu1995
force-pushed
the
fix/bq-jdbc-connection-log-context
branch
from
November 27, 2026 16:11
52761ec to
a5fa9a6
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack: PR 4 of 6 (base:
fix/bq-jdbc-log-rotation-and-context)Bug: b/584840147
Summary
Replaces raw
StringLogRecord.getParameters()[0]connection-ID stamping with a package-private typedConnectionLogContextcarrier acrossBigQueryJdbcResultSetLogger,BigQueryJdbcRootLogger,PerConnectionFileHandler, andOpenTelemetryJulHandler.Design Decisions
Stringparameters atparams[0]can no longer be misinterpreted as connection IDs or spawn unintendedBQ-JDBC-*-<prefix>.logfiles when MDC is empty.MessageFormatcompatibility:OpenTelemetryJulHandlerstripsConnectionLogContextatparams[0]before positional message formatting.