Commit 051c352
authored
chore(bigquery-jdbc): link OpenTelemetry instrumentation with underlying SDK (#13293)
b/517588332
This PR completes the linkage between the JDBC driver's OpenTelemetry
instrumentation and the underlying BigQuery SDK to ensure full
end-to-end traces.
## Key Changes
- **Dependency**: Added `io.grpc:grpc-opentelemetry` to intercept
low-level gRPC network spans for the Storage API.
- **REST API**: Enabled `setEnableOpenTelemetryTracing(true)` in
`BigQueryOptions` to unlock SDK-level tracing for standard queries.
- **HTAPI (Storage API)**: Enabled `setEnableOpenTelemetryTracing(true)`
in `BigQueryReadSettings` and wired the `GrpcOpenTelemetry` interceptor
to the channel builder.
- **Global OTel**: Ensured the `useGlobalOpenTelemetry` flag is
respected when configuring the Storage API client.1 parent 568c616 commit 051c352
2 files changed
Lines changed: 31 additions & 2 deletions
File tree
- java-bigquery-jdbc
- src/main/java/com/google/cloud/bigquery/jdbc
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
323 | 333 | | |
324 | 334 | | |
325 | 335 | | |
| |||
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| |||
1139 | 1141 | | |
1140 | 1142 | | |
1141 | 1143 | | |
| 1144 | + | |
1142 | 1145 | | |
1143 | 1146 | | |
1144 | 1147 | | |
| |||
1176 | 1179 | | |
1177 | 1180 | | |
1178 | 1181 | | |
1179 | | - | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
1180 | 1196 | | |
1181 | 1197 | | |
1182 | 1198 | | |
| |||
1191 | 1207 | | |
1192 | 1208 | | |
1193 | 1209 | | |
1194 | | - | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
1195 | 1213 | | |
| 1214 | + | |
1196 | 1215 | | |
1197 | 1216 | | |
1198 | 1217 | | |
| |||
0 commit comments