@codefresh-io/cf-telemetry 1.0.1 → 1.0.3

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # cf-monitoring
1
+ # cf-telemetry
2
2
 
3
3
  Base utils for monitoring.
4
4
 
@@ -17,7 +17,7 @@ Please refer to the separate docs above for further configuration and usage deta
17
17
 
18
18
  ```TS
19
19
  // index.ts
20
- import { init } from '@codefresh-io/cf-monitoring';
20
+ import { init } from '@codefresh-io/cf-telemetry';
21
21
 
22
22
  await init();
23
23
  ```
package/dist/index.js CHANGED
@@ -39,11 +39,13 @@ const mongo = __importStar(require("./metrics/mongodb"));
39
39
  const prom = __importStar(require("./metrics/prometheus"));
40
40
  const pyroscope = __importStar(require("./profiles"));
41
41
  const init = async () => {
42
- const logger = new log.Logger('monitoring');
43
- logger.info('Initializing monitoring');
44
- prom.initPrometheus(logger).catch(logger.error);
45
- pyroscope.initPyroscope(logger).catch(logger.error);
46
- logger.info('Monitoring initialized');
42
+ const logger = new log.Logger('telemetry');
43
+ logger.info('Initializing telemetry services');
44
+ await Promise.all([
45
+ prom.initPrometheus(logger).catch(logger.error),
46
+ pyroscope.initPyroscope(logger).catch(logger.error),
47
+ ]);
48
+ logger.info('Telemetry services initialized');
47
49
  };
48
50
  exports.init = init;
49
51
  exports.prometheus = {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAgC;AAChC,yDAA2C;AAC3C,2DAA6C;AAC7C,sDAAwC;AAEjC,MAAM,IAAI,GAAG,KAAK,IAAmB,EAAE;IAC5C,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IAC5C,MAAM,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC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,CAAC,QAAQ;IACvB,OAAO,EAAE,IAAI,CAAC,OAAO;CACtB,CAAC;AAEW,QAAA,OAAO,GAAG;IACrB,oBAAoB,EAAE,KAAK,CAAC,oBAAoB;CACjD,CAAC;AAEW,QAAA,IAAI,GAAG;IAClB,MAAM,EAAE,GAAG,CAAC,MAAM;CACnB,CAAC"}
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "@codefresh-io/cf-telemetry",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/**/*"
7
7
  ],
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/codefresh-io/cf-telemetry.git"
11
+ },
8
12
  "packageManager": "yarn@4.5.2",
9
13
  "scripts": {
10
14
  "build": "rimraf ./dist && tsc --project tsconfig.build.json",