@salesforce/lds-instrumentation 1.303.0 → 1.305.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.
|
@@ -1321,6 +1321,12 @@ function normalizeAdapterName(adapterName, apiFamily) {
|
|
|
1321
1321
|
}
|
|
1322
1322
|
return apiFamily ? `${apiFamily}.${adapterName}` : adapterName;
|
|
1323
1323
|
}
|
|
1324
|
+
/**
|
|
1325
|
+
* Logs an error to Splunk using o11y
|
|
1326
|
+
*/
|
|
1327
|
+
function logError(err) {
|
|
1328
|
+
ldsInstrumentation.error(err);
|
|
1329
|
+
}
|
|
1324
1330
|
/**
|
|
1325
1331
|
* Calls instrumentation/service telemetry counter
|
|
1326
1332
|
* @param name Name of the metric
|
|
@@ -1557,5 +1563,5 @@ function onIdleDetected(callback) {
|
|
|
1557
1563
|
}
|
|
1558
1564
|
const instrumentation = new Instrumentation();
|
|
1559
1565
|
|
|
1560
|
-
export { Instrumentation, LRUCache, metricKeys as METRIC_KEYS, executeAsyncActivity, handleIngestedNewData, handleOnDataOutOfTtlDurationUpdate, incrementCounterMetric, incrementGetRecordNormalInvokeCount, incrementGetRecordNotifyChangeAllowCount, incrementGetRecordNotifyChangeDropCount, incrementNotifyRecordUpdateAvailableAllowCount, incrementNotifyRecordUpdateAvailableDropCount, instrumentAdapter, instrumentLuvio, instrumentMethods, instrumentStoreMethods, instrumentation, logObjectInfoChanged, onIdleDetected, setInstrumentationHooks, setLdsAdaptersUiapiInstrumentation, setLdsNetworkAdapterInstrumentation, setStoreEventObservers, setupInstrumentation, startAdapterActivity, updatePercentileHistogramMetric };
|
|
1561
|
-
// version: 1.
|
|
1566
|
+
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 };
|
|
1567
|
+
// version: 1.305.0-ec970f4bea
|
package/dist/types/main.d.ts
CHANGED
|
@@ -67,6 +67,10 @@ export declare function instrumentMethods(obj: any, methods: {
|
|
|
67
67
|
methodName: string;
|
|
68
68
|
metricKey: string;
|
|
69
69
|
}[]): void;
|
|
70
|
+
/**
|
|
71
|
+
* Logs an error to Splunk using o11y
|
|
72
|
+
*/
|
|
73
|
+
export declare function logError(err: Error | string): void;
|
|
70
74
|
/**
|
|
71
75
|
* Calls instrumentation/service telemetry counter
|
|
72
76
|
* @param name Name of the metric
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-instrumentation",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.305.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,17 +33,17 @@
|
|
|
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.305.0",
|
|
37
|
+
"@salesforce/lds-default-luvio": "^1.305.0",
|
|
38
|
+
"@salesforce/lds-utils-adapters": "^1.305.0",
|
|
39
39
|
"o11y": "250.7.0",
|
|
40
40
|
"o11y_schema": "248.40.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
44
|
-
"@salesforce/lds-adapters-uiapi-mobile": "^1.
|
|
45
|
-
"@salesforce/lds-network-adapter": "^1.
|
|
46
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
43
|
+
"@salesforce/lds-adapters-uiapi": "^1.305.0",
|
|
44
|
+
"@salesforce/lds-adapters-uiapi-mobile": "^1.305.0",
|
|
45
|
+
"@salesforce/lds-network-adapter": "^1.305.0",
|
|
46
|
+
"@salesforce/nimbus-plugin-lds": "^1.305.0"
|
|
47
47
|
},
|
|
48
48
|
"luvioBundlesize": [
|
|
49
49
|
{
|