@volontariapp/messaging 2.24.0 → 2.25.0-snap-c3c90e2
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.25.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Capture the active OpenTelemetry context into `traceparent` when an outbox row is created (`EventQueueEntity.createEvent`, `JobsOutboxEntity.createJob`), and carry it in Redis Stream fields / event JSON and in the BullMQ job envelope. Adds `captureTraceparent` and `normalizeTraceparent`, and optional `traceparent` on `JobEnvelope`, `RedisEventMessage` and `RedisEventStreamFields`. Without an active span the field stays empty.
|
|
8
|
+
|
|
3
9
|
## 2.24.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/events/utils.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export interface RedisEventMessage<T = unknown> {
|
|
|
6
6
|
emitterId: string;
|
|
7
7
|
correlationId: string;
|
|
8
8
|
traceId?: string;
|
|
9
|
+
traceparent?: string;
|
|
9
10
|
version: number;
|
|
10
11
|
payload: {
|
|
11
12
|
before?: T;
|
|
@@ -20,6 +21,7 @@ export interface RedisEventStreamFields {
|
|
|
20
21
|
emitterId: string;
|
|
21
22
|
correlationId: string;
|
|
22
23
|
traceId: string;
|
|
24
|
+
traceparent?: string;
|
|
23
25
|
version: string;
|
|
24
26
|
createdAt: string;
|
|
25
27
|
payload: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/events/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAKpD,MAAM,WAAW,iBAAiB,CAAC,CAAC,GAAG,OAAO;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM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"}
|
package/dist/events/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/events/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/events/utils.ts"],"names":[],"mappings":"AAmDA,MAAM,UAAU,kBAAkB,CAAC,OAAyB;IAC1D,OAAO,UAAU,OAAO,EAAE,CAAC;AAC7B,CAAC"}
|
package/dist/jobs/envelope.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envelope.d.ts","sourceRoot":"","sources":["../../src/jobs/envelope.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B,OAAO,EAAE,CAAC,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"envelope.d.ts","sourceRoot":"","sources":["../../src/jobs/envelope.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B,OAAO,EAAE,CAAC,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAElB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|