@vtvlive/interactive-apm 0.0.3 → 0.0.4
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/factories/tracing-provider.factory.d.ts +6 -4
- package/dist/factories/tracing-provider.factory.d.ts.map +1 -1
- package/dist/factories/tracing-provider.factory.js +17 -14
- package/dist/index.d.ts +12 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/init/elastic-apm-init.d.ts +25 -3
- package/dist/init/elastic-apm-init.d.ts.map +1 -1
- package/dist/init/elastic-apm-init.js +12 -12
- package/dist/init/opentelemetry-init.d.ts +6 -2
- package/dist/init/opentelemetry-init.d.ts.map +1 -1
- package/dist/init/opentelemetry-init.js +46 -42
- package/dist/interfaces/tracing-provider.interface.d.ts +13 -3
- package/dist/interfaces/tracing-provider.interface.d.ts.map +1 -1
- package/dist/modules/tracing.module.d.ts +5 -5
- package/dist/modules/tracing.module.d.ts.map +1 -1
- package/dist/modules/tracing.module.js +2 -1
- package/dist/providers/elastic-apm.tracing-provider.d.ts +23 -5
- package/dist/providers/elastic-apm.tracing-provider.d.ts.map +1 -1
- package/dist/providers/elastic-apm.tracing-provider.js +94 -30
- package/dist/providers/opentelemetry.tracing-provider.d.ts +6 -5
- package/dist/providers/opentelemetry.tracing-provider.d.ts.map +1 -1
- package/dist/providers/opentelemetry.tracing-provider.js +178 -85
- package/dist/services/tracing.service.d.ts +6 -5
- package/dist/services/tracing.service.d.ts.map +1 -1
- package/dist/services/tracing.service.js +2 -2
- package/dist/types/apm.types.d.ts +162 -0
- package/dist/types/apm.types.d.ts.map +1 -0
- package/dist/types/apm.types.js +37 -0
- package/dist/utils/debug-exporter-wrapper.d.ts +13 -2
- package/dist/utils/debug-exporter-wrapper.d.ts.map +1 -1
- package/dist/utils/debug-exporter-wrapper.js +82 -42
- package/dist/utils/debug-logger.d.ts +34 -9
- package/dist/utils/debug-logger.d.ts.map +1 -1
- package/dist/utils/debug-logger.js +37 -28
- package/dist/utils/tracing.helper.d.ts +2 -2
- package/dist/utils/tracing.helper.d.ts.map +1 -1
- package/dist/utils/tracing.helper.js +8 -4
- package/package.json +15 -4
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
import { ITracingProvider } from
|
|
1
|
+
import { ITracingProvider } from "../interfaces/tracing-provider.interface";
|
|
2
|
+
import { ISpan } from "../types/apm.types";
|
|
3
|
+
/**
|
|
4
|
+
* Elastic APM specific span interface
|
|
5
|
+
*/
|
|
6
|
+
export interface IElasticApmSpan extends ISpan {
|
|
7
|
+
/** Set a label on the span */
|
|
8
|
+
setLabel(key: string, value: string): void;
|
|
9
|
+
/** Set the span type */
|
|
10
|
+
setType(type: string): void;
|
|
11
|
+
/** Set the outcome (success, failure) */
|
|
12
|
+
outcome?: string;
|
|
13
|
+
/** End the span */
|
|
14
|
+
end(): void;
|
|
15
|
+
}
|
|
2
16
|
/**
|
|
3
17
|
* Elastic APM Tracing Provider Implementation
|
|
4
18
|
* Sử dụng elastic-apm-node agent để gửi traces về Elastic APM server
|
|
@@ -24,15 +38,15 @@ export declare class ElasticApmTracingProvider implements ITracingProvider {
|
|
|
24
38
|
secretToken?: string;
|
|
25
39
|
environment?: string;
|
|
26
40
|
serviceVersion?: string;
|
|
27
|
-
}): void
|
|
41
|
+
}): Promise<void>;
|
|
28
42
|
/**
|
|
29
43
|
* Bắt đầu một span mới
|
|
30
44
|
*/
|
|
31
|
-
startSpan(name: string, attributes?: Record<string, string | number>, spanKind?: string):
|
|
45
|
+
startSpan(name: string, attributes?: Record<string, string | number>, spanKind?: string): IElasticApmSpan | null;
|
|
32
46
|
/**
|
|
33
47
|
* Thực thi function với tracing context
|
|
34
48
|
*/
|
|
35
|
-
startSpanWithParent<T>(name: string, fn: (span:
|
|
49
|
+
startSpanWithParent<T>(name: string, fn: (span: ISpan | null) => Promise<T>, attributes?: Record<string, string | number>): Promise<T>;
|
|
36
50
|
/**
|
|
37
51
|
* Capture error vào APM
|
|
38
52
|
*/
|
|
@@ -44,7 +58,7 @@ export declare class ElasticApmTracingProvider implements ITracingProvider {
|
|
|
44
58
|
/**
|
|
45
59
|
* End span manually
|
|
46
60
|
*/
|
|
47
|
-
endSpan(span?:
|
|
61
|
+
endSpan(span?: ISpan | null): void;
|
|
48
62
|
/**
|
|
49
63
|
* Flush và shutdown gracefully
|
|
50
64
|
*/
|
|
@@ -53,5 +67,9 @@ export declare class ElasticApmTracingProvider implements ITracingProvider {
|
|
|
53
67
|
* Map string span kind to Elastic APM span type
|
|
54
68
|
*/
|
|
55
69
|
private mapSpanKindToType;
|
|
70
|
+
/**
|
|
71
|
+
* Map string span kind to numeric value (for logging)
|
|
72
|
+
*/
|
|
73
|
+
private mapSpanKindToNumber;
|
|
56
74
|
}
|
|
57
75
|
//# sourceMappingURL=elastic-apm.tracing-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elastic-apm.tracing-provider.d.ts","sourceRoot":"","sources":["../../src/providers/elastic-apm.tracing-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"elastic-apm.tracing-provider.d.ts","sourceRoot":"","sources":["../../src/providers/elastic-apm.tracing-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAS3C;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,KAAK;IAC5C,8BAA8B;IAC9B,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3C,wBAAwB;IACxB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,yCAAyC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,mBAAmB;IACnB,GAAG,IAAI,IAAI,CAAC;CACb;AA0BD;;;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IACH,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI;IAOlC;;OAEG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAgB/B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAgBzB;;OAEG;IACH,OAAO,CAAC,mBAAmB;CAe5B"}
|
|
@@ -9,17 +9,18 @@ const debug_logger_1 = require("../utils/debug-logger");
|
|
|
9
9
|
class ElasticApmTracingProvider {
|
|
10
10
|
constructor(config = {}) {
|
|
11
11
|
this.apm = null;
|
|
12
|
-
this.serviceName =
|
|
13
|
-
|
|
12
|
+
this.serviceName =
|
|
13
|
+
config.serviceName || process.env.ELASTIC_APM_SERVICE_NAME || "interactive-backend";
|
|
14
|
+
this.environment = config.environment || process.env.ELASTIC_APM_ENVIRONMENT || "development";
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
17
|
* Initialize Elastic APM agent
|
|
17
18
|
* Should be called before using the provider
|
|
18
19
|
*/
|
|
19
|
-
initialize(config) {
|
|
20
|
+
async initialize(config) {
|
|
20
21
|
try {
|
|
21
22
|
// @ts-ignore - Optional peer dependency
|
|
22
|
-
const apm = require(
|
|
23
|
+
const apm = require("elastic-apm-node");
|
|
23
24
|
// If agent is already started, just get reference
|
|
24
25
|
if (apm.isStarted()) {
|
|
25
26
|
this.apm = apm;
|
|
@@ -28,12 +29,12 @@ class ElasticApmTracingProvider {
|
|
|
28
29
|
}
|
|
29
30
|
return;
|
|
30
31
|
}
|
|
31
|
-
const serverUrl = config?.serverUrl || process.env.ELASTIC_APM_SERVER_URL ||
|
|
32
|
+
const serverUrl = config?.serverUrl || process.env.ELASTIC_APM_SERVER_URL || "http://localhost:8200";
|
|
32
33
|
const secretToken = config?.secretToken || process.env.ELASTIC_APM_SECRET_TOKEN;
|
|
33
|
-
const serviceVersion = config?.serviceVersion || process.env.npm_package_version ||
|
|
34
|
+
const serviceVersion = config?.serviceVersion || process.env.npm_package_version || "1.0.0";
|
|
34
35
|
const environment = config?.environment || this.environment;
|
|
35
36
|
// Log initialization details when debug mode is on
|
|
36
|
-
(0, debug_logger_1.logInitialization)(
|
|
37
|
+
(0, debug_logger_1.logInitialization)("ElasticAPM", {
|
|
37
38
|
serviceName: config?.serviceName || this.serviceName,
|
|
38
39
|
serverUrl,
|
|
39
40
|
hasSecretToken: !!secretToken,
|
|
@@ -47,25 +48,25 @@ class ElasticApmTracingProvider {
|
|
|
47
48
|
secretToken,
|
|
48
49
|
serviceVersion,
|
|
49
50
|
environment,
|
|
50
|
-
logLevel: (0, debug_logger_1.isDebugEnabled)() ?
|
|
51
|
+
logLevel: (0, debug_logger_1.isDebugEnabled)() ? "info" : "error",
|
|
51
52
|
});
|
|
52
53
|
if ((0, debug_logger_1.isDebugEnabled)()) {
|
|
53
54
|
(0, debug_logger_1.infoLog)(`[ElasticAPM] Service: ${this.serviceName}, Environment: ${this.environment}`);
|
|
54
|
-
(0, debug_logger_1.infoLog)(
|
|
55
|
+
(0, debug_logger_1.infoLog)("[ElasticAPM] Initialized");
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
58
|
catch (error) {
|
|
58
|
-
(0, debug_logger_1.errorLog)(
|
|
59
|
+
(0, debug_logger_1.errorLog)("[ElasticAPM] Failed to initialize:", error);
|
|
59
60
|
throw error;
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
63
|
/**
|
|
63
64
|
* Bắt đầu một span mới
|
|
64
65
|
*/
|
|
65
|
-
startSpan(name, attributes, spanKind =
|
|
66
|
+
startSpan(name, attributes, spanKind = "INTERNAL") {
|
|
66
67
|
if (!this.apm) {
|
|
67
68
|
if ((0, debug_logger_1.isDebugEnabled)()) {
|
|
68
|
-
console.warn(
|
|
69
|
+
console.warn("[ElasticAPM] Not initialized");
|
|
69
70
|
}
|
|
70
71
|
return null;
|
|
71
72
|
}
|
|
@@ -80,7 +81,7 @@ class ElasticApmTracingProvider {
|
|
|
80
81
|
}
|
|
81
82
|
createdTransaction = true;
|
|
82
83
|
}
|
|
83
|
-
const span = this.apm.startSpan(name,
|
|
84
|
+
const span = this.apm.startSpan(name, "custom");
|
|
84
85
|
if (!span) {
|
|
85
86
|
if (createdTransaction && transaction) {
|
|
86
87
|
transaction.end();
|
|
@@ -95,11 +96,54 @@ class ElasticApmTracingProvider {
|
|
|
95
96
|
}
|
|
96
97
|
// Set span type dựa trên kind
|
|
97
98
|
span.setType(this.mapSpanKindToType(spanKind));
|
|
98
|
-
//
|
|
99
|
-
|
|
99
|
+
// Capture startTime for logging (will log when span ends)
|
|
100
|
+
const startTime = Date.now();
|
|
101
|
+
// Add end protection to prevent operations on ended span
|
|
102
|
+
let isEnded = false;
|
|
103
|
+
// Override setLabel to check if span has ended
|
|
104
|
+
const originalSetLabel = span.setLabel.bind(span);
|
|
105
|
+
span.setLabel = (key, value) => {
|
|
106
|
+
if (isEnded) {
|
|
107
|
+
if ((0, debug_logger_1.isDebugEnabled)()) {
|
|
108
|
+
console.warn(`[ElasticAPM] Cannot set label "${key}" on ended span "${name}". ` +
|
|
109
|
+
`This attribute will not be sent to APM server.`);
|
|
110
|
+
}
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
originalSetLabel(key, value);
|
|
114
|
+
};
|
|
115
|
+
// Override setAttribute (if it exists, maps to setLabel)
|
|
116
|
+
if (typeof span.setAttribute === "function") {
|
|
117
|
+
const originalSetAttribute = span.setAttribute.bind(span);
|
|
118
|
+
span.setAttribute = (key, value) => {
|
|
119
|
+
if (isEnded) {
|
|
120
|
+
if ((0, debug_logger_1.isDebugEnabled)()) {
|
|
121
|
+
console.warn(`[ElasticAPM] Cannot set attribute "${key}" on ended span "${name}". ` +
|
|
122
|
+
`This attribute will not be sent to APM server.`);
|
|
123
|
+
}
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
originalSetAttribute(key, value);
|
|
127
|
+
};
|
|
128
|
+
}
|
|
100
129
|
// Override end() để end transaction sau
|
|
101
130
|
const originalEnd = span.end.bind(span);
|
|
102
131
|
span.end = () => {
|
|
132
|
+
if (isEnded) {
|
|
133
|
+
if ((0, debug_logger_1.isDebugEnabled)()) {
|
|
134
|
+
console.warn(`[ElasticAPM] Span "${name}" has already been ended. Ignoring duplicate end().`);
|
|
135
|
+
}
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
isEnded = true;
|
|
139
|
+
// Log span details with actual duration
|
|
140
|
+
const endTime = Date.now();
|
|
141
|
+
(0, debug_logger_1.logSpan)("ElasticAPM", {
|
|
142
|
+
name: span.name,
|
|
143
|
+
kind: this.mapSpanKindToNumber(spanKind),
|
|
144
|
+
startTime,
|
|
145
|
+
endTime,
|
|
146
|
+
});
|
|
103
147
|
originalEnd();
|
|
104
148
|
// End transaction if we created it
|
|
105
149
|
if (createdTransaction && transaction) {
|
|
@@ -120,7 +164,7 @@ class ElasticApmTracingProvider {
|
|
|
120
164
|
catch (error) {
|
|
121
165
|
this.apm?.captureError(error);
|
|
122
166
|
if (span) {
|
|
123
|
-
span.outcome =
|
|
167
|
+
span.outcome = "failure";
|
|
124
168
|
}
|
|
125
169
|
if ((0, debug_logger_1.isDebugEnabled)()) {
|
|
126
170
|
(0, debug_logger_1.infoLog)(`[ElasticAPM] Span failed: ${name} ${error.message || error}`);
|
|
@@ -154,7 +198,7 @@ class ElasticApmTracingProvider {
|
|
|
154
198
|
* End span manually
|
|
155
199
|
*/
|
|
156
200
|
endSpan(span) {
|
|
157
|
-
const activeSpan = span || this.apm?.currentSpan;
|
|
201
|
+
const activeSpan = (span || this.apm?.currentSpan);
|
|
158
202
|
if (activeSpan) {
|
|
159
203
|
activeSpan.end();
|
|
160
204
|
}
|
|
@@ -165,13 +209,15 @@ class ElasticApmTracingProvider {
|
|
|
165
209
|
async shutdown() {
|
|
166
210
|
if (this.apm) {
|
|
167
211
|
try {
|
|
168
|
-
|
|
212
|
+
if (this.apm.flush) {
|
|
213
|
+
await this.apm.flush();
|
|
214
|
+
}
|
|
169
215
|
if ((0, debug_logger_1.isDebugEnabled)()) {
|
|
170
|
-
(0, debug_logger_1.infoLog)(
|
|
216
|
+
(0, debug_logger_1.infoLog)("[ElasticAPM] Shutdown completed successfully");
|
|
171
217
|
}
|
|
172
218
|
}
|
|
173
219
|
catch (error) {
|
|
174
|
-
(0, debug_logger_1.errorLog)(
|
|
220
|
+
(0, debug_logger_1.errorLog)("[ElasticAPM] Shutdown failed:", error);
|
|
175
221
|
throw error;
|
|
176
222
|
}
|
|
177
223
|
}
|
|
@@ -181,17 +227,35 @@ class ElasticApmTracingProvider {
|
|
|
181
227
|
*/
|
|
182
228
|
mapSpanKindToType(kind) {
|
|
183
229
|
switch (kind.toUpperCase()) {
|
|
184
|
-
case
|
|
185
|
-
return
|
|
186
|
-
case
|
|
187
|
-
return
|
|
188
|
-
case
|
|
189
|
-
return
|
|
190
|
-
case
|
|
191
|
-
return
|
|
192
|
-
case
|
|
230
|
+
case "SERVER":
|
|
231
|
+
return "request";
|
|
232
|
+
case "CLIENT":
|
|
233
|
+
return "db";
|
|
234
|
+
case "PRODUCER":
|
|
235
|
+
return "messaging";
|
|
236
|
+
case "CONSUMER":
|
|
237
|
+
return "messaging";
|
|
238
|
+
case "INTERNAL":
|
|
239
|
+
default:
|
|
240
|
+
return "code";
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Map string span kind to numeric value (for logging)
|
|
245
|
+
*/
|
|
246
|
+
mapSpanKindToNumber(kind) {
|
|
247
|
+
switch (kind.toUpperCase()) {
|
|
248
|
+
case "SERVER":
|
|
249
|
+
return 1;
|
|
250
|
+
case "CLIENT":
|
|
251
|
+
return 2;
|
|
252
|
+
case "PRODUCER":
|
|
253
|
+
return 3;
|
|
254
|
+
case "CONSUMER":
|
|
255
|
+
return 4;
|
|
256
|
+
case "INTERNAL":
|
|
193
257
|
default:
|
|
194
|
-
return
|
|
258
|
+
return 0;
|
|
195
259
|
}
|
|
196
260
|
}
|
|
197
261
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ITracingProvider } from
|
|
2
|
-
import { OtlpTransport } from
|
|
1
|
+
import { ITracingProvider } from "../interfaces/tracing-provider.interface";
|
|
2
|
+
import { OtlpTransport } from "../types/otlp-transport.type";
|
|
3
|
+
import { ISpan } from "../types/apm.types";
|
|
3
4
|
/**
|
|
4
5
|
* OpenTelemetry Tracing Provider Implementation
|
|
5
6
|
* Sử dụng OpenTelemetry SDK với OTLP exporter để gửi traces về Elastic APM
|
|
@@ -42,11 +43,11 @@ export declare class OpenTelemetryTracingProvider implements ITracingProvider {
|
|
|
42
43
|
/**
|
|
43
44
|
* Bắt đầu một span mới
|
|
44
45
|
*/
|
|
45
|
-
startSpan(name: string, attributes?: Record<string, string | number>, spanKind?: string):
|
|
46
|
+
startSpan(name: string, attributes?: Record<string, string | number>, spanKind?: string): ISpan | null;
|
|
46
47
|
/**
|
|
47
48
|
* Thực thi function với tracing context
|
|
48
49
|
*/
|
|
49
|
-
startSpanWithParent<T>(name: string, fn: (span:
|
|
50
|
+
startSpanWithParent<T>(name: string, fn: (span: ISpan | null) => Promise<T>, attributes?: Record<string, string | number>): Promise<T>;
|
|
50
51
|
/**
|
|
51
52
|
* Capture error vào active span
|
|
52
53
|
*/
|
|
@@ -62,7 +63,7 @@ export declare class OpenTelemetryTracingProvider implements ITracingProvider {
|
|
|
62
63
|
/**
|
|
63
64
|
* End span manually
|
|
64
65
|
*/
|
|
65
|
-
endSpan(span?:
|
|
66
|
+
endSpan(span?: ISpan | null): void;
|
|
66
67
|
/**
|
|
67
68
|
* Shutdown gracefully
|
|
68
69
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opentelemetry.tracing-provider.d.ts","sourceRoot":"","sources":["../../src/providers/opentelemetry.tracing-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{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