@twin.org/node-core 0.9.4-next.5 → 0.9.5-next.1

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.
@@ -8,7 +8,7 @@ import { AttestationComponentType, AttestationConnectorType, AuditableItemGraphC
8
8
  import { OpenTelemetryExporterTypes } from "@twin.org/logging-connector-opentelemetry";
9
9
  import { OpenTelemetryReaderTypes } from "@twin.org/telemetry-connector-opentelemetry";
10
10
  import { OpenTelemetryProcessorTypes } from "@twin.org/tracing-connector-opentelemetry";
11
- import { CONTEXT_ID_HANDLER_FEATURE_DID, CONTEXT_ID_HANDLER_FEATURE_TENANT } from "../defaults.js";
11
+ import { CONTEXT_ID_HANDLER_FEATURE_DID, CONTEXT_ID_HANDLER_FEATURE_TENANT, DEFAULT_HEALTH_EXCLUDE_CLONE_COMPONENTS } from "../defaults.js";
12
12
  import { isAuthEntityStorageRequired } from "./engineServerEnvBuilder.js";
13
13
  import { commaSeparatedListToArray, envArray, envBoolean, envChoice, envCount, envDateTime, envInteger, envListToArray, envMinToMs, envMinutes, envMs, envSecToMs, envSeconds } from "./helper/envHelpers.js";
14
14
  /**
@@ -560,7 +560,9 @@ async function configureTelemetry(coreConfig, envVars) {
560
560
  batchSize: envCount(envVars, "telemetryBatchSize"),
561
561
  batchIntervalMs: envSecToMs(envVars, "telemetryBatchFlushInterval"),
562
562
  maxCacheSize: envCount(envVars, "telemetryMaxCacheSize"),
563
- mutexTimeoutMs: envMs(envVars, "telemetryMutexTimeout"),
563
+ flushTimeoutMs: envMs(envVars, "telemetryFlushTimeout"),
564
+ taskCoalesceMs: envMs(envVars, "telemetryTaskCoalesce"),
565
+ taskStallTimeoutMs: envMs(envVars, "telemetryTaskStallTimeout"),
564
566
  metricDefinitionCacheCapacity: envCount(envVars, "telemetryMetricDefinitionCacheCapacity"),
565
567
  metricDefinitionCacheTtiMs: envMs(envVars, "telemetryMetricDefinitionCacheTtiMs")
566
568
  }
@@ -663,12 +665,7 @@ async function configureTracing(coreConfig, envVars) {
663
665
  }
664
666
  else if (tracingConnectorType === TracingConnectorType.EntityStorage) {
665
667
  coreConfig.types.tracingConnector.push({
666
- type: TracingConnectorType.EntityStorage,
667
- options: {
668
- config: {
669
- mutexTimeoutMs: envMs(envVars, "tracingMutexTimeout")
670
- }
671
- }
668
+ type: TracingConnectorType.EntityStorage
672
669
  });
673
670
  additionalConnectorCount++;
674
671
  }
@@ -759,7 +756,8 @@ async function configureHealth(coreConfig, envVars) {
759
756
  config: {
760
757
  healthCheckInterval: envSecToMs(envVars, "healthInterval"),
761
758
  healthCheckApplicationInterval: envSecToMs(envVars, "healthApplicationInterval"),
762
- initialInterval: envSecToMs(envVars, "healthStartupInterval")
759
+ initialInterval: envSecToMs(envVars, "healthStartupInterval"),
760
+ excludeCloneComponents: envListToArray(envVars, "healthExcludeCloneComponents", undefined, DEFAULT_HEALTH_EXCLUDE_CLONE_COMPONENTS)
763
761
  }
764
762
  },
765
763
  cloneMode: EngineCloneMode.Never
@@ -1098,6 +1096,7 @@ async function configureImmutableProof(coreConfig, envVars) {
1098
1096
  taskRetryCount: envCount(envVars, "immutableProofTaskRetryCount"),
1099
1097
  taskRetryInterval: envSecToMs(envVars, "immutableProofTaskRetryInterval"),
1100
1098
  taskFailureRetainFor: envMinToMs(envVars, "immutableProofTaskFailureRetainFor"),
1099
+ taskWorkerIdleTimeout: envSecToMs(envVars, "immutableProofTaskWorkerIdleTimeout"),
1101
1100
  sweepIntervalMinutes: envMinutes(envVars, "immutableProofSweepInterval"),
1102
1101
  sweepStaleThresholdMs: envMinToMs(envVars, "immutableProofSweepStaleThreshold"),
1103
1102
  sweepMaxAttempts: envCount(envVars, "immutableProofSweepMaxAttempts"),