mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-20 19:19:24 -06:00
Add Newrelic
This commit is contained in:
parent
669c7599e8
commit
7f461bc7ab
@ -1,10 +1,22 @@
|
|||||||
services:
|
services:
|
||||||
api:
|
api:
|
||||||
container_name: evolution_api
|
container_name: evolution_api
|
||||||
image: atendai/evolution-api:v2.2.1
|
image: ghcr.io/ai-chat-os/evolution-api:v2.2.1
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
|
environment:
|
||||||
|
# 1- Add the Env key values pair to /etc/environment file
|
||||||
|
# 2- Run source /etc/environment
|
||||||
|
# 3- Run env |grep -i relic; to validate it being loaded.
|
||||||
|
# 4- If didn't, CTRL+d to logout
|
||||||
|
# 5- Login to the server
|
||||||
|
# 6- Run env |grep -i relic again;
|
||||||
|
NEW_RELIC_LICENSE_KEY: ${NEW_RELIC_LICENSE_KEY}
|
||||||
|
NEW_RELIC_APP_NAME: "Staging Evolution API"
|
||||||
|
NEW_RELIC_NO_CONFIG_FILE: true
|
||||||
|
NEW_RELIC_DISTRIBUTED_TRACING_ENABLED: true
|
||||||
|
NEW_RELIC_LOG: stdout
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
volumes:
|
volumes:
|
||||||
|
691
package-lock.json
generated
691
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -82,6 +82,7 @@
|
|||||||
"mime-types": "^2.1.35",
|
"mime-types": "^2.1.35",
|
||||||
"minio": "^8.0.3",
|
"minio": "^8.0.3",
|
||||||
"multer": "^1.4.5-lts.1",
|
"multer": "^1.4.5-lts.1",
|
||||||
|
"newrelic": "^12.11.3",
|
||||||
"node-cache": "^5.1.2",
|
"node-cache": "^5.1.2",
|
||||||
"node-cron": "^3.0.3",
|
"node-cron": "^3.0.3",
|
||||||
"openai": "^4.77.3",
|
"openai": "^4.77.3",
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
// Import this first from sentry instrument!
|
// Import this first from sentry instrument!
|
||||||
import '@utils/instrumentSentry';
|
import '@utils/instrumentSentry';
|
||||||
|
import './newrelic';
|
||||||
|
|
||||||
// Now import other modules
|
// Now import other modules
|
||||||
import { ProviderFiles } from '@api/provider/sessions';
|
import { ProviderFiles } from '@api/provider/sessions';
|
||||||
|
3
src/newrelic.ts
Normal file
3
src/newrelic.ts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
if (process.env.NODE_ENV === 'PROD') {
|
||||||
|
require('newrelic');
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user