Thread-safe singleton hub managing the lifecycle of TelemetryBatcher for client-side
diagnostic and usage telemetry in the BigQuery JDBC driver.
All telemetry operations are wrapped in exception safeguards so that failures in metric
collection or batch dispatching never impact standard JDBC functionality.
Flushes pending buffered metrics and shuts down the shared instance.
extractErrorCode(Throwable t)
publicstaticintextractErrorCode(Throwablet)
Extracts the numeric error code from the throwable chain. Traverses causes to unpack
BigQueryException (HTTP status codes) or SQLException error codes. Returns 1000 as the fallback
driver error code.
Executes a telemetry logging operation safely inside an exception-isolated block. Guaranteed to
catch all Throwable exceptions to protect JDBC driver operations.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-11-18 UTC."],[],[]]