@nsshunt/stsobservability 1.0.8 → 1.0.10
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/stsobservability.mjs +6 -11
- package/dist/stsobservability.mjs.map +1 -1
- package/dist/stsobservability.umd.js +6 -11
- package/dist/stsobservability.umd.js.map +1 -1
- package/package.json +1 -1
- package/types/publish/agentinstrumentcontroller.d.ts.map +1 -1
- package/types/publish/stsPluginKeys.d.ts.map +1 -1
- package/types/subscribe/observabilitymodelutils.d.ts.map +1 -1
|
@@ -4282,7 +4282,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
4282
4282
|
if (isNode)
|
|
4283
4283
|
__privateGet(this, _observer2).unref();
|
|
4284
4284
|
};
|
|
4285
|
-
const STSInstrumentControllerPluginKey = Symbol();
|
|
4285
|
+
const STSInstrumentControllerPluginKey = Symbol("instrumentController");
|
|
4286
4286
|
class AgentInstrumentController extends PublishInstrumentController {
|
|
4287
4287
|
/**
|
|
4288
4288
|
* Create the primary instrument publisher
|
|
@@ -4323,6 +4323,8 @@ var __privateMethod = (obj, member, method) => {
|
|
|
4323
4323
|
app.config.globalProperties.$sts.aic = aic;
|
|
4324
4324
|
app.config.globalProperties.$sts[STSInstrumentControllerPluginKey] = aic;
|
|
4325
4325
|
options.logger.debug(chalk$1.cyan(`STSInstrumentControllerPlugin:install: AgentInstrumentController installed into [app.config.globalProperties.$sts] using: [${String(STSInstrumentControllerPluginKey)}].`));
|
|
4326
|
+
const zzz = GetSTSInstrumentController(app);
|
|
4327
|
+
options.logger.debug(zzz);
|
|
4326
4328
|
app.provide(STSInstrumentControllerPluginKey, aic);
|
|
4327
4329
|
options.logger.debug(chalk$1.cyan(`STSInstrumentControllerPlugin:install: AgentInstrumentController installed into 'provide' using: [${String(STSInstrumentControllerPluginKey)}].`));
|
|
4328
4330
|
options.logger.debug(chalk$1.green(`STSInstrumentControllerPlugin:install:End`));
|
|
@@ -5493,23 +5495,16 @@ var __privateMethod = (obj, member, method) => {
|
|
|
5493
5495
|
...globalServiceDefinitions.services[serviceType].fieldList
|
|
5494
5496
|
];
|
|
5495
5497
|
fieldList.forEach((field) => {
|
|
5496
|
-
console.log(`${field.fieldName} ${field.histo}`);
|
|
5497
|
-
if (field.histo) {
|
|
5498
|
-
console.log(` YES has histo`);
|
|
5499
|
-
} else {
|
|
5500
|
-
console.log(` NO has histo`);
|
|
5501
|
-
}
|
|
5502
5498
|
if (field.quantile) {
|
|
5503
5499
|
_ObservabilityModelUtils.ParseModelNodeWithQuantile(model, data, parseLog, field.gauge, field.fieldName, `${field.fieldName}_quantile`);
|
|
5504
|
-
} else if (field.histo) {
|
|
5505
|
-
console.log(`ParseModelNodeHisto ...............................`);
|
|
5506
|
-
_ObservabilityModelUtils.ParseModelNodeHisto(model, data, parseLog, field.histoGauge, `${field.fieldName}_histo`);
|
|
5507
|
-
console.log(`ParseModelNodeHisto Completed ...............................`);
|
|
5508
5500
|
} else if (field.gaugeType.localeCompare(GaugeTypes.INSTRUMENT_OBJECT) === 0) {
|
|
5509
5501
|
_ObservabilityModelUtils.ParseModelNodeObject(model, data, parseLog, field.gauge, field.fieldName);
|
|
5510
5502
|
} else {
|
|
5511
5503
|
_ObservabilityModelUtils.ParseModelNode(model, data, parseLog, field.gauge, field.fieldName);
|
|
5512
5504
|
}
|
|
5505
|
+
if (field.histo) {
|
|
5506
|
+
_ObservabilityModelUtils.ParseModelNodeHisto(model, data, parseLog, field.histoGauge, `${field.fieldName}_histo`);
|
|
5507
|
+
}
|
|
5513
5508
|
});
|
|
5514
5509
|
}
|
|
5515
5510
|
static GetModelForService(id, data, subscribeToKafka, logger) {
|