@golemio/core 1.2.9-dev.534259948 → 1.2.9
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 +4 -1
- 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 +134 -134
package/README.md
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
<p>
|
|
3
|
-
<a href="https://operatorict.cz
|
|
3
|
+
<a href="https://operatorict.cz">
|
|
4
4
|
<img src="./.assets/oict_logo.png" alt="oict" width="100px" height="100px" />
|
|
5
5
|
</a>
|
|
6
|
+
<a href="https://golemio.cz">
|
|
7
|
+
<img src="./.assets/golemio_logo.png" alt="golemio" width="100px" height="100px" />
|
|
8
|
+
</a>
|
|
6
9
|
</p>
|
|
7
10
|
|
|
8
11
|
<h1>@golemio/core</h1>
|
|
@@ -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,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-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
2
|
+
"name": "@golemio/core",
|
|
3
|
+
"version": "1.2.9",
|
|
4
|
+
"description": "Golemio Core Module",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"bin": {
|
|
8
|
+
"golemio-import-test-data": "bin/import-test-data.js"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "rimraf ./dist && ttsc -p ./tsconfig.build.json",
|
|
12
|
+
"build-minimal": "run-s 'build --sourceMap false --declaration false'",
|
|
13
|
+
"build-watch": "run-s 'build --watch --preserveWatchOutput'",
|
|
14
|
+
"test": "cross-env NODE_ENV=test TS_NODE_COMPILER='ttypescript' mocha --exit --check-leaks --timeout 120000 -r ts-node/register -r dotenv/config 'test/**/*.test.ts'",
|
|
15
|
+
"test-debug": "run-s 'test --inspect-brk=9230'",
|
|
16
|
+
"code-coverage": "nyc run-s 'test -r source-map-support/register'",
|
|
17
|
+
"generate-docs": "typedoc --out docs/typedoc src",
|
|
18
|
+
"lint": "eslint \"{src,test}/**/*.ts\""
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"golemio"
|
|
22
|
+
],
|
|
23
|
+
"author": "Operator ICT, a.s.",
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "https://gitlab.com/operator-ict/golemio/code/modules/core"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@commitlint/cli": "^16.2.1",
|
|
31
|
+
"@commitlint/config-conventional": "^16.2.1",
|
|
32
|
+
"@golemio/eslint-config": "^1.1.0",
|
|
33
|
+
"@types/amqplib": "^0.5.17",
|
|
34
|
+
"@types/apicache": "^1.2.3",
|
|
35
|
+
"@types/chai": "4.2.3",
|
|
36
|
+
"@types/chai-as-promised": "7.1.2",
|
|
37
|
+
"@types/content-type": "^1.1.3",
|
|
38
|
+
"@types/debug": "0.0.31",
|
|
39
|
+
"@types/decompress": "^4.2.3",
|
|
40
|
+
"@types/ioredis": "^4.17.10",
|
|
41
|
+
"@types/lodash": "^4.14.165",
|
|
42
|
+
"@types/mocha": "^8.2.0",
|
|
43
|
+
"@types/morgan": "^1.9.2",
|
|
44
|
+
"@types/node": "^14.14.20",
|
|
45
|
+
"@types/redis": "^2.8.28",
|
|
46
|
+
"@types/sinon": "7.0.13",
|
|
47
|
+
"@types/ssh2-sftp-client": "^5.3.1",
|
|
48
|
+
"@types/supertest": "^2.0.11",
|
|
49
|
+
"@zerollup/ts-transform-paths": "^1.7.18",
|
|
50
|
+
"chai": "4.2.0",
|
|
51
|
+
"chai-as-promised": "7.1.1",
|
|
52
|
+
"cross-env": "^7.0.3",
|
|
53
|
+
"eslint": "^8.1.1",
|
|
54
|
+
"husky": "^4.3.7",
|
|
55
|
+
"mocha": "^9.1.2",
|
|
56
|
+
"nock": "^13.0.5",
|
|
57
|
+
"npm-run-all": "^4.1.5",
|
|
58
|
+
"nyc": "^15.1.0",
|
|
59
|
+
"prettier": "^2.5.1",
|
|
60
|
+
"pretty-quick": "^3.1.0",
|
|
61
|
+
"rimraf": "^3.0.2",
|
|
62
|
+
"sinon": "7.1.1",
|
|
63
|
+
"source-map-support": "0.5.9",
|
|
64
|
+
"supertest": "^6.1.6",
|
|
65
|
+
"ts-node": "^9.1.1",
|
|
66
|
+
"ttypescript": "^1.5.13",
|
|
67
|
+
"typedoc": "^0.21.4",
|
|
68
|
+
"typescript": "4.4.4"
|
|
69
|
+
},
|
|
70
|
+
"dependencies": {
|
|
71
|
+
"@golemio/errors": "^1.0.1",
|
|
72
|
+
"@golemio/utils": "^1.0.0",
|
|
73
|
+
"@golemio/validator": "0.2.2",
|
|
74
|
+
"@google-cloud/storage": "^5.18.0",
|
|
75
|
+
"@opentelemetry/api": "^1.1.0",
|
|
76
|
+
"@opentelemetry/exporter-jaeger": "^1.2.0",
|
|
77
|
+
"@opentelemetry/instrumentation-amqplib": "^0.28.0",
|
|
78
|
+
"@opentelemetry/instrumentation-aws-sdk": "^0.6.0",
|
|
79
|
+
"@opentelemetry/instrumentation-express": "^0.28.0",
|
|
80
|
+
"@opentelemetry/instrumentation-http": "^0.27.0",
|
|
81
|
+
"@opentelemetry/instrumentation-ioredis": "^0.28.0",
|
|
82
|
+
"@opentelemetry/instrumentation-pg": "^0.28.0",
|
|
83
|
+
"@opentelemetry/instrumentation-redis": "^0.29.0",
|
|
84
|
+
"@opentelemetry/resources": "^1.2.0",
|
|
85
|
+
"@opentelemetry/sdk-trace-base": "^1.2.0",
|
|
86
|
+
"@opentelemetry/sdk-trace-node": "^1.2.0",
|
|
87
|
+
"@sentry/node": "^6.11.0",
|
|
88
|
+
"@sentry/tracing": "^6.11.0",
|
|
89
|
+
"@types/express": "^4.16.0",
|
|
90
|
+
"@types/luxon": "^2.3.1",
|
|
91
|
+
"@types/request-promise": "^4.1.45",
|
|
92
|
+
"ajv": "^8.10.0",
|
|
93
|
+
"amqplib": "^0.7.1",
|
|
94
|
+
"apicache": "^1.6.3",
|
|
95
|
+
"aws-sdk": "^2.823.0",
|
|
96
|
+
"axios": "^0.24.0",
|
|
97
|
+
"basic-ftp": "^4.6.6",
|
|
98
|
+
"content-type": "^1.0.4",
|
|
99
|
+
"debug": "3.1.0",
|
|
100
|
+
"decompress": "^4.2.1",
|
|
101
|
+
"dotenv": "^8.2.0",
|
|
102
|
+
"express": "^4.16.4",
|
|
103
|
+
"express-validator": "^5.3.1",
|
|
104
|
+
"fast-csv": "^4.3.6",
|
|
105
|
+
"fast-glob": "^3.2.5",
|
|
106
|
+
"iconv-lite": "^0.6.2",
|
|
107
|
+
"ioredis": "^4.19.4",
|
|
108
|
+
"lightship": "^6.7.2",
|
|
109
|
+
"lodash": "^4.17.21",
|
|
110
|
+
"luxon": "^2.3.2",
|
|
111
|
+
"moment-timezone": "^0.5.26",
|
|
112
|
+
"mongodb-restore-dump": "1.0.1",
|
|
113
|
+
"mongoose": "^5.3.6",
|
|
114
|
+
"morgan": "^1.10.0",
|
|
115
|
+
"opentelemetry-instrumentation-mongoose": "^0.27.1",
|
|
116
|
+
"opentelemetry-instrumentation-sequelize": "^0.27.1",
|
|
117
|
+
"path-to-regexp": "^6.2.0",
|
|
118
|
+
"pg": "^8.6.0",
|
|
119
|
+
"prom-client": "^14.0.0",
|
|
120
|
+
"redis": "^3.1.1",
|
|
121
|
+
"request": "2.88.0",
|
|
122
|
+
"request-promise": "^4.2.5",
|
|
123
|
+
"sequelize": "^6.6.5",
|
|
124
|
+
"ssh2-sftp-client": "^7.1.0",
|
|
125
|
+
"winston": "^3.3.3",
|
|
126
|
+
"xml2js-es6-promise": "^1.1.1"
|
|
127
|
+
},
|
|
128
|
+
"resolutions": {
|
|
129
|
+
"mpath": "^0.8.4",
|
|
130
|
+
"url-parse": "^1.5.6",
|
|
131
|
+
"minimist": "^1.2.6",
|
|
132
|
+
"moment": "^2.29.2",
|
|
133
|
+
"@google-cloud/storage/**/node-forge": "^1.3.0",
|
|
134
|
+
"**/axios/follow-redirects": "^1.14.7"
|
|
135
|
+
}
|
|
136
136
|
}
|