@salesforce/lds-instrumentation 1.381.0 → 1.383.0
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.
|
@@ -641,6 +641,12 @@ const PREDICTIVE_DATA_LOADING_SAVE_REQUEST = 'predictive-data-loading-save-reque
|
|
|
641
641
|
* Activity name to track errors from prefetch data for top entities using state managers
|
|
642
642
|
*/
|
|
643
643
|
const PREFETCH_USING_STATE_MANAGERS = 'prefetch-using-state-managers';
|
|
644
|
+
/**
|
|
645
|
+
* W-18812516
|
|
646
|
+
* State Manager metric
|
|
647
|
+
* Counter to track number of state managers created
|
|
648
|
+
*/
|
|
649
|
+
const STATE_CREATED_COUNT = 'state-created-count';
|
|
644
650
|
|
|
645
651
|
var metricKeys = /*#__PURE__*/Object.freeze({
|
|
646
652
|
__proto__: null,
|
|
@@ -683,6 +689,7 @@ var metricKeys = /*#__PURE__*/Object.freeze({
|
|
|
683
689
|
REPRESENTATION_CACHE_MISS_OUT_OF_TTL_DATA_UNCHANGED_COUNT_METRIC_NAME: REPRESENTATION_CACHE_MISS_OUT_OF_TTL_DATA_UNCHANGED_COUNT_METRIC_NAME,
|
|
684
690
|
REPRESENTATION_CACHE_MISS_OUT_OF_TTL_DATA_UNCHANGED_DURATION_METRIC_NAME: REPRESENTATION_CACHE_MISS_OUT_OF_TTL_DATA_UNCHANGED_DURATION_METRIC_NAME,
|
|
685
691
|
STALE_TAG: STALE_TAG,
|
|
692
|
+
STATE_CREATED_COUNT: STATE_CREATED_COUNT,
|
|
686
693
|
STORE_BROADCAST_DURATION: STORE_BROADCAST_DURATION,
|
|
687
694
|
STORE_GRAPHQL_SIZE_COUNT: STORE_GRAPHQL_SIZE_COUNT,
|
|
688
695
|
STORE_INGEST_DURATION: STORE_INGEST_DURATION,
|
|
@@ -860,11 +867,13 @@ function throttle(callback, ms) {
|
|
|
860
867
|
|
|
861
868
|
const NAMESPACE = 'lds';
|
|
862
869
|
const APEX_ADAPTER_NAME = 'getApex';
|
|
870
|
+
const STATE_MANAGERS_NAMESPACE = 'state-managers';
|
|
863
871
|
const NORMALIZED_APEX_ADAPTER_NAME = createMetricsKey('Apex', APEX_ADAPTER_NAME);
|
|
864
872
|
const GRAPHQL_ADAPTER_NAME = 'graphQL';
|
|
865
873
|
const GRAPHQL_RECORDS_KEY = 'GraphQL::graphql__uiapi__query';
|
|
866
874
|
const ldsInstrumentation = getInstrumentation(NAMESPACE);
|
|
867
875
|
const observabilityInstrumentation = getInstrumentation(OBSERVABILITY_NAMESPACE);
|
|
876
|
+
const stateManagersInstrumentation = getInstrumentation(STATE_MANAGERS_NAMESPACE);
|
|
868
877
|
class Instrumentation {
|
|
869
878
|
/**
|
|
870
879
|
* Injected to LDS for Luvio specific instrumentation.
|
|
@@ -1370,6 +1379,9 @@ function incrementNotifyRecordUpdateAvailableDropCount() {
|
|
|
1370
1379
|
function incrementNetworkRateLimitExceededCount() {
|
|
1371
1380
|
incrementCounterMetric(NETWORK_RATE_LIMIT_EXCEEDED_COUNT);
|
|
1372
1381
|
}
|
|
1382
|
+
function incrementStateCreatedCount() {
|
|
1383
|
+
stateManagersInstrumentation.incrementCounter(STATE_CREATED_COUNT);
|
|
1384
|
+
}
|
|
1373
1385
|
function instrumentStoreTrimTask(callback) {
|
|
1374
1386
|
return () => {
|
|
1375
1387
|
ldsInstrumentation.incrementCounter(STORE_TRIM_TASK_COUNT);
|
|
@@ -1566,5 +1578,5 @@ function onIdleDetected(callback) {
|
|
|
1566
1578
|
}
|
|
1567
1579
|
const instrumentation = new Instrumentation();
|
|
1568
1580
|
|
|
1569
|
-
export { Instrumentation, LRUCache, metricKeys as METRIC_KEYS, executeAsyncActivity, handleIngestedNewData, handleOnDataOutOfTtlDurationUpdate, incrementCounterMetric, incrementGetRecordNormalInvokeCount, incrementGetRecordNotifyChangeAllowCount, incrementGetRecordNotifyChangeDropCount, incrementNotifyRecordUpdateAvailableAllowCount, incrementNotifyRecordUpdateAvailableDropCount, instrumentAdapter, instrumentLuvio, instrumentMethods, instrumentStoreMethods, instrumentation, logError, logObjectInfoChanged, onIdleDetected, setInstrumentationHooks, setLdsAdaptersUiapiInstrumentation, setLdsNetworkAdapterInstrumentation, setStoreEventObservers, setupInstrumentation, startAdapterActivity, updatePercentileHistogramMetric };
|
|
1570
|
-
// version: 1.
|
|
1581
|
+
export { Instrumentation, LRUCache, metricKeys as METRIC_KEYS, executeAsyncActivity, handleIngestedNewData, handleOnDataOutOfTtlDurationUpdate, incrementCounterMetric, incrementGetRecordNormalInvokeCount, incrementGetRecordNotifyChangeAllowCount, incrementGetRecordNotifyChangeDropCount, incrementNotifyRecordUpdateAvailableAllowCount, incrementNotifyRecordUpdateAvailableDropCount, incrementStateCreatedCount, instrumentAdapter, instrumentLuvio, instrumentMethods, instrumentStoreMethods, instrumentation, logError, logObjectInfoChanged, onIdleDetected, setInstrumentationHooks, setLdsAdaptersUiapiInstrumentation, setLdsNetworkAdapterInstrumentation, setStoreEventObservers, setupInstrumentation, startAdapterActivity, updatePercentileHistogramMetric };
|
|
1582
|
+
// version: 1.383.0-b9875fc4e1
|
package/dist/types/main.d.ts
CHANGED
|
@@ -87,6 +87,7 @@ export declare function incrementGetRecordNotifyChangeAllowCount(): void;
|
|
|
87
87
|
export declare function incrementGetRecordNotifyChangeDropCount(): void;
|
|
88
88
|
export declare function incrementNotifyRecordUpdateAvailableAllowCount(): void;
|
|
89
89
|
export declare function incrementNotifyRecordUpdateAvailableDropCount(): void;
|
|
90
|
+
export declare function incrementStateCreatedCount(): void;
|
|
90
91
|
/**
|
|
91
92
|
* Sets up instrumentation for @salesforce/lds-adapters-uiapi
|
|
92
93
|
*/
|
|
@@ -219,3 +219,9 @@ export declare const PREDICTIVE_DATA_LOADING_SAVE_REQUEST = "predictive-data-loa
|
|
|
219
219
|
* Activity name to track errors from prefetch data for top entities using state managers
|
|
220
220
|
*/
|
|
221
221
|
export declare const PREFETCH_USING_STATE_MANAGERS = "prefetch-using-state-managers";
|
|
222
|
+
/**
|
|
223
|
+
* W-18812516
|
|
224
|
+
* State Manager metric
|
|
225
|
+
* Counter to track number of state managers created
|
|
226
|
+
*/
|
|
227
|
+
export declare const STATE_CREATED_COUNT = "state-created-count";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-instrumentation",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.383.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Instrumentation utils for Lightning Data Service",
|
|
6
6
|
"main": "dist/ldsInstrumentation.js",
|
|
@@ -33,23 +33,23 @@
|
|
|
33
33
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-instrumentation"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@salesforce/lds-bindings": "^1.
|
|
37
|
-
"@salesforce/lds-default-luvio": "^1.
|
|
38
|
-
"@salesforce/lds-utils-adapters": "^1.
|
|
36
|
+
"@salesforce/lds-bindings": "^1.383.0",
|
|
37
|
+
"@salesforce/lds-default-luvio": "^1.383.0",
|
|
38
|
+
"@salesforce/lds-utils-adapters": "^1.383.0",
|
|
39
39
|
"o11y": "250.7.0",
|
|
40
40
|
"o11y_schema": "256.126.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
44
|
-
"@salesforce/lds-network-adapter": "^1.
|
|
45
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
43
|
+
"@salesforce/lds-adapters-uiapi": "^1.383.0",
|
|
44
|
+
"@salesforce/lds-network-adapter": "^1.383.0",
|
|
45
|
+
"@salesforce/nimbus-plugin-lds": "^1.383.0"
|
|
46
46
|
},
|
|
47
47
|
"luvioBundlesize": [
|
|
48
48
|
{
|
|
49
49
|
"path": "./dist/ldsInstrumentation.js",
|
|
50
50
|
"maxSize": {
|
|
51
51
|
"none": "64 kB",
|
|
52
|
-
"min": "27 kB",
|
|
52
|
+
"min": "27.2 kB",
|
|
53
53
|
"compressed": "12 kB"
|
|
54
54
|
}
|
|
55
55
|
}
|