Add New Relic APM monitoring integration
- Install newrelic package (v13.6.6) and @newrelic/native-metrics - Add 'import newrelic' as first import in src/mcp/index.ts - Update dev script to use --env-file=.env for environment variables - Configure for ES modules support with environment-based config New Relic will monitor Express routes, track performance metrics, and capture errors when NEW_RELIC_LICENSE_KEY is set. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
6613b7c7f1
commit
01c32c7908
1513
package-lock.json
generated
1513
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -6,7 +6,7 @@
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"start": "node dist/mcp/index.js",
|
||||
"dev": "tsx watch src/mcp/index.ts",
|
||||
"dev": "tsx watch --env-file=.env src/mcp/index.ts",
|
||||
"clean": "rm -rf dist",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"test": "vitest",
|
||||
@ -33,6 +33,7 @@
|
||||
"@xenova/transformers": "^2.17.2",
|
||||
"express": "^5.1.0",
|
||||
"gray-matter": "^4.0.3",
|
||||
"newrelic": "^13.6.6",
|
||||
"simple-git": "^3.30.0",
|
||||
"zod": "^3.25.76"
|
||||
},
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
import 'newrelic';
|
||||
import { BabylonMCPServer } from './server.js';
|
||||
|
||||
async function main() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user