@cadenza.io/service 2.17.78 → 2.17.79

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.mjs CHANGED
@@ -1310,12 +1310,29 @@ var ServiceRegistry = class _ServiceRegistry {
1310
1310
  "Tracks remote dependency instances for runtime heartbeat monitoring."
1311
1311
  ).doOn("meta.service_registry.dependee_registered");
1312
1312
  const normalizeServiceInstancesFromSync = (ctx) => this.normalizeServiceInstancesFromSync(ctx);
1313
+ const getLocalTraceContext = () => ({
1314
+ localServiceName: this.serviceName,
1315
+ localServiceInstanceId: this.serviceInstanceId
1316
+ });
1313
1317
  CadenzaService.createMetaTask("Split service instances", function* (ctx) {
1314
1318
  const serviceInstances = normalizeServiceInstancesFromSync(ctx);
1315
1319
  if (serviceInstances.length === 0) {
1316
1320
  return;
1317
1321
  }
1318
1322
  for (const serviceInstance of serviceInstances) {
1323
+ const { localServiceName, localServiceInstanceId } = getLocalTraceContext();
1324
+ if (shouldTraceIotDbRegistryPath(
1325
+ localServiceName,
1326
+ serviceInstance.serviceName
1327
+ )) {
1328
+ console.log("[CADENZA_REGISTRY_DEBUG] split_service_instance", {
1329
+ localServiceName,
1330
+ localServiceInstanceId,
1331
+ targetServiceName: serviceInstance.serviceName,
1332
+ targetServiceInstanceId: serviceInstance.uuid,
1333
+ transports: summarizeTransportDescriptors(serviceInstance.transports)
1334
+ });
1335
+ }
1319
1336
  yield { serviceInstance };
1320
1337
  }
1321
1338
  }).doOn(
@@ -1573,6 +1590,21 @@ var ServiceRegistry = class _ServiceRegistry {
1573
1590
  const serviceInstances = this.normalizeServiceInstancesFromSync(
1574
1591
  inquiryResult
1575
1592
  );
1593
+ if (shouldTraceIotDbRegistryPath(this.serviceName, "IotDbService")) {
1594
+ const tracedInstances = serviceInstances.filter((instance) => instance.serviceName === "IotDbService").map((instance) => ({
1595
+ uuid: instance.uuid,
1596
+ isActive: instance.isActive,
1597
+ isNonResponsive: instance.isNonResponsive,
1598
+ isBlocked: instance.isBlocked,
1599
+ transports: summarizeTransportDescriptors(instance.transports)
1600
+ }));
1601
+ console.log("[CADENZA_REGISTRY_DEBUG] full_sync_instances", {
1602
+ localServiceName: this.serviceName,
1603
+ localServiceInstanceId: this.serviceInstanceId,
1604
+ totalServiceInstances: serviceInstances.length,
1605
+ tracedInstances
1606
+ });
1607
+ }
1576
1608
  return {
1577
1609
  ...ctx,
1578
1610
  signalToTaskMaps,