@smplkit/sdk 1.3.28 → 1.3.30
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 +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17175,7 +17175,7 @@ var ConfigClient = class {
|
|
|
17175
17175
|
}
|
|
17176
17176
|
const metrics = this._parent?._metrics;
|
|
17177
17177
|
if (metrics) {
|
|
17178
|
-
metrics.record("config.resolutions", 1, "resolutions", {
|
|
17178
|
+
metrics.record("config.resolutions", 1, "resolutions", { config: id });
|
|
17179
17179
|
}
|
|
17180
17180
|
if (model) {
|
|
17181
17181
|
return new model(values);
|
|
@@ -17313,7 +17313,7 @@ var ConfigClient = class {
|
|
|
17313
17313
|
if (JSON.stringify(oldVal) !== JSON.stringify(newVal)) {
|
|
17314
17314
|
const metrics = this._parent?._metrics;
|
|
17315
17315
|
if (metrics) {
|
|
17316
|
-
metrics.record("config.changes", 1, "changes", {
|
|
17316
|
+
metrics.record("config.changes", 1, "changes", { config: cfgKey });
|
|
17317
17317
|
}
|
|
17318
17318
|
const event = {
|
|
17319
17319
|
configId: cfgKey,
|
|
@@ -18119,14 +18119,14 @@ var FlagsClient = class {
|
|
|
18119
18119
|
const metrics2 = this._parent?._metrics;
|
|
18120
18120
|
if (metrics2) {
|
|
18121
18121
|
metrics2.record("flags.cache_hits", 1, "hits");
|
|
18122
|
-
metrics2.record("flags.evaluations", 1, "evaluations", {
|
|
18122
|
+
metrics2.record("flags.evaluations", 1, "evaluations", { flag: key });
|
|
18123
18123
|
}
|
|
18124
18124
|
return cachedValue;
|
|
18125
18125
|
}
|
|
18126
18126
|
const metrics = this._parent?._metrics;
|
|
18127
18127
|
if (metrics) {
|
|
18128
18128
|
metrics.record("flags.cache_misses", 1, "misses");
|
|
18129
|
-
metrics.record("flags.evaluations", 1, "evaluations", {
|
|
18129
|
+
metrics.record("flags.evaluations", 1, "evaluations", { flag: key });
|
|
18130
18130
|
}
|
|
18131
18131
|
const flagDef = this._flagStore[key];
|
|
18132
18132
|
if (flagDef === void 0) {
|
|
@@ -18861,7 +18861,7 @@ var LoggingClient = class {
|
|
|
18861
18861
|
}
|
|
18862
18862
|
const metrics = this._parent?._metrics;
|
|
18863
18863
|
if (metrics) {
|
|
18864
|
-
metrics.record("logging.level_changes", 1, "changes", {
|
|
18864
|
+
metrics.record("logging.level_changes", 1, "changes", { logger: logger.id });
|
|
18865
18865
|
}
|
|
18866
18866
|
for (const adapter of this._adapters) {
|
|
18867
18867
|
try {
|