@golemio/core 1.2.9-dev.533136017 → 1.2.9-dev.535355361
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 +40 -10
- package/dist/monitoring/opentelemetry/instrumentation/configs/http.d.ts +1 -2
- package/dist/monitoring/opentelemetry/instrumentation/configs/http.js.map +1 -1
- package/dist/monitoring/opentelemetry/instrumentation/index.d.ts +2 -1
- package/dist/monitoring/opentelemetry/instrumentation/index.js +3 -1
- package/dist/monitoring/opentelemetry/instrumentation/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,11 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<p>
|
|
3
|
+
<a href="https://operatorict.cz">
|
|
4
|
+
<img src="./.assets/oict_logo.png" alt="oict" width="100px" height="100px" />
|
|
5
|
+
</a>
|
|
6
|
+
<a href="https://golemio.cz">
|
|
7
|
+
<img src="./.assets/golemio_logo.png" alt="golemio" width="100px" height="100px" />
|
|
8
|
+
</a>
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
<h1>@golemio/core</h1>
|
|
12
|
+
|
|
13
|
+
<p>
|
|
14
|
+
<a href="https://gitlab.com/operator-ict/golemio/code/modules/core/commits/master">
|
|
15
|
+
<img src="https://gitlab.com/operator-ict/golemio/code/modules/core/badges/master/pipeline.svg" alt="pipeline">
|
|
16
|
+
</a>
|
|
17
|
+
<a href="https://gitlab.com/operator-ict/golemio/code/modules/core/commits/master">
|
|
18
|
+
<img src="https://gitlab.com/operator-ict/golemio/code/modules/core/badges/master/coverage.svg" alt="coverage">
|
|
19
|
+
</a>
|
|
20
|
+
<a href="./LICENSE">
|
|
21
|
+
<img src="https://img.shields.io/npm/l/@golemio/core" alt="license">
|
|
22
|
+
</a>
|
|
23
|
+
</p>
|
|
24
|
+
|
|
25
|
+
<p>
|
|
26
|
+
<a href="#installation">Installation</a> · <a href="./docs">Documentation</a> · <a href="https://operator-ict.gitlab.io/golemio/code/modules/core">TypeDoc</a>
|
|
27
|
+
</p>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
This module is intended for use with Golemio services.
|
|
9
31
|
|
|
10
32
|
## Prerequisites
|
|
11
33
|
|
|
@@ -37,21 +59,25 @@ To compile typescript code into js one-time
|
|
|
37
59
|
```bash
|
|
38
60
|
yarn run build
|
|
39
61
|
```
|
|
62
|
+
|
|
40
63
|
or run this, to watch all changes
|
|
64
|
+
|
|
41
65
|
```bash
|
|
42
66
|
yarn run build-watch
|
|
43
67
|
```
|
|
44
|
-
from the application's root directory.
|
|
45
68
|
|
|
69
|
+
from the application's root directory.
|
|
46
70
|
|
|
47
71
|
## Usage
|
|
48
72
|
|
|
49
73
|
In your project's `package.json` set dependency to @golemio/core
|
|
74
|
+
|
|
50
75
|
```bash
|
|
51
76
|
yarn add @golemio/core --save
|
|
52
77
|
```
|
|
53
78
|
|
|
54
79
|
Then import module, e.g.
|
|
80
|
+
|
|
55
81
|
```ts
|
|
56
82
|
import * as core from "@golemio/core";
|
|
57
83
|
```
|
|
@@ -61,17 +87,22 @@ import * as core from "@golemio/core";
|
|
|
61
87
|
For the local development use the [yarn link]() to link the @golemio/core with other service e.g. `@golemio/integration-engine` or module e.g. `@golemio/pid`.
|
|
62
88
|
|
|
63
89
|
At the @golemio/core root directory:
|
|
90
|
+
|
|
64
91
|
```bash
|
|
65
92
|
yarn link
|
|
66
93
|
yarn build-watch
|
|
67
94
|
```
|
|
95
|
+
|
|
68
96
|
At the @golemio/pid root directory:
|
|
97
|
+
|
|
69
98
|
```bash
|
|
70
99
|
yarn link "@golemio/core"
|
|
71
100
|
yarn link
|
|
72
101
|
yarn build-watch
|
|
73
102
|
```
|
|
103
|
+
|
|
74
104
|
At the @golemio/integration-engine root directory:
|
|
105
|
+
|
|
75
106
|
```bash
|
|
76
107
|
yarn link "@golemio/core"
|
|
77
108
|
yarn link "@golemio/pid"
|
|
@@ -90,7 +121,6 @@ yarn test
|
|
|
90
121
|
|
|
91
122
|
from the application's root directory. All tests should pass.
|
|
92
123
|
|
|
93
|
-
|
|
94
124
|
## Rabbit MQ
|
|
95
125
|
|
|
96
126
|
Core module defines main exchange in rabbit mq and its name is dependent on .env setting. Also it contains definition of queue for dead messages. All other queues are defined in separate modules and loaded dynamically by `QueueProcessor.ts`.
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { HttpInstrumentationConfig } from "@opentelemetry/instrumentation-http/build/src/types";
|
|
2
|
-
|
|
3
|
-
export declare const httpConfig: HttpInstrumentationConfig & InstrumentationConfig;
|
|
2
|
+
export declare const httpConfig: HttpInstrumentationConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../../../src/monitoring/opentelemetry/instrumentation/configs/http.ts"],"names":[],"mappings":";;;AAAA,+BAAsE;
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../../../src/monitoring/opentelemetry/instrumentation/configs/http.ts"],"names":[],"mappings":";;;AAAA,+BAAsE;AAGtE,wCAA+C;AAC/C,gEAA+D;AAE/D,MAAM,oBAAoB,GAAgC,CACtD,IAAU,EACV,OAAwC,EACxC,QAA0C,EACtC,EAAE;IACN,IAAI,OAAO,YAAY,oBAAa,EAAE;QAClC,IAAI,CAAC,YAAY,CAAC,2CAAqB,CAAC,oBAAoB,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;KACvG;IACD,IAAI,QAAQ,YAAY,sBAAe,EAAE;QACrC,IAAI,CAAC,YAAY,CAAC,2CAAqB,CAAC,qBAAqB,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;KACpG;AACL,CAAC,CAAC;AAEW,QAAA,UAAU,GAA8B;IACjD,2BAA2B,EAAE,IAAA,2BAAiB,EAAC,oBAAoB,CAAC;CACvE,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { HttpInstrumentation } from "@opentelemetry/instrumentation-http";
|
|
1
2
|
import { IORedisInstrumentation } from "@opentelemetry/instrumentation-ioredis";
|
|
2
3
|
import { RedisInstrumentation } from "@opentelemetry/instrumentation-redis";
|
|
3
4
|
import { ExpressInstrumentation } from "@opentelemetry/instrumentation-express";
|
|
@@ -5,4 +6,4 @@ import { SequelizeInstrumentation } from "opentelemetry-instrumentation-sequeliz
|
|
|
5
6
|
import { MongooseInstrumentation } from "opentelemetry-instrumentation-mongoose";
|
|
6
7
|
import { AmqplibInstrumentation } from "@opentelemetry/instrumentation-amqplib";
|
|
7
8
|
import { AwsInstrumentation } from "@opentelemetry/instrumentation-aws-sdk";
|
|
8
|
-
export declare const getInstrumentation: () => (ExpressInstrumentation | SequelizeInstrumentation | MongooseInstrumentation | AmqplibInstrumentation | IORedisInstrumentation | RedisInstrumentation | AwsInstrumentation)[];
|
|
9
|
+
export declare const getInstrumentation: () => (ExpressInstrumentation | HttpInstrumentation | SequelizeInstrumentation | MongooseInstrumentation | AmqplibInstrumentation | IORedisInstrumentation | RedisInstrumentation | AwsInstrumentation)[];
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getInstrumentation = void 0;
|
|
4
|
+
// Instrumentation
|
|
5
|
+
const instrumentation_http_1 = require("@opentelemetry/instrumentation-http");
|
|
4
6
|
const instrumentation_ioredis_1 = require("@opentelemetry/instrumentation-ioredis");
|
|
5
7
|
const instrumentation_redis_1 = require("@opentelemetry/instrumentation-redis");
|
|
6
8
|
const instrumentation_express_1 = require("@opentelemetry/instrumentation-express");
|
|
@@ -13,7 +15,7 @@ const configs_1 = require("./configs");
|
|
|
13
15
|
const getInstrumentation = () => {
|
|
14
16
|
return [
|
|
15
17
|
new instrumentation_express_1.ExpressInstrumentation(),
|
|
16
|
-
|
|
18
|
+
new instrumentation_http_1.HttpInstrumentation(configs_1.httpConfig),
|
|
17
19
|
new opentelemetry_instrumentation_sequelize_1.SequelizeInstrumentation(configs_1.sequelizeConfig),
|
|
18
20
|
new opentelemetry_instrumentation_mongoose_1.MongooseInstrumentation(configs_1.mongooseConfig),
|
|
19
21
|
new instrumentation_amqplib_1.AmqplibInstrumentation(configs_1.amqplibConfig),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/monitoring/opentelemetry/instrumentation/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/monitoring/opentelemetry/instrumentation/index.ts"],"names":[],"mappings":";;;AAAA,kBAAkB;AAClB,8EAA0E;AAC1E,oFAAgF;AAChF,gFAA4E;AAC5E,oFAAgF;AAChF,qGAAmF;AACnF,mGAAiF;AACjF,oFAAgF;AAChF,oFAA4E;AAE5E,UAAU;AACV,uCAAqG;AAE9F,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACnC,OAAO;QACH,IAAI,gDAAsB,EAAE;QAC5B,IAAI,0CAAmB,CAAC,oBAAU,CAAC;QACnC,IAAI,kEAAwB,CAAC,yBAAe,CAAC;QAC7C,IAAI,gEAAuB,CAAC,wBAAc,CAAC;QAC3C,IAAI,gDAAsB,CAAC,uBAAa,CAAC;QACzC,IAAI,gDAAsB,EAAE;QAC5B,IAAI,4CAAoB,EAAE;QAC1B,IAAI,4CAAkB,CAAC,sBAAY,CAAC;KACvC,CAAC;AACN,CAAC,CAAC;AAXW,QAAA,kBAAkB,sBAW7B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/core",
|
|
3
|
-
"version": "1.2.9-dev.
|
|
3
|
+
"version": "1.2.9-dev.535355361",
|
|
4
4
|
"description": "Golemio Core Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@opentelemetry/instrumentation-amqplib": "^0.28.0",
|
|
78
78
|
"@opentelemetry/instrumentation-aws-sdk": "^0.6.0",
|
|
79
79
|
"@opentelemetry/instrumentation-express": "^0.28.0",
|
|
80
|
-
"@opentelemetry/instrumentation-http": "^0.
|
|
80
|
+
"@opentelemetry/instrumentation-http": "^0.27.0",
|
|
81
81
|
"@opentelemetry/instrumentation-ioredis": "^0.28.0",
|
|
82
82
|
"@opentelemetry/instrumentation-pg": "^0.28.0",
|
|
83
83
|
"@opentelemetry/instrumentation-redis": "^0.29.0",
|