You can run this example to generate sample traces on any Google Cloud project.
gcloud auth application-default login
Executing this command will save your application credentials to default path which will depend on the type of machine -
- Linux, macOS:
$HOME/.config/gcloud/application_default_credentials.json
- Windows:
%APPDATA%\gcloud\application_default_credentials.json
export GOOGLE_CLOUD_PROJECT="my-awesome-gcp-project-id"
You can run the example application via gradle. From the project root:
cd examples/trace/ && gradle run
You should now see the exported traces in your Google Cloud project.