diff --git a/CHECKS b/CHECKS index b498fd495d..73d4f07951 100644 --- a/CHECKS +++ b/CHECKS @@ -1 +1,3 @@ +WAIT=10 +ATTEMPTS=6 / diff --git a/Dockerfile b/Dockerfile index bb3721b0ac..e32f793149 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/packages/altair-api/.env.example b/packages/altair-api/.env.example index e1feeac24b..8d965b67f4 100644 --- a/packages/altair-api/.env.example +++ b/packages/altair-api/.env.example @@ -8,3 +8,4 @@ POSTGRES_PASSWORD= DATABASE_URL= NEW_RELIC_APP_NAME= NEW_RELIC_LICENSE_KEY= +NEW_RELIC_APPLICATION_LOGGING_FORWARDING_ENABLED=true \ No newline at end of file diff --git a/packages/altair-api/src/newrelic.ts b/packages/altair-api/src/newrelic.ts new file mode 100644 index 0000000000..d45f7bf73e --- /dev/null +++ b/packages/altair-api/src/newrelic.ts @@ -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; diff --git a/packages/altair-api/src/newrelic/config.ts b/packages/altair-api/src/newrelic/config.ts index 07a3f533c1..71d6da8f18 100644 --- a/packages/altair-api/src/newrelic/config.ts +++ b/packages/altair-api/src/newrelic/config.ts @@ -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. */ @@ -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