@munlib/common 1.0.140 → 1.0.141
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/middlewares/apm.js +5 -9
- package/package.json +1 -1
package/build/middlewares/apm.js
CHANGED
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
// apm.ts
|
|
4
4
|
var apm = require('elastic-apm-node').start({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
serverUrl: 'https://observabilidad-muni-f2162e.apm.us-east-1.aws.elastic.cloud:443',
|
|
11
|
-
// The name of the environment this service is deployed in, e.g., "production" or "staging". Environments allow you to easily filter data on a global level in the APM UI. It's important to be consistent when naming environments across agents.
|
|
12
|
-
environment: 'DEV',
|
|
13
|
-
logLevel: 'trace',
|
|
5
|
+
serviceName: process.env.ELK_SERVICE_NAME || 'MUNICIPIO_OBSERVABILIDAD',
|
|
6
|
+
apiKey: process.env.ELK_API_KEY,
|
|
7
|
+
serverUrl: process.env.ELK_SERVER_URL,
|
|
8
|
+
environment: process.env.ELK_ENVIRONMENT || 'DEV',
|
|
9
|
+
logLevel: process.env.ELK_LOG_LEVEL || 'trace',
|
|
14
10
|
});
|
|
15
11
|
exports.default = apm;
|