launchdarkly_flutter_observability library
LaunchDarkly Observability and Session Replay for Flutter.
Initialize with LDObserve.init (alongside a LaunchDarkly client) or LDObserve.initStandalone, then use LDObserve to record spans, logs and errors. Wrap your app in SessionReplayCapture to enable session replay.
Classes
- AnalyticsOptions
-
Analytics telemetry emitted as OpenTelemetry spans. Mirrors Android
ObservabilityOptions.Analytics. - DebugPrintSetting
- Configuration for the debugPrint instrumentation.
- InstrumentationOptions
-
Toggles for SDK-side instrumentation. Mirrors
InstrumentationOptionsin the .NET MAUI bridge, extended with the Dart-only debugPrint control. - LDClick
- Names its child subtree for click tracking, so taps inside it report a stable id instead of whatever the widget tree happens to look like.
- LDClickTargetInfo
- A description of a widget that automatic click capture recognizes as a click target, returned by an LDClickTargetResolver.
- LDIgnore
- Excludes its child subtree from session replay so it never appears in a recording.
- LDMask
- Marks its child subtree as sensitive so it is redacted from session replay recordings.
- A NavigatorObserver that reports Flutter route changes to LaunchDarkly observability as screen views.
- LDObserve
-
Static facade for LaunchDarkly observability and session replay from
Flutter. Mirrors the C#
LaunchDarkly.Observability.LDObservefacade and is the single public entry point for both initialization and recording. - LDRoutePatterns
- Builds an LDScreenNameExtractor that reports the route pattern a navigation matched instead of the URL it was pushed with.
- LDUnmask
-
Exempts its child subtree from global, screen-wide session-replay
masking (the
PrivacyOptionsrules such asmaskTextInputs), revealing it in the recording. - ObservabilityOptions
-
Configuration for the LaunchDarkly observability plugin. Field set mirrors
LaunchDarkly.Observability.ObservabilityOptionsin the .NET bridge. - PrivacyOptions
-
Privacy controls for session replay. Mirrors
SessionReplayOptions.PrivacyOptionsin the .NET bridge. - SessionReplayCapture
- Wrap the app, or the subtree that should appear in session replay, with this widget.
- SessionReplayOptions
-
Configuration for the LaunchDarkly session replay plugin. Mirrors
LaunchDarkly.SessionReplay.SessionReplayOptionsin the .NET bridge. - Span
- Represents a single operation within a trace.
- TracesOptions
-
Controls automatic trace generation. Mirrors
TracesApi(Android) andAppTracing(iOS).
Enums
- LogSeverity
-
Severity of a log recorded with
LDObserve.recordLog. - ObservabilityLogLevel
-
Severity threshold for exported logs. Mirrors the
LogLevelenums in the Android (ObservabilityOptions.LogLevel) and iOS (ObservabilityOptions.LogLevel) SDKs. The severity values match the OpenTelemetry log severity numbers so they can be forwarded across the native bridge unchanged. - SpanKind
- The kind of the span.
- SpanStatusCode
- The status of the span.
Typedefs
- LDClickTargetResolver = LDClickTargetInfo? Function(Widget widget)
- Recognizes an application's own widget types as click targets.
- LDScreenNameExtractor = String? Function(Route route)
- Signature for deriving a screen name from a Route.