@diia-inhouse/diia-app 32.4.0 → 33.0.0
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/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/tracing/register.js +11 -0
- package/dist/tracing/register.js.map +1 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types/tracing/register.d.ts +1 -0
- package/package.json +16 -8
- package/src/index.ts +0 -2
- package/src/tracing/register.ts +12 -0
package/dist/index.js
CHANGED
|
@@ -7,7 +7,6 @@ export * from './interfaces/deps.js';
|
|
|
7
7
|
export * from './interfaces/application.js';
|
|
8
8
|
export * from './grpc/index.js';
|
|
9
9
|
export * from './plugins/pluginConstants.js';
|
|
10
|
-
export * from './tracing/index.js';
|
|
11
10
|
export * from './actionExecutor.js';
|
|
12
11
|
export { default as MoleculerService } from './moleculer/moleculerWrapper.js';
|
|
13
12
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,QAAQ,EACR,OAAO,EACP,UAAU,EACV,OAAO,EAEP,WAAW,GACd,MAAM,QAAQ,CAAA;AAIf,cAAc,oBAAoB,CAAA;AAElC,cAAc,qCAAqC,CAAA;AAEnD,cAAc,kBAAkB,CAAA;AAEhC,cAAc,uBAAuB,CAAA;AAErC,cAAc,sBAAsB,CAAA;AAEpC,cAAc,6BAA6B,CAAA;AAE3C,cAAc,iBAAiB,CAAA;AAE/B,cAAc,8BAA8B,CAAA;AAE5C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,QAAQ,EACR,OAAO,EACP,UAAU,EACV,OAAO,EAEP,WAAW,GACd,MAAM,QAAQ,CAAA;AAIf,cAAc,oBAAoB,CAAA;AAElC,cAAc,qCAAqC,CAAA;AAEnD,cAAc,kBAAkB,CAAA;AAEhC,cAAc,uBAAuB,CAAA;AAErC,cAAc,sBAAsB,CAAA;AAEpC,cAAc,6BAA6B,CAAA;AAE3C,cAAc,iBAAiB,CAAA;AAE/B,cAAc,8BAA8B,CAAA;AAE5C,cAAc,qBAAqB,CAAA;AAEnC,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,iCAAiC,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Side-effect module: registering tracing as the FIRST import in a service's
|
|
2
|
+
// entry file makes the OTel auto-instrumentation patches apply before amqplib
|
|
3
|
+
// (or any other instrumented library) is loaded by subsequent imports.
|
|
4
|
+
//
|
|
5
|
+
// Usage in a service entry (must be the FIRST import):
|
|
6
|
+
// import { nodeTracerProvider } from '@diia-inhouse/diia-app/tracing/register'
|
|
7
|
+
// import { bootstrap } from './bootstrap.js'
|
|
8
|
+
// void bootstrap(serviceName, nodeTracerProvider)
|
|
9
|
+
import { initTracing } from './index.js';
|
|
10
|
+
export const nodeTracerProvider = initTracing();
|
|
11
|
+
//# sourceMappingURL=register.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register.js","sourceRoot":"","sources":["../../src/tracing/register.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,8EAA8E;AAC9E,uEAAuE;AACvE,EAAE;AACF,uDAAuD;AACvD,iFAAiF;AACjF,+CAA+C;AAC/C,oDAAoD;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAExC,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,EAAE,CAAA"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8,6 +8,5 @@ export * from './interfaces/deps.js';
|
|
|
8
8
|
export * from './interfaces/application.js';
|
|
9
9
|
export * from './grpc/index.js';
|
|
10
10
|
export * from './plugins/pluginConstants.js';
|
|
11
|
-
export * from './tracing/index.js';
|
|
12
11
|
export * from './actionExecutor.js';
|
|
13
12
|
export { default as MoleculerService } from './moleculer/moleculerWrapper.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const nodeTracerProvider: import("@opentelemetry/sdk-trace-node").NodeTracerProvider;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diia-inhouse/diia-app",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "33.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Application package with IoC container",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -10,6 +10,14 @@
|
|
|
10
10
|
"types": "./dist/types/index.d.ts",
|
|
11
11
|
"default": "./dist/index.js"
|
|
12
12
|
},
|
|
13
|
+
"./tracing": {
|
|
14
|
+
"types": "./dist/types/tracing/index.d.ts",
|
|
15
|
+
"default": "./dist/tracing/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./tracing/register": {
|
|
18
|
+
"types": "./dist/types/tracing/register.d.ts",
|
|
19
|
+
"default": "./dist/tracing/register.js"
|
|
20
|
+
},
|
|
13
21
|
"./dist/plugins/openapi": {
|
|
14
22
|
"types": "./dist/types/plugins/openapi/index.d.ts",
|
|
15
23
|
"default": "./dist/plugins/openapi/index.js"
|
|
@@ -49,14 +57,14 @@
|
|
|
49
57
|
"@grpc/proto-loader": "0.8.1",
|
|
50
58
|
"@grpc/reflection": "1.0.4",
|
|
51
59
|
"@opentelemetry/api": "1.9.1",
|
|
52
|
-
"@opentelemetry/auto-instrumentations-node": "0.
|
|
60
|
+
"@opentelemetry/auto-instrumentations-node": "0.76.0",
|
|
53
61
|
"@opentelemetry/core": "2.7.1",
|
|
54
|
-
"@opentelemetry/exporter-trace-otlp-grpc": "0.
|
|
55
|
-
"@opentelemetry/instrumentation": "0.
|
|
62
|
+
"@opentelemetry/exporter-trace-otlp-grpc": "0.218.0",
|
|
63
|
+
"@opentelemetry/instrumentation": "0.218.0",
|
|
56
64
|
"@opentelemetry/resources": "2.7.1",
|
|
57
65
|
"@opentelemetry/sdk-trace-base": "2.7.1",
|
|
58
66
|
"@opentelemetry/sdk-trace-node": "2.7.1",
|
|
59
|
-
"@opentelemetry/semantic-conventions": "1.
|
|
67
|
+
"@opentelemetry/semantic-conventions": "1.41.1",
|
|
60
68
|
"@types/dotenv-flow": "3.3.3",
|
|
61
69
|
"awilix": "12.0.5",
|
|
62
70
|
"cookie-parser": "1.4.7",
|
|
@@ -129,9 +137,9 @@
|
|
|
129
137
|
"@diia-inhouse/types": "13.2.0",
|
|
130
138
|
"@diia-inhouse/utils": "6.0.11",
|
|
131
139
|
"@diia-inhouse/validators": "2.2.2",
|
|
132
|
-
"@opentelemetry/instrumentation-amqplib": "0.
|
|
133
|
-
"@opentelemetry/instrumentation-http": "0.
|
|
134
|
-
"@opentelemetry/otlp-grpc-exporter-base": "0.
|
|
140
|
+
"@opentelemetry/instrumentation-amqplib": "0.65.0",
|
|
141
|
+
"@opentelemetry/instrumentation-http": "0.218.0",
|
|
142
|
+
"@opentelemetry/otlp-grpc-exporter-base": "0.218.0",
|
|
135
143
|
"@types/cookie-parser": "1.4.10",
|
|
136
144
|
"@types/lodash": "4.17.24",
|
|
137
145
|
"@types/node": "25.6.2",
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Side-effect module: registering tracing as the FIRST import in a service's
|
|
2
|
+
// entry file makes the OTel auto-instrumentation patches apply before amqplib
|
|
3
|
+
// (or any other instrumented library) is loaded by subsequent imports.
|
|
4
|
+
//
|
|
5
|
+
// Usage in a service entry (must be the FIRST import):
|
|
6
|
+
// import { nodeTracerProvider } from '@diia-inhouse/diia-app/tracing/register'
|
|
7
|
+
// import { bootstrap } from './bootstrap.js'
|
|
8
|
+
// void bootstrap(serviceName, nodeTracerProvider)
|
|
9
|
+
|
|
10
|
+
import { initTracing } from './index.js'
|
|
11
|
+
|
|
12
|
+
export const nodeTracerProvider = initTracing()
|