@salesforce/lds-instrumentation 1.284.0 → 1.285.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.
@@ -1002,11 +1002,15 @@ async function executeAsyncActivity(name, execute, options) {
1002
1002
  return await execute(act);
1003
1003
  }
1004
1004
  catch (err) {
1005
- act.error(err,
1006
1005
  // eslint-disable-next-line @salesforce/lds/no-optional-chaining
1007
- (_a = normalizedOptions.errorPayload) === null || _a === void 0 ? void 0 : _a.schema,
1008
- // eslint-disable-next-line @salesforce/lds/no-optional-chaining
1009
- (_b = normalizedOptions.errorPayload) === null || _b === void 0 ? void 0 : _b.payload);
1006
+ if ((_a = normalizedOptions.errorPayload) === null || _a === void 0 ? void 0 : _a.schema) {
1007
+ act.error(err, normalizedOptions.errorPayload.schema,
1008
+ // eslint-disable-next-line @salesforce/lds/no-optional-chaining
1009
+ (_b = normalizedOptions.errorPayload) === null || _b === void 0 ? void 0 : _b.payload);
1010
+ }
1011
+ else {
1012
+ act.error(err, normalizedOptions.ERROR_SCOPE);
1013
+ }
1010
1014
  isError = true;
1011
1015
  }
1012
1016
  finally {
@@ -1554,4 +1558,4 @@ function onIdleDetected(callback) {
1554
1558
  const instrumentation = new Instrumentation();
1555
1559
 
1556
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 };
1557
- // version: 1.284.0-a7e8dc51c
1561
+ // version: 1.285.0-67d4d6869
@@ -47,6 +47,7 @@ export interface RequestCorrelator {
47
47
  export declare function startAdapterActivity(instrumentation: o11yInstrumentation, adapterName: string, requestContext?: AdapterRequestContext): Activity;
48
48
  export type ExecuteAsyncActivityOptions = {
49
49
  LOG_ERROR_ONLY?: boolean;
50
+ ERROR_SCOPE?: string;
50
51
  };
51
52
  /**
52
53
  * Starts an async o11y Activity using ldsInstrumentation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-instrumentation",
3
- "version": "1.284.0",
3
+ "version": "1.285.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,16 +33,16 @@
33
33
  "release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-instrumentation"
34
34
  },
35
35
  "dependencies": {
36
- "@salesforce/lds-bindings": "^1.284.0",
37
- "@salesforce/lds-default-luvio": "^1.284.0",
38
- "@salesforce/lds-utils-adapters": "^1.284.0",
36
+ "@salesforce/lds-bindings": "^1.285.0",
37
+ "@salesforce/lds-default-luvio": "^1.285.0",
38
+ "@salesforce/lds-utils-adapters": "^1.285.0",
39
39
  "o11y": "244.0.0",
40
40
  "o11y_schema": "248.40.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@salesforce/lds-adapters-uiapi": "^1.284.0",
44
- "@salesforce/lds-network-adapter": "^1.284.0",
45
- "@salesforce/nimbus-plugin-lds": "^1.284.0"
43
+ "@salesforce/lds-adapters-uiapi": "^1.285.0",
44
+ "@salesforce/lds-network-adapter": "^1.285.0",
45
+ "@salesforce/nimbus-plugin-lds": "^1.285.0"
46
46
  },
47
47
  "luvioBundlesize": [
48
48
  {