@mojaloop/central-ledger 19.4.4-trace.0 → 19.4.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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [19.4.4](https://github.com/mojaloop/central-ledger/compare/v19.4.3...v19.4.4) (2025-04-10)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * preserve trace context during batch handling ([#1165](https://github.com/mojaloop/central-ledger/issues/1165)) ([972df11](https://github.com/mojaloop/central-ledger/commit/972df11b7838748ecb362a1d797be601949f762b))
11
+
5
12
  ### [19.4.3](https://github.com/mojaloop/central-ledger/compare/v19.4.2...v19.4.3) (2025-04-07)
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/central-ledger",
3
- "version": "19.4.4-trace.0",
3
+ "version": "19.4.4",
4
4
  "description": "Central ledger hosted by a scheme to record and settle transfers",
5
5
  "license": "Apache-2.0",
6
6
  "author": "ModusBox",
@@ -164,7 +164,7 @@ const positions = batchConfig => async (error, messages) => {
164
164
  const eventStatus = item?.message.metadata.event.state.status === Enum.Events.EventStatus.SUCCESS.status ? Enum.Events.EventStatus.SUCCESS : Enum.Events.EventStatus.FAILURE
165
165
  const produce = () => Kafka.produceGeneralMessage(Config.KAFKA_CONFIG, Producer, Enum.Events.Event.Type.NOTIFICATION, action, item.message, eventStatus, null, item.binItem.span)
166
166
  return (Array.isArray(messages) && messages.length > 1)
167
- ? otel.startConsumerTracingSpan(item.binItem, batchConfig).executeInsideSpanContext(produce)
167
+ ? otel.startConsumerTracingSpan(item.binItem.message, batchConfig).executeInsideSpanContext(produce)
168
168
  : produce()
169
169
  }).concat(
170
170
  // Loop through followup messages and produce position messages for further processing of the transfer
@@ -184,7 +184,7 @@ const positions = batchConfig => async (error, messages) => {
184
184
  Config.KAFKA_CONFIG.EVENT_TYPE_ACTION_TOPIC_MAP?.POSITION?.COMMIT
185
185
  )
186
186
  return (Array.isArray(messages) && messages.length > 1)
187
- ? otel.startConsumerTracingSpan(item.binItem, batchConfig).executeInsideSpanContext(produce)
187
+ ? otel.startConsumerTracingSpan(item.binItem.message, batchConfig).executeInsideSpanContext(produce)
188
188
  : produce()
189
189
  })
190
190
  ))