@twin.org/node-core 0.9.5-next.1 → 0.9.5-next.2
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 +78 -2
- package/dist/es/builders/engineEnvBuilder.js.map +1 -1
- package/dist/es/defaults.js +34 -0
- package/dist/es/defaults.js.map +1 -1
- package/dist/es/models/IEngineEnvironmentVariables.js.map +1 -1
- package/dist/es/models/engineEnvironmentVariableKeys.js +7 -0
- 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/defaults.d.ts +19 -0
- package/dist/types/models/IEngineEnvironmentVariables.d.ts +38 -0
- package/docs/changelog.md +7 -0
- package/docs/reference/index.md +4 -0
- package/docs/reference/interfaces/IEngineEnvironmentVariables.md +62 -0
- package/docs/reference/variables/COMPONENT_FACTORY_TYPE_NAME.md +5 -0
- package/docs/reference/variables/DEFAULT_TRACING_FACADE_COMPONENT_EXCLUDE_TYPES.md +8 -0
- package/docs/reference/variables/DEFAULT_TRACING_FACADE_FACTORIES.md +5 -0
- package/docs/reference/variables/TRACING_FACADE_NAME.md +5 -0
- package/package.json +2 -1
package/docs/reference/index.md
CHANGED
|
@@ -37,6 +37,10 @@
|
|
|
37
37
|
- [CONTEXT\_ID\_HANDLER\_FEATURE\_DID](variables/CONTEXT_ID_HANDLER_FEATURE_DID.md)
|
|
38
38
|
- [CONTEXT\_ID\_HANDLER\_FEATURE\_TENANT](variables/CONTEXT_ID_HANDLER_FEATURE_TENANT.md)
|
|
39
39
|
- [DEFAULT\_HEALTH\_EXCLUDE\_CLONE\_COMPONENTS](variables/DEFAULT_HEALTH_EXCLUDE_CLONE_COMPONENTS.md)
|
|
40
|
+
- [TRACING\_FACADE\_NAME](variables/TRACING_FACADE_NAME.md)
|
|
41
|
+
- [COMPONENT\_FACTORY\_TYPE\_NAME](variables/COMPONENT_FACTORY_TYPE_NAME.md)
|
|
42
|
+
- [DEFAULT\_TRACING\_FACADE\_FACTORIES](variables/DEFAULT_TRACING_FACADE_FACTORIES.md)
|
|
43
|
+
- [DEFAULT\_TRACING\_FACADE\_COMPONENT\_EXCLUDE\_TYPES](variables/DEFAULT_TRACING_FACADE_COMPONENT_EXCLUDE_TYPES.md)
|
|
40
44
|
- [ModuleProtocol](variables/ModuleProtocol.md)
|
|
41
45
|
|
|
42
46
|
## Functions
|
|
@@ -1191,6 +1191,68 @@ The type of tracing connector, comma-separated for multiple: entity-storage, ope
|
|
|
1191
1191
|
|
|
1192
1192
|
***
|
|
1193
1193
|
|
|
1194
|
+
### facade? {#facade}
|
|
1195
|
+
|
|
1196
|
+
> `optional` **facade?**: `string`
|
|
1197
|
+
|
|
1198
|
+
The type of facade to activate, comma-separated for multiple: tracing. When this is not set no
|
|
1199
|
+
facades are activated.
|
|
1200
|
+
|
|
1201
|
+
***
|
|
1202
|
+
|
|
1203
|
+
### tracingFacadeFactories? {#tracingfacadefactories}
|
|
1204
|
+
|
|
1205
|
+
> `optional` **tracingFacadeFactories?**: `string`
|
|
1206
|
+
|
|
1207
|
+
The factories the tracing facade is activated on, as a comma separated list of factory type names
|
|
1208
|
+
e.g. "component,vault", replacing the default set rather than adding to it. Only applies when the
|
|
1209
|
+
tracing facade is activated.
|
|
1210
|
+
|
|
1211
|
+
***
|
|
1212
|
+
|
|
1213
|
+
### tracingFacadeComponentExcludeTypes? {#tracingfacadecomponentexcludetypes}
|
|
1214
|
+
|
|
1215
|
+
> `optional` **tracingFacadeComponentExcludeTypes?**: `string`
|
|
1216
|
+
|
|
1217
|
+
Additional instance types the tracing facade is not applied to in the component factory, as a comma
|
|
1218
|
+
separated list of regular expressions matched anywhere in the type name e.g. "^my-tracing-service$".
|
|
1219
|
+
These extend the types which are always excluded, "tracing", "telemetry", "metrics", "logging" and
|
|
1220
|
+
"platform", they do not replace them.
|
|
1221
|
+
|
|
1222
|
+
***
|
|
1223
|
+
|
|
1224
|
+
### tracingFacadeExcludeParams? {#tracingfacadeexcludeparams}
|
|
1225
|
+
|
|
1226
|
+
> `optional` **tracingFacadeExcludeParams?**: `string`
|
|
1227
|
+
|
|
1228
|
+
Additional parameter names the tracing facade does not record, as a comma separated list
|
|
1229
|
+
e.g. "ssn,accountNumber". These extend the names which are always excluded, they do not
|
|
1230
|
+
replace them.
|
|
1231
|
+
|
|
1232
|
+
***
|
|
1233
|
+
|
|
1234
|
+
### tracingFacadeExcludeMethods? {#tracingfacadeexcludemethods}
|
|
1235
|
+
|
|
1236
|
+
> `optional` **tracingFacadeExcludeMethods?**: `string`
|
|
1237
|
+
|
|
1238
|
+
Additional method names the tracing facade does not record a span for, as a comma separated
|
|
1239
|
+
list e.g. "health,ping". These extend the names which are always excluded, they do not
|
|
1240
|
+
replace them.
|
|
1241
|
+
|
|
1242
|
+
***
|
|
1243
|
+
|
|
1244
|
+
### tracingFacadeIncludeObjects? {#tracingfacadeincludeobjects}
|
|
1245
|
+
|
|
1246
|
+
> `optional` **tracingFacadeIncludeObjects?**: `string`
|
|
1247
|
+
|
|
1248
|
+
The object values the tracing facade records, as a comma separated list of patterns matched
|
|
1249
|
+
against the end of "parameter" or "parameter.property", where the returned value is named
|
|
1250
|
+
"resolved" e.g. "filter.id,resolved.id". Naming the parameter records the whole object
|
|
1251
|
+
including any secrets it holds, naming a property records only that property. Object
|
|
1252
|
+
parameters and returned objects are omitted unless matched here.
|
|
1253
|
+
|
|
1254
|
+
***
|
|
1255
|
+
|
|
1194
1256
|
### openTelemetryTracingTracerName? {#opentelemetrytracingtracername}
|
|
1195
1257
|
|
|
1196
1258
|
> `optional` **openTelemetryTracingTracerName?**: `string`
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Variable: DEFAULT\_TRACING\_FACADE\_COMPONENT\_EXCLUDE\_TYPES
|
|
2
|
+
|
|
3
|
+
> `const` **DEFAULT\_TRACING\_FACADE\_COMPONENT\_EXCLUDE\_TYPES**: `string`[]
|
|
4
|
+
|
|
5
|
+
The instance types the tracing facade is never applied to in the component factory, matched as
|
|
6
|
+
regular expressions anywhere in the type name. The facade resolves the tracing and logging
|
|
7
|
+
components while recording a span, so wrapping those results in an endless call chain. The
|
|
8
|
+
remaining patterns cover the high volume infrastructure services whose spans carry little value.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/node-core",
|
|
3
|
-
"version": "0.9.5-next.
|
|
3
|
+
"version": "0.9.5-next.2",
|
|
4
4
|
"description": "TWIN Node Core for serving APIs using the specified configuration",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"@twin.org/standards-w3c-odrl": "next",
|
|
43
43
|
"@twin.org/telemetry-connector-opentelemetry": "next",
|
|
44
44
|
"@twin.org/tracing-connector-opentelemetry": "next",
|
|
45
|
+
"@twin.org/tracing-facades": "next",
|
|
45
46
|
"@twin.org/tracing-models": "next",
|
|
46
47
|
"@twin.org/vault-models": "next",
|
|
47
48
|
"@twin.org/wallet-connector-entity-storage": "next",
|