@nestjs/observe 0.3.21 → 0.3.23

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.
Files changed (57) hide show
  1. package/README.md +100 -14
  2. package/dist/agent/degraded-ingest.protocol.d.ts +14 -0
  3. package/dist/agent/degraded-ingest.protocol.js +19 -0
  4. package/dist/agent/detached-observe-worker.assembly.d.ts +2 -0
  5. package/dist/agent/detached-observe-worker.assembly.js +5 -1
  6. package/dist/agent/detached-observe-worker.d.ts +10 -0
  7. package/dist/agent/detached-observe-worker.js +27 -2
  8. package/dist/agent/observe-agent.shared-buffer.d.ts +63 -1
  9. package/dist/agent/observe-agent.shared-buffer.js +117 -2
  10. package/dist/agent/observe-agent.worker.d.ts +27 -20
  11. package/dist/agent/observe-agent.worker.js +109 -62
  12. package/dist/agent/observe-reporting.util.d.ts +35 -0
  13. package/dist/agent/observe-reporting.util.js +69 -0
  14. package/dist/interfaces/observe-options.interface.d.ts +100 -8
  15. package/dist/observe.constants.d.ts +17 -0
  16. package/dist/observe.constants.js +17 -0
  17. package/dist/observe.module.js +53 -4
  18. package/dist/otlp/otlp-encoders.d.ts +26 -0
  19. package/dist/otlp/otlp-encoders.js +296 -0
  20. package/dist/otlp/otlp-export-grant.d.ts +34 -0
  21. package/dist/otlp/otlp-export-grant.js +22 -0
  22. package/dist/otlp/otlp-options.interface.d.ts +59 -0
  23. package/dist/otlp/otlp-options.interface.js +1 -0
  24. package/dist/otlp/otlp-settings.util.d.ts +38 -0
  25. package/dist/otlp/otlp-settings.util.js +154 -0
  26. package/dist/otlp/otlp-span.mapper.d.ts +73 -0
  27. package/dist/otlp/otlp-span.mapper.js +345 -0
  28. package/dist/otlp/otlp-trace-exporter.service.d.ts +130 -0
  29. package/dist/otlp/otlp-trace-exporter.service.js +497 -0
  30. package/dist/outgoing/http.integration.d.ts +36 -3
  31. package/dist/outgoing/http.integration.js +84 -17
  32. package/dist/outgoing/outgoing-observe-agent.service.d.ts +14 -1
  33. package/dist/outgoing/outgoing-observe-agent.service.js +24 -9
  34. package/dist/outgoing/outgoing-span.recorder.d.ts +11 -1
  35. package/dist/outgoing/outgoing-span.recorder.js +8 -2
  36. package/dist/outgoing/sql-statement.util.js +2 -2
  37. package/dist/protocols/http-observe-agent.service.d.ts +1 -8
  38. package/dist/protocols/http-observe-agent.service.js +44 -14
  39. package/dist/protocols/job-trace-runner.d.ts +11 -0
  40. package/dist/protocols/job-trace-runner.js +42 -8
  41. package/dist/protocols/rpc-observe-agent.service.d.ts +5 -0
  42. package/dist/protocols/rpc-observe-agent.service.js +43 -3
  43. package/dist/services/operation-trace.registry.d.ts +46 -3
  44. package/dist/services/operation-trace.registry.js +69 -13
  45. package/dist/services/tracer.service.d.ts +6 -0
  46. package/dist/services/tracer.service.js +11 -2
  47. package/dist/utils/default-trace-id-generator.util.d.ts +18 -0
  48. package/dist/utils/default-trace-id-generator.util.js +39 -2
  49. package/dist/utils/opentelemetry.util.d.ts +57 -0
  50. package/dist/utils/opentelemetry.util.js +100 -0
  51. package/dist/utils/trace-context.util.d.ts +91 -0
  52. package/dist/utils/trace-context.util.js +219 -0
  53. package/dist/utils/trace-handoff.util.d.ts +45 -0
  54. package/dist/utils/trace-handoff.util.js +90 -0
  55. package/dist/utils/trace-id-generator-origin.util.d.ts +11 -0
  56. package/dist/utils/trace-id-generator-origin.util.js +26 -0
  57. package/package.json +26 -13
