googleapis / googleapis/google-cloud-java

[java-spanner-jdbc] feat: support option for setting `client-id`

Open
#12,278 0 comments 0 reactions 1 assignee Claimed by @olavloite View on GitHub
api: spanner type: feature request
Dominant language
Java
Stars
2.1k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
154

Description

The JDBC driver automatically creates a `Spanner` instance based on the JDBC connection URL. If an application uses several different JDBC connection URLs, then the JDBC driver will create several `Spanner` instances. Each instance will be assigned a monotonically increasing `client-id` that is included in the metrics that are being collected. It is hard for users to relate a given `client-id` to a specific connection URL. Adding an option for setting the client-id that should be used would make this easier.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.