@salesforce/lds-instrumentation 1.134.2 → 1.134.4

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.
@@ -91,7 +91,7 @@ var FragmentReadResultState;
91
91
  ({
92
92
  state: FragmentReadResultState.Missing,
93
93
  });
94
- // engine version: 0.138.13-8fa39cd3
94
+ // engine version: 0.139.1-f7268217
95
95
 
96
96
  const DurableEnvironmentEventDiscriminator = 'durable';
97
97
  function isDurableEnvironmentEvent(event) {
@@ -1428,4 +1428,4 @@ function setStoreEventObservers(store) {
1428
1428
  const instrumentation = new Instrumentation();
1429
1429
 
1430
1430
  export { Instrumentation, LRUCache, metricKeys as METRIC_KEYS, handleIngestedNewData, handleOnDataOutOfTtlDurationUpdate, incrementCounterMetric, incrementGetRecordNormalInvokeCount, incrementGetRecordNotifyChangeAllowCount, incrementGetRecordNotifyChangeDropCount, incrementNotifyRecordUpdateAvailableAllowCount, incrementNotifyRecordUpdateAvailableDropCount, instrumentAdapter, instrumentLuvio, instrumentMethods, instrumentStoreMethods, instrumentation, setInstrumentationHooks, setLdsAdaptersUiapiInstrumentation, setLdsNetworkAdapterInstrumentation, setStoreEventObservers, setupInstrumentation, updatePercentileHistogramMetric };
1431
- // version: 1.134.2-b6a56164c
1431
+ // version: 1.134.4-b3535d2e7
@@ -1,2 +1,11 @@
1
- import type { Activity } from 'o11y/client';
2
- export declare const activity: Activity;
1
+ declare function stop(_userSchemaOrText?: any | string, _userData?: any): void;
2
+ declare function error(_error: Error, _userSchemaOrText?: any | string, _userData?: any): void;
3
+ declare function discard(): void;
4
+ declare function terminate(): void;
5
+ export declare const activity: {
6
+ stop: typeof stop;
7
+ error: typeof error;
8
+ discard: typeof discard;
9
+ terminate: typeof terminate;
10
+ };
11
+ export {};
@@ -1,5 +1,10 @@
1
- import type { Instrumentation } from 'o11y/client';
2
1
  export { activity } from './activity';
3
2
  export { instrumentation } from './instrumentation';
4
3
  export { idleDetector } from './idleDetector';
5
- export declare function getInstrumentation(_name: string): Instrumentation;
4
+ export declare function getInstrumentation(_name: string): {
5
+ log: (_schema: any, _data?: any) => void;
6
+ error: (_error: unknown, _userSchemaOrText?: any, _userData?: any) => void;
7
+ startActivity: (_name: string) => any;
8
+ incrementCounter: (_operation: string, _increment?: number | undefined, _hasError?: boolean | undefined, _tags?: any) => void;
9
+ trackValue: (_operation: string, _value: number, _hasError?: boolean | undefined, _tags?: any) => void;
10
+ };
@@ -1,2 +1,18 @@
1
- import type { IdleDetector } from 'o11y/client';
2
- export declare const idleDetector: IdleDetector;
1
+ declare function requestIdleDetectedCallback(_callback: any): void;
2
+ declare function declareNotifierTaskSingle(_name: string): {
3
+ isBusy: boolean;
4
+ done: () => void;
5
+ };
6
+ declare function declareNotifierTaskMulti(_name: string, _existingBusyCount?: number): {
7
+ isBusy: boolean;
8
+ add: () => void;
9
+ done: () => void;
10
+ };
11
+ declare function declarePollableTaskMulti(_name: string, _isBusyChecker: any): void;
12
+ export declare const idleDetector: {
13
+ requestIdleDetectedCallback: typeof requestIdleDetectedCallback;
14
+ declareNotifierTaskSingle: typeof declareNotifierTaskSingle;
15
+ declareNotifierTaskMulti: typeof declareNotifierTaskMulti;
16
+ declarePollableTaskMulti: typeof declarePollableTaskMulti;
17
+ };
18
+ export {};
@@ -1,9 +1,8 @@
1
- import type { Activity, MetricsTags, Schema, SchematizedData } from 'o11y/client';
2
- declare function log(_schema: Schema, _data?: SchematizedData): void;
3
- declare function error(_error: unknown, _userSchemaOrText?: Schema | string, _userData?: SchematizedData): void;
4
- declare function startActivity(_name: string): Activity;
5
- declare function incrementCounter(_operation: string, _increment?: number, _hasError?: boolean, _tags?: MetricsTags): void;
6
- declare function trackValue(_operation: string, _value: number, _hasError?: boolean, _tags?: MetricsTags): void;
1
+ declare function log(_schema: any, _data?: any): void;
2
+ declare function error(_error: unknown, _userSchemaOrText?: any | string, _userData?: any): void;
3
+ declare function startActivity(_name: string): any;
4
+ declare function incrementCounter(_operation: string, _increment?: number, _hasError?: boolean, _tags?: any): void;
5
+ declare function trackValue(_operation: string, _value: number, _hasError?: boolean, _tags?: any): void;
7
6
  export declare const instrumentation: {
8
7
  log: typeof log;
9
8
  error: typeof error;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-instrumentation",
3
- "version": "1.134.2",
3
+ "version": "1.134.4",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Instrumentation utils for Lightning Data Service",
6
6
  "main": "dist/ldsInstrumentation.js",