Skip to content

Commit

Permalink
new relic added
Browse files Browse the repository at this point in the history
  • Loading branch information
Amits64 committed Sep 6, 2024
1 parent b0e06d3 commit 4abb918
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ RUN groupadd -g 1001 nonroot && useradd -u 1001 -g nonroot -m nonroot
# Create a directory for your app and set it as the working directory
WORKDIR /usr/src/app

ENV NEW_RELIC_NO_CONFIG_FILE=true
ENV NEW_RELIC_DISTRIBUTED_TRACING_ENABLED=true
ENV NEW_RELIC_LOG=stdout

# Copy only the necessary files from the build stage
COPY --from=build /usr/src/app /usr/src/app

Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const bcrypt = require('bcrypt');
const path = require('path');
const helmet = require('helmet');
const morgan = require('morgan');
require('newrelic');

dotenv.config();

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"mysql2": "^3.10.3",
"prom-client": "^15.0.0",
"helmet": "^7.0.0",
"morgan": "^1.10.0"
"morgan": "^1.10.0",
"newrelic": "latest"
},
"devDependencies": {
"chromedriver": "^126.0.5",
Expand Down

0 comments on commit 4abb918

Please sign in to comment.