Skip to content

diegomarquezp/tracing-sample

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

What is this repo?

This repo is a sample Spring Boot app that demonstrates OpenTelemetry metrics in Translate

How to run this sample?

This repo is dependent on the branch otel-poc of gax. see relevant changes in gax

  1. Enable Cloud Monitoring API and Translate API
  2. Go to the root folder of sdk-platform-java, switch to branch otel-poc, run mvn clean install -DskipTests -Dcheckstyle.skip -Dclirr.skip.
  3. Replace the project id in application.properties to your own project id.
  4. Start the app
  5. Navigate to http://localhost:8080/translate/hello for a few requests
  6. Wait up to 1 minute, the metrics should show up in Cloud Monitoring dashboard on Metrics explorer tab. The relevant metrics are under Generic Task -> Custom metrics -> attempt_latency
  7. Alternatively, navigate to http://localhost:9090 to see the latest metrics without waiting.

About

Forked from @blakeli0's blakeli0/metrics-sample

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%