@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.
@@ -1361,12 +1361,29 @@ var ServiceRegistry = class _ServiceRegistry {
1361
1361
  "Tracks remote dependency instances for runtime heartbeat monitoring."
1362
1362
  ).doOn("meta.service_registry.dependee_registered");
1363
1363
  const normalizeServiceInstancesFromSync = (ctx) => this.normalizeServiceInstancesFromSync(ctx);
1364
+ const getLocalTraceContext = () => ({
1365
+ localServiceName: this.serviceName,
1366
+ localServiceInstanceId: this.serviceInstanceId
1367
+ });
1364
1368
  CadenzaService.createMetaTask("Split service instances", function* (ctx) {
1365
1369
  const serviceInstances = normalizeServiceInstancesFromSync(ctx);
1366
1370
  if (serviceInstances.length === 0) {
1367
1371
  return;
1368
1372
  }
1369
1373
  for (const serviceInstance of serviceInstances) {
1374
+ const { localServiceName, localServiceInstanceId } = getLocalTraceContext();
1375
+ if (shouldTraceIotDbRegistryPath(
1376
+ localServiceName,
1377
+ serviceInstance.serviceName
1378
+ )) {
1379
+ console.log("[CADENZA_REGISTRY_DEBUG] split_service_instance", {
1380
+ localServiceName,
1381
+ localServiceInstanceId,
1382
+ targetServiceName: serviceInstance.serviceName,
1383
+ targetServiceInstanceId: serviceInstance.uuid,
1384
+ transports: summarizeTransportDescriptors(serviceInstance.transports)
1385
+ });
1386
+ }
1370
1387
  yield { serviceInstance };
1371
1388
  }
1372
1389
  }).doOn(
@@ -1624,6 +1641,21 @@ var ServiceRegistry = class _ServiceRegistry {
1624
1641
  const serviceInstances = this.normalizeServiceInstancesFromSync(
1625
1642
  inquiryResult
1626
1643
  );
1644
+ if (shouldTraceIotDbRegistryPath(this.serviceName, "IotDbService")) {
1645
+ const tracedInstances = serviceInstances.filter((instance) => instance.serviceName === "IotDbService").map((instance) => ({
1646
+ uuid: instance.uuid,
1647
+ isActive: instance.isActive,
1648
+ isNonResponsive: instance.isNonResponsive,
1649
+ isBlocked: instance.isBlocked,
1650
+ transports: summarizeTransportDescriptors(instance.transports)
1651
+ }));
1652
+ console.log("[CADENZA_REGISTRY_DEBUG] full_sync_instances", {
1653
+ localServiceName: this.serviceName,
1654
+ localServiceInstanceId: this.serviceInstanceId,
1655
+ totalServiceInstances: serviceInstances.length,
1656
+ tracedInstances
1657
+ });
1658
+ }
1627
1659
  return {
1628
1660
  ...ctx,
1629
1661
  signalToTaskMaps,