@lark-apaas/observable 1.0.4-alpha.1 → 1.0.4-alpha.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/index.cjs +13 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8842,7 +8842,7 @@ __name(hrTimeToNanosNumber, "hrTimeToNanosNumber");
|
|
|
8842
8842
|
|
|
8843
8843
|
// package.json
|
|
8844
8844
|
var package_default = {
|
|
8845
|
-
version: "1.0.4-alpha.
|
|
8845
|
+
version: "1.0.4-alpha.2"};
|
|
8846
8846
|
|
|
8847
8847
|
// src/const.ts
|
|
8848
8848
|
var AppEnv = /* @__PURE__ */ (function(AppEnv2) {
|
|
@@ -8882,40 +8882,40 @@ var SnipingConfigManager = class _SnipingConfigManager {
|
|
|
8882
8882
|
static CONFIG_HEADER_NAME = "x-force-observability-pointkill";
|
|
8883
8883
|
static config = {
|
|
8884
8884
|
logs: {
|
|
8885
|
-
|
|
8885
|
+
modules: []
|
|
8886
8886
|
},
|
|
8887
8887
|
traces: {
|
|
8888
|
-
|
|
8888
|
+
modules: []
|
|
8889
8889
|
},
|
|
8890
8890
|
metrics: {
|
|
8891
|
-
|
|
8891
|
+
modules: []
|
|
8892
8892
|
}
|
|
8893
8893
|
};
|
|
8894
8894
|
static getConfig() {
|
|
8895
8895
|
return this.config;
|
|
8896
8896
|
}
|
|
8897
8897
|
static getLogConfig() {
|
|
8898
|
-
return this.config.logs.
|
|
8898
|
+
return this.config.logs.modules;
|
|
8899
8899
|
}
|
|
8900
8900
|
static getTraceConfig() {
|
|
8901
|
-
return this.config.traces.
|
|
8901
|
+
return this.config.traces.modules;
|
|
8902
8902
|
}
|
|
8903
8903
|
static getMetricConfig() {
|
|
8904
|
-
return this.config.metrics.
|
|
8904
|
+
return this.config.metrics.modules;
|
|
8905
8905
|
}
|
|
8906
8906
|
static setConfig(configStr) {
|
|
8907
8907
|
if (!configStr) return;
|
|
8908
8908
|
try {
|
|
8909
8909
|
const res = JSON.parse(configStr);
|
|
8910
8910
|
const { logs: logs2, traces, metrics } = res ?? {};
|
|
8911
|
-
if (Array.isArray(logs2?.
|
|
8912
|
-
this.config.logs.
|
|
8911
|
+
if (Array.isArray(logs2?.modules)) {
|
|
8912
|
+
this.config.logs.modules = logs2.modules;
|
|
8913
8913
|
}
|
|
8914
|
-
if (Array.isArray(traces?.
|
|
8915
|
-
this.config.traces.
|
|
8914
|
+
if (Array.isArray(traces?.modules)) {
|
|
8915
|
+
this.config.traces.modules = traces.modules;
|
|
8916
8916
|
}
|
|
8917
|
-
if (Array.isArray(metrics?.
|
|
8918
|
-
this.config.metrics.
|
|
8917
|
+
if (Array.isArray(metrics?.modules)) {
|
|
8918
|
+
this.config.metrics.modules = metrics.modules;
|
|
8919
8919
|
}
|
|
8920
8920
|
} catch (error) {
|
|
8921
8921
|
console.error("Failed to parse sniping config:", error);
|