Add a breadcrumb which will be included with telemetry events.
Many breadcrumbs can be automatically captured, but this method can be used for capturing manual breadcrumbs. For application specific breadcrumbs the CustomBreadcrumb type can be used.
The breadcrumb to add.
Captures an Error object for telemetry purposes.
Use this method to manually capture errors during application operation. Unhandled errors are automatically captured, but this method can be used to capture errors which were handled, but are still useful for telemetry.
The Error object to capture
Captures a browser ErrorEvent for telemetry purposes.
This method can be used to capture a manually created error event. Use this
function to represent application specific errors which cannot be captured
automatically or are not Error
types.
For most errors captureError should be used.
The ErrorEvent to capture
Returns an array of active SDK inspectors to use with SDK versions that do not support hooks.
An array of BrowserTelemetryInspector objects.
Registers a LaunchDarkly client instance for telemetry tracking.
This method connects the telemetry system to the specific LaunchDarkly client instance. The client instance will be used to report telemetry to LaunchDarkly and also for collecting flag and context data.
The LDClientTracking instance to register for telemetry
Generated using TypeDoc
Interface for browser-based telemetry collection in LaunchDarkly SDKs.
This interface provides methods for collecting diagnostic information, error tracking, and SDK usage data in browser environments. It is designed to work with LaunchDarkly's JavaScript client-side SDKs for browser environments.