Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Stackdriver Trace on App Engine Standard for PHP 7.2

This app demonstrates how to set up Stackdriver Trace on App Engine Standard for PHP 7.2.

Setup

Deploy

Run Locally

You can run these samples locally using PHP's build-in web server:

# export environemnt variables locally which are set by app engine when deployed
export GOOGLE_CLOUD_PROJECT=YOUR_PROJECT_ID

# Run PHP's built-in web server
php -S localhost:8000

You will then be able to see your application traces in the Trace UI.

Deploy with gcloud

Deploy the samples by doing the following:

gcloud config set project YOUR_PROJECT_ID
gcloud app deploy
gcloud app browse

The last command will open https://{YOUR_PROJECT_ID}.appspot.com/ in your browser. Browse to / to execute a trace. You will then be able to see your traces in the Trace UI.