X Tutup
Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Cloud Spanner OpenCensus Sample

An example that demonstrates round-trip and query stats latency of Google Cloud Spanner operations.

This sample requires Java and Maven for building the application.

This sample includes 2 classes that demonstrate how to record Cloud Spanner's latencies.

  • CaptureGrpcMetric - capture client round-trip latency.
  • CaptureGfeMetric - capture Google Front End (GFE) latency.
  • CaptureQueryStatsMetric - capture query stats latency.

Build and Run

  1. Follow the set-up instructions in the documentation.

  2. Enable APIs for your project. Click here to visit Cloud Platform Console and enable the Google Cloud Spanner API.

  3. Create a Cloud Spanner instance and database via the Cloud Plaform Console's Cloud Spanner section.

  4. Enable application default credentials by running the command gcloud auth application-default login.

X Tutup