@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
|
@@ -4286,7 +4286,7 @@ PublishTimeoutLoop_fn = function(publishInterval) {
|
|
|
4286
4286
|
if (isNode)
|
|
4287
4287
|
__privateGet(this, _observer2).unref();
|
|
4288
4288
|
};
|
|
4289
|
-
const STSInstrumentControllerPluginKey = Symbol();
|
|
4289
|
+
const STSInstrumentControllerPluginKey = Symbol("instrumentController");
|
|
4290
4290
|
class AgentInstrumentController extends PublishInstrumentController {
|
|
4291
4291
|
/**
|
|
4292
4292
|
* Create the primary instrument publisher
|
|
@@ -4327,6 +4327,8 @@ const STSInstrumentControllerPlugin = {
|
|
|
4327
4327
|
app.config.globalProperties.$sts.aic = aic;
|
|
4328
4328
|
app.config.globalProperties.$sts[STSInstrumentControllerPluginKey] = aic;
|
|
4329
4329
|
options.logger.debug(chalk$1.cyan(`STSInstrumentControllerPlugin:install: AgentInstrumentController installed into [app.config.globalProperties.$sts] using: [${String(STSInstrumentControllerPluginKey)}].`));
|
|
4330
|
+
const zzz = GetSTSInstrumentController(app);
|
|
4331
|
+
options.logger.debug(zzz);
|
|
4330
4332
|
app.provide(STSInstrumentControllerPluginKey, aic);
|
|
4331
4333
|
options.logger.debug(chalk$1.cyan(`STSInstrumentControllerPlugin:install: AgentInstrumentController installed into 'provide' using: [${String(STSInstrumentControllerPluginKey)}].`));
|
|
4332
4334
|
options.logger.debug(chalk$1.green(`STSInstrumentControllerPlugin:install:End`));
|
|
@@ -5497,23 +5499,16 @@ const _ObservabilityModelUtils = class _ObservabilityModelUtils {
|
|
|
5497
5499
|
...globalServiceDefinitions.services[serviceType].fieldList
|
|
5498
5500
|
];
|
|
5499
5501
|
fieldList.forEach((field) => {
|
|
5500
|
-
console.log(`${field.fieldName} ${field.histo}`);
|
|
5501
|
-
if (field.histo) {
|
|
5502
|
-
console.log(` YES has histo`);
|
|
5503
|
-
} else {
|
|
5504
|
-
console.log(` NO has histo`);
|
|
5505
|
-
}
|
|
5506
5502
|
if (field.quantile) {
|
|
5507
5503
|
_ObservabilityModelUtils.ParseModelNodeWithQuantile(model, data, parseLog, field.gauge, field.fieldName, `${field.fieldName}_quantile`);
|
|
5508
|
-
} else if (field.histo) {
|
|
5509
|
-
console.log(`ParseModelNodeHisto ...............................`);
|
|
5510
|
-
_ObservabilityModelUtils.ParseModelNodeHisto(model, data, parseLog, field.histoGauge, `${field.fieldName}_histo`);
|
|
5511
|
-
console.log(`ParseModelNodeHisto Completed ...............................`);
|
|
5512
5504
|
} else if (field.gaugeType.localeCompare(GaugeTypes.INSTRUMENT_OBJECT) === 0) {
|
|
5513
5505
|
_ObservabilityModelUtils.ParseModelNodeObject(model, data, parseLog, field.gauge, field.fieldName);
|
|
5514
5506
|
} else {
|
|
5515
5507
|
_ObservabilityModelUtils.ParseModelNode(model, data, parseLog, field.gauge, field.fieldName);
|
|
5516
5508
|
}
|
|
5509
|
+
if (field.histo) {
|
|
5510
|
+
_ObservabilityModelUtils.ParseModelNodeHisto(model, data, parseLog, field.histoGauge, `${field.fieldName}_histo`);
|
|
5511
|
+
}
|
|
5517
5512
|
});
|
|
5518
5513
|
}
|
|
5519
5514
|
static GetModelForService(id, data, subscribeToKafka, logger) {
|