Skip to content

Commit

Permalink
Merge branch 'main' into ruby_instrumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahramadan committed May 22, 2024
2 parents d96fc07 + 40325e1 commit 05d7209
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 58 deletions.
3 changes: 1 addition & 2 deletions src/nodejs/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
build
node_modules
node_modules
9 changes: 6 additions & 3 deletions src/nodejs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@
# update the `NODE_OPTIONS` environment variable accordingly.
# In the first stage, install all the required packages in one custom directory.
# Then in the second stage, copy the directory to `/instrumentation`.
# - Ensure you have `newrelic`, `@newrelic/aws-sdk`, `@newrelic/koa`, `@newrelic/superagent`, and `@newrelic/native-metrics`
# - Ensure you have `newrelic`, and`@newrelic/native-metrics`.
# - Grant the necessary access to `/instrumentation` directory. `chmod -R go+r /instrumentation`
FROM node:20.12 AS build
ARG NODE_RUNTIME_VERSION=20
ARG NEWRELIC_NODE_AGENT_VERSION=latest

FROM node:${NODE_RUNTIME_VERSION} AS build
WORKDIR /operator-build
COPY . .
RUN npm install
RUN npm install newrelic@${NEWRELIC_NODE_AGENT_VERSION}

FROM busybox
COPY --from=build /operator-build/build/workspace /instrumentation
Expand Down
1 change: 1 addition & 0 deletions src/nodejs/newrelicinstrumentation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require('newrelic')
19 changes: 0 additions & 19 deletions src/nodejs/package.json

This file was deleted.

3 changes: 0 additions & 3 deletions src/nodejs/src/newrelicinstrumentation.ts

This file was deleted.

31 changes: 0 additions & 31 deletions src/nodejs/tsconfig.json

This file was deleted.

0 comments on commit 05d7209

Please sign in to comment.