This is a Heroku buildpack to add datadog/prerunscript.sh in your dyno, and it will add extra tags in the agent.
al_serviceal_proc_typeal_proc_subtype
This is obvious and same among the dynos/pods.
$AL_SERVICE$DD_AL_SERVICE"unknown"
web and worker, depends on each dyno/pod.
$AL_PROC_TYPE$DD_AL_PROCMAP[$DYNO_TYPE][0]$DD_AL_PROC_TYPE$DYNO_TYPE"unknown"
The name of program that runs on each dyno/pod.
$AL_PROC_SUBTYPE$DD_AL_PROCMAP[$DYNO_TYPE][1]$DD_AL_PROC_SUBTYPE"unknown"
$DD_AL_PROCMAP is JSON of { key: [val0, val1], …}
keyshould be the dyno type.val0will be used asal_proc_typeval1will be used asal_proc_subtype
Note: Buildpack is order-sensitive, but this buildpack does not care where it stands because the important execution timing is when /app/.profile.d/datadog.sh runs, in other words: the boot time.