feat(Datastore): Introduce Client Side Metrics by lqiu96 · Pull Request #12718 · googleapis/google-cloud-java (original) (raw)

added 22 commits

March 31, 2026 23:41

@lqiu96

Update DatastoreAdminStubSettings and DatastoreStubSettings to include the library version via Version.VERSION. Add the two new Version.java files that hold the library version constant. Update native image reflect-config.json for both the admin and core stub packages.

@lqiu96

…gRPC transport coverage

Replace the old MetricsRecorder / OpenTelemetryMetricsRecorder / NoOpMetricsRecorder types with the new DatastoreMetricsRecorder family, which extends GAX's MetricsRecorder interface for a unified recording contract.

Key changes:

@lqiu96

@lqiu96

@lqiu96

@lqiu96

@lqiu96

@lqiu96

@lqiu96

Add a default-on, private OpenTelemetry SDK pipeline that automatically exports Datastore client-side metrics to Google Cloud Monitoring without requiring any user configuration.

Key additions:

@lqiu96

…ne after impl-1 refactor

@lqiu96

Add DatastoreMetricsSample demonstrating default built-in metrics with no configuration required. The sample runs a transaction flow (put, read-modify-write, delete) that exercises transaction_latency and transaction_attempt_count metrics, then prints instructions for verifying the data in Cloud Monitoring Metrics Explorer.

Includes DatastoreMetricsSampleIT which runs against a real GCP project (GOOGLE_CLOUD_PROJECT env var required) and asserts the expected console output from the sample.

@lqiu96

@lqiu96

@lqiu96

@lqiu96

@lqiu96

@lqiu96

@lqiu96

@lqiu96

@lqiu96

Add DatastoreMetricsSample demonstrating default built-in metrics with no configuration required. The sample runs a transaction flow (put, read-modify-write, delete) that exercises transaction_latency and transaction_attempt_count metrics, then prints instructions for verifying the data in Cloud Monitoring Metrics Explorer.

Includes DatastoreMetricsSampleIT which runs against a real GCP project (GOOGLE_CLOUD_PROJECT env var required) and asserts the expected console output from the sample.

@lqiu96

@lqiu96

[gemini-code-assist[bot]](/apps/gemini-code-assist)

@lqiu96

@lqiu96 lqiu96 marked this pull request as ready for review

April 10, 2026 22:01

blakeli0

@lqiu96

blakeli0

@lqiu96

… signature, and format changes

@lqiu96

@lqiu96

@lqiu96

@lqiu96

@lqiu96

blakeli0

blakeli0

@lqiu96

@lqiu96

blakeli0

@lqiu96 lqiu96 changed the titlechore: Implement Default Client Side Metrics Otel feat(Datastore): Introduce Client Side Metrics

Apr 29, 2026

@lqiu96

@lqiu96 lqiu96 deleted the datastore-csm-impl-2 branch

April 29, 2026 22:56

This was referenced

Apr 30, 2026

jinseopkim0 added a commit that referenced this pull request

May 5, 2026

@release-please @jinseopkim0

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})