@@ -0,0 +1,219 @@
1
+ import { createHash, randomBytes } from "crypto";
2
+ import { activeOpenTelemetrySpanContext, } from "./opentelemetry.util.js";
3
+ /**
4
+ * `version-traceid-parentid-flags`, as the spec defines it: lowercase hex
5
+ * only, a trace id and a parent id that are not all zeros, and any version
6
+ * but the reserved `ff`. Version 00 ends after the flags; a later version may
7
+ * carry more after another dash, which is read past rather than refused, so
8
+ * a caller on a newer revision of the spec is still followed.
9
+ */
10
+ const TRACEPARENT_PATTERN = /^[ \t]*((?!ff)[0-9a-f]{2})-((?![0]{32})[0-9a-f]{32})-((?![0]{16})[0-9a-f]{16})-([0-9a-f]{2})(-[^ \t]*)?[ \t]*$/;
11
+ /**
12
+ * The longest `tracestate` passed on. The spec asks every vendor to carry at
13
+ * least 512 characters of it and lets a longer one lose entries from its
14
+ * end; a header is not the place for an unbounded value either way.
15
+ */
16
+ const MAX_TRACE_STATE_LENGTH = 512;
17
+ /** Printable ASCII: no control characters, nothing a header cannot carry. */
18
+ const TRACE_STATE_PATTERN = /^[\x20-\x7e]+$/;
19
+ /** What a span context's ids must be: lowercase hex, never all zeros. */
20
+ const SPAN_CONTEXT_TRACE_ID_PATTERN = /^(?![0]{32})[0-9a-f]{32}$/;
21
+ const SPAN_CONTEXT_SPAN_ID_PATTERN = /^(?![0]{16})[0-9a-f]{16}$/;
22
+ const UUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
23
+ const HEX_TRACE_ID_PATTERN = /^[0-9a-f]{32}$/i;
24
+ const ZERO_TRACE_ID = "0".repeat(32);
25
+ const ZERO_SPAN_ID = "0".repeat(16);
26
+ /**
27
+ * The trace context a request arrived with, or `undefined` when it carried
28
+ * no `traceparent` the spec would accept.
29
+ *
30
+ * Headers are client-supplied, so anything malformed is ignored rather than
31
+ * repaired - an array (a repeated header), the wrong case, a zero id. The
32
+ * spec's answer to an invalid `traceparent` is to start a new trace, and its
33
+ * `tracestate` goes with it.
34
+ */
35
+ export function readTraceContext(headers) {
36
+ const traceparent = headers?.["traceparent"];
37
+ if (typeof traceparent !== "string") {
38
+ return undefined;
39
+ }
40
+ const match = TRACEPARENT_PATTERN.exec(traceparent);
41
+ if (!match) {
42
+ return undefined;
43
+ }
44
+ const [, version, traceId, parentSpanId, flags, rest] = match;
45
+ // Version 00 has exactly four fields, so anything after them means the
46
+ // header is not what it claims to be - two headers folded into one, say.
47
+ if (version === "00" && rest !== undefined) {
48
+ return undefined;
49
+ }
50
+ const context = {
51
+ traceId,
52
+ parentSpanId,
53
+ sampled: (parseInt(flags, 16) & 0x01) === 0x01,
54
+ };
55
+ const traceState = fitTraceState(headers?.["tracestate"]);
56
+ if (traceState) {
57
+ context.traceState = traceState;
58
+ }
59
+ return context;
60
+ }
61
+ /**
62
+ * The received `tracestate`, held to what is safe to send on: printable,
63
+ * and at most `MAX_TRACE_STATE_LENGTH` characters - a longer one loses
64
+ * whole entries from its end, which the spec allows, never half of one.
65
+ * Node joins a repeated header with ", ", which is the list the spec means.
66
+ */
67
+ function fitTraceState(value) {
68
+ if (typeof value !== "string") {
69
+ return undefined;
70
+ }
71
+ const trimmed = value.trim();
72
+ if (!trimmed || !TRACE_STATE_PATTERN.test(trimmed)) {
73
+ return undefined;
74
+ }
75
+ if (trimmed.length <= MAX_TRACE_STATE_LENGTH) {
76
+ return trimmed;
77
+ }
78
+ let fitted = "";
79
+ for (const entry of trimmed.split(",")) {
80
+ const member = entry.trim();
81
+ if (!member) {
82
+ continue;
83
+ }
84
+ const next = fitted ? `${fitted},${member}` : member;
85
+ if (next.length > MAX_TRACE_STATE_LENGTH) {
86
+ break;
87
+ }
88
+ fitted = next;
89
+ }
90
+ return fitted || undefined;
91
+ }
92
+ /**
93
+ * The trace id a `traceparent` header carries, written as a UUID - the
94
+ * shape of every id this agent mints - or `undefined` when it carries none
95
+ * the spec would accept.
96
+ *
97
+ * Written that way rather than as 32 bare digits so the id reads the same
98
+ * in the dashboard, in logs and in `currentTraceId()` whichever side minted
99
+ * it, and so `w3cTraceIdOf` turns it back into exactly the trace id the
100
+ * caller sent.
101
+ */
102
+ export function traceIdFromTraceparent(headers) {
103
+ const traceId = readTraceContext(headers)?.traceId;
104
+ return traceId === undefined ? undefined : toUuid(traceId);
105
+ }
106
+ /**
107
+ * The W3C trace context an operation runs in: the span an OpenTelemetry SDK
108
+ * in this process opened for it, when one runs, else the `traceparent` it
109
+ * arrived with.
110
+ *
111
+ * The SDK's span first, because the SDK has already decided the trace: it
112
+ * continued the caller's, through whichever propagator it was given, or
113
+ * started one when there was nothing to continue. Taking that decision is
114
+ * what makes a service running both report one trace id to both, the
115
+ * service at the root of a trace included.
116
+ */
117
+ export function inboundTraceContext(headers) {
118
+ return (traceContextOfSpan(activeOpenTelemetrySpanContext()) ??
119
+ readTraceContext(headers));
120
+ }
121
+ /**
122
+ * `inboundTraceContext`'s trace id, written as a UUID - as
123
+ * `traceIdFromTraceparent` writes it.
124
+ */
125
+ export function inboundTraceId(headers) {
126
+ const traceId = inboundTraceContext(headers)?.traceId;
127
+ return traceId === undefined ? undefined : toUuid(traceId);
128
+ }
129
+ /**
130
+ * An OpenTelemetry span context as the trace context an operation runs in,
131
+ * the span becoming the operation's parent - or `undefined` for one the spec
132
+ * would not accept, such as the all-zero context of a span never started.
133
+ */
134
+ function traceContextOfSpan(spanContext) {
135
+ if (!spanContext ||
136
+ typeof spanContext.traceId !== "string" ||
137
+ typeof spanContext.spanId !== "string" ||
138
+ !SPAN_CONTEXT_TRACE_ID_PATTERN.test(spanContext.traceId) ||
139
+ !SPAN_CONTEXT_SPAN_ID_PATTERN.test(spanContext.spanId)) {
140
+ return undefined;
141
+ }
142
+ const context = {
143
+ traceId: spanContext.traceId,
144
+ parentSpanId: spanContext.spanId,
145
+ sampled: (spanContext.traceFlags & 0x01) === 0x01,
146
+ };
147
+ let traceState;
148
+ try {
149
+ traceState = fitTraceState(spanContext.traceState?.serialize());
150
+ }
151
+ catch {
152
+ // A trace state that cannot be written out is no trace state.
153
+ }
154
+ if (traceState) {
155
+ context.traceState = traceState;
156
+ }
157
+ return context;
158
+ }
159
+ /**
160
+ * The W3C trace id an Observe trace id goes out under.
161
+ *
162
+ * Every id the agent mints is a UUID, which is a 128-bit W3C trace id with
163
+ * dashes in it, so those - and any 32-digit hex id - map onto one by
164
+ * dropping the dashes. An adopted `x-request-id` can be anything at all
165
+ * (`req_8f2c`), and becomes the first 128 bits of its SHA-256 instead: the
166
+ * same id always gives the same trace id, so every hop that derives it -
167
+ * this process's outbound calls, another service running this agent, the
168
+ * spans `otlp` exports - lands in one trace.
169
+ */
170
+ export function w3cTraceIdOf(traceId) {
171
+ let hex;
172
+ if (UUID_PATTERN.test(traceId)) {
173
+ hex = traceId.replace(/-/g, "").toLowerCase();
174
+ }
175
+ else if (HEX_TRACE_ID_PATTERN.test(traceId)) {
176
+ hex = traceId.toLowerCase();
177
+ }
178
+ // All zeros is the one value the spec forbids - the nil UUID, sent as an
179
+ // `x-request-id` - so it is hashed like any other id that does not fit.
180
+ if (hex === undefined || hex === ZERO_TRACE_ID) {
181
+ hex = createHash("sha256").update(traceId).digest("hex").slice(0, 32);
182
+ }
183
+ return hex;
184
+ }
185
+ /**
186
+ * The W3C span id an Observe span id goes out under: the low 64 bits of its
187
+ * UUID.
188
+ *
189
+ * The low half rather than the high one because in a UUIDv7 the high half
190
+ * is mostly the mint time, which every span opened in the same millisecond
191
+ * shares; the low half is 62 random bits under the variant, which also keeps
192
+ * it from ever being all zeros. Anything that is not a UUID is hashed, as
193
+ * `w3cTraceIdOf` does.
194
+ */
195
+ export function w3cSpanIdOf(spanId) {
196
+ if (UUID_PATTERN.test(spanId)) {
197
+ const low = spanId.replace(/-/g, "").slice(16).toLowerCase();
198
+ if (low !== ZERO_SPAN_ID) {
199
+ return low;
200
+ }
201
+ }
202
+ return createHash("sha256").update(spanId).digest("hex").slice(0, 16);
203
+ }
204
+ /** A fresh W3C span id, for a span that has no Observe id to derive one from. */
205
+ export function randomSpanId() {
206
+ for (;;) {
207
+ const id = randomBytes(8).toString("hex");
208
+ if (id !== ZERO_SPAN_ID) {
209
+ return id;
210
+ }
211
+ }
212
+ }
213
+ /** A version-00 `traceparent`. Only the `sampled` flag is ever set. */
214
+ export function formatTraceparent(traceId, spanId, sampled) {
215
+ return `00-${traceId}-${spanId}-${sampled ? "01" : "00"}`;
216
+ }
217
+ function toUuid(hex) {
218
+ return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;
219
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * The `traceparent` an operation hands on with work it starts elsewhere,
3
+ * beside the Observe trace id `traceId` that the work inherits.
4
+ *
5
+ * Its trace is the W3C form of `traceId`, so the work has one trace id in
6
+ * both tools whatever side runs it. Its parent is the span an OpenTelemetry
7
+ * SDK in this process has open, when that span is in the same trace - so
8
+ * the SDK's spans for the work nest under the request's in its backend -
9
+ * and its sampled flag is that span's. Otherwise it is the span Observe has
10
+ * open, as on an outbound HTTP call, with the sampled flag the operation
11
+ * arrived with, else whether Observe is recording it.
12
+ *
13
+ * `store` is the operation's async store.
14
+ */
15
+ export declare function traceparentToHandOn(store: ReadonlyMap<unknown, unknown> | undefined, traceId: string): string;
16
+ /**
17
+ * Runs `run` in the trace a `traceparent` handed on with the work names -
18
+ * see `traceparentToHandOn` - for an OpenTelemetry SDK in this process: the
19
+ * spans it opens inside `run` join that trace, under the span that handed
20
+ * the work on, and the calls they cover carry the trace on.
21
+ *
22
+ * Only a `traceparent` the spec accepts, and only in the trace `traceId` -
23
+ * the Observe trace id the work runs under - maps onto: job options and
24
+ * packet metadata are writable by anything that reaches Redis or the
25
+ * socket, and a span from another trace would put the work under one it
26
+ * never ran beside. Anything else runs `run` as it is.
27
+ */
28
+ export declare function continueHandedOnTrace<T>(traceparent: unknown, traceId: string, run: () => T): T;
29
+ /**
30
+ * Whether OpenTelemetry interop runs now - `openTelemetry` on, beside
31
+ * reporting to NestJS Observe (see `ObserveAgentSharedBuffer.isIngesting`) -
32
+ * for what is set up before the module's options resolve: the microservice
33
+ * dispatch hook, which a client is handed as it is instantiated. Off until
34
+ * the module configures it.
35
+ */
36
+ export declare class OpenTelemetryInteropGate {
37
+ private options?;
38
+ private buffer?;
39
+ configure(options: {
40
+ openTelemetry?: boolean;
41
+ } | undefined, buffer: {
42
+ isIngesting(): boolean;
43
+ } | undefined): this;
44
+ isOn(): boolean;
45
+ }
@@ -0,0 +1,90 @@
1
+ import { CALLER_METADATA_KEY, TRACE_CONTEXT_KEY, } from "../observe.constants.js";
2
+ import { activeOpenTelemetrySpanContext, withRemoteOpenTelemetryParent, } from "./opentelemetry.util.js";
3
+ import { formatTraceparent, randomSpanId, readTraceContext, w3cSpanIdOf, w3cTraceIdOf, } from "./trace-context.util.js";
4
+ /**
5
+ * W3C Trace Context for work an operation hands on where no OpenTelemetry
6
+ * instrumentation carries it - a queue job it enqueues, a microservice
7
+ * message it sends - with `openTelemetry` on.
8
+ *
9
+ * Observe carries its own trace id across those hops already: in a job's
10
+ * options (`observeTraceId`) and in a message's `x-request-id` metadata. An
11
+ * OpenTelemetry SDK in the process that runs the job or handles the message
12
+ * has nothing to go on, though, so the spans it opens there - and the
13
+ * `traceparent` on every call they make - would start a trace of their own,
14
+ * which every service further down then follows. So the hop carries a
15
+ * `traceparent` too, and the other side hands it to the SDK.
16
+ */
17
+ /** A span id the spec accepts: 16 lowercase hex digits, not all zeros. */
18
+ const SPAN_ID_PATTERN = /^(?![0]{16})[0-9a-f]{16}$/;
19
+ /**
20
+ * The `traceparent` an operation hands on with work it starts elsewhere,
21
+ * beside the Observe trace id `traceId` that the work inherits.
22
+ *
23
+ * Its trace is the W3C form of `traceId`, so the work has one trace id in
24
+ * both tools whatever side runs it. Its parent is the span an OpenTelemetry
25
+ * SDK in this process has open, when that span is in the same trace - so
26
+ * the SDK's spans for the work nest under the request's in its backend -
27
+ * and its sampled flag is that span's. Otherwise it is the span Observe has
28
+ * open, as on an outbound HTTP call, with the sampled flag the operation
29
+ * arrived with, else whether Observe is recording it.
30
+ *
31
+ * `store` is the operation's async store.
32
+ */
33
+ export function traceparentToHandOn(store, traceId) {
34
+ const w3cTraceId = w3cTraceIdOf(traceId);
35
+ const active = activeOpenTelemetrySpanContext();
36
+ if (active?.traceId === w3cTraceId &&
37
+ typeof active.spanId === "string" &&
38
+ SPAN_ID_PATTERN.test(active.spanId)) {
39
+ return formatTraceparent(w3cTraceId, active.spanId, (active.traceFlags & 0x01) === 0x01);
40
+ }
41
+ const caller = store?.get(CALLER_METADATA_KEY);
42
+ const received = store?.get(TRACE_CONTEXT_KEY);
43
+ const recorded = typeof caller === "string";
44
+ return formatTraceparent(w3cTraceId, recorded ? w3cSpanIdOf(caller) : randomSpanId(), received?.traceId === w3cTraceId ? received.sampled : recorded);
45
+ }
46
+ /**
47
+ * Runs `run` in the trace a `traceparent` handed on with the work names -
48
+ * see `traceparentToHandOn` - for an OpenTelemetry SDK in this process: the
49
+ * spans it opens inside `run` join that trace, under the span that handed
50
+ * the work on, and the calls they cover carry the trace on.
51
+ *
52
+ * Only a `traceparent` the spec accepts, and only in the trace `traceId` -
53
+ * the Observe trace id the work runs under - maps onto: job options and
54
+ * packet metadata are writable by anything that reaches Redis or the
55
+ * socket, and a span from another trace would put the work under one it
56
+ * never ran beside. Anything else runs `run` as it is.
57
+ */
58
+ export function continueHandedOnTrace(traceparent, traceId, run) {
59
+ const parent = typeof traceparent === "string"
60
+ ? readTraceContext({ traceparent })
61
+ : undefined;
62
+ if (!parent || parent.traceId !== w3cTraceIdOf(traceId)) {
63
+ return run();
64
+ }
65
+ return withRemoteOpenTelemetryParent({
66
+ traceId: parent.traceId,
67
+ spanId: parent.parentSpanId,
68
+ sampled: parent.sampled,
69
+ }, run);
70
+ }
71
+ /**
72
+ * Whether OpenTelemetry interop runs now - `openTelemetry` on, beside
73
+ * reporting to NestJS Observe (see `ObserveAgentSharedBuffer.isIngesting`) -
74
+ * for what is set up before the module's options resolve: the microservice
75
+ * dispatch hook, which a client is handed as it is instantiated. Off until
76
+ * the module configures it.
77
+ */
78
+ export class OpenTelemetryInteropGate {
79
+ options;
80
+ buffer;
81
+ configure(options, buffer) {
82
+ this.options = options;
83
+ this.buffer = buffer;
84
+ return this;
85
+ }
86
+ isOn() {
87
+ return (this.options?.openTelemetry === true &&
88
+ this.buffer?.isIngesting() === true);
89
+ }
90
+ }
@@ -0,0 +1,11 @@
1
+ /** Records whether `options` holds the default generator - see above. */
2
+ export declare function recordTraceIdGeneratorOrigin(options: {
3
+ traceIdGenerator?: (req: unknown) => string;
4
+ }): void;
5
+ /**
6
+ * Whether the options hold the default generator, which `openTelemetry`
7
+ * swaps for `openTelemetryTraceIdGenerator` while interop runs. Options
8
+ * `createObserveModule` never saw read as a generator of the application's
9
+ * own, which is left alone.
10
+ */
11
+ export declare function usesDefaultTraceIdGenerator(options: object): boolean;
@@ -0,0 +1,26 @@
1
+ import { defaultTraceIdGenerator } from "./default-trace-id-generator.util.js";
2
+ /**
3
+ * Whether the module's `traceIdGenerator` is `defaultTraceIdGenerator`,
4
+ * recorded on its options by `createObserveModule` while they are still a
5
+ * plain object.
6
+ *
7
+ * Read back rather than found by comparing the function: Nest hands the
8
+ * options out instrumented like any provider, and a function read off them is
9
+ * a wrapper, never equal to the one stored. A boolean comes through as it is.
10
+ */
11
+ const USES_DEFAULT_TRACE_ID_GENERATOR = Symbol("usesDefaultTraceIdGenerator");
12
+ /** Records whether `options` holds the default generator - see above. */
13
+ export function recordTraceIdGeneratorOrigin(options) {
14
+ options[USES_DEFAULT_TRACE_ID_GENERATOR] =
15
+ options.traceIdGenerator === defaultTraceIdGenerator;
16
+ }
17
+ /**
18
+ * Whether the options hold the default generator, which `openTelemetry`
19
+ * swaps for `openTelemetryTraceIdGenerator` while interop runs. Options
20
+ * `createObserveModule` never saw read as a generator of the application's
21
+ * own, which is left alone.
22
+ */
23
+ export function usesDefaultTraceIdGenerator(options) {
24
+ return (options[USES_DEFAULT_TRACE_ID_GENERATOR] ===
25
+ true);
26
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/observe",
3
- "version": "0.3.21",
3
+ "version": "0.3.23",
4
4
  "description": "Observability and APM agent for NestJS - traces, runtime metrics and custom metrics",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "homepage": "https://observe.nestjs.com",
@@ -85,6 +85,7 @@
85
85
  "@nestjs/microservices": "^11.0.0 || ^12.0.0",
86
86
  "@nestjs/schedule": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^12.0.0",
87
87
  "@nestjs/websockets": "^11.0.0 || ^12.0.0",
88
+ "@opentelemetry/api": "^1.0.0",
88
89
  "@taskforcesh/bullmq-pro": "^7.0.0",
89
90
  "bull": "^3.3.0 || ^4.0.0",
90
91
  "bullmq": "^5.0.0 || ^6.0.0",
@@ -110,6 +111,9 @@
110
111
  "@nestjs/websockets": {
111
112
  "optional": true
112
113
  },
114
+ "@opentelemetry/api": {
115
+ "optional": true
116
+ },
113
117
  "@taskforcesh/bullmq-pro": {
114
118
  "optional": true
115
119
  },
@@ -125,7 +129,7 @@
125
129
  "@as-integrations/express5": "1.1.2",
126
130
  "@commitlint/cli": "21.2.4",
127
131
  "@commitlint/config-angular": "21.2.4",
128
- "@grpc/grpc-js": "1.14.6",
132
+ "@grpc/grpc-js": "1.14.7",
129
133
  "@grpc/proto-loader": "0.8.1",
130
134
  "@mikro-orm/core": "7.2.0",
131
135
  "@mikro-orm/mysql": "7.2.0",
@@ -133,18 +137,25 @@
133
137
  "@nestjs/apollo": "14.1.1",
134
138
  "@nestjs/bull": "12.0.0",
135
139
  "@nestjs/bullmq": "12.0.0",
136
- "@nestjs/common": "12.0.1",
137
- "@nestjs/core": "12.0.1",
140
+ "@nestjs/common": "12.3.3",
141
+ "@nestjs/core": "12.3.3",
138
142
  "@nestjs/graphql": "14.0.0",
139
- "@nestjs/microservices": "12.0.1",
140
- "@nestjs/platform-express": "12.0.1",
141
- "@nestjs/platform-fastify": "12.0.3",
142
- "@nestjs/platform-node": "12.3.2",
143
- "@nestjs/platform-socket.io": "12.0.3",
144
- "@nestjs/platform-ws": "12.0.3",
143
+ "@nestjs/microservices": "12.3.3",
144
+ "@nestjs/platform-express": "12.3.3",
145
+ "@nestjs/platform-fastify": "12.3.3",
146
+ "@nestjs/platform-node": "12.3.3",
147
+ "@nestjs/platform-socket.io": "12.3.3",
148
+ "@nestjs/platform-ws": "12.3.3",
145
149
  "@nestjs/schedule": "12.0.1",
146
- "@nestjs/testing": "12.0.1",
147
- "@nestjs/websockets": "12.0.3",
150
+ "@nestjs/testing": "12.3.3",
151
+ "@nestjs/websockets": "12.3.3",
152
+ "@opentelemetry/api": "1.9.1",
153
+ "@opentelemetry/auto-instrumentations-node": "0.81.0",
154
+ "@opentelemetry/context-async-hooks": "2.12.0",
155
+ "@opentelemetry/core": "2.12.0",
156
+ "@opentelemetry/sdk-node": "0.223.0",
157
+ "@opentelemetry/sdk-trace-base": "2.12.0",
158
+ "@sentry/nestjs": "11.10.0",
148
159
  "@swc/core": "1.16.1",
149
160
  "@types/mssql": "12.3.0",
150
161
  "@types/node": "22.20.5",
@@ -154,6 +165,7 @@
154
165
  "@vitest/coverage-v8": "4.1.11",
155
166
  "bull": "4.16.5",
156
167
  "bullmq": "6.2.0",
168
+ "dd-trace": "6.23.0",
157
169
  "drizzle-orm": "0.45.4",
158
170
  "express": "5.2.1",
159
171
  "graphql": "16.14.2",
@@ -162,13 +174,14 @@
162
174
  "lint-staged": "17.6.0",
163
175
  "mongodb": "7.6.0",
164
176
  "mongoose": "9.10.1",
165
- "mssql": "12.7.11",
177
+ "mssql": "12.7.13",
166
178
  "mysql2": "3.24.6",
167
179
  "nestjs-cls": "6.2.1",
168
180
  "oxlint": "1.79.0",
169
181
  "oxlint-tsgolint": "7.0.2001",
170
182
  "pg": "8.23.0",
171
183
  "prettier": "3.2.5",
184
+ "protobufjs": "7.6.5",
172
185
  "reflect-metadata": "0.2.2",
173
186
  "release-it": "21.0.2",
174
187
  "rimraf": "6.1.3",