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