@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.
- package/dist/es/builders/engineEnvBuilder.js +8 -9
- package/dist/es/builders/engineEnvBuilder.js.map +1 -1
- package/dist/es/builders/helper/envHelpers.js +12 -20
- package/dist/es/builders/helper/envHelpers.js.map +1 -1
- package/dist/es/defaults.js +17 -0
- package/dist/es/defaults.js.map +1 -1
- package/dist/es/models/IEngineEnvironmentVariables.js.map +1 -1
- package/dist/es/models/engineEnvironmentVariableKeys.js +5 -2
- package/dist/es/models/engineEnvironmentVariableKeys.js.map +1 -1
- package/dist/es/node.js +1 -1
- package/dist/es/node.js.map +1 -1
- package/dist/types/builders/helper/envHelpers.d.ts +31 -4
- package/dist/types/defaults.d.ts +8 -0
- package/dist/types/models/IEngineEnvironmentVariables.d.ts +29 -6
- package/docs/changelog.md +45 -39
- package/docs/reference/index.md +1 -0
- package/docs/reference/interfaces/IEngineEnvironmentVariables.md +66 -11
- package/docs/reference/variables/DEFAULT_HEALTH_EXCLUDE_CLONE_COMPONENTS.md +9 -0
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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"),
|