@golemio/core 1.2.7-dev.520392044 → 1.2.7-dev.523716850
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/bin/import-test-data.js
CHANGED
|
@@ -22,6 +22,9 @@ const variables = {
|
|
|
22
22
|
mongoDataPaths: process.env.MONGO_DATA_PATHS || " ",
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated No longer maintained, use Golemio CLI instead
|
|
27
|
+
*/
|
|
25
28
|
const importPostgresTestData = async () => {
|
|
26
29
|
const files = glob.sync(variables.sqlDumpFiles, {
|
|
27
30
|
cwd: APP_ROOT_PATH,
|
|
@@ -42,6 +45,9 @@ const importPostgresTestData = async () => {
|
|
|
42
45
|
}
|
|
43
46
|
};
|
|
44
47
|
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated No longer maintained
|
|
50
|
+
*/
|
|
45
51
|
const importMongoTestData = async () => {
|
|
46
52
|
const paths = glob.sync(variables.mongoDataPaths, {
|
|
47
53
|
cwd: APP_ROOT_PATH,
|
|
@@ -108,6 +114,11 @@ const importMongoTestData = async () => {
|
|
|
108
114
|
};
|
|
109
115
|
|
|
110
116
|
(async () => {
|
|
117
|
+
console.log(
|
|
118
|
+
"\x1b[33m%s\x1b[0m",
|
|
119
|
+
"Deprecation warning: golemio-import-test-data is no longer maintained. Use Golemio CLI import-db-data instead"
|
|
120
|
+
);
|
|
121
|
+
|
|
111
122
|
await importPostgresTestData();
|
|
112
123
|
await importMongoTestData();
|
|
113
124
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { HttpInstrumentation } from "@opentelemetry/instrumentation-http";
|
|
2
2
|
import { IORedisInstrumentation } from "@opentelemetry/instrumentation-ioredis";
|
|
3
|
+
import { RedisInstrumentation } from "@opentelemetry/instrumentation-redis";
|
|
3
4
|
import { ExpressInstrumentation } from "@opentelemetry/instrumentation-express";
|
|
4
5
|
import { SequelizeInstrumentation } from "opentelemetry-instrumentation-sequelize";
|
|
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 | HttpInstrumentation | SequelizeInstrumentation | MongooseInstrumentation | AmqplibInstrumentation | IORedisInstrumentation | AwsInstrumentation)[];
|
|
9
|
+
export declare const getInstrumentation: () => (ExpressInstrumentation | HttpInstrumentation | SequelizeInstrumentation | MongooseInstrumentation | AmqplibInstrumentation | IORedisInstrumentation | RedisInstrumentation | AwsInstrumentation)[];
|
|
@@ -4,6 +4,7 @@ exports.getInstrumentation = void 0;
|
|
|
4
4
|
// Instrumentation
|
|
5
5
|
const instrumentation_http_1 = require("@opentelemetry/instrumentation-http");
|
|
6
6
|
const instrumentation_ioredis_1 = require("@opentelemetry/instrumentation-ioredis");
|
|
7
|
+
const instrumentation_redis_1 = require("@opentelemetry/instrumentation-redis");
|
|
7
8
|
const instrumentation_express_1 = require("@opentelemetry/instrumentation-express");
|
|
8
9
|
const opentelemetry_instrumentation_sequelize_1 = require("opentelemetry-instrumentation-sequelize");
|
|
9
10
|
const opentelemetry_instrumentation_mongoose_1 = require("opentelemetry-instrumentation-mongoose");
|
|
@@ -19,6 +20,7 @@ const getInstrumentation = () => {
|
|
|
19
20
|
new opentelemetry_instrumentation_mongoose_1.MongooseInstrumentation(configs_1.mongooseConfig),
|
|
20
21
|
new opentelemetry_instrumentation_amqplib_1.AmqplibInstrumentation(configs_1.amqplibConfig),
|
|
21
22
|
new instrumentation_ioredis_1.IORedisInstrumentation(),
|
|
23
|
+
new instrumentation_redis_1.RedisInstrumentation(),
|
|
22
24
|
new opentelemetry_instrumentation_aws_sdk_1.AwsInstrumentation(configs_1.awsSdkConfig),
|
|
23
25
|
];
|
|
24
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/monitoring/opentelemetry/instrumentation/index.ts"],"names":[],"mappings":";;;AAAA,kBAAkB;AAClB,8EAA0E;AAC1E,oFAAgF;AAChF,oFAAgF;AAChF,qGAAmF;AACnF,mGAAiF;AACjF,iGAA+E;AAC/E,iGAA2E;AAE3E,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,8DAAsB,CAAC,uBAAa,CAAC;QACzC,IAAI,gDAAsB,EAAE;QAC5B,IAAI,0DAAkB,CAAC,sBAAY,CAAC;KACvC,CAAC;AACN,CAAC,CAAC;
|
|
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,iGAA+E;AAC/E,iGAA2E;AAE3E,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,8DAAsB,CAAC,uBAAa,CAAC;QACzC,IAAI,gDAAsB,EAAE;QAC5B,IAAI,4CAAoB,EAAE;QAC1B,IAAI,0DAAkB,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.7-dev.
|
|
3
|
+
"version": "1.2.7-dev.523716850",
|
|
4
4
|
"description": "Golemio Core Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"url": "https://gitlab.com/operator-ict/golemio/code/modules/core"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@commitlint/cli": "^
|
|
31
|
-
"@commitlint/config-conventional": "^
|
|
30
|
+
"@commitlint/cli": "^16.2.1",
|
|
31
|
+
"@commitlint/config-conventional": "^16.2.1",
|
|
32
32
|
"@golemio/eslint-config": "^1.1.0",
|
|
33
33
|
"@types/amqplib": "^0.5.17",
|
|
34
34
|
"@types/apicache": "^1.2.3",
|
|
@@ -70,13 +70,14 @@
|
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@golemio/errors": "^1.0.1",
|
|
72
72
|
"@golemio/utils": "^1.0.0",
|
|
73
|
-
"@golemio/validator": "0.2.
|
|
73
|
+
"@golemio/validator": "0.2.1-dev.522219464",
|
|
74
74
|
"@google-cloud/storage": "^5.18.0",
|
|
75
75
|
"@opentelemetry/api": "^1.0.2",
|
|
76
76
|
"@opentelemetry/exporter-jaeger": "^0.24.0",
|
|
77
77
|
"@opentelemetry/instrumentation-express": "^0.24.0",
|
|
78
78
|
"@opentelemetry/instrumentation-http": "^0.24.0",
|
|
79
79
|
"@opentelemetry/instrumentation-ioredis": "^0.24.0",
|
|
80
|
+
"@opentelemetry/instrumentation-redis": "^0.24.0",
|
|
80
81
|
"@opentelemetry/node": "^0.24.0",
|
|
81
82
|
"@opentelemetry/resources": "^0.24.0",
|
|
82
83
|
"@opentelemetry/tracing": "^0.24.0",
|