Skip to content

feat: Added example for prisma@7#375

Merged
jsumners-nr merged 4 commits into
mainfrom
prisma-7-js
Jun 4, 2026
Merged

feat: Added example for prisma@7#375
jsumners-nr merged 4 commits into
mainfrom
prisma-7-js

Conversation

@jsumners-nr

Copy link
Copy Markdown
Contributor

I believe this PR resolves newrelic/node-newrelic#3525. This PR shows how to utilize Prisma's own instrumentation module to instrument a Prisma based application and review said trace data within the New Relic dashboard.

  1. I created a new namespace directory for the Prisma examples.
  2. I moved the original Prisma example to prisma/prisma-wasm/.
  3. I updated a copy of the original with all of necessary information as prisma/prisma-7-js/.

@bizob2828 bizob2828 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're missing a sample.env in prisma-wasm folder. also the container fails to build:

 > [6/6] RUN npm ci:
0.317 npm error code EUSAGE
0.319 npm error
0.319 npm error The `npm ci` command can only install with an existing package-lock.json or
0.319 npm error npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
0.319 npm error later to generate a package-lock.json file, then try again.

You have to change npm ci to npm install

Also in readme this line:

docker exec -i prisma-app-app-1 bash -c './make-requests.sh'

should be

docker exec -i prisma-wasm-app-1 bash -c './make-requests.sh'

@jsumners-nr

Copy link
Copy Markdown
Contributor Author

you're missing a sample.env in prisma-wasm folder. also the container fails to build:

 > [6/6] RUN npm ci:
0.317 npm error code EUSAGE
0.319 npm error
0.319 npm error The ``npm ci`` command can only install with an existing package-lock.json or
0.319 npm error npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
0.319 npm error later to generate a package-lock.json file, then try again.

You have to change npm ci to npm install

Also in readme this line:

docker exec -i prisma-app-app-1 bash -c './make-requests.sh'

should be

docker exec -i prisma-wasm-app-1 bash -c './make-requests.sh'

.... all of that is from main.

@jsumners-nr jsumners-nr requested a review from bizob2828 June 4, 2026 12:42
@@ -7,5 +7,5 @@ Get it running:
1. Copy sample.env to .env

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still missing sample.env

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

newrelic-node-examples/prisma/prisma-wasm on  prisma-7-js [?]
❯ ls -la
total 64
drwxr-xr-x@ 11 jsumners  staff  352 Jun  4 08:39 .
drwxr-xr-x@  5 jsumners  staff  160 May 14 14:54 ..
-rw-r--r--   1 jsumners  staff  243 Jun  4 08:39 .env
-rw-r--r--@  1 jsumners  staff   21 Dec  1  2023 .gitignore
-rw-r--r--@  1 jsumners  staff   19 Jun 24  2024 .npmrc
drwxr-xr-x@  7 jsumners  staff  224 Feb 28  2025 app
-rw-r--r--@  1 jsumners  staff  502 Dec  1  2023 docker-compose.yml
-rw-r--r--@  1 jsumners  staff  202 Jun  4 08:40 Dockerfile
-rwxr-xr-x@  1 jsumners  staff  155 Jun 18  2024 entrypoint.sh
-rw-r--r--@  1 jsumners  staff  488 Jun  4 08:33 README.md
-rw-r--r--@  1 jsumners  staff  247 Jun  4 08:32 sample.env

@jsumners-nr jsumners-nr merged commit 734e1e0 into main Jun 4, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from Needs PR Review to Done: Issues recently completed in Node.js Engineering Board Jun 4, 2026
@jsumners-nr jsumners-nr deleted the prisma-7-js branch June 4, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done: Issues recently completed

Development

Successfully merging this pull request may close these issues.

Add support for Prisma 7

3 participants