googleapis / googleapis/google-cloud-java

[java-spanner-jdbc] feat: Add OpenTelemetry metrics to JDBC driver

未关闭
#12,285 0 条评论 2 个 reaction 已指派 1 人 已指派给 @olavloite 在 GitHub 查看
api: spanner type: feature request
主要语言
Java
星标
2.1k
派生
1.2k
平均合并
1 天 23 小时
30 天内合并 PR
154

描述

The Cloud Spanner JDBC driver uses the Java client library for communication with Cloud Spanner, and all metrics that are defined in the client library are also used by the JDBC driver. The JDBC driver also adds some additional features that are not covered by the metrics in the Java client library, and could be added to the JDBC driver:
* Transaction retries and aborted transactions: The JDBC driver implements an internal retry mechanism to reduce the number of Aborted errors for client applications. Metrics that measure the number of successful and failed retries could give clients valuable information on possible concurrency issues (or just temporary high load).
* Writing mutations: The JDBC driver allows clients to use Mutations to write data to Cloud Spanner. This is not present in the JDBC specification, and will not be covered by any standard instrumentation for JDBC.
* Transaction duration: JDBC uses declarative transactions and the duration of those are not measured by the client library. The JDBC driver could add a measurement for the duration of read/write transactions to allow clients to monitor for possibly long-during transactions.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。