@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.cjs
CHANGED
|
@@ -17213,7 +17213,7 @@ var ConfigClient = class {
|
|
|
17213
17213
|
}
|
|
17214
17214
|
const metrics = this._parent?._metrics;
|
|
17215
17215
|
if (metrics) {
|
|
17216
|
-
metrics.record("config.resolutions", 1, "resolutions", {
|
|
17216
|
+
metrics.record("config.resolutions", 1, "resolutions", { config: id });
|
|
17217
17217
|
}
|
|
17218
17218
|
if (model) {
|
|
17219
17219
|
return new model(values);
|
|
@@ -17351,7 +17351,7 @@ var ConfigClient = class {
|
|
|
17351
17351
|
if (JSON.stringify(oldVal) !== JSON.stringify(newVal)) {
|
|
17352
17352
|
const metrics = this._parent?._metrics;
|
|
17353
17353
|
if (metrics) {
|
|
17354
|
-
metrics.record("config.changes", 1, "changes", {
|
|
17354
|
+
metrics.record("config.changes", 1, "changes", { config: cfgKey });
|
|
17355
17355
|
}
|
|
17356
17356
|
const event = {
|
|
17357
17357
|
configId: cfgKey,
|
|
@@ -18157,14 +18157,14 @@ var FlagsClient = class {
|
|
|
18157
18157
|
const metrics2 = this._parent?._metrics;
|
|
18158
18158
|
if (metrics2) {
|
|
18159
18159
|
metrics2.record("flags.cache_hits", 1, "hits");
|
|
18160
|
-
metrics2.record("flags.evaluations", 1, "evaluations", {
|
|
18160
|
+
metrics2.record("flags.evaluations", 1, "evaluations", { flag: key });
|
|
18161
18161
|
}
|
|
18162
18162
|
return cachedValue;
|
|
18163
18163
|
}
|
|
18164
18164
|
const metrics = this._parent?._metrics;
|
|
18165
18165
|
if (metrics) {
|
|
18166
18166
|
metrics.record("flags.cache_misses", 1, "misses");
|
|
18167
|
-
metrics.record("flags.evaluations", 1, "evaluations", {
|
|
18167
|
+
metrics.record("flags.evaluations", 1, "evaluations", { flag: key });
|
|
18168
18168
|
}
|
|
18169
18169
|
const flagDef = this._flagStore[key];
|
|
18170
18170
|
if (flagDef === void 0) {
|
|
@@ -18899,7 +18899,7 @@ var LoggingClient = class {
|
|
|
18899
18899
|
}
|
|
18900
18900
|
const metrics = this._parent?._metrics;
|
|
18901
18901
|
if (metrics) {
|
|
18902
|
-
metrics.record("logging.level_changes", 1, "changes", {
|
|
18902
|
+
metrics.record("logging.level_changes", 1, "changes", { logger: logger.id });
|
|
18903
18903
|
}
|
|
18904
18904
|
for (const adapter of this._adapters) {
|
|
18905
18905
|
try {
|