| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This pull request centralizes OpenTelemetry tracing logic within the BigQuery JDBC driver by introducing a static withTracing utility in BigQueryJdbcOpenTelemetry. It standardizes span attribute tagging for database operations and ensures OpenTelemetry context is propagated across asynchronous tasks in BigQueryDatabaseMetaData. Review feedback highlights a potential issue with trace continuity when using connection-level context as a parent instead of the current request context, and suggests improvements to exception handling to prevent unnecessary nesting and ensure InterruptedException is not swallowed.
Sorry, something went wrong.
|
/gemini review |
Sorry, something went wrong.
There was a problem hiding this comment.
This pull request centralizes OpenTelemetry tracing logic by introducing a standard withTracing utility in BigQueryJdbcOpenTelemetry, which is now used across BigQueryStatement, BigQueryPreparedStatement, and BigQueryDatabaseMetaData to record consistent database attributes. The changes also improve context propagation for asynchronous tasks, add connection state checks, and simplify baggage handling by removing redundant MDC fallbacks. Feedback suggests optimizing the withTracing method by retrieving the connection ID directly from the connection object rather than from the OpenTelemetry context baggage.
Sorry, something went wrong.
|
/gemini review |
Sorry, something went wrong.
There was a problem hiding this comment.
This pull request centralizes OpenTelemetry tracing by introducing a standard withTracing utility in BigQueryJdbcOpenTelemetry, which is now used across statements and metadata operations to ensure consistent attribute population and error handling. The changes also improve context propagation for asynchronous tasks and transition connection ID tracking to OpenTelemetry baggage. Feedback from the review highlights a potential NullPointerException due to boolean unboxing, suggests explicitly setting the span kind to CLIENT for database calls, and provides recommendations for handling InterruptedException.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
b/496720140
Changes
Context Propagation & Session Tracking
Span Enrichment & Semantic Conventions
Instrumentation
Refactoring & Cleanups