0.0.5-beta.2 • Published 4 years ago
fastify-newrelic v0.0.5-beta.2
fastify-newrelic
DEPRECATED
The plugin doesn't correctly work. All works except send error notice. Problems has in fastify, because it doens't send stack trace. If are you know how resole it? Open issue or pull request :)
Installation
$ yarn add fastify-newrelic@beta
# or
$ npm i fastify-newrelic@beta
Usage
Register the plugin with your Fastify server
import * as newrelic from 'newrelic'
import Fastify from 'fastify'
import fastifyNewrelic from 'fastify-newrelic'
const server = Fastify()
server.register(fastifyCron, {
attributes: {
'user-id': (req) => req.headers['x-userd-id']
},
newrelic
})
And need setup newrelic with environment variables or file (see docs)
NEW_RELIC_APP_NAME=
NEW_RELIC_LICENSE_KEY=
NEW_RELIC_NO_CONFIG_FILE=true # if you do not use newrelic.js
0.0.5-beta.2
4 years ago
0.0.5
4 years ago
0.0.5-beta.1
4 years ago
0.0.4
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago