Skip to content

Commit 9737619

Browse files
committed
[NEW] ELK
1 parent a2cde64 commit 9737619

File tree

4 files changed

+1029
-472
lines changed

4 files changed

+1029
-472
lines changed

elastic-apm-node.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
serverUrl: 'http://10.128.0.12:8200' // E.g. https://my-deployment-name.apm.us-west2.gcp.elastic-cloud.com
3+
}

next.config.js

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// var apm = require('elastic-apm-node').start({
2+
3+
// // Override the service name from package.json
4+
// // Allowed characters: a-z, A-Z, 0-9, -, _, and space
5+
// serviceName: '',
6+
7+
// // Use if APM Server requires a secret token
8+
// secretToken: '',
9+
10+
// // Set the custom APM Server URL (default: http://localhost:8200)
11+
// serverUrl: 'http://10.128.0.12:8200',
12+
13+
// // Set the service environment
14+
// environment: 'production'
15+
// })
16+
117
const withNextra = require('nextra')({
218
theme: 'nextra-theme-docs',
319
themeConfig: './theme.config.tsx',

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"version": "0.0.1",
44
"private": true,
55
"scripts": {
6-
"dev": "next dev",
6+
"dev": "NODE_OPTIONS=--require=elastic-apm-node/start-next.js next dev",
77
"build": "next build",
8-
"start": "next start",
8+
"start": "NODE_OPTIONS=--require=elastic-apm-node/start-next.js next start",
99
"lint": "next lint"
1010
},
1111
"dependencies": {
@@ -20,6 +20,7 @@
2020
"aptos": "^1.20.0",
2121
"clsx": "^1.2.1",
2222
"core-js": "^3.33.2",
23+
"elastic-apm-node": "^4.5.3",
2324
"ethers": "^5.7.2",
2425
"formidable": "^2.1.2",
2526
"hls.js": "^1.4.12",

0 commit comments

Comments
 (0)