Skip to content

Commit

Permalink
feat: Installed newrelic
Browse files Browse the repository at this point in the history
  • Loading branch information
alesancor1 committed Feb 12, 2023
1 parent 63def1d commit 7e9be37
Show file tree
Hide file tree
Showing 4 changed files with 953 additions and 121 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ RUN npm install --only=prod
ARG NODE_ENV=production
ENV NODE_ENV $NODE_ENV

# New Relic config
RUN apk add python
ENV NEW_RELIC_NO_CONFIG_FILE=true
ENV NEW_RELIC_DISTRIBUTED_TRACING_ENABLED=true
ENV NEW_RELIC_LOG=stdout

ARG PORT=80
ENV PORT $PORT
EXPOSE $PORT
Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';

require('newrelic');

const governify = require('governify-commons');
const logger = governify.getLogger().tag('initialization');

Expand Down
Loading

0 comments on commit 7e9be37

Please sign in to comment.