@launchdarkly/o11y 1.2.0 → 1.3.1
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/CHANGELOG.md +19 -0
- package/dist/{LDObserve-CHIjcqIn.js → LDObserve-DhF3vCDR.js} +2 -2
- package/dist/{LDObserve-CHIjcqIn.js.map → LDObserve-DhF3vCDR.js.map} +1 -1
- package/dist/LDObserve.d.ts +5 -0
- package/dist/LDObserve.js +2 -2
- package/dist/LDRecord.d.ts +5 -0
- package/dist/LDRecord.js +1 -1
- package/dist/assets/highlight-client-worker-DrDPRCrv.js.map +1 -0
- package/dist/buffer-BjzLorpP.js +124 -0
- package/dist/buffer-BjzLorpP.js.map +1 -0
- package/dist/{common-DQ61tUu9.js → common-BjaGmQrE.js} +367 -360
- package/dist/{common-DQ61tUu9.js.map → common-BjaGmQrE.js.map} +1 -1
- package/dist/index.d.ts +33 -0
- package/dist/index.js +228 -223
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +87 -87
- package/dist/index.umd.js.map +1 -1
- package/dist/{observe-CFB6c1lu.js → observe-D78YYNE1.js} +2362 -2338
- package/dist/observe-D78YYNE1.js.map +1 -0
- package/dist/observe.d.ts +18 -0
- package/dist/observe.js +4 -4
- package/dist/{record-C_yieA7u.js → record-BZHDLKsW.js} +2733 -2710
- package/dist/record-BZHDLKsW.js.map +1 -0
- package/dist/record.d.ts +33 -0
- package/dist/record.js +3 -3
- package/package.json +1 -1
- package/dist/assets/highlight-client-worker-DsbKMpxq.js.map +0 -1
- package/dist/buffer-DIFxvF2Q.js +0 -102
- package/dist/buffer-DIFxvF2Q.js.map +0 -1
- package/dist/observe-CFB6c1lu.js.map +0 -1
- package/dist/record-C_yieA7u.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -628,9 +628,11 @@ declare type HighlightClassOptions = {
|
|
|
628
628
|
disableSessionRecording?: boolean;
|
|
629
629
|
reportConsoleErrors?: boolean;
|
|
630
630
|
consoleMethodsToRecord?: ConsoleMethods[];
|
|
631
|
+
recordLaunchDarklySdkLogs?: boolean;
|
|
631
632
|
privacySetting?: PrivacySettingOption;
|
|
632
633
|
maskAllInputs?: boolean;
|
|
633
634
|
maskInputOptions?: MaskInputOptions;
|
|
635
|
+
maskPiiText?: boolean;
|
|
634
636
|
maskTextClass?: string | RegExp;
|
|
635
637
|
maskTextSelector?: string;
|
|
636
638
|
blockClass?: string | RegExp;
|
|
@@ -730,6 +732,14 @@ export declare type HighlightOptions = CommonOptions & {
|
|
|
730
732
|
* @example consoleMethodsToRecord: ['log', 'info', 'error']
|
|
731
733
|
*/
|
|
732
734
|
consoleMethodsToRecord?: ConsoleMethods[];
|
|
735
|
+
/**
|
|
736
|
+
* Specifies whether console output written by the LaunchDarkly SDK's own
|
|
737
|
+
* logger (lines prefixed `[LaunchDarkly]`) is recorded. Skipped by default:
|
|
738
|
+
* the lines describe the SDK, and the streaming URL they contain embeds
|
|
739
|
+
* the evaluation context.
|
|
740
|
+
* @default false
|
|
741
|
+
*/
|
|
742
|
+
recordLaunchDarklySdkLogs?: boolean;
|
|
733
743
|
enableSegmentIntegration?: boolean;
|
|
734
744
|
/**
|
|
735
745
|
* Specifies the environment your application is running in.
|
|
@@ -1216,10 +1226,15 @@ declare type loadedEvent = {
|
|
|
1216
1226
|
data: unknown;
|
|
1217
1227
|
};
|
|
1218
1228
|
|
|
1229
|
+
/**
|
|
1230
|
+
* Per-component debug logger. Like `sdkLog`, its output is SDK-internal: it
|
|
1231
|
+
* is written only in debug mode and never captured by the console recorder.
|
|
1232
|
+
*/
|
|
1219
1233
|
declare class Logger {
|
|
1220
1234
|
debug: boolean | undefined;
|
|
1221
1235
|
name: string | undefined;
|
|
1222
1236
|
constructor(debug?: boolean, name?: string);
|
|
1237
|
+
private prefix;
|
|
1223
1238
|
log(...data: any[]): void;
|
|
1224
1239
|
warn(...data: any[]): void;
|
|
1225
1240
|
}
|
|
@@ -1685,6 +1700,15 @@ export declare type ObserveOptions = CommonOptions & {
|
|
|
1685
1700
|
* @example consoleMethodsToRecord: ['log', 'info', 'error']
|
|
1686
1701
|
*/
|
|
1687
1702
|
consoleMethodsToRecord?: ConsoleMethods[];
|
|
1703
|
+
/**
|
|
1704
|
+
* Specifies whether console output written by the LaunchDarkly SDK's own
|
|
1705
|
+
* logger (lines prefixed `[LaunchDarkly]`, e.g. stream connection
|
|
1706
|
+
* open/close messages) is recorded as logs. Those lines describe the SDK
|
|
1707
|
+
* rather than your application, and the streaming URL they contain embeds
|
|
1708
|
+
* the evaluation context, so they are skipped by default.
|
|
1709
|
+
* @default false
|
|
1710
|
+
*/
|
|
1711
|
+
recordLaunchDarklySdkLogs?: boolean;
|
|
1688
1712
|
/**
|
|
1689
1713
|
* Specifies whether to record performance metrics (e.g. FPS, device memory).
|
|
1690
1714
|
* @default true
|
|
@@ -1933,6 +1957,15 @@ export declare type RecordOptions = CommonOptions & {
|
|
|
1933
1957
|
* Customize the input element types that are masked. Only applies if privacySetting is `none`.
|
|
1934
1958
|
*/
|
|
1935
1959
|
maskInputOptions?: MaskInputOptions;
|
|
1960
|
+
/**
|
|
1961
|
+
* Whether to mask text on the page that looks like PII, such as emails, phone numbers,
|
|
1962
|
+
* credit card numbers, SSNs, street addresses, and IP addresses.
|
|
1963
|
+
* - `strict`: ignored. All text is always masked.
|
|
1964
|
+
* - `default`: PII-like text is masked unless this is `false`.
|
|
1965
|
+
* - `none`: PII-like text is not masked unless this is `true`.
|
|
1966
|
+
* Does not affect input masking, which is controlled by `maskAllInputs` and `maskInputOptions`.
|
|
1967
|
+
*/
|
|
1968
|
+
maskPiiText?: boolean;
|
|
1936
1969
|
/**
|
|
1937
1970
|
* Customize which elements' text should be masked by specifying a CSS class name or RegExp.
|
|
1938
1971
|
* Default class is 'highlight-mask'.
|