@munlib/common 1.0.149 → 1.0.151
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
CHANGED
|
@@ -5,12 +5,18 @@ var apm = require('elastic-apm-node');
|
|
|
5
5
|
var winston = require('winston');
|
|
6
6
|
var ElasticsearchTransport = require('winston-elasticsearch').ElasticsearchTransport;
|
|
7
7
|
// Inicializa el APM
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
/* const apmInstance = apm.start({
|
|
9
|
+
serviceName: process.env.ELK_SERVICE_NAME || 'MUNICIPIO_OBSERVABILIDAD',
|
|
10
|
+
apiKey: process.env.ELK_API_KEY,
|
|
11
|
+
serverUrl: process.env.ELK_SERVER_URL,
|
|
12
|
+
environment: process.env.ELK_ENVIRONMENT || 'DEV',
|
|
13
|
+
logLevel: 'error',
|
|
14
|
+
}); */
|
|
15
|
+
var apmInstance = require('elastic-apm-node').start({
|
|
16
|
+
serviceName: 'APM_LOGS_DEV_BILLETERA',
|
|
17
|
+
secretToken: '',
|
|
18
|
+
serverUrl: 'http://monitoreointeroperabilidad.cuenca.gob.ec/',
|
|
19
|
+
environment: 'CERTIFICA'
|
|
14
20
|
});
|
|
15
21
|
exports.apmInstance = apmInstance;
|
|
16
22
|
// Configura el transport para Elasticsearch
|