When using the new heroku ps:exec-feature to SSH into a running dyno, no environment variables are set, so when the scripts in profile.d/ is sourced, the shell exits without getting to the interactive login.
> heroku ps:exec --app foobar
Establishing credentials... done
Connecting to web.1 on ⬢ foobar...
DATADOG_API_KEY environment variable not set. Run: heroku config:add DATADOG_API_KEY=<your API key>%
>
When using the new
heroku ps:exec
-feature to SSH into a running dyno, no environment variables are set, so when the scripts inprofile.d/
is sourced, the shell exits without getting to the interactive login.Patch at https://github.com/tactileentertainment/heroku-buildpack-datadog/commit/a07f98aeb2ced6215584c4eeb6de62611400e522 :