Skip to content

Commit

Permalink
Datadog on staging (github#16982)
Browse files Browse the repository at this point in the history
* Include Datadog buildpack

* Add heroku_app tag to statsd
  • Loading branch information
JasonEtco authored Dec 15, 2020
1 parent e2a219e commit 42694f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"NPM_CONFIG_PRODUCTION": "true"
},
"buildpacks": [
{ "url": "https://github.com/DataDog/heroku-buildpack-datadog.git#1.21" },
{ "url": "heroku/nodejs" }
],
"formation": {
Expand Down
3 changes: 2 additions & 1 deletion lib/statsd.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = new StatsD({
prefix: 'docs.',
mock,
globalTags: {
app: 'docs'
app: 'docs',
heroku_app: process.env.HEROKU_APP_NAME
}
})

0 comments on commit 42694f4

Please sign in to comment.