PHP APM with Heroku
  • 10 Aug 2020
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

PHP APM with Heroku

  • Dark
    Light
  • PDF

This document details how to install the Java APM Profiler in your PHP application running on Heroku.

PHP Application Setup

Add Buildpack

heroku buildpacks:add https://github.com/stackify/heroku-buildpack-stackify.git

Ensure that the Stackify Buildpack is installed after the base php buildpack.

Configure Buildpack

heroku config:set STACKIFY_KEY="XXXXXXXXXX"
heroku config:set STACKIFY_APPLICATION_NAME="My Application" 
heroku config:set STACKIFY_ENVIRONMENT_NAME="Production" 

Set STACKIFY_KEY to your Stackify Activation Key.

Verify

Deploy changes to Heroku and make requests. You can then verify results in the Retrace dashboard.


Was this article helpful?