@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/record.d.ts CHANGED
@@ -353,6 +353,7 @@ declare type HighlightClassOptions = {
353
353
  disableSessionRecording?: boolean;
354
354
  reportConsoleErrors?: boolean;
355
355
  consoleMethodsToRecord?: ConsoleMethods[];
356
+ recordLaunchDarklySdkLogs?: boolean;
356
357
  privacySetting?: PrivacySettingOption;
357
358
  maskAllInputs?: boolean;
358
359
  maskInputOptions?: MaskInputOptions;
@@ -451,6 +452,14 @@ declare type HighlightOptions = CommonOptions & {
451
452
  * @example consoleMethodsToRecord: ['log', 'info', 'error']
452
453
  */
453
454
  consoleMethodsToRecord?: ConsoleMethods[];
455
+ /**
456
+ * Specifies whether console output written by the LaunchDarkly SDK's own
457
+ * logger (lines prefixed `[LaunchDarkly]`) is recorded. Skipped by default:
458
+ * the lines describe the SDK, and the streaming URL they contain embeds
459
+ * the evaluation context.
460
+ * @default false
461
+ */
462
+ recordLaunchDarklySdkLogs?: boolean;
454
463
  enableSegmentIntegration?: boolean;
455
464
  /**
456
465
  * Specifies the environment your application is running in.
@@ -687,10 +696,15 @@ declare type loadedEvent = {
687
696
  data: unknown;
688
697
  };
689
698
 
699
+ /**
700
+ * Per-component debug logger. Like `sdkLog`, its output is SDK-internal: it
701
+ * is written only in debug mode and never captured by the console recorder.
702
+ */
690
703
  declare class Logger {
691
704
  debug: boolean | undefined;
692
705
  name: string | undefined;
693
706
  constructor(debug?: boolean, name?: string);
707
+ private prefix;
694
708
  log(...data: any[]): void;
695
709
  warn(...data: any[]): void;
696
710
  }
@@ -989,6 +1003,15 @@ declare type ObserveOptions = CommonOptions & {
989
1003
  * @example consoleMethodsToRecord: ['log', 'info', 'error']
990
1004
  */
991
1005
  consoleMethodsToRecord?: ConsoleMethods[];
1006
+ /**
1007
+ * Specifies whether console output written by the LaunchDarkly SDK's own
1008
+ * logger (lines prefixed `[LaunchDarkly]`, e.g. stream connection
1009
+ * open/close messages) is recorded as logs. Those lines describe the SDK
1010
+ * rather than your application, and the streaming URL they contain embeds
1011
+ * the evaluation context, so they are skipped by default.
1012
+ * @default false
1013
+ */
1014
+ recordLaunchDarklySdkLogs?: boolean;
992
1015
  /**
993
1016
  * Specifies whether to record performance metrics (e.g. FPS, device memory).
994
1017
  * @default true
package/dist/record.js CHANGED
@@ -1,7 +1,7 @@
1
- import "./common-BkAGcE30.js";
2
- import { R as i } from "./record-DTawahUk.js";
1
+ import "./common-BjaGmQrE.js";
2
+ import { R as i } from "./record-BZHDLKsW.js";
3
3
  import "./LDRecord.js";
4
- import "./buffer-DIFxvF2Q.js";
4
+ import "./buffer-BjzLorpP.js";
5
5
  export {
6
6
  i as Record
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@launchdarkly/o11y",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Shared browser foundation for @launchdarkly/observability and @launchdarkly/session-replay. Capture frontend metrics, errors, logs, traces, and session replays.",
5
5
  "keywords": [
6
6
  "launchdarkly",