@launchdarkly/o11y 1.3.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/dist/index.d.ts CHANGED
@@ -628,6 +628,7 @@ 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;
@@ -731,6 +732,14 @@ export declare type HighlightOptions = CommonOptions & {
731
732
  * @example consoleMethodsToRecord: ['log', 'info', 'error']
732
733
  */
733
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;
734
743
  enableSegmentIntegration?: boolean;
735
744
  /**
736
745
  * Specifies the environment your application is running in.
@@ -1217,10 +1226,15 @@ declare type loadedEvent = {
1217
1226
  data: unknown;
1218
1227
  };
1219
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
+ */
1220
1233
  declare class Logger {
1221
1234
  debug: boolean | undefined;
1222
1235
  name: string | undefined;
1223
1236
  constructor(debug?: boolean, name?: string);
1237
+ private prefix;
1224
1238
  log(...data: any[]): void;
1225
1239
  warn(...data: any[]): void;
1226
1240
  }
@@ -1686,6 +1700,15 @@ export declare type ObserveOptions = CommonOptions & {
1686
1700
  * @example consoleMethodsToRecord: ['log', 'info', 'error']
1687
1701
  */
1688
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;
1689
1712
  /**
1690
1713
  * Specifies whether to record performance metrics (e.g. FPS, device memory).
1691
1714
  * @default true