https://github.com/quipper/newrelic-node-prisma
https://github.com/quipper/newrelic-node-prisma
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/quipper/newrelic-node-prisma
- Owner: quipper
- Created: 2022-03-28T10:20:19.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-30T03:09:01.000Z (about 4 years ago)
- Last Synced: 2025-01-09T15:46:11.152Z (over 1 year ago)
- Language: TypeScript
- Size: 21.5 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# New Relic Prisma Integration
This is an unofficial library for integrating [node-newrelic](https://github.com/newrelic/node-newrelic) and [prisma](https://github.com/prisma/prisma).
Note: Installation of [newrelic](https://www.npmjs.com/package/newrelic) is required to use this plugin
## Installation
```session
$ npm install newrelic
$ npm install git+https://github.com/quipper/newrelic-node-prisma.git
```
```js
// register-newrelic.js
require('newrelic-node-prisma')
```
```session
$ # require before the app starts
$ node -r register-newrelic.js index.js
```
## TypeScript
Of course, this can be used in conjunction with TypeScript
```ts
// register-newrelic.ts
import 'newrelic-node-prisma'
```
```session
$ ts-node -r register-newrelic.ts index.ts
```
Or compile and then
```session
$ tsc
$ node -r register-newrelic.js index.js
```