Skip to content

Commit

Permalink
created newrelic config at root
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Feb 15, 2023
1 parent 8ddc85e commit d4882c3
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHECKS
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
WAIT=10
ATTEMPTS=6
/
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ COPY --from=builder /app/out/yarn.lock ./yarn.lock
COPY turbo.json turbo.json
COPY nx.json nx.json
COPY tsconfig.json tsconfig.json
COPY CHECKS CHECKS
RUN yarn install

# Build the project and its dependencies
Expand Down
1 change: 1 addition & 0 deletions packages/altair-api/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ POSTGRES_PASSWORD=
DATABASE_URL=
NEW_RELIC_APP_NAME=
NEW_RELIC_LICENSE_KEY=
NEW_RELIC_APPLICATION_LOGGING_FORWARDING_ENABLED=true
4 changes: 4 additions & 0 deletions packages/altair-api/src/newrelic.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { config } from './newrelic/config';

// Required to be at the root of the service for newrelic to pick it up
exports.config = config;
7 changes: 6 additions & 1 deletion packages/altair-api/src/newrelic/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* See lib/config/default.js in the agent distribution for a more complete
* description of configuration variables and their potential values.
*/
exports.config = {
export const config = {
/**
* Array of application names.
*/
Expand Down Expand Up @@ -37,6 +37,11 @@ exports.config = {
*/
level: 'trace',
},
application_logging: {
forwarding: {
enabled: true,
},
},
/**
* When true, all request headers except for those listed in attributes.exclude
* will be captured for all traces, unless otherwise specified in a destination's
Expand Down

0 comments on commit d4882c3

Please sign in to comment